eddc6915106b1708c0b1d9893b7ca97af8a707a4
[gnulib.git] / ChangeLog
1 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2             Bruno Haible  <bruno@clisp.org>
3
4         Fix some modules' file list.
5         * modules/fstatat (Files): Add m4/lstat.m4.
6         * modules/openat (Files): Likewise.
7         * modules/unlinkat (Files): Likewise.
8
9 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10
11         maint.mk: fix tight-scope.mk generation in VPATH builds.
12         * top/maint.mk (tight-scope.mk): Make sure to prefix file
13         reference with $(srcdir) so that the file is found correctly even
14         when running `make syntax-check' in a VPATH build.
15
16 2011-11-13  Bruno Haible  <bruno@clisp.org>
17             Jim Meyering  <meyering@redhat.com>
18
19         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
20         * tests/init.sh (compare): Remove "No differences encountered" or
21         synonymous output from the 'diff' program.
22
23 2011-11-13  Bruno Haible  <bruno@clisp.org>
24
25         Makefile: Tweak indentation.
26         * Makefile: Use tab as first character in every line that contains rule
27         commands.
28
29 2011-11-13  Bruno Haible  <bruno@clisp.org>
30
31         Syntax check for copyright statements.
32         * check-copyright: New file.
33         * Makefile (sc_check_copyright): New rule.
34
35 2011-11-13  Simon Josefsson  <simon@josefsson.org>
36
37         * build-aux/git-version-gen: Add --prefix to configure the tag
38         match string.
39
40 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41
42         * build-aux/git-version-gen: Add --help and --version.
43
44 2011-11-12  Jim Meyering  <meyering@redhat.com>
45
46         revamp the other test-exclude?.sh scripts to use init.sh, too
47         * tests/test-exclude1.sh: Use init.sh.
48         * tests/test-exclude2.sh: Likewise.
49         * tests/test-exclude3.sh: Likewise.
50         * tests/test-exclude4.sh: Likewise.
51         * tests/test-exclude5.sh: Likewise.
52         * tests/test-exclude6.sh: Likewise.
53         * tests/test-exclude7.sh: Likewise.
54         * tests/test-exclude8.sh: Likewise.
55         * modules/exclude-tests (Files): List init.sh.
56
57         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
58         These shell scripts ignored failure of the binary test-exclude,
59         so making the latter return 77 didn't cause them to be skipped.
60         * tests/test-exclude5.sh: Exit with test-exclude's error status
61         when that program fails.  Revamp to use init.sh.
62         * tests/test-exclude2.sh: Likewise.
63
64         test-exclude: fix a typo
65         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
66
67 2011-11-11  Bruno Haible  <bruno@clisp.org>
68
69         obstack: Fix compilation error on MSVC 9.
70         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
71
72 2011-11-11  Jim Meyering  <meyering@redhat.com>
73
74         test-exclude: skip tests rather than failing on deficient systems
75         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
76         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
77         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
78         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
79
80 2011-11-10  Bruno Haible  <bruno@clisp.org>
81
82         ptsname_r test: Avoid gcc warning on glibc systems.
83         * tests/test-ptsname_r.c (null_ptr): New function.
84         (test_errors): Use it.
85
86 2011-11-10  Bruno Haible  <bruno@clisp.org>
87
88         ptsname_r: Avoid compilation error on OSF/1 5.1.
89         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
90         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
91         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
92         function is not declared or incompatibly declared.
93         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
94         * modules/ptsname_r (Depends-on, configure.ac): Update.
95         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
96
97 2011-11-10  Bruno Haible  <bruno@clisp.org>
98
99         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
100         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
101         When cross-compiling, guess yes on all platforms except AIX.
102         Reported by Ludovic Courtès <ludo@gnu.org>.
103
104 2011-11-09  Bruno Haible  <bruno@clisp.org>
105
106         ptsname_r tests: Fix bugs.
107         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
108         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
109
110 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111
112         fstatat: work with cross-compilation
113         Problem reported by Ludovic Courtès in
114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
115         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
116         "cross-compiling" and assume the bug is present.  Replace
117         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
118         an inverted sense, to be more conservative about our assumptions.
119         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
120
121 2011-11-09  Bruno Haible  <bruno@clisp.org>
122
123         Improve MODULES.html output.
124         * modules/mkfifoat (Description): Use the word "function".
125         * modules/readlinkat (Description): Likewise.
126         * modules/symlinkat (Description): Likewise.
127
128 2011-11-09  Eric Blake  <eblake@redhat.com>
129
130         ptsname_r-tests: new test module
131         * modules/ptsname_r-tests: New module.
132         * tests/test-ptsname_r.c: New file.
133
134         ptsname_r: new module
135         * modules/ptsname_r: New module.
136         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
137         * lib/ptsname.c (__ptsname_r): Split...
138         * lib/ptsname_r.c: ...into new file.
139         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
140         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
141         * modules/stdlib (Makefile.am): Substitute witnesses.
142         * lib/stdlib.in.h (ptsname_r): Declare it.
143         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
144         * MODULES.html.sh (Misc): Likewise.
145         * modules/ptsname (Depends-on): Alter dependency.
146         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
147
148 2011-11-09  Jim Meyering  <meyering@redhat.com>
149
150         announce-gen: be more concise when there's only one URL+tarball
151         * build-aux/announce-gen (get_tool_versions): When you distribute
152         only one type of tarball, combine the first two "Here are..."
153         sections and make the key-checking grammar independent of
154         how many tarballs there are.
155
156 2011-11-09  Eric Blake  <eblake@redhat.com>
157
158         openpty: provide a stub on mingw
159         * lib/pty.in.h (includes): Provide forward declarations.
160         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
161
162         raise: fix mingw handling of SIGPIPE
163         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
164
165 2011-11-08  Bruno Haible  <bruno@clisp.org>
166
167         More conditional dependencies.
168         * modules/faccessat (Depends-on): Add conditions.
169         * modules/fchmodat (Depends-on): Likewise.
170         * modules/fchownat (Depends-on): Likewise.
171         * modules/fstatat (Depends-on): Likewise.
172         * modules/mkfifoat (Depends-on): Likewise.
173         * modules/readlinkat (Depends-on): Likewise.
174         * modules/symlinkat (Depends-on): Likewise.
175         * modules/unlinkat (Depends-on): Likewise.
176         * modules/utimensat (Depends-on): Likewise.
177         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
178         * modules/linkat (Depends-on): Refine the conditions.
179         * modules/renameat (Depends-on): Likewise.
180
181 2011-11-08  Bruno Haible  <bruno@clisp.org>
182
183         faccessat: Move AC_LIBOBJ invocation to module description.
184         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
185         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
186         invocation from here...
187         * modules/faccessat (configure.ac): ... to here. Invoke
188         gl_PREREQ_FACCESSAT.
189
190 2011-11-08  Bruno Haible  <bruno@clisp.org>
191
192         faccessat: Simplify autoconf macro.
193         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
194         gl_FUNC_EUIDACCESS.
195
196 2011-11-08  Bruno Haible  <bruno@clisp.org>
197
198         renameat: Fix dependencies.
199         * modules/renameat (Depends-on): Add stdbool.
200
201 2011-11-08  Bruno Haible  <bruno@clisp.org>
202
203         mkfifoat: Fix module description.
204         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
205         not gl_UNISTD_MODULE_INDICATOR.
206
207 2011-11-08  Bruno Haible  <bruno@clisp.org>
208
209         fstatat: Remove unused dependency.
210         * modules/fstatat (Depends-on): Remove fstat.
211
212 2011-11-08  Simon Josefsson  <simon@josefsson.org>
213
214         GNUmakefile: behave when Makefile is missing.
215         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
216
217 2011-11-08  Bruno Haible  <bruno@clisp.org>
218
219         openat: Conditionalize dependencies.
220         * lib/openat.c: Reduce the scope of some #includes.
221         * modules/openat (Depends-on): Add conditions.
222
223 2011-11-07  Jim Meyering  <meyering@redhat.com>
224
225         maint.mk: extract GPG key ID without using a temporary file
226         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
227         without using a temporary file.  Based on a suggestion from Werner Koch
228         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
229
230 2011-11-07  Eric Blake  <eblake@redhat.com>
231
232         grantpt: fix typo
233         * lib/stdlib.in.h (grantpt): Check correct function.
234
235         maint.mk: silence new syntax check
236         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
237
238 2011-11-06  Bruno Haible  <bruno@clisp.org>
239
240         Doc about floating-point and math API.
241         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
242         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
243
244 2011-11-06  Bruno Haible  <bruno@clisp.org>
245
246         stdalign tests: Skip the test when compiled by Sun C.
247         * tests/test-stdalign.c (main): Skip the test on Sun C.
248
249 2011-11-06  Bruno Haible  <bruno@clisp.org>
250
251         ansi-c++-opt: Complete the 2011-06-05 change.
252         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
253         does not support namespaces, set the variable to "no", not to ":".
254
255 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
256
257         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
258
259 2011-11-06  Bruno Haible  <bruno@clisp.org>
260
261         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
262         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
263         (minus_zerol) [HP-UX]: New macro.
264         (unary_minus) [HP-UX]: New function.
265         (copysignl) [HP-UX]: Use unary_minus function.
266
267 2011-11-06  Bruno Haible  <bruno@clisp.org>
268
269         ldexp, ldexpf, ldexpl: Enhance tests.
270         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
271         and tests/test-ldexpl.c.
272         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
273         LDEXP, MIN_EXP, MAX_EXP): New macros.
274         Include test-ldexp.h.
275         (main): Just call test_function.
276         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
277         infinity.h, nan.h.
278         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
279         MAX_EXP): New macros.
280         Include test-ldexp.h.
281         (x, y): Remove variables.
282         (main): Just call test_function.
283         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
284         infinity.h, nan.h.
285         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
286         MAX_EXP): New macros.
287         Include test-ldexp.h.
288         (x, y): Remove variables.
289         (main): Just call test_function.
290         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
291         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
292         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
293         (Depends-on): Add isnand-nolibm, signbit, float.
294         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
295         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
296         (Depends-on): Add isnanf-nolibm, signbit, float.
297
298 2011-11-06  Bruno Haible  <bruno@clisp.org>
299
300         math tests: Cosmetics.
301         * tests/test-math-c++.cc: Reorder declarations.
302
303 2011-11-05  Bruno Haible  <bruno@clisp.org>
304
305         fma*: Simplify test.
306         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
307         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
308
309         Tests for module 'fmal'.
310         * modules/fmal-tests: New file.
311         * tests/test-fmal1.c: New file.
312         * tests/test-fmal2.c: New file.
313
314         New module 'fmal'.
315         * lib/math.in.h (fmal): New declaration.
316         * lib/fmal.c: New file.
317         * m4/fmal.m4: New file.
318         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
320         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
321         REPLACE_FMAL.
322         * modules/fmal: New file.
323         * doc/posix-functions/fmal.texi: Mention the new module and the various
324         bugs.
325
326         Tests for module 'fmaf'.
327         * modules/fmaf-tests: New file.
328         * tests/test-fmaf1.c: New file.
329         * tests/test-fmaf2.c: New file.
330
331         New module 'fmaf'.
332         * lib/math.in.h (fmaf): New declaration.
333         * lib/fmaf.c: New file.
334         * m4/fmaf.m4: New file.
335         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
337         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
338         REPLACE_FMAF.
339         * modules/fmaf: New file.
340         * doc/posix-functions/fmaf.texi: Mention the new module and the various
341         bugs.
342
343         Tests for module 'fma'.
344         * modules/fma-tests: New file.
345         * tests/test-fma1.c: New file.
346         * tests/test-fma1.h: New file.
347         * tests/test-fma2.c: New file.
348         * tests/test-fma2.h: New file.
349
350         New module 'fma'.
351         * lib/math.in.h (fma): New declaration.
352         * lib/fma.c: New file.
353         * m4/fma.m4: New file.
354         * m4/fegetround.m4: New file.
355         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
357         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
358         REPLACE_FMA.
359         * modules/fma: New file.
360         * doc/posix-functions/fma.texi: Mention the new module and the various
361         bugs.
362
363         Extend gl_MATHFUNC.
364         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
365         Support 'void' as argument type.
366         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
367
368 2011-11-05  Jim Meyering  <meyering@redhat.com>
369
370         maint.mk: also prohibit inclusion of dirent.h without use
371         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
372
373 2011-11-05  Bruno Haible  <bruno@clisp.org>
374
375         ldexpl tests: Avoid test failure on MSVC 9.
376         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
377         value. Needed in order to enforce the conversion from a value greater
378         than LDBL_MAX to Infinity.
379
380 2011-11-05  Bruno Haible  <bruno@clisp.org>
381
382         New modules 'at-internal', 'openat-h', split off from module 'openat'.
383         * modules/at-internal: New file, extracted from modules/openat.
384         * modules/openat-h: New file.
385         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
386         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
387         * modules/openat (Description): Add reference to POSIX function.
388         (Files): Remove lib/openat.h, lib/openat-proc.c.
389         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
390         intprops, unistd.
391         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
392         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
393         gl_FCNTL_MODULE_INDICATOR.
394         (Include): Remove unistd.h, openat.h.
395         * modules/areadlinkat (Files): Add lib/at-func.c.
396         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
397         openat-die, openat-h, save-cwd.
398         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
399         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
400         openat-die, openat-h, save-cwd, unistd.
401         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
402         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
403         openat-h, save-cwd. Remove fcntl-h, openat.
404         * modules/fchmodat (Files): Remove lib/openat.h.
405         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
406         openat, stdbool, unistd.
407         * modules/fchownat (Files): Remove lib/openat.h.
408         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
409         openat, stdbool, sys_stat.
410         * modules/fdopendir (Files): Remove lib/openat-priv.h,
411         lib/openat-proc.c.
412         (Depends-on): Add at-internal.
413         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
414         * modules/fstatat (Files): Remove lib/openat.h.
415         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
416         stdbool, unistd.
417         * modules/fts (Depends-on): Add openat-h.
418         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
419         openat.
420         * modules/mkdirat (Files): Remove lib/openat.h.
421         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
422         openat, stdbool, sys_stat.
423         * modules/mkfifoat (Files): Add lib/at-func.c.
424         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
425         openat-h, save-cwd. Remove fcntl-h, openat.
426         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
427         * modules/readlinkat (Files): Add lib/at-func.c.
428         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
429         openat-h, save-cwd. Remove fcntl-h, openat.
430         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
431         openat.
432         * modules/selinux-at (Files): Add lib/at-func.c.
433         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
434         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
435         * modules/symlinkat (Files): Add lib/at-func.c.
436         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
437         openat-h, save-cwd. Remove fcntl-h, openat.
438         * modules/unlinkat (Files): Remove lib/openat.h.
439         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
440         stdbool.
441         * modules/utimensat (Files): Add lib/at-func.c.
442         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
443         openat-die, openat-h, save-cwd.
444         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
445         * modules/fdutimensat-tests (Depends-on): Add openat.
446         * modules/fstatat-tests (Depends-on): Add openat-h.
447         * modules/readlinkat-tests (Depends-on): Add openat.
448         * modules/symlinkat-tests (Depends-on): Add openat.
449
450 2011-11-05  Bruno Haible  <bruno@clisp.org>
451
452         openat: Include <stdbool.h>.
453         * lib/openat.c: Include <stdbool.h>.
454
455 2011-11-04  Bruno Haible  <bruno@clisp.org>
456
457         fchownat, renameat, unlinkat: Fix dependencies.
458         * modules/fchownat (Depends-on): Add fstatat.
459         * modules/renameat (Depends-on): Likewise.
460         * modules/unlinkat (Depends-on): Likewise.
461
462 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
463
464         openat: remove direct dependency on dirent
465         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
466         and hasn't been needed ever since fdopendir was split into its own
467         module on 2009-08-31.
468         * modules/openat (Depends-on): Remove dirent.
469
470 2011-11-04  Bruno Haible  <bruno@clisp.org>
471
472         renameat: Optimize code size.
473         * modules/renameat (configure.ac): Don't compile at-func2.c if
474         REPLACE_RENAMEAT is 1.
475
476 2011-11-04  Bruno Haible  <bruno@clisp.org>
477
478         openat tests: Fix file list.
479         * modules/openat-tests (Files): Add tests/test-open.h.
480
481 2011-11-04  Bruno Haible  <bruno@clisp.org>
482
483         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
484         * modules/fchmodat (Depends-on): Add openat-die.
485         * modules/fchownat (Depends-on): Likewise.
486         * modules/linkat (Depends-on): Likewise.
487         * modules/renameat (Depends-on): Likewise.
488         * modules/openat (Depends-on): Add dirent.
489
490 2011-11-04  Jim Meyering  <meyering@redhat.com>
491
492         at-func*.c: fix comments
493         * lib/at-func2.c: Correct/improve first-line comment.
494         * lib/at-func.c: Correct grammar in first-line comment.
495
496 2011-11-04  Bruno Haible  <bruno@clisp.org>
497
498         New module 'mkdirat', split off from module 'openat'.
499         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
500         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
501         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
502         * modules/mkdirat: New file, extracted from modules/openat.
503         * modules/openat (Files): Remove lib/mkdirat.c.
504         (Depends-on): Remove mkdir.
505         (configure.ac): Remove AC_LIBOBJ of mkdirat.
506         (Include): Remove <sys/stat.h>.
507         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
508         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
509         tests/test-mkdir.h.
510         (Depends-on): Remove ignore-value.
511         (Makefile.am): Remove rules for test-mkdirat.
512         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
513         of module 'openat'.
514         * NEWS: Mention the change.
515
516 2011-11-04  Bruno Haible  <bruno@clisp.org>
517
518         closedir: Avoid warning on mingw.
519         * lib/closedir.c: Include <unistd.h>.
520
521 2011-11-04  Bruno Haible  <bruno@clisp.org>
522
523         New module 'fstatat', split off from module 'openat'.
524         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
525         defined.
526         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
527         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
528         gl_FUNC_FSTATAT.
529         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
530         * modules/fstatat: New file, extracted from modules/openat.
531         * modules/openat (Files): Remove lib/fstatat.c.
532         (Depends-on): Remove lstat.
533         (configure.ac): Remove AC_LIBOBJ of fstatat.
534         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
535         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
536         tests/test-lstat.h, tests/test-stat.h.
537         (Depends-on): Remove getcwd-lgpl.
538         (Makefile.am): Remove rules for test-fstatat.
539         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
540         of module 'openat'.
541         * NEWS: Mention the change.
542         * modules/getcwd (Depends-on): Add fstatat.
543         * modules/linkat (Depends-on): Likewise.
544         * modules/mkfifoat-tests (Depends-on): Likewise.
545         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
546
547 2011-11-03  Bruno Haible  <bruno@clisp.org>
548
549         New module 'unlinkat', split off from module 'openat'.
550         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
551         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
552         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
553         * modules/unlinkat: New file, extracted from modules/openat. Correct
554         the dependency conditions.
555         * modules/openat (Files): Remove lib/unlinkat.c.
556         (Depends-on): Remove rmdir, unlink.
557         (configure.ac): Remove AC_LIBOBJ of unlinkat.
558         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
559         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
560         tests/test-rmdir.h, tests/test-unlink.h.
561         (Depends-on): Remove unlinkdir.
562         (Makefile.am): Remove rules for test-unlinkat.
563         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
564         of module 'openat'.
565         * NEWS: Mention the change.
566         * modules/linkat-tests (Depends-on): Add unlinkat.
567         * modules/mkfifoat-tests (Depends-on): Likewise.
568         * modules/readlinkat-tests (Depends-on): Likewise.
569
570 2011-11-02  Bruno Haible  <bruno@clisp.org>
571
572         New module 'fchmodat', split off from module 'openat'.
573         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
574         defined.
575         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
576         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
577         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
578         * modules/fchmodat: New file, extracted from modules/openat.
579         * modules/openat (Files): Remove lib/fchmodat.c.
580         (configure.ac): Remove AC_LIBOBJ of fchmodat.
581         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
582         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
583         (Makefile.am): Remove rules for test-fchmodat.
584         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
585         of module 'openat'.
586         * NEWS: Mention the change.
587
588 2011-11-02  Jim Meyering  <meyering@redhat.com>
589
590         putenv: indent #definition of "environ" to placate cppi
591         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
592
593         gitlog-to-changelog: provide a ChangeLog-repair mechanism
594         Git logs are often treated as immutable, because editing them
595         changes the SHA1 checksums of all descendants.  Thus, errors in
596         git logs tend to stay there forever.  However, when we generate
597         a ChangeLog file -- typically for distribution -- from that git log,
598         we can actually make corrections in the generated file.  The key
599         lies in recording in machine-readable/applicable form the desired
600         corrections.  See --help for description and an example.
601         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
602         (usage): Describe it; alphabetize option descriptions.
603         (main): Honor the new option, carefully.
604
605 2011-11-01  Jim Meyering  <meyering@redhat.com>
606
607         gitlog-to-changelog: avoid an infloop
608         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
609         that ends up being empty.
610
611 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
612
613         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
614         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
615         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
616         contains (possibly-quoted) backslashes.  This should avoid
617         all-too-common shell bugs if COMPLICATED contains backslashes in
618         the "wrong" places.  Reported by David Evans in
619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
620         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
621         because we want ASCII ranges.  Is there some reason we don't use
622         the C locale everywhere in this script?
623         (func_module, top level): Avoid unwanted pathname expansion when
624         $repo_url_prefix or $repo_url_suffix_repl contain shell
625         metacharacters like '?' and '*'.
626
627 2011-11-01  Bruno Haible  <bruno@clisp.org>
628
629         fchownat: Improve description.
630         * modules/fchownat (Description): Add link to function.
631
632 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
633
634         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
635         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
637         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
638
639 2011-11-01  Bruno Haible  <bruno@clisp.org>
640
641         alignof: Avoid collision with stdalign module.
642         * lib/alignof.h (alignof): Remove macro.
643         * NEWS: Mention the change.
644         Reported by Paul Eggert.
645
646 2011-11-01  Bruno Haible  <bruno@clisp.org>
647
648         New module 'fchownat', split off from module 'openat'.
649         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
650         defined.
651         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
652         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
653         invoke gl_FUNC_FCHOWNAT.
654         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
655         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
656         * modules/fchownat: New file, extracted from modules/openat.
657         * modules/openat (Files): Remove lib/fchownat.c.
658         (Depends-on): Remove lchown.
659         (configure.ac): Remove AC_LIBOBJ of fchownat.
660         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
661         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
662         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
663         (Depends-on): Remove mgetgroups, usleep, stat-time.
664         (configure.ac): Remove test for getegid.
665         (Makefile.am): Remove rules for test-fchownat.
666         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
667         of module 'openat'.
668         * NEWS: Mention the change.
669
670 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
671
672         stdalign: port better to MSVC and to Sun C 5.11
673         This fixes some of the problems reported by Bruno Haible in
674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
675         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
676         shortcomings of MSVC and of Sun C 5.11.
677         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
678         around __declspec arg.
679         * modules/stdalign-tests (Files): Add tests/macros.h.
680         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
681         Include macros.h, for ASSERT.
682         (DECLARE_ALIGNED): Remove.
683         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
684         to catch bug), and to 1 if not (simplifies the rest of the code).
685         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
686         (CHECK_AUTO): Remove.
687         (CHECK_ALIGNED): Check only the alignment of the static vars,
688         since auto var alignment isn't supported by Sun C 5.11.
689         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
690         ASSERT failures are easier to diagnose.
691
692 2011-10-31  Bruno Haible  <bruno@clisp.org>
693
694         doc about some IRIX 5.3 problems.
695         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
696         on IRIX 5.3.
697         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
698         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
699         5.3.
700         * doc/posix-functions/grantpt.texi: Likewise.
701         * doc/posix-functions/unlockpt.texi: Likewise.
702         * doc/posix-functions/lgamma.texi: Likewise.
703         * doc/posix-functions/nextafter.texi: Likewise.
704         * doc/posix-functions/remainder.texi: Likewise.
705         * doc/posix-functions/select.texi: Mention misplaced declaration on
706         IRIX 5.3.
707         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
708
709 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
710
711         gitlog-to-changelog: fix git-log invocation.
712         git-log mishandles date strings before 1970-01-01 UTC, and there is
713         no use to specify --since=1970-01-01 by default anyway.
714         * build-aux/gitlog-to-changelog: By default, when no --since option
715         was given, do not specify explicit --since option to git-log.
716
717 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
718
719         gitlog-to-changelog: new option --append-dot.
720         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
721         first non-blank line of each commit message terminated with a dot.
722
723 2011-10-30  Bruno Haible  <bruno@clisp.org>
724
725         ffsl, ffsll: Avoid compilation error due to 'restrict'.
726         * lib/ffsl.h: Include <config.h>.
727         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
728
729 2011-10-30  Jim Meyering  <meyering@redhat.com>
730
731         GNUmakefile: reenable "make syntax-check" for most projects
732         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
733         build-aux variable", "syntax-check" would do nothing but succeed with
734         the "No version control files detected..." diagnostic (unless you
735         happened to override _build-aux via cfg.mk).
736         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
737         to precede inclusion of maint.mk.  Otherwise, these variables would
738         be used undefined in any project that does not override the default.
739
740 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
741
742         gitlog-to-changelog: treat a message with only blank lines as empty.
743         * build-aux/gitlog-to-changelog: Move the code that removes leading and
744         trailing blank lines before the code that issues a warning about an
745         empty commit message.
746
747 2011-10-30  Jim Meyering  <meyering@redhat.com>
748
749         test-parse-datetime.c: avoid new DST-related false positive test failure
750         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
751         based on the time/date we'll convert, not the current time.
752         Otherwise, the moment we cross a DST boundary like today's in
753         Europe, (CEST to CET), that offset ends up being one hour off.
754
755 2011-10-27  Bruno Haible  <bruno@clisp.org>
756
757         fstat: Tweak documentation.
758         * modules/fstat (Description): More precise description.
759
760 2011-10-27  Bruno Haible  <bruno@clisp.org>
761
762         Update documentation regarding 'largefile' module.
763         * doc/posix-functions/fstat.texi: Tweak wording.
764         * doc/posix-functions/opendir.texi: Mention that the module fixes the
765         problems with huge directories and/or small ino_t types.
766         * doc/posix-functions/readdir.texi: Likewise.
767         * doc/posix-functions/rewinddir.texi: Likewise.
768
769 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
770
771         maint.mk: don't maintain a second build-aux variable.
772         * maint.mk (build_aux): Removed.  The maintainer-makefile module
773         depends on GNUmakefile, which already maintains a cfg.mk
774         overridable $(_build-aux) for projects with a non-standard
775         build-aux directory location, although without the $(srcdir)
776         prefix.  Use that variable consistently instead of introducing a
777         second one.  Adjust all call sites.
778
779 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
780
781         Add stdalign module and use it in other modules.
782         This is based on a previous proposal by Bruno Haible
783         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
784
785         stdalign: new module
786         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
787         * modules/stdalign: New files.
788         * MODULES.html.sh (c1x_core_properties): Add stdalign.
789         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
790
791         stdalign-tests: new module
792         * modules/stdalign-tests, tests/test-stdalign.c: New files.
793
794         argp: use stdalign
795         * lib/argp-parse.c: Include <stdalign.h>.
796         (alignof): Remove.
797         * modules/argp (Depends-on): Add stdalign.
798
799         crypto libraries: use stdalign
800         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
801         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
802         Do not include <stdlib.h> twice, in md4.c.
803         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
804         because we are accessing a pointer's bit-pattern, not a size.
805         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
806         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
807         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
808         * modules/crypto/sha512: Likewise.
809
810         sys_socket: use stdalign, not alignof
811         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
812         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
813
814 2011-10-27  Bruno Haible  <bruno@clisp.org>
815
816         raise test: Avoid a test failure on Linux/MIPS.
817         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
818         because 99 is a valid signal on Linux/MIPS.
819
820 2011-10-27  Bruno Haible  <bruno@clisp.org>
821
822         nonblocking tests: Fix test failure on Linux/MIPS.
823         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
824         Set to 270000.
825
826 2011-10-27  Bruno Haible  <bruno@clisp.org>
827
828         utimensat: Work around problem on Linux/hppa.
829         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
830         values.
831         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
832
833 2011-10-25  Jim Meyering  <meyering@redhat.com>
834
835         maint.mk: fix a bug in sc_prohibit_stddef_without_use
836         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
837         after symbols like NULL, size_t, etc.
838         Reported by Alfred M. Szmidt.
839
840         maint.mk: exempt ENODATA from a syntax-check rule
841         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
842         from the sc_prohibit_always-defined_macros syntax-check rule.
843         Add a comment.  See this for more details:
844         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
845
846 2011-10-23  Jim Meyering  <meyering@redhat.com>
847
848         fts: close parent dir FD before returning from post-traversal fts_read
849         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
850         unlink A, even though an FD open on A remained.  This is suboptimal
851         (holding a file descriptor open longer than needed), but otherwise not
852         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
853         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
854         that represents a real problem: it causes the removal of A to fail
855         with e.g., "rm: cannot remove `A': Device or resource busy"
856
857         fts visits each directory twice and keeps a cache (fts_fd_ring) of
858         directory file descriptors.  After completing the final, FTS_DP,
859         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
860         cache, but then proceeded to add a new FD to it via the subsequent
861         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
862         final file descriptor would be closed only via fts_close's call to
863         fd_ring_clear.  Now, it is usually closed earlier, via the final
864         FTS_DP-returning fts_read call.
865         * lib/fts.c (restore_initial_cwd): New function, converted from
866         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
867         Update callers.
868         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
869         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
870
871 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
872             Bruno Haible  <bruno@clisp.org>
873             Jim Meyering  <jim@meyering.net>
874
875         readme-release: improve safety of release prep instructions.
876         * README-release: Don't git pull all branches when only master
877         is needed for the release process.
878         Run make maintainer-clean before changing trees and merging.
879         Don't try to run ./configure right after git pull in case files
880         that influence the bootstrap process have changed, move the
881         ./configure step to after running ./bootstrap.
882         Don't bootstrap "one last time"... it's the first time!
883
884 2011-10-22  Bruno Haible  <bruno@clisp.org>
885
886         errno, strerror-override: Support for MSVC 10.
887         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
888         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
889         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
890         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
891         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
892         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
893         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
894         Assign values compatible with MSVC 10.
895         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
896         New macros.
897         (GNULIB_defined_EWINSOCK): New macro.
898         * lib/strerror-override.c (strerror_override): Update accordingly.
899         * lib/strerror-override.h: Likewise.
900         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
901         longer equal to the corresponding errno value.
902         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
903
904 2011-10-22  Bruno Haible  <bruno@clisp.org>
905
906         perror: Recognize when test program crashes.
907         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
908         strerror, set gl_cv_func_perror_works to no.
909         Reported by Daniel Richard G. <skunk@iskunk.org>.
910
911         perror: Fix indentation.
912         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
913
914 2011-10-22  Bruno Haible  <bruno@clisp.org>
915
916         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
917         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
918         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
919         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
920         functions, not as a macro.
921         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
922         macros.
923         (isfinite, isinf, isnan, signbit): Check overloaded functions and
924         absence of macro.
925         Suggested by Eric Blake.
926         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
927
928 2011-10-21  Bruno Haible  <bruno@clisp.org>
929
930         relocatable-prog-wrapper: Don't leave object files behind.
931         * build-aux/install-reloc: Re-synchronize list of .o files to be
932         removed with list of compilation units.
933
934 2011-10-20  Bruno Haible  <bruno@clisp.org>
935
936         openpty, posix_openpt: Remove code duplication.
937         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
938         * lib/openpty.c: Include <stdlib.h>.
939         (openpty): Use posix_openpt on all platforms except IRIX.
940         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
941
942 2011-10-20  Bruno Haible  <bruno@clisp.org>
943
944         unlockpt: Detect invalid argument.
945         * lib/unlockpt.c: Include <fcntl.h>.
946         (unlockpt): Check whether fd is valid, using fcntl().
947         * modules/unlockpt (Depends-on): Add fcntl-h.
948
949 2011-10-20  Bruno Haible  <bruno@clisp.org>
950
951         openpty: Avoid compilation error on AIX 6.1.
952         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
953
954 2011-10-20  Bruno Haible  <bruno@clisp.org>
955
956         posix_openpt: Support for OpenBSD.
957         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
958         (posix_openpt) [OpenBSD]: New code.
959         * lib/grantpt.c: Include <fcntl.h>.
960         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
961         * modules/grantpt (Depends-on): Add fcntl-h.
962
963 2011-10-20  Bruno Haible  <bruno@clisp.org>
964
965         posix_openpt test: Coding style.
966         * tests/test-posix_openpt.c: Use GNU coding style.
967
968 2011-10-20  Bruno Haible  <bruno@clisp.org>
969
970         grantpt: Support --avoid=pt_chown.
971         * modules/grantpt (Files): Add lib/pty-private.h.
972
973 2011-10-20  Bruno Haible  <bruno@clisp.org>
974
975         posix_openpt: Fix autoconf macro.
976         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
977         unneeded check for _getpty.
978
979 2011-10-20  Bruno Haible  <bruno@clisp.org>
980
981         openpty: Update comments.
982         * lib/openpty.c: Add comments about Minix.
983
984 2011-10-19  Eric Blake  <eblake@redhat.com>
985
986         openpty: relax license
987         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
988
989         pt_chown: use configmake to simplify build
990         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
991
992         ptsname and others: relax license
993         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
994         * modules/unlockpt (License): Likewise.
995         * modules/pt_chown (License): Likewise.
996         * modules/ptsname (License): Likewise.
997         * modules/ttyname_r (License): Likewise.
998
999 2011-10-19  Jim Meyering  <meyering@redhat.com>
1000
1001         posix_openpt: remove spurious #endif
1002         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1003
1004 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1005
1006         maint.mk: Respect $(build_aux) in web-manual rule.
1007         * top/maint.mk (web-manual): Find gen-announce script in user's
1008         $(build_aux) directory instead of hard-coding 'build-aux'.
1009
1010 2011-10-19  Bruno Haible  <bruno@clisp.org>
1011
1012         posix_openpt: Fix compilation error.
1013         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1014         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1015         Mention the openpty module as an alternative.
1016
1017 2011-10-19  Bruno Haible  <bruno@clisp.org>
1018
1019         Support for old NeXTstep 3.3 frexp().
1020         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1021         execution time of the test to 5 seconds.
1022         Reported by Daniel Richard G. <skunk@iskunk.org>.
1023
1024 2011-10-19  Bruno Haible  <bruno@clisp.org>
1025
1026         Support for old NeXTstep 3.3 sed.
1027         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1028         part, use /.../, not \|...|. Escape periods in the header file name.
1029         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1030         Reported by Daniel Richard G. <skunk@iskunk.org>.
1031
1032 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1033
1034         Support for old NeXTstep 3.3 gcc.
1035         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1036         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1037         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1038         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1039         * lib/regex.h (_Restrict_arr_): Likewise.
1040         * lib/regex_internal.h (re_token_t): Likewise.
1041         * lib/regexec.c (check_node_accept_bytes): Likewise.
1042         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1043
1044 2011-10-18  Eric Blake  <eblake@redhat.com>
1045
1046         posix_openpt: new module
1047         * modules/posix_openpt: New module.
1048         * m4/posix_openpt.m4: New file.
1049         * lib/posix_openpt.c: Likewise.
1050         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1051         (gl_STDLIB_H_DEFAULTS): Set defaults.
1052         * modules/stdlib (Makefile.am): Substitute macros.
1053         * lib/stdlib.in.h (posix_openpt): Declare.
1054         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1055         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1056         * modules/posix_openpt-tests: New test module.
1057         * tests/test-posix_openpt.c: New test.
1058
1059 2011-10-15  Bruno Haible  <bruno@clisp.org>
1060
1061         xstrtoll: Fix compilation failure.
1062         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1063         from lib/strtol.c.
1064         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1065         some platforms.
1066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1067
1068 2011-10-15  Bruno Haible  <bruno@clisp.org>
1069
1070         vasnprintf: Optimize bit search operation.
1071         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1073         gl_DOUBLE_EXPONENT_LOCATION.
1074         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1075         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1076         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1077         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1078         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1079         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1080         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1081         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1082         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1083
1084 2011-10-15  Bruno Haible  <bruno@clisp.org>
1085
1086         vasnprintf: Fix comments.
1087         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1088
1089 2011-10-14  Bruno Haible  <bruno@clisp.org>
1090
1091         Tests for module 'integer_length_ll'.
1092         * modules/integer_length_ll-tests: New file.
1093         * tests/test-integer_length_ll.c: New file.
1094
1095         New module 'integer_length_ll'.
1096         * lib/integer_length_ll.c: New file.
1097         * modules/integer_length_ll: New file.
1098
1099 2011-10-14  Bruno Haible  <bruno@clisp.org>
1100
1101         Tests for module 'integer_length_l'.
1102         * modules/integer_length_l-tests: New file.
1103         * tests/test-integer_length_l.c: New file.
1104
1105         New module 'integer_length_l'.
1106         * lib/integer_length_l.c: New file.
1107         * modules/integer_length_l: New file.
1108
1109 2011-10-14  Bruno Haible  <bruno@clisp.org>
1110
1111         Tests for module 'integer_length'.
1112         * modules/integer_length-tests: New file.
1113         * tests/test-integer_length.c: New file.
1114
1115         New module 'integer_length'.
1116         * lib/integer_length.h: New file.
1117         * lib/integer_length.c: New file.
1118         * modules/integer_length: New file.
1119
1120 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1121
1122         popen: Fix dependency conditions.
1123         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1124
1125 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1126
1127         perror: Fix autoconf test.
1128         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1129         <stdlib.h> and <string.h>.
1130
1131 2011-10-14  Bruno Haible  <bruno@clisp.org>
1132
1133         ffsl: Optimize on 64-bit platforms.
1134         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1135         unrolling.
1136
1137 2011-10-13  Bruno Haible  <bruno@clisp.org>
1138
1139         ffsl: Optimize on 32-bit platforms.
1140         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1141         use ffs() without a loop.
1142
1143         ffsl, ffsll: Optimize for GCC.
1144         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1145         * lib/ffsl.c (GCC_BUILTIN): New macro.
1146         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1147
1148 2011-10-13  Bruno Haible  <bruno@clisp.org>
1149
1150         ffs, bcopy, memset: Support symbol renaming via config.h.
1151         * lib/ffs.c: Include <config.h>.
1152         * lib/bcopy.c: Likewise.
1153         * lib/memset.c: Likewise.
1154
1155 2011-10-10  Bruno Haible  <bruno@clisp.org>
1156
1157         atanl: Simplify for platforms where 'long double' == 'double'.
1158         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1159         alternative implementation.
1160         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1161         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1162         * modules/atanl (Depends-on): Add atan. Update conditions.
1163
1164 2011-10-10  Bruno Haible  <bruno@clisp.org>
1165
1166         acosl: Simplify for platforms where 'long double' == 'double'.
1167         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1168         alternative implementation.
1169         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1170         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1171         * modules/acosl (Depends-on): Add acos. Update conditions.
1172
1173 2011-10-10  Bruno Haible  <bruno@clisp.org>
1174
1175         asinl: Simplify for platforms where 'long double' == 'double'.
1176         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1177         alternative implementation.
1178         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1179         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1180         * modules/asinl (Depends-on): Add asin. Update conditions.
1181
1182 2011-10-10  Bruno Haible  <bruno@clisp.org>
1183
1184         tanl: Simplify for platforms where 'long double' == 'double'.
1185         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1186         implementation.
1187         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1188         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1189         * modules/tanl (Depends-on): Add tan. Update conditions.
1190         (configure.ac): Don't compile trigl.c if
1191         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1192
1193 2011-10-10  Bruno Haible  <bruno@clisp.org>
1194
1195         cosl: Simplify for platforms where 'long double' == 'double'.
1196         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1197         implementation.
1198         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1199         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1200         * modules/cosl (Depends-on): Add cos. Update conditions.
1201         (configure.ac): Don't compile sincosl.c and trigl.c if
1202         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1203
1204 2011-10-10  Bruno Haible  <bruno@clisp.org>
1205
1206         sinl: Simplify for platforms where 'long double' == 'double'.
1207         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1208         implementation.
1209         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1210         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1211         * modules/sinl (Depends-on): Add sin. Update conditions.
1212         (configure.ac): Don't compile sincosl.c and trigl.c if
1213         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1214
1215 2011-10-10  Bruno Haible  <bruno@clisp.org>
1216
1217         logl: Simplify for platforms where 'long double' == 'double'.
1218         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1219         implementation.
1220         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1221         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1222         * modules/logl (Depends-on): Add log. Update conditions.
1223
1224 2011-10-10  Bruno Haible  <bruno@clisp.org>
1225
1226         expl: Simplify for platforms where 'long double' == 'double'.
1227         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1228         implementation.
1229         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1230         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1231         * modules/expl (Depends-on): Add exp. Update conditions.
1232
1233 2011-10-10  Bruno Haible  <bruno@clisp.org>
1234
1235         sqrtl: Simplify for platforms where 'long double' == 'double'.
1236         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1237         alternative implementation.
1238         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1239         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1240         * modules/sqrtl (Depends-on): Update conditions.
1241
1242 2011-10-10  Bruno Haible  <bruno@clisp.org>
1243
1244         ldexpl: Simplify for platforms where 'long double' == 'double'.
1245         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1246         alternative implementation.
1247         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1248         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1249         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1250
1251 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1252
1253         ffsll: set correct witness
1254         * modules/ffsll (configure.ac): Fix typo.
1255
1256 2011-10-10  Bruno Haible  <bruno@clisp.org>
1257
1258         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1259         * lib/printf-frexpl.c: Include <config.h>.
1260         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1261         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1262         second time.
1263         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1264         gl_LONG_DOUBLE_VS_DOUBLE.
1265         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1266         conditions.
1267
1268 2011-10-10  Bruno Haible  <bruno@clisp.org>
1269
1270         frexpl: Simplify for platforms where 'long double' == 'double'.
1271         * lib/frexpl.c: Include <config.h>.
1272         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1273         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1274         time.
1275         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1276         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1277         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1278         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1279         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1280         conditions.
1281
1282 2011-10-10  Jim Meyering  <meyering@redhat.com>
1283
1284         test-renameat: don't leave behind a temporary file
1285         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1286           ERROR: files left in build directory after distclean:
1287           ./gltests/test-renameat.too
1288           make[1]: *** [distcleancheck] Error 1
1289         Reported by Tom G. Christensen.
1290
1291 2011-10-09  Bruno Haible  <bruno@clisp.org>
1292
1293         rint: Determine RINT_LIBM correctly on AIX 7.
1294         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1295         directly, not only through a function pointer. Also accept an optional
1296         4th argument with extra code.
1297         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1298         rintf() call by gcc when optimizing.
1299
1300         mathfunc.m4: Refactor.
1301         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1302         m4 variable.
1303
1304 2011-10-09  Bruno Haible  <bruno@clisp.org>
1305
1306         rintl: Simplify for platforms where 'long double' == 'double'.
1307         * lib/rintl.c: Include <config.h>.
1308         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1309         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1310         time.
1311         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1312         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1313         * modules/rintl (Depends-on): Add rint. Update conditions.
1314
1315 2011-10-09  Bruno Haible  <bruno@clisp.org>
1316
1317         roundl: Simplify for platforms where 'long double' == 'double'.
1318         * lib/roundl.c: Include <config.h>.
1319         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1320         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1321         time.
1322         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1323         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1324         * modules/roundl (Depends-on): Add round. Update conditions.
1325
1326 2011-10-09  Bruno Haible  <bruno@clisp.org>
1327
1328         truncl: Simplify for platforms where 'long double' == 'double'.
1329         * lib/truncl.c: Include <config.h>.
1330         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1331         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1332         time.
1333         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1334         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1335         * modules/truncl (Depends-on): Add trunc. Update conditions.
1336
1337 2011-10-09  Bruno Haible  <bruno@clisp.org>
1338
1339         ceill: Simplify for platforms where 'long double' == 'double'.
1340         * lib/ceill.c: Include <config.h>.
1341         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1342         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1343         time.
1344         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1345         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1346         * modules/ceill (Depends-on): Add ceil. Update conditions.
1347
1348 2011-10-09  Bruno Haible  <bruno@clisp.org>
1349
1350         floorl: Simplify for platforms where 'long double' == 'double'.
1351         * lib/floorl.c: Include <config.h>.
1352         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1353         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1354         time.
1355         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1356         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1357         * modules/floorl (Depends-on): Add floor. Update conditions.
1358
1359 2011-10-09  Bruno Haible  <bruno@clisp.org>
1360
1361         rint: Fix ordering constraints.
1362         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1363         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1364         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1365
1366 2011-10-09  Bruno Haible  <bruno@clisp.org>
1367
1368         copysignl: Simplify for platforms where 'long double' == 'double'.
1369         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1370         alternative.
1371         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1372         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1373         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1374
1375 2011-10-09  Bruno Haible  <bruno@clisp.org>
1376
1377         Tests for module 'rintl'.
1378         * modules/rintl-tests: New file.
1379         * tests/test-rintl.c: New file.
1380
1381         New module 'rintl'.
1382         * lib/math.in.h (rintl): New declaration.
1383         * lib/rintl.c: New file.
1384         * m4/rintl.m4: New file.
1385         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1387         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1388         * modules/rintl: New file.
1389         * tests/test-math-c++.cc: Check the declaration of rintl.
1390         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1391         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1392         * doc/posix-functions/rintl.texi: Mention the new module.
1393
1394 2011-10-09  Bruno Haible  <bruno@clisp.org>
1395
1396         Tests for module 'rintf'.
1397         * modules/rintf-tests: New file.
1398         * tests/test-rintf.c: New file.
1399
1400         New module 'rintf'.
1401         * lib/math.in.h (rintf): New declaration.
1402         * lib/rintf.c: New file.
1403         * m4/rintf.m4: New file.
1404         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1406         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1407         * modules/rintf: New file.
1408         * tests/test-math-c++.cc: Check the declaration of rintf.
1409         * doc/posix-functions/rintf.texi: Mention the new module.
1410
1411 2011-10-09  Bruno Haible  <bruno@clisp.org>
1412
1413         rint: Support for MSVC.
1414         * lib/math.in.h (rint): New declaration.
1415         * lib/rint.c: New file.
1416         * m4/rint.m4: New file.
1417         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1419         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1420         * modules/rint (Description): Fix.
1421         (Files): Add lib/rint.c, m4/rint.m4.
1422         (Depends-on): Add math.
1423         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1424         gl_MATH_MODULE_INDICATOR.
1425         * tests/test-math-c++.cc: Check the declaration of rint.
1426         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1427         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1428         * doc/posix-functions/rint.texi: Mention the replacement provided by
1429         the module.
1430
1431         rint tests: More tests.
1432         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1433         minus-zero.h, infinity.h, nan.h.
1434         (main): Skip the test if the current rounding mode is not standard. Add
1435         tests for negative numbers, minus zero, infinity, NaN.
1436         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1437         tests/nan.h.
1438         (Depends-on): Add isnand-nolibm.
1439
1440 2011-10-09  Bruno Haible  <bruno@clisp.org>
1441
1442         Tests for module 'copysignl'.
1443         * modules/copysignl-tests: New file.
1444         * tests/test-copysignl.c: New file.
1445
1446         New module 'copysignl'.
1447         * lib/math.in.h (copysignl): New declaration.
1448         * lib/copysignl.c: New file.
1449         * m4/copysignl.m4: New file.
1450         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1452         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1453         HAVE_COPYSIGNL.
1454         * modules/copysignl: New file.
1455         * tests/test-math-c++.cc: Check the declaration of copysignl.
1456         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1457         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1458         * doc/posix-functions/copysignl.texi: Mention the new module.
1459
1460 2011-10-09  Bruno Haible  <bruno@clisp.org>
1461
1462         Tests for module 'copysignf'.
1463         * modules/copysignf-tests: New file.
1464         * tests/test-copysignf.c: New file.
1465
1466         New module 'copysignf'.
1467         * lib/math.in.h (copysignf): New declaration.
1468         * lib/copysignf.c: New file.
1469         * m4/copysignf.m4: New file.
1470         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1471         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1472         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1473         HAVE_COPYSIGNF.
1474         * modules/copysignf: New file.
1475         * tests/test-math-c++.cc: Check the declaration of copysignf.
1476         * doc/posix-functions/copysignf.texi: Mention the new module.
1477
1478 2011-10-09  Bruno Haible  <bruno@clisp.org>
1479
1480         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1481         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1482         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1483         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1484         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1485         gl_SIGNAL_H_DEFAULTS.
1486
1487 2011-10-09  Bruno Haible  <bruno@clisp.org>
1488
1489         poll: Make macro safer.
1490         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1491         ac_cv_header_poll_h is not set.
1492
1493 2011-10-09  Bruno Haible  <bruno@clisp.org>
1494
1495         copysign: Provide replacement.
1496         * lib/math.in.h (copysign): New declaration.
1497         * lib/copysign.c: New file.
1498         * m4/copysign.m4: New file.
1499         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1501         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1502         HAVE_COPYSIGN.
1503         * modules/copysign (Description): Clarify.
1504         (Files): Add lib/copysign.c, m4/copysign.m4.
1505         (Depends-on): Add math, signbit.
1506         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1507         gl_MATH_MODULE_INDICATOR.
1508         * tests/test-math-c++.cc: Check the declaration of copysign.
1509         * doc/posix-functions/copysign.texi: Mention the effects of the module
1510         on Minix and MSVC.
1511
1512 2011-10-09  Bruno Haible  <bruno@clisp.org>
1513
1514         isinf: Ensure macro on AIX 5.1.
1515         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1516         macro.
1517         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1518
1519 2011-10-09  Bruno Haible  <bruno@clisp.org>
1520
1521         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1522         * modules/snprintf-posix-tests (configure.ac): Require
1523         gl_LONG_DOUBLE_VS_DOUBLE.
1524         * modules/sprintf-posix-tests (configure.ac): Likewise.
1525         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1526         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1527         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1528         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1529         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1530         tests on platforms where 'long double' is the same as 'double'.
1531         * tests/test-sprintf-posix.h (test_function): Likewise.
1532         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1533         * tests/test-vasprintf-posix.c (test_function): Likewise.
1534
1535         *printf: Fix for platforms where 'long double' == 'double'.
1536         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1537         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1538         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1539         * modules/fprintf-posix (Files): Likewise.
1540         * modules/obstack-printf-posix (Files): Likewise.
1541         * modules/snprintf-posix (Files): Likewise.
1542         * modules/sprintf-posix (Files): Likewise.
1543         * modules/vasnprintf (Files): Likewise.
1544         * modules/vasnprintf-posix (Files): Likewise.
1545         * modules/vasprintf-posix (Files): Likewise.
1546         * modules/vdprintf-posix (Files): Likewise.
1547         * modules/vfprintf-posix (Files): Likewise.
1548         * modules/vsnprintf-posix (Files): Likewise.
1549         * modules/vsprintf-posix (Files): Likewise.
1550         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1551         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1552         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1553         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1554         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1555         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1556         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1557
1558         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1559         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1560         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1561         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1562         'long double'.
1563         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1564
1565         isinf: Fix for platforms where 'long double' == 'double'.
1566         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1567         Don't blindly assume 80-bit 'long double'.
1568
1569         isfinite: Fix for platforms where 'long double' == 'double'.
1570         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1571         Don't blindly assume 80-bit 'long double'.
1572
1573         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1574         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1575         * modules/isfinite-tests (configure.ac): Require
1576         gl_LONG_DOUBLE_VS_DOUBLE.
1577         * modules/isinf-tests (configure.ac): Likewise.
1578         * modules/isnan-tests (configure.ac): Likewise.
1579         * modules/isnanl-tests (configure.ac): Likewise.
1580         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1581         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1582         tests on platforms where 'long double' is the same as 'double'.
1583         * tests/test-isinf.c (test_isinfl): Likewise.
1584         * tests/test-isnan.c (test_long_double): Likewise.
1585         * tests/test-isnanl.h (main): Likewise.
1586
1587 2011-10-08  Bruno Haible  <bruno@clisp.org>
1588
1589         Tests for module 'tanhf'.
1590         * modules/tanhf-tests: New file.
1591         * tests/test-tanhf.c: New file.
1592
1593         New module 'tanhf'.
1594         * lib/math.in.h (tanhf): New declaration.
1595         * lib/tanhf.c: New file.
1596         * m4/tanhf.m4: New file.
1597         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1599         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1600         * modules/tanhf: New file.
1601         * tests/test-math-c++.cc: Check the declaration of tanhf.
1602         * doc/posix-functions/tanhf.texi: Mention the new module.
1603
1604         tanh: Use a .m4 file.
1605         * m4/tanh.m4: New file.
1606         * modules/tanh (Files): Add it.
1607         (configure.ac): Just invoke gl_FUNC_TANH.
1608
1609 2011-10-08  Bruno Haible  <bruno@clisp.org>
1610
1611         Tests for module 'coshf'.
1612         * modules/coshf-tests: New file.
1613         * tests/test-coshf.c: New file.
1614
1615         New module 'coshf'.
1616         * lib/math.in.h (coshf): New declaration.
1617         * lib/coshf.c: New file.
1618         * m4/coshf.m4: New file.
1619         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1621         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1622         * modules/coshf: New file.
1623         * tests/test-math-c++.cc: Check the declaration of coshf.
1624         * doc/posix-functions/coshf.texi: Mention the new module.
1625
1626         cosh: Use a .m4 file.
1627         * m4/cosh.m4: New file.
1628         * modules/cosh (Files): Add it.
1629         (configure.ac): Just invoke gl_FUNC_COSH.
1630
1631 2011-10-08  Bruno Haible  <bruno@clisp.org>
1632
1633         Tests for module 'sinhf'.
1634         * modules/sinhf-tests: New file.
1635         * tests/test-sinhf.c: New file.
1636
1637         New module 'sinhf'.
1638         * lib/math.in.h (sinhf): New declaration.
1639         * lib/sinhf.c: New file.
1640         * m4/sinhf.m4: New file.
1641         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1643         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1644         * modules/sinhf: New file.
1645         * tests/test-math-c++.cc: Check the declaration of sinhf.
1646         * doc/posix-functions/sinhf.texi: Mention the new module.
1647
1648         sinh: Use a .m4 file.
1649         * m4/sinh.m4: New file.
1650         * modules/sinh (Files): Add it.
1651         (configure.ac): Just invoke gl_FUNC_SINH.
1652
1653 2011-10-08  Bruno Haible  <bruno@clisp.org>
1654
1655         Tests for module 'atan2f'.
1656         * modules/atan2f-tests: New file.
1657         * tests/test-atan2f.c: New file.
1658
1659         New module 'atan2f'.
1660         * lib/math.in.h (atan2f): New declaration.
1661         * lib/atan2f.c: New file.
1662         * m4/atan2f.m4: New file.
1663         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1665         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1666         * modules/atan2f: New file.
1667         * tests/test-math-c++.cc: Check the declaration of atan2f.
1668         * doc/posix-functions/atan2f.texi: Mention the new module.
1669
1670         atan2: Use a .m4 file.
1671         * m4/atan2.m4: New file.
1672         * modules/atan2 (Files): Add it.
1673         (configure.ac): Just invoke gl_FUNC_ATAN2.
1674
1675 2011-10-08  Bruno Haible  <bruno@clisp.org>
1676
1677         Tests for module 'atanf'.
1678         * modules/atanf-tests: New file.
1679         * tests/test-atanf.c: New file.
1680
1681         New module 'atanf'.
1682         * lib/math.in.h (atanf): New declaration.
1683         * lib/atanf.c: New file.
1684         * m4/atanf.m4: New file.
1685         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1687         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1688         * modules/atanf: New file.
1689         * tests/test-math-c++.cc: Check the declaration of atanf.
1690         * doc/posix-functions/atanf.texi: Mention the new module.
1691
1692         atan: Use a .m4 file.
1693         * m4/atan.m4: New file.
1694         * modules/atan (Files): Add it.
1695         (configure.ac): Just invoke gl_FUNC_ATAN.
1696
1697 2011-10-08  Bruno Haible  <bruno@clisp.org>
1698
1699         Tests for module 'acosf'.
1700         * modules/acosf-tests: New file.
1701         * tests/test-acosf.c: New file.
1702
1703         New module 'acosf'.
1704         * lib/math.in.h (acosf): New declaration.
1705         * lib/acosf.c: New file.
1706         * m4/acosf.m4: New file.
1707         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1709         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1710         * modules/acosf: New file.
1711         * tests/test-math-c++.cc: Check the declaration of acosf.
1712         * doc/posix-functions/acosf.texi: Mention the new module.
1713
1714         acos: Use a .m4 file.
1715         * m4/acos.m4: New file.
1716         * modules/acos (Files): Add it.
1717         (configure.ac): Just invoke gl_FUNC_ACOS.
1718
1719 2011-10-08  Bruno Haible  <bruno@clisp.org>
1720
1721         Tests for module 'asinf'.
1722         * modules/asinf-tests: New file.
1723         * tests/test-asinf.c: New file.
1724
1725         New module 'asinf'.
1726         * lib/math.in.h (asinf): New declaration.
1727         * lib/asinf.c: New file.
1728         * m4/asinf.m4: New file.
1729         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1731         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1732         * modules/asinf: New file.
1733         * tests/test-math-c++.cc: Check the declaration of asinf.
1734         * doc/posix-functions/asinf.texi: Mention the new module.
1735
1736         asin: Use a .m4 file.
1737         * m4/asin.m4: New file.
1738         * modules/asin (Files): Add it.
1739         (configure.ac): Just invoke gl_FUNC_ASIN.
1740
1741 2011-10-08  Bruno Haible  <bruno@clisp.org>
1742
1743         Tests for module 'tanf'.
1744         * modules/tanf-tests: New file.
1745         * tests/test-tanf.c: New file.
1746
1747         New module 'tanf'.
1748         * lib/math.in.h (tanf): New declaration.
1749         * lib/tanf.c: New file.
1750         * m4/tanf.m4: New file.
1751         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1753         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1754         * modules/tanf: New file.
1755         * tests/test-math-c++.cc: Check the declaration of tanf.
1756         * doc/posix-functions/tanf.texi: Mention the new module.
1757
1758         tan: Use a .m4 file.
1759         * m4/tan.m4: New file.
1760         * modules/tan (Files): Add it.
1761         (configure.ac): Just invoke gl_FUNC_TAN.
1762
1763 2011-10-08  Bruno Haible  <bruno@clisp.org>
1764
1765         Tests for module 'cosf'.
1766         * modules/cosf-tests: New file.
1767         * tests/test-cosf.c: New file.
1768
1769         New module 'cosf'.
1770         * lib/math.in.h (cosf): New declaration.
1771         * lib/cosf.c: New file.
1772         * m4/cosf.m4: New file.
1773         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1775         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1776         * modules/cosf: New file.
1777         * tests/test-math-c++.cc: Check the declaration of cosf.
1778         * doc/posix-functions/cosf.texi: Mention the new module.
1779
1780         cos: Use a .m4 file.
1781         * m4/cos.m4: New file.
1782         * modules/cos (Files): Add it.
1783         (configure.ac): Just invoke gl_FUNC_COS.
1784
1785 2011-10-08  Bruno Haible  <bruno@clisp.org>
1786
1787         Tests for module 'sinf'.
1788         * modules/sinf-tests: New file.
1789         * tests/test-sinf.c: New file.
1790
1791         New module 'sinf'.
1792         * lib/math.in.h (sinf): New declaration.
1793         * lib/sinf.c: New file.
1794         * m4/sinf.m4: New file.
1795         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1797         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1798         * modules/sinf: New file.
1799         * tests/test-math-c++.cc: Check the declaration of sinf.
1800         * doc/posix-functions/sinf.texi: Mention the new module.
1801
1802         sin: Use a .m4 file.
1803         * m4/sin.m4: New file.
1804         * modules/sin (Files): Add it.
1805         (configure.ac): Just invoke gl_FUNC_SIN.
1806
1807 2011-10-08  Bruno Haible  <bruno@clisp.org>
1808
1809         Tests for module 'powf'.
1810         * modules/powf-tests: New file.
1811         * tests/test-powf.c: New file.
1812
1813         New module 'powf'.
1814         * lib/math.in.h (powf): New declaration.
1815         * lib/powf.c: New file.
1816         * m4/powf.m4: New file.
1817         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1819         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1820         * modules/powf: New file.
1821         * tests/test-math-c++.cc: Check the declaration of powf.
1822         * doc/posix-functions/powf.texi: Mention the new module.
1823
1824         pow: Use a .m4 file.
1825         * m4/pow.m4: New file.
1826         * modules/pow (Files): Add it.
1827         (configure.ac): Just invoke gl_FUNC_POW.
1828
1829 2011-10-08  Bruno Haible  <bruno@clisp.org>
1830
1831         Tests for module 'log10f'.
1832         * modules/log10f-tests: New file.
1833         * tests/test-log10f.c: New file.
1834
1835         New module 'log10f'.
1836         * lib/math.in.h (log10f): New declaration.
1837         * lib/log10f.c: New file.
1838         * m4/log10f.m4: New file.
1839         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1841         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1842         * modules/log10f: New file.
1843         * tests/test-math-c++.cc: Check the declaration of log10f.
1844         * doc/posix-functions/log10f.texi: Mention the new module.
1845
1846         log10: Use a .m4 file.
1847         * m4/log10.m4: New file.
1848         * modules/log10 (Files): Add it.
1849         (configure.ac): Just invoke gl_FUNC_LOG10.
1850
1851 2011-10-08  Bruno Haible  <bruno@clisp.org>
1852
1853         Tests for module 'logf'.
1854         * modules/logf-tests: New file.
1855         * tests/test-logf.c: New file.
1856
1857         New module 'logf'.
1858         * lib/math.in.h (logf): New declaration.
1859         * lib/logf.c: New file.
1860         * m4/logf.m4: New file.
1861         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1863         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1864         * modules/logf: New file.
1865         * tests/test-math-c++.cc: Check the declaration of logf.
1866         * doc/posix-functions/logf.texi: Mention the new module.
1867
1868         log: Use a .m4 file.
1869         * m4/log.m4: New file.
1870         * modules/log (Files): Add it.
1871         (configure.ac): Just invoke gl_FUNC_LOG.
1872
1873 2011-10-08  Bruno Haible  <bruno@clisp.org>
1874
1875         Tests for module 'expf'.
1876         * modules/expf-tests: New file.
1877         * tests/test-expf.c: New file.
1878
1879         New module 'expf'.
1880         * lib/math.in.h (expf): New declaration.
1881         * lib/expf.c: New file.
1882         * m4/expf.m4: New file.
1883         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1885         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1886         * modules/expf: New file.
1887         * tests/test-math-c++.cc: Check the declaration of expf.
1888         * doc/posix-functions/expf.texi: Mention the new module.
1889
1890         exp: Use a .m4 file.
1891         * m4/exp.m4: New file.
1892         * modules/exp (Files): Add it.
1893         (configure.ac): Just invoke gl_FUNC_EXP.
1894
1895 2011-10-08  Bruno Haible  <bruno@clisp.org>
1896
1897         Tests for module 'sqrtf'.
1898         * modules/sqrtf-tests: New file.
1899         * tests/test-sqrtf.c: New file.
1900
1901         New module 'sqrtf'.
1902         * lib/math.in.h (sqrtf): New declaration.
1903         * lib/sqrtf.c: New file.
1904         * m4/sqrtf.m4: New file.
1905         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1907         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1908         * modules/sqrtf: New file.
1909         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1910         * doc/posix-functions/sqrtf.texi: Mention the new module.
1911
1912 2011-10-08  Bruno Haible  <bruno@clisp.org>
1913
1914         Tests: Avoid link failures w.r.t. libintl.
1915         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1916         $(LIBINTL).
1917         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1918         $(LIBINTL).
1919         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1920         against $(LIBINTL).
1921         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1922         $(LIBINTL).
1923         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1924         $(LIBINTL).
1925         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1926
1927 2011-10-08  Bruno Haible  <bruno@clisp.org>
1928
1929         pow tests: Defeat compiler optimizations.
1930         * tests/test-pow.c (main): Assign arguments to x and y before use.
1931
1932 2011-10-08  Bruno Haible  <bruno@clisp.org>
1933
1934         gnulib-tool: Improve last commit.
1935         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1936         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1937         ignore dependencies that are not among the modules list.
1938
1939 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1940
1941         gnulib-tool: don't follow dependencies to avoided modules
1942         This fixes a bug that is related to the previous one.
1943         * gnulib-tool (func_modules_transitive_closure)
1944         (func_emit_autoconf_snippets):
1945         Check whether a dependency is acceptable before using it.
1946         (--extract-dependencies): Report an error if --avoid is also used,
1947         since this combination of options is not yet supported.
1948
1949         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1950         Problem reported by Peter Dyballa in
1951         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1952         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1953         when echoing "$condition".
1954
1955 2011-10-07  Bruno Haible  <bruno@clisp.org>
1956
1957         Fix documentation about math functions on MacOS X.
1958         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1959         MacOS X 10.5.
1960         * doc/posix-functions/fdim.texi: Likewise.
1961         * doc/posix-functions/feclearexcept.texi: Likewise.
1962         * doc/posix-functions/fegetenv.texi: Likewise.
1963         * doc/posix-functions/fegetround.texi: Likewise.
1964         * doc/posix-functions/feholdexcept.texi: Likewise.
1965         * doc/posix-functions/feraiseexcept.texi: Likewise.
1966         * doc/posix-functions/fesetenv.texi: Likewise.
1967         * doc/posix-functions/fesetround.texi: Likewise.
1968         * doc/posix-functions/fetestexcept.texi: Likewise.
1969         * doc/posix-functions/feupdateenv.texi: Likewise.
1970         * doc/posix-functions/fmax.texi: Likewise.
1971         * doc/posix-functions/fmin.texi: Likewise.
1972         * doc/posix-functions/log2.texi: Likewise.
1973         * doc/posix-functions/modff.texi: Likewise.
1974         * doc/posix-functions/nan.texi: Likewise.
1975         * doc/posix-functions/nanf.texi: Likewise.
1976         * doc/posix-functions/nextafterf.texi: Likewise.
1977         * doc/posix-functions/remquo.texi: Likewise.
1978
1979 2011-10-07  Bruno Haible  <bruno@clisp.org>
1980
1981         modff: Drop assumption about library that defines modff.
1982         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1983         AC_CHECK_FUNCS.
1984         * modules/modff (Files): Add m4/mathfunc.m4.
1985
1986 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1987
1988         raise tests: Avoid a GCC warning.
1989         * tests/test-raise.c (handler): Use _Noreturn.
1990
1991 2011-10-07  Bruno Haible  <bruno@clisp.org>
1992
1993         Tests for module 'ldexpf'.
1994         * modules/ldexpf-tests: New file.
1995         * tests/test-ldexpf.c: New file.
1996
1997         New module 'ldexpf'.
1998         * lib/math.in.h (ldexpf): New declaration.
1999         * lib/ldexpf.c: New file.
2000         * m4/ldexpf.m4: New file.
2001         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2003         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2004         * modules/ldexpf: New file.
2005         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2006         * doc/posix-functions/ldexpf.texi: Mention the new module.
2007
2008 2011-10-06  Bruno Haible  <bruno@clisp.org>
2009
2010         frexpf: Work around problems on IRIX and mingw.
2011         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2013         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2014         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2015         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2016         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2017         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2018
2019 2011-10-06  Bruno Haible  <bruno@clisp.org>
2020
2021         fabsf: Drop assumption about library that defines fabsf.
2022         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2023         AC_CHECK_FUNCS.
2024         * modules/fabsf (Files): Add m4/mathfunc.m4.
2025
2026 2011-10-06  Bruno Haible  <bruno@clisp.org>
2027
2028         frexpf: Drop assumption about library that defines frexpf.
2029         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2030         'int *', 'float *', 'long double *', 'float', 'long double'.
2031         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2032         AC_CHECK_FUNCS.
2033         * modules/frexpf (Files): Add m4/mathfunc.m4.
2034
2035         Tests for module 'frexpf'.
2036         * modules/frexpf-tests: New file.
2037         * tests/test-frexpf.c: New file.
2038
2039         New module 'frexpf'.
2040         * lib/math.in.h (frexpf): New declaration.
2041         * lib/frexpf.c: New file.
2042         * m4/frexpf.m4: New file.
2043         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2045         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2046         * modules/frexpf: New file.
2047         * tests/test-math-c++.cc: Check the declaration of frexpf.
2048         * doc/posix-functions/frexpf.texi: Mention the new module.
2049
2050 2011-10-06  Bruno Haible  <bruno@clisp.org>
2051
2052         math: Sort function declarations of math.in.h.
2053         * lib/math.in.h (frexp, logb): Move declarations.
2054
2055 2011-10-05  Bruno Haible  <bruno@clisp.org>
2056
2057         Tests for module 'modff'.
2058         * modules/modff-tests: New file.
2059         * tests/test-modff.c: New file.
2060
2061         New module 'modff'.
2062         * lib/math.in.h (modff): New declaration.
2063         * lib/modff.c: New file.
2064         * m4/modff.m4: New file.
2065         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2067         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2068         * modules/modff: New file.
2069         * tests/test-math-c++.cc: Check the declaration of modff.
2070         * doc/posix-functions/modff.texi: Mention the new module.
2071
2072         modf tests: Make test sharper.
2073         * tests/test-modf.c (main): Strengthen upper bound.
2074
2075         modf: Use a .m4 file.
2076         * m4/modf.m4: New file.
2077         * modules/modf (Files): Add it.
2078         (configure.ac): Just invoke gl_FUNC_MODF.
2079
2080 2011-10-05  Bruno Haible  <bruno@clisp.org>
2081
2082         Tests for module 'fmodf'.
2083         * modules/fmodf-tests: New file.
2084         * tests/test-fmodf.c: New file.
2085
2086         New module 'fmodf'.
2087         * lib/math.in.h (fmodf): New declaration.
2088         * lib/fmodf.c: New file.
2089         * m4/fmodf.m4: New file.
2090         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2092         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2093         * modules/fmodf: New file.
2094         * tests/test-math-c++.cc: Check the declaration of fmodf.
2095         * doc/posix-functions/fmodf.texi: Mention the new module.
2096
2097         fmod: Use a .m4 file.
2098         * m4/fmod.m4: New file.
2099         * modules/fmod (Files): Add it.
2100         (configure.ac): Just invoke gl_FUNC_FMOD.
2101
2102 2011-10-05  Bruno Haible  <bruno@clisp.org>
2103
2104         Tests for module 'fabsf'.
2105         * modules/fabsf-tests: New file.
2106         * tests/test-fabsf.c: New file.
2107
2108         New module 'fabsf'.
2109         * lib/math.in.h (fabsf): New declaration.
2110         * lib/fabsf.c: New file.
2111         * m4/fabsf.m4: New file.
2112         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2114         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2115         * modules/fabsf: New file.
2116         * tests/test-math-c++.cc: Check the declaration of fabsf.
2117         * doc/posix-functions/fabsf.texi: Mention the new module.
2118
2119         fabs: Use a .m4 file.
2120         * m4/fabs.m4: New file.
2121         * modules/fabs (Files): Add it.
2122         (configure.ac): Just invoke gl_FUNC_FABS.
2123
2124 2011-10-05  Jim Meyering  <meyering@redhat.com>
2125
2126         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2127         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2128         ls -lL regression introduced in coreutils-8.12, it does so at the
2129         cost of an additional stat call in the common case.  Besides, now
2130         that the kernel change that prompted commit 95f7c57f has been reverted
2131         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2132         we have no use for commit 95f7c57f, "file-has-acl: use
2133         acl_extended_file_nofollow if available".
2134
2135 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2136
2137         file-has-acl: revert unintended change in behavior of ls -L
2138         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2139         derived from...
2140         (file_has_acl): ...code here.  Call it.
2141         This problem was introduced with 2011-07-22 commit 95f7c57f,
2142         "file-has-acl: use acl_extended_file_nofollow if available".
2143         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2144
2145 2011-10-03  Bruno Haible  <bruno@clisp.org>
2146
2147         poll: Avoid link errors on MSVC.
2148         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2149         * modules/poll (Depends-on): Add sockets.
2150         (Link): New section.
2151         * NEWS: Mention the change.
2152         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2153         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2154         $(LIB_POLL) instead of $(LIBSOCKET).
2155
2156 2011-10-03  Bruno Haible  <bruno@clisp.org>
2157
2158         sys_select tests: Fix link error on MSVC 9.
2159         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2160         with $(LIB_SELECT) instead of $(LIBSOCKET).
2161
2162 2011-10-03  Bruno Haible  <bruno@clisp.org>
2163
2164         sys_select: Fix compilation error on mingw.
2165         * lib/sys_select.in.h: On native Windows, include <io.h>.
2166
2167 2011-10-03  Bruno Haible  <bruno@clisp.org>
2168
2169         wmemset: Support for MSVC.
2170         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2171         whether wmemset() exists.
2172
2173 2011-10-03  Bruno Haible  <bruno@clisp.org>
2174
2175         wmemmove: Support for MSVC.
2176         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2177         whether wmemmove() exists.
2178
2179 2011-10-03  Bruno Haible  <bruno@clisp.org>
2180
2181         wmemcpy: Support for MSVC.
2182         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2183         whether wmemcpy() exists.
2184
2185 2011-10-03  Bruno Haible  <bruno@clisp.org>
2186
2187         wmemcmp: Support for MSVC.
2188         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2189         whether wmemcmp() exists.
2190
2191 2011-10-03  Bruno Haible  <bruno@clisp.org>
2192
2193         wmemchr: Support for MSVC.
2194         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2195         whether wmemchr() exists.
2196
2197 2011-10-03  Bruno Haible  <bruno@clisp.org>
2198
2199         glthread/*, strsignal: Support for MSVC.
2200         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2201         including <winsock.h> on MSVC 9.
2202         * lib/glthread/lock.h: Likewise.
2203         * lib/glthread/thread.h: Likewise.
2204         * lib/glthread/tls.h: Likewise.
2205         * lib/glthread/yield.h: Likewise.
2206         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2207         if HAVE_UNISTD_H is false.
2208         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2209
2210 2011-10-03  Bruno Haible  <bruno@clisp.org>
2211
2212         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2213         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2214         Set to 100000.
2215
2216 2011-10-03  Bruno Haible  <bruno@clisp.org>
2217
2218         acl: Fix specification.
2219         * lib/file-has-acl.c (file_has_acl): Fix specification.
2220
2221 2011-10-03  Bruno Haible  <bruno@clisp.org>
2222
2223         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2224         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2225         (compute_curr_prefix, shared_library_fullname,
2226         find_shared_library_fullname, get_shared_library_fullname, relocate):
2227         Use it together with PIC && INSTALLDIR.
2228         Reported by <jojelino@gmail.com>
2229         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2230
2231 2011-10-01  Jim Meyering  <meyering@redhat.com>
2232
2233         maint.mk: adjust a release-related rule not to require use of gzip
2234         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2235         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2236         projects that build only .tar.xz files.  Also fix an erroneous test.
2237
2238         test-linkat: don't leave behind a temporary file
2239         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2240         Otherwise, coreutils' "make distcheck" would fail with this:
2241           Only in /c/cu/tests/torture/coreutils/test/\
2242             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2243           make[2]: *** [my-distcheck] Error 1
2244
2245         float, math: add omitted file
2246         * lib/itold.c: Add file, required for yesterday's float change.
2247
2248 2011-10-01  Bruno Haible  <bruno@clisp.org>
2249
2250         isinf: Fix for OpenBSD/x86.
2251         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2252         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2253         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2254
2255 2011-10-01  Bruno Haible  <bruno@clisp.org>
2256
2257         isfinite: Fix syntax error in configure test.
2258         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2259
2260         isfinite: Fix typo.
2261         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2262         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2263
2264 2011-10-01  Bruno Haible  <bruno@clisp.org>
2265
2266         nonblocking tests: Fix test failure on Linux/IA-64.
2267         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2268         Set to 270000.
2269
2270 2011-10-01  Bruno Haible  <bruno@clisp.org>
2271
2272         mkfifoat tests: Fix a test failure on mingw.
2273         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2274         with error ENOSYS.
2275
2276 2011-09-30  Bruno Haible  <bruno@clisp.org>
2277
2278         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2279         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2280         'long double'. Set REPLACE_ITOLD.
2281         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2282         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2283         * lib/itold.c: New file.
2284         * modules/float (Files): Add lib/itold.c.
2285         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2286         (Makefile.am): Substitute REPLACE_ITOLD.
2287         * modules/math (Depends-on): Add float.
2288         (Makefile.am): Substitute REPLACE_ITOLD.
2289         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2290         * doc/posix-headers/math.texi: Likewise.
2291         * doc/posix-functions/logl.texi: Likewise.
2292
2293 2011-09-30  Bruno Haible  <bruno@clisp.org>
2294
2295         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2296         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2297         Set to 140000.
2298
2299 2011-09-30  Bruno Haible  <bruno@clisp.org>
2300
2301         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2302         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2303         invocation, say "right after AC_PROG_CC_STDC", not "right after
2304         AC_PROG_CC".
2305         Reported by Gary V. Vaughan <gary@gnu.org>.
2306
2307 2011-09-30  Bruno Haible  <bruno@clisp.org>
2308
2309         Centralize C99 requirement.
2310         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2311         * modules/stdarg (configure.ac-early): Invoke it instead of
2312         AC_PROG_CC_STDC.
2313         Reported by Gary V. Vaughan and Paul Eggert.
2314
2315 2011-09-29  Bruno Haible  <bruno@clisp.org>
2316
2317         float: Fix LDBL_MAX value on Linux/PowerPC.
2318         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2319         on Linux/PowerPC.
2320         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2321         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2322         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2323         platform.
2324         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2325
2326 2011-09-29  Bruno Haible  <bruno@clisp.org>
2327
2328         doc: Improve doc about gl_EARLY.
2329         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2330         AC_PROG_CC_STDC invocation.
2331         Reported by Gary V. Vaughan <gary@gnu.org>.
2332
2333 2011-09-28  Bruno Haible  <bruno@clisp.org>
2334
2335         fgetc, fputc, fread, fwrite tests: Fix link error.
2336         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2337         on non-MSVC platforms.
2338         * tests/test-fputc.c (main): Likewise.
2339         * tests/test-fread.c (main): Likewise.
2340         * tests/test-fwrite.c (main): Likewise.
2341         Reported by Jim Meyering.
2342
2343 2011-09-27  Bruno Haible  <bruno@clisp.org>
2344
2345         fputc, fwrite tests: Avoid test failure on MSVC.
2346         * tests/test-fgetc.c: Include msvc-inval.h.
2347         (main): Invoke gl_msvc_inval_ensure_handler.
2348         * tests/test-fputc.c: Include msvc-inval.h.
2349         (main): Invoke gl_msvc_inval_ensure_handler.
2350         * tests/test-fread.c: Include msvc-inval.h.
2351         (main): Invoke gl_msvc_inval_ensure_handler.
2352         * tests/test-fwrite.c: Include msvc-inval.h.
2353         (main): Invoke gl_msvc_inval_ensure_handler.
2354         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2355         * modules/fputc-tests (Depends-on): Likewise.
2356         * modules/fread-tests (Depends-on): Likewise.
2357         * modules/fwrite-tests (Depends-on): Likewise.
2358
2359 2011-09-27  Bruno Haible  <bruno@clisp.org>
2360
2361         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2362         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2363         (raise): Remove older, duplicated declaration.
2364         (_gl_raise_SIGPIPE): New declaration.
2365         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2366         (rpl_raise): Remove function.
2367         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2368         a gnulib-defined SIGPIPE here.
2369         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2370         'sigprocmask' has detected missing signal-blocking and the module
2371         'sigpipe' is enabled.
2372         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2373
2374 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2375
2376         base64-tests: avoid memory leak
2377         * tests/test-base64.c (main): Plug memory leak.
2378
2379         base32: new module
2380         * modules/base32: New module.
2381         * lib/base32.c: New file.
2382         * lib/base32.h: Likewise.
2383         * m4/base32.m4: Likewise.
2384         * modules/base32-tests: New test.
2385         * tests/test-base32.c: Likewise.
2386         * MODULES.html.sh (Misc): Mention it.
2387
2388 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2389
2390         gnulib: use more-standard license notice wording
2391         * gnulib-tool (func_emit_copyright_notice): When emitting a
2392         license notice into a file, use the standard wording as suggested
2393         by the current information for GNU maintainers, except say "file"
2394         rather than "program".  The new wording gives a license version
2395         number, which addresses an issue raised by Glenn Morris in
2396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2397         * m4/onceonly.m4: Use that same wording here, too.
2398
2399         dup2: minor simplification
2400         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2401         as lib/dup2.c no longer uses 'inline'.
2402
2403 2011-09-25  Bruno Haible  <bruno@clisp.org>
2404
2405         strings: Fix compilation error on MSVC.
2406         * lib/strings.in.h: Include <stddef.h> for size_t.
2407
2408 2011-09-25  Bruno Haible  <bruno@clisp.org>
2409
2410         fflush et al.: Document limitation on MSVC.
2411         * doc/posix-functions/fflush.texi: Document possible crash in handling
2412         mode other than DEFAULT_HANDLING.
2413         * doc/posix-functions/fgetc.texi: Likewise.
2414         * doc/posix-functions/fputc.texi: Likewise.
2415         * doc/posix-functions/fread.texi: Likewise.
2416         * doc/posix-functions/fwrite.texi: Likewise.
2417
2418 2011-09-25  Bruno Haible  <bruno@clisp.org>
2419
2420         msvc-inval: Allow three invalid parameter handling modes.
2421         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2422         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2423         macros.
2424         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2425         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2426         SANE_LIBRARY_HANDLING as a no-op.
2427         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2428         <stdlib.h>.
2429         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2430
2431 2011-09-25  Bruno Haible  <bruno@clisp.org>
2432
2433         msvc-inval: Make handler multithread-safe.
2434         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2435         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2436         declarations.
2437         (gl_msvc_inval_current): New declaration.
2438         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2439         Operate on the structure returned by gl_msvc_inval_current().
2440         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2441         Remove varaiables.
2442         (tls_index, tls_initialized): New variables.
2443         (not_per_thread): New variable.
2444         (gl_msvc_inval_current): New function.
2445         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2446         returned by gl_msvc_inval_current().
2447
2448 2011-09-25  Bruno Haible  <bruno@clisp.org>
2449
2450         msvc-inval: Install handler globally.
2451         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2452         !_MSC_VER.
2453         (gl_msvc_invalid_parameter_handler): Remove declaration.
2454         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2455         declarations.
2456         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2457         Install the handler globally, don't uninstall it.
2458         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2459         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2460         currently valid, call RaiseException instead.
2461         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2462         for !_MSC_VER.
2463
2464 2011-09-25  Bruno Haible  <bruno@clisp.org>
2465
2466         strerror_r-posix: Fix for MSVC 9.
2467         * lib/strerror_r.c (local_snprintf): New function.
2468         (snprintf): Define to local_snprintf, not to _snprintf.
2469
2470 2011-09-25  Bruno Haible  <bruno@clisp.org>
2471
2472         ftruncate: Support for MSVC 9.
2473         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2474         (chsize_nothrow): New function.
2475         (chsize): Redefine as a macro.
2476         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2477         * modules/ftruncate (Depends-on): Add msvc-inval.
2478
2479 2011-09-25  Bruno Haible  <bruno@clisp.org>
2480
2481         New module 'fstat'.
2482         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2483         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2484         * lib/fchdir.c (rpl_fstat): Remove function.
2485         * m4/fstat.m4: New file.
2486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2487         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2488         declared.
2489         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2490         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2491         * modules/fstat: New file.
2492         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2493         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2494         is set.
2495         * doc/posix-functions/fstat.texi: Mention the new module and the
2496         problem on MSVC.
2497         * NEWS: Mention the change.
2498         * modules/acl (Depends-on): Add fstat.
2499         * modules/chdir-safer (Depends-on): Likewise.
2500         * modules/chown (Depends-on): Likewise.
2501         * modules/copy-file (Depends-on): Likewise.
2502         * modules/fchdir (Depends-on): Likewise.
2503         * modules/fdopendir (Depends-on): Likewise.
2504         * modules/fopen (Depends-on): Likewise.
2505         * modules/fts (Depends-on): Likewise.
2506         * modules/getcwd (Depends-on): Likewise.
2507         * modules/isapipe (Depends-on): Likewise.
2508         * modules/linkat (Depends-on): Likewise.
2509         * modules/lseek (Depends-on): Likewise.
2510         * modules/mkdir-p (Depends-on): Likewise.
2511         * modules/open (Depends-on): Likewise.
2512         * modules/openat (Depends-on): Likewise.
2513         * modules/read-file (Depends-on): Likewise.
2514         * modules/renameat (Depends-on): Likewise.
2515         * modules/utimens (Depends-on): Likewise.
2516
2517 2011-09-25  Bruno Haible  <bruno@clisp.org>
2518
2519         linkat: Fix compilation on MSVC 9.
2520         * lib/linkat.c: Don't include <stdint.h>.
2521
2522 2011-09-25  Bruno Haible  <bruno@clisp.org>
2523
2524         fclose: Support for MSVC 9.
2525         * lib/fclose.c: Include msvc-inval.h.
2526         (fclose_nothrow): New function.
2527         (rpl_fclose): Use it.
2528         * modules/fclose (Depends-on): Add msvc-inval.
2529         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2530
2531 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2532
2533         dup2: minor simplifications
2534         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2535         that it's a performance win.
2536         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2537         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2538
2539 2011-09-24  Jim Meyering  <meyering@redhat.com>
2540
2541         test-futimens: avoid a warning from gcc -Wshadow
2542         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2543         to avoid a shadowing warning.
2544
2545 2011-09-24  Bruno Haible  <bruno@clisp.org>
2546
2547         fdopen: Support for MSVC 9.
2548         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2549         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2550         * lib/fdopen.c: Include msvc-inval.h.
2551         (fdopen_nothrow): New function.
2552         (rpl_fdopen): Use it.
2553         * modules/fdopen (Depends-on): Add msvc-inval.
2554         * modules/fclose-tests (Depends-on): Add fdopen.
2555         * modules/fflush-tests (Depends-on): Likewise.
2556         * modules/fgetc-tests (Depends-on): Likewise.
2557         * modules/fputc-tests (Depends-on): Likewise.
2558         * modules/fread-tests (Depends-on): Likewise.
2559         * modules/freopen-tests (Depends-on): Likewise.
2560         * modules/fseeko-tests (Depends-on): Likewise.
2561         * modules/ftello-tests (Depends-on): Likewise.
2562         * modules/fwrite-tests  (Depends-on): Likewise.
2563         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2564
2565 2011-09-24  Bruno Haible  <bruno@clisp.org>
2566
2567         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2568         * modules/fgetc-tests (Depends-on): Add unistd.
2569         * modules/fputc-tests (Depends-on): Likewise.
2570         * modules/fread-tests (Depends-on): Likewise.
2571         * modules/fwrite-tests (Depends-on): Likewise.
2572
2573 2011-09-24  Bruno Haible  <bruno@clisp.org>
2574
2575         dup: Simplify autoconf test.
2576         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2577         on gl_MSVC_INVAL's result.
2578
2579 2011-09-24  Bruno Haible  <bruno@clisp.org>
2580
2581         Tests for function fwrite().
2582         * modules/fwrite-tests: New file.
2583         * tests/test-fwrite.c: New file.
2584         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2585
2586         Tests for function fread().
2587         * modules/fread-tests: New file.
2588         * tests/test-fread.c: New file.
2589         * modules/stdio-tests (Depends-on): Add fread-tests.
2590
2591         Activate fputc tests.
2592         * modules/stdio-tests (Depends-on): Add fputc-tests.
2593
2594         Enhance fgetc, fputc tests.
2595         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2596         * tests/test-fputc.c (main): Likewise.
2597
2598 2011-09-24  Bruno Haible  <bruno@clisp.org>
2599
2600         write: Support for MSVC 9.
2601         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2602         is not 1.
2603         * lib/write.c (write_nothrow): New function.
2604         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2605         not 1. Use write_nothrow.
2606         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2607         invalid parameter handler.
2608         (gl_PREREQ_WRITE): New macro.
2609         * modules/write (Depends-on): Add msvc-inval.
2610         (configure.ac): Invoke gl_PREREQ_WRITE.
2611         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2612
2613 2011-09-24  Bruno Haible  <bruno@clisp.org>
2614
2615         read: Fix last commit.
2616         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2617
2618 2011-09-24  Bruno Haible  <bruno@clisp.org>
2619
2620         dup2: Fix last commit.
2621         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2622         (rpl_dup2): Disable fcntl workaround on native Windows.
2623
2624         sigprocmask: Make code safer.
2625         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2626         section that changes macro definitions for this compilation unit.
2627
2628 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2629
2630         dup2: clarify by coalescing Windows-specific material
2631         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2632         "msvc-nothrow.h"' to the Windows-specific section, so that the
2633         Emacs source need not contain these include files.
2634         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2635         Windows-specific fixes into this function rather than just the
2636         nothrow fix, as this shortens and clarifies the code.  Always
2637         define as a function, as that's a bit cleaner than having it be
2638         sometimes a function and sometimes a macro.
2639         (rpl_dup2): Move the Windows-specific stuff out of here and into
2640         ms_windows_dup2.  Don't protect the Haiku-related fix with
2641         "#if !defined __linux__", as the same code also works around
2642         a Linux kernel bug, and it doesn't add any system calls on any
2643         platform.  Add comment about FreeBSD 6.1.
2644
2645         sigprocmask: move #include directive
2646         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2647         Windows-specific section, so that the Emacs source need not
2648         contain msvc-inval.h.
2649
2650 2011-09-23  Bruno Haible  <bruno@clisp.org>
2651
2652         read: Support for MSVC 9.
2653         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2654         is not 1.
2655         * lib/read.c (read_nothrow): New function.
2656         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2657         read_nothrow.
2658         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2659         invalid parameter handler.
2660         (gl_PREREQ_READ): New macro.
2661         * modules/read (Depends-on): Add msvc-inval.
2662         (configure.ac): Invoke gl_PREREQ_READ.
2663         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2664
2665 2011-09-23  Bruno Haible  <bruno@clisp.org>
2666
2667         close: Support for MSVC 9.
2668         * lib/close.c: Include <errno.h>, msvc-inval.h.
2669         (close_nothrow): New function.
2670         (rpl_close): Use it.
2671         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2672         invalid parameter handler.
2673         * modules/close (Depends-on): Add msvc-inval.
2674         * modules/dup2-tests (Depends-on): Add close.
2675         * modules/dup3-tests (Depends-on): Likewise.
2676         * modules/fcntl-tests (Depends-on): Likewise.
2677         * modules/spawn-pipe-tests (Depends-on): Likewise.
2678         * modules/unistd-safer-tests (Depends-on): Likewise.
2679         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2680
2681 2011-09-23  Bruno Haible  <bruno@clisp.org>
2682
2683         New module 'dup'.
2684         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2685         Allow replacement.
2686         * lib/dup.c: New file.
2687         * lib/fchdir.c (rpl_dup): Remove function.
2688         * m4/dup.m4: New file.
2689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2690         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2691         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2692         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2693         * modules/dup: New file.
2694         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2695         'dup' module is in use.
2696         * modules/fdopendir (Depends-on): Add dup.
2697         * modules/fdutimensat-tests (Depends-on): Likewise.
2698         * modules/fts (Depends-on): Likewise.
2699         * modules/futimens-tests (Depends-on): Likewise.
2700         * modules/posix_spawnp-tests (Depends-on): Likewise.
2701         * modules/unistd-safer-tests (Depends-on): Likewise.
2702         * modules/utimens-tests (Depends-on): Likewise.
2703         * doc/posix-functions/dup.texi: Mention the new module and the problem
2704         on MSVC.
2705
2706 2011-09-23  Bruno Haible  <bruno@clisp.org>
2707
2708         getdtablesize: Support for MSVC 9.
2709         * lib/getdtablesize.c: Include msvc-inval.h.
2710         (_setmaxstdio_nothrow): New function.
2711         (_setmaxstdio): Redefine it.
2712         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2713         * modules/getdtablesize (Depends-on): Add msvc-inval.
2714         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2715
2716 2011-09-23  Bruno Haible  <bruno@clisp.org>
2717
2718         signal-h: Rename from signal.
2719         * modules/signal-h: Renamed from modules/signal.
2720         * modules/pthread_sigmask (Depends-on): Update.
2721         * modules/raise (Depends-on): Likewise.
2722         * modules/sigaction (Depends-on): Likewise.
2723         * modules/sigpipe (Depends-on): Likewise.
2724         * modules/sigprocmask (Depends-on): Likewise.
2725         * modules/sys_select (Depends-on): Likewise.
2726         * modules/signal-h-tests: Renamed from modules/signal-tests.
2727         (Files, Depends-on, Makefile.am): Update.
2728         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2729         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2730         (Files, Makefile.am): Update.
2731         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2732         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2733         * modules/signal: New placeholder file.
2734         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2735         * doc/posix-headers/signal.texi: Update.
2736         * NEWS: Mention the change.
2737
2738 2011-09-23  Bruno Haible  <bruno@clisp.org>
2739
2740         sigprocmask: Avoid crashes through signal() on MSVC 9.
2741         * lib/sigprocmask.c: Include msvc-inval.h.
2742         (signal_nothrow): New function.
2743         (signal): Redefine it.
2744         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2745         * modules/sigprocmask (Depends-on): Add msvc-inval.
2746         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2747
2748 2011-09-23  Bruno Haible  <bruno@clisp.org>
2749
2750         Tests for module 'raise'.
2751         * modules/raise-tests: New file.
2752         * tests/test-raise.c: New file.
2753
2754         raise: Support for MSVC.
2755         * lib/signal.in.h (raise): New declaration.
2756         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2757         for native Windows platforms.
2758         * m4/raise.m4: New file.
2759         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2760         HAVE_RAISE, REPLACE_RAISE.
2761         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2762         REPLACE_RAISE.
2763         * modules/raise (Status, Notice): Remove fields.
2764         (Files): Add m4/raise.m4.
2765         (Depends-on): Add signal, msvc-inval.
2766         (configure.ac): Use the common idioms.
2767         (Maintainer): Add me.
2768         * tests/test-signal-c++.cc: Check the signature of raise.
2769         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2770
2771 2011-09-23  Bruno Haible  <bruno@clisp.org>
2772
2773         pipe2: Fix compilation on pre-C99 compilers.
2774         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2775
2776 2011-09-23  Bruno Haible  <bruno@clisp.org>
2777
2778         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2779         * lib/msvc-nothrow.h: New file.
2780         * lib/msvc-nothrow.c: New file.
2781         * m4/msvc-nothrow.m4: New file.
2782         * modules/msvc-nothrow: New file.
2783         * lib/dup2.c: Include msvc-nothrow.h.
2784         (rpl_dup2): No need to protect _get_osfhandle call here.
2785         * lib/accept4.c: Include msvc-nothrow.h.
2786         * lib/error.c: Likewise.
2787         * lib/fcntl.c: Likewise.
2788         * lib/lseek.c: Likewise.
2789         * lib/nonblocking.c: Likewise.
2790         * lib/poll.c: Likewise.
2791         * lib/read.c: Likewise.
2792         * lib/select.c: Likewise.
2793         * lib/sockets.h: Likewise.
2794         * lib/sockets.c: Likewise.
2795         * lib/stdio-read.c: Likewise.
2796         * lib/stdio-write.c: Likewise.
2797         * lib/write.c: Likewise.
2798         * lib/w32sock.h: Likewise.
2799         * lib/w32spawn.h: Likewise.
2800         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2801         * lib/fsync.c: Likewise.
2802         * lib/isapipe.c: Likewise.
2803         * modules/dup2 (Depends-on): Add msvc-nothrow.
2804         * modules/accept4 (Depends-on): Likewise.
2805         * modules/error (Depends-on): Likewise.
2806         * modules/fcntl (Depends-on): Likewise.
2807         * modules/lseek (Depends-on): Likewise.
2808         * modules/nonblocking (Depends-on): Likewise.
2809         * modules/poll (Depends-on): Likewise.
2810         * modules/read (Depends-on): Likewise.
2811         * modules/select (Depends-on): Likewise.
2812         * modules/sockets (Depends-on): Likewise.
2813         * modules/sigpipe (Depends-on): Likewise.
2814         * modules/write (Depends-on): Likewise.
2815         * modules/accept (Depends-on): Likewise.
2816         * modules/bind (Depends-on): Likewise.
2817         * modules/connect (Depends-on): Likewise.
2818         * modules/gethostname (Depends-on): Likewise.
2819         * modules/getpeername (Depends-on): Likewise.
2820         * modules/getsockname (Depends-on): Likewise.
2821         * modules/getsockopt (Depends-on): Likewise.
2822         * modules/ioctl (Depends-on): Likewise.
2823         * modules/listen (Depends-on): Likewise.
2824         * modules/recv (Depends-on): Likewise.
2825         * modules/recvfrom (Depends-on): Likewise.
2826         * modules/send (Depends-on): Likewise.
2827         * modules/sendto (Depends-on): Likewise.
2828         * modules/setsockopt (Depends-on): Likewise.
2829         * modules/shutdown (Depends-on): Likewise.
2830         * modules/socket (Depends-on): Likewise.
2831         * modules/execute (Depends-on): Likewise.
2832         * modules/spawn-pipe (Depends-on): Likewise.
2833         * modules/flock (Depends-on): Likewise.
2834         * modules/fsync (Depends-on): Likewise.
2835         * modules/isapipe (Depends-on): Likewise.
2836         * tests/test-cloexec.c: Include msvc-nothrow.h.
2837         * tests/test-dup-safer.c: Likewise.
2838         * tests/test-dup2.c: Likewise.
2839         * tests/test-dup3.c: Likewise.
2840         * tests/test-fcntl.c: Likewise.
2841         * tests/test-pipe.c: Likewise.
2842         * tests/test-pipe2.c: Likewise.
2843         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2844         * modules/unistd-safer-tests (Depends-on): Likewise.
2845         * modules/dup2-tests (Depends-on): Likewise.
2846         * modules/dup3-tests (Depends-on): Likewise.
2847         * modules/fcntl-tests (Depends-on): Likewise.
2848         * modules/pipe-posix-tests (Depends-on): Likewise.
2849         * modules/pipe2-tests (Depends-on): Likewise.
2850
2851 2011-09-23  Bruno Haible  <bruno@clisp.org>
2852
2853         dup2: Make code more maintainable.
2854         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2855         (rpl_dup2): Use it.
2856         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2857         * modules/dup2 (configure.ac): Invoke it.
2858         Reported by Paul Eggert.
2859
2860 2011-09-23  Bruno Haible  <bruno@clisp.org>
2861
2862         msvc-inval: Fix compilation error.
2863         * lib/msvc-inval.h: Include <excpt.h>.
2864
2865 2011-09-23  Bruno Haible  <bruno@clisp.org>
2866
2867         mkdir: Tweak for MSVC 9.
2868         * lib/sys_stat.in.h: Update comments.
2869         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2870
2871         Tests for module 'chdir'.
2872         * modules/chdir-tests: New file.
2873         * tests/test-chdir.c: New file.
2874
2875         New module 'chdir'.
2876         * modules/chdir: New file.
2877         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2878         (chdir): New declaration.
2879         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2880         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2881         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2882         * tests/test-unistd-c++.cc: Check signature of chdir.
2883         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2884         * modules/chdir-long (Depends-on): Add chdir.
2885         * modules/fchdir (Depends-on): Likewise.
2886         * modules/rename (Depends-on): Likewise.
2887         * modules/savewd (Depends-on): Likewise.
2888
2889         rmdir: Support for mingw, MSVC 9.
2890         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2891         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2892
2893         getcwd: Tweak for MSVC 9.
2894         * lib/unistd.in.h: Update comments.
2895         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2896
2897 2011-09-22  Bruno Haible  <bruno@clisp.org>
2898
2899         strerror_r-posix: Avoid a link error on MSVC.
2900         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2901         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2902
2903 2011-09-22  Bruno Haible  <bruno@clisp.org>
2904
2905         select: Avoid link errors on MSVC.
2906         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2907         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2908         * modules/pselect (Link): Likewise.
2909         * NEWS: Mention the change.
2910         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2911         test-select-stdin against $(LIB_SELECT).
2912         * modules/pselect-tests (Makefile.am): Link test-pselect against
2913         $(LIB_SELECT).
2914
2915 2011-09-22  Bruno Haible  <bruno@clisp.org>
2916
2917         select: Avoid compilation error on MSVC.
2918         * lib/select.c: Don't include <stdbool.h>.
2919
2920 2011-09-21  Bruno Haible  <bruno@clisp.org>
2921
2922         Consolidate all uses of PATH_MAX in *.m4 files.
2923         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2924         macros.
2925         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2926         and gl_PATHMAX_SNIPPET.
2927         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2929         * modules/chdir-long (Files): Add m4/pathmax.m4.
2930         * modules/getcwd (Files): Likewise.
2931
2932 2011-09-21  Bruno Haible  <bruno@clisp.org>
2933
2934         ftruncate: Un-deprecate, concentrate on Win32 support.
2935         * modules/ftruncate (Status, Notice): Remove sections.
2936         (Depends-on): Add largefile.
2937         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2938         non-mingw platforms.
2939         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2940         include <io.h>.
2941         * modules/perror-tests (Depends-on): Add ftruncate.
2942         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2943         'ftruncate' module.
2944
2945 2011-09-21  Bruno Haible  <bruno@clisp.org>
2946
2947         Add dependencies to new dirent related modules.
2948         * modules/opendir (Depends-on): Add closedir.
2949         * modules/getcwd (Depends-on): Add opendir, closedir.
2950         * modules/dirent-safer-tests (Depends-on): Likewise.
2951         * modules/fdopendir-tests (Depends-on): Likewise.
2952         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2953         * modules/renameat-tests (Depends-on): Likewise.
2954
2955 2011-09-21  Bruno Haible  <bruno@clisp.org>
2956
2957         opendir: Avoid compilation error on mingw.
2958         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2959         * modules/opendir (Depends-on): Add unistd.
2960
2961 2011-09-21  Bruno Haible  <bruno@clisp.org>
2962
2963         ftruncate tests: Avoid a test failure on mingw.
2964         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2965
2966 2011-09-21  Bruno Haible  <bruno@clisp.org>
2967
2968         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2969         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2970         native Windows.
2971
2972 2011-09-21  Bruno Haible  <bruno@clisp.org>
2973
2974         New module 'fdopen'.
2975         * lib/stdio.in.h (fdopen): New declaration.
2976         * lib/fdopen.c: New file.
2977         * m4/fdopen.m4: New file.
2978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2979         REPLACE_FDOPEN.
2980         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2981         REPLACE_FDOPEN.
2982         * modules/fdopen: New file.
2983         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2984         * tests/test-stdio-c++.cc: Check signature of fdopen.
2985         * doc/posix-functions/fdopen.texi: Mention the new module.
2986
2987 2011-09-21  Bruno Haible  <bruno@clisp.org>
2988
2989         unlockpt tests: Avoid test failure on NetBSD 5.1.
2990         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2991         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2992
2993 2011-09-21  Bruno Haible  <bruno@clisp.org>
2994
2995         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2996         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2997         * tests/test-getlogin_r.c (main): Likewise.
2998
2999 2011-09-20  Bruno Haible  <bruno@clisp.org>
3000
3001         time tests: Don't require pid_t.
3002         * doc/posix-headers/time.texi: Revert last change.
3003         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3004         * tests/test-time.c: Comment out the check for pid_t.
3005
3006 2011-09-20  Bruno Haible  <bruno@clisp.org>
3007
3008         fsync tests: Avoid a test failure on mingw.
3009         * tests/test-fsync.c (main): Allow a failure with EIO.
3010
3011 2011-09-20  Bruno Haible  <bruno@clisp.org>
3012
3013         euidaccess: Update comments.
3014         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3015
3016 2011-09-20  Bruno Haible  <bruno@clisp.org>
3017
3018         Ensure EBADF returns for socket functions on mingw.
3019         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3020         descriptor is invalid.
3021         * lib/bind.c (rpl_bind): Likewise.
3022         * lib/connect.c (rpl_connect): Likewise.
3023         * lib/getpeername.c (rpl_getpeername): Likewise.
3024         * lib/getsockname.c (rpl_getsockname): Likewise.
3025         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3026         * lib/listen.c (rpl_listen): Likewise.
3027         * lib/recv.c (rpl_recv): Likewise.
3028         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3029         * lib/send.c (rpl_send): Likewise.
3030         * lib/sendto.c (rpl_sendto): Likewise.
3031         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3032         * lib/shutdown.c (rpl_shutdown): Likewise.
3033
3034 2011-09-20  Bruno Haible  <bruno@clisp.org>
3035
3036         select tests: EBADF tests.
3037         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3038         test_bad_fd): New functions.
3039         (test_function): Invoke also test_bad_fd.
3040
3041 2011-09-20  Bruno Haible  <bruno@clisp.org>
3042
3043         Tests for module 'posix_spawn_file_actions_addopen.
3044         * modules/posix_spawn_file_actions_addopen-tests: New file.
3045         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3046
3047         Tests for module 'posix_spawn_file_actions_adddup2'.
3048         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3049         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3050
3051         Tests for module 'posix_spawn_file_actions_addclose'.
3052         * modules/posix_spawn_file_actions_addclose-tests: New file.
3053         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3054
3055 2011-09-20  Bruno Haible  <bruno@clisp.org>
3056
3057         Tests for module 'unlockpt'.
3058         * modules/unlockpt-tests: New file.
3059         * tests/test-unlockpt.c: New file.
3060         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3061
3062         Tests for module 'grantpt'.
3063         * modules/grantpt-tests: New file.
3064         * tests/test-grantpt.c: New file.
3065         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3066
3067 2011-09-20  Bruno Haible  <bruno@clisp.org>
3068
3069         freopen tests: EBADF tests.
3070         * tests/test-freopen.c: Include errno.h, unistd.h.
3071         (main): Add tests for EBADF, commented out for the moment.
3072
3073         fclose tests: EBADF tests.
3074         * tests/test-fclose.c (main): Add tests for EBADF.
3075
3076         fflush tests: EBADF tests.
3077         * tests/test-fflush.c: Include errno.h, macros.h.
3078         (main): Add tests for EBADF.
3079
3080         ftello tests: EBADF tests.
3081         * tests/test-ftello4.sh: New file.
3082         * tests/test-ftello4.c: New file.
3083         * modules/ftello-tests (Files): Add them.
3084         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3085
3086         fseeko tests: EBADF tests.
3087         * tests/test-fseeko4.sh: New file.
3088         * tests/test-fseeko4.c: New file.
3089         * modules/fseeko-tests (Files): Add them.
3090         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3091
3092         Tests for function fputc().
3093         * modules/fputc-tests: New file.
3094         * tests/test-fputc.c: New file.
3095         * modules/stdio-tests (Depends-on): Add fputc-tests.
3096
3097         Tests for function fgetc().
3098         * modules/fgetc-tests: New file.
3099         * tests/test-fgetc.c: New file.
3100         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3101
3102         Tests for function fdopen().
3103         * modules/fdopen-tests: New file.
3104         * tests/test-fdopen.c: New file.
3105         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3106
3107         Tests for module 'vdprintf'.
3108         * modules/vdprintf-tests: New file.
3109         * tests/test-vdprintf.c: New file.
3110
3111         Tests for module 'dprintf'.
3112         * modules/dprintf-tests: New file.
3113         * tests/test-dprintf.c: New file.
3114
3115 2011-09-20  Bruno Haible  <bruno@clisp.org>
3116
3117         Tests for module 'ioctl'.
3118         * modules/ioctl-tests: New file.
3119         * tests/test-ioctl.c: New file.
3120
3121 2011-09-20  Bruno Haible  <bruno@clisp.org>
3122
3123         fcntl tests: EBADF tests.
3124         * tests/test-fcntl.c (main): Add more tests for EBADF.
3125
3126 2011-09-20  Bruno Haible  <bruno@clisp.org>
3127
3128         utimensat tests: EBADF tests.
3129         * tests/test-utimensat.c (main): Add tests for EBADF.
3130
3131         renameat tests: EBADF tests.
3132         * tests/test-renameat.c (main): Add tests for EBADF.
3133
3134         mkfifoat tests: EBADF tests.
3135         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3136
3137         readlinkat tests: EBADF tests.
3138         * tests/test-readlinkat.c (main): Add tests for EBADF.
3139
3140         symlinkat tests: EBADF tests.
3141         * tests/test-symlinkat.c (main): Add tests for EBADF.
3142
3143         linkat tests: EBADF tests.
3144         * tests/test-linkat.c (main): Add tests for EBADF.
3145
3146         Tests for module 'faccessat'.
3147         * modules/faccessat-tests: New file.
3148         * tests/test-faccessat.c: New file.
3149
3150         fdopendir tests: EBADF tests.
3151         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3152
3153         openat tests: EBADF tests.
3154         * tests/test-fchownat.c (main): Add tests for EBADF.
3155         * tests/test-fstatat.c (main): Likewise.
3156         * tests/test-mkdirat.c (main): Likewise.
3157         * tests/test-openat.c (main): Likewise.
3158         * tests/test-unlinkat.c (main): Likewise.
3159         * tests/test-fchmodat.c: New file.
3160         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3161         (Makefile.am): Also run 'test-fchmodat'.
3162
3163 2011-09-20  Bruno Haible  <bruno@clisp.org>
3164
3165         utimens, futimens, fdutimensat tests: EBADF tests.
3166         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3167
3168         Tests for function fstat().
3169         * modules/fstat-tests: New file.
3170         * tests/test-fstat.c: New file.
3171         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3172
3173 2011-09-20  Bruno Haible  <bruno@clisp.org>
3174
3175         test-ttyname_r tests: EBADF tests.
3176         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3177
3178         Tests for module 'isatty'.
3179         * modules/isatty-tests: New file.
3180         * tests/test-isatty.c: New file.
3181
3182         Tests for module 'write'.
3183         * modules/write-tests: New file.
3184         * tests/test-write.c: New file.
3185
3186         Tests for module 'read'.
3187         * modules/read-tests: New file.
3188         * tests/test-read.c: New file.
3189
3190         pwrite tests: EBADF tests.
3191         * tests/test-pwrite.c (main): Add tests for EBADF.
3192
3193         pread tests: EBADF tests.
3194         * tests/test-pread.c (main): Add tests for EBADF.
3195
3196         lseek tests: EBADF tests.
3197         * tests/test-lseek.c (main): Add more tests for EBADF.
3198
3199         Tests for module 'ftruncate'.
3200         * modules/ftruncate-tests: New file.
3201         * tests/test-ftruncate.sh: New file.
3202         * tests/test-ftruncate.c: New file.
3203
3204         fsync tests: EBADF tests.
3205         * tests/test-fsync.c (main): Add more tests for EBADF.
3206
3207         fdatasync tests: EBADF tests.
3208         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3209
3210         Tests for module 'fchown'.
3211         * modules/fchown-tests: New file.
3212         * tests/test-fchown.c: New file.
3213
3214         Tests for module 'fchmod'.
3215         * modules/fchmod-tests: New file.
3216         * tests/test-fchmod.c: New file.
3217
3218         fchdir tests: EBADF tests.
3219         * tests/test-fchdir.c (main): Add more tests for EBADF.
3220
3221         dup2 tests: EBADF tests.
3222         * tests/test-dup2.c (main): Add more tests for EBADF.
3223
3224         Tests for module 'dup'.
3225         * modules/dup-tests: New file.
3226         * tests/test-dup.c: New file.
3227
3228         Tests for module 'close'.
3229         * modules/close-tests: New file.
3230         * tests/test-close.c: New file.
3231
3232 2011-09-20  Bruno Haible  <bruno@clisp.org>
3233
3234         Tests for module 'shutdown'.
3235         * modules/shutdown-tests: New file.
3236         * tests/test-shutdown.c: New file.
3237
3238         Tests for module 'setsockopt'.
3239         * modules/setsockopt-tests: New file.
3240         * tests/test-setsockopt.c: New file.
3241
3242         Tests for module 'sendto'.
3243         * modules/sendto-tests: New file.
3244         * tests/test-sendto.c: New file.
3245
3246         Tests for module 'send'.
3247         * modules/send-tests: New file.
3248         * tests/test-send.c: New file.
3249
3250         Tests for module 'recvfrom'.
3251         * modules/recvfrom-tests: New file.
3252         * tests/test-recvfrom.c: New file.
3253
3254         Tests for module 'recv'.
3255         * modules/recv-tests: New file.
3256         * tests/test-recv.c: New file.
3257
3258         Tests for module 'listen'.
3259         * modules/listen-tests: New file.
3260         * tests/test-listen.c: New file.
3261
3262         Tests for module 'getsockopt'.
3263         * modules/getsockopt-tests: New file.
3264         * tests/test-getsockopt.c: New file.
3265
3266         Tests for module 'getsockname'.
3267         * modules/getsockname-tests: New file.
3268         * tests/test-getsockname.c: New file.
3269
3270         Tests for module 'getpeername'.
3271         * modules/getpeername-tests: New file.
3272         * tests/test-getpeername.c: New file.
3273
3274         Tests for module 'connect'.
3275         * modules/connect-tests: New file.
3276         * tests/test-connect.c: New file.
3277
3278         Tests for module 'bind'.
3279         * modules/bind-tests: New file.
3280         * tests/test-bind.c: New file.
3281
3282         accept4 tests: Fix for native Windows.
3283         * tests/test-accept4.c: Include sockets.h.
3284         (main): Invoke gl_sockets_startup.
3285         * modules/accept4-tests (Depends-on): Add sockets.
3286
3287         accept tests: Fix for native Windows.
3288         * tests/test-accept.c: Include sockets.h.
3289         (main): Invoke gl_sockets_startup.
3290         * modules/accept-tests (Depends-on): Add sockets.
3291
3292 2011-09-19  Bruno Haible  <bruno@clisp.org>
3293
3294         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3295         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3296         do...while(0).
3297         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3298         Suggested by Paul Eggert.
3299
3300 2011-09-19  Bruno Haible  <bruno@clisp.org>
3301
3302         sched: Ensure pid_t is defined.
3303         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3304         not define pid_t.
3305         * lib/sched.in.h: Include <sys/types.h>.
3306         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3308
3309 2011-09-19  Bruno Haible  <bruno@clisp.org>
3310
3311         msvc-inval: Ensure the entire expansion is a single statement.
3312         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3313         of braces.
3314
3315 2011-09-19  Jim Meyering  <meyering@redhat.com>
3316
3317         tests: use printf, not echo in init.sh's warn_ function
3318         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3319         misbehave when given strings containing a backslash or starting
3320         with e.g., -n.  James Youngman suggested setting IFS.
3321
3322 2011-09-19  Eric Blake  <eblake@redhat.com>
3323
3324         futimens: enhance test
3325         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3326         closed non-negative fd.
3327
3328         date: accept 'hence' as opposite of 'ago'
3329         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3330         * tests/test-parse-datetime.c (main): Enhance test.
3331         Suggested by Jesse Wilson.
3332
3333 2011-09-19  Jim Meyering  <meyering@redhat.com>
3334
3335         getcwd: don't fail in a deep directory on a system without openat
3336         Before this change, getcwd would fail when called from a directory
3337         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3338         the non-openat implementation used "..", "../..", "../../..", etc.
3339         to access ancestor directories.  With too many, that string would
3340         be longer than PATH_MAX.
3341         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3342         using gnulib's openat replacement.
3343         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3344         we're using the replacement function.
3345
3346 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3347
3348         maint.mk: avoid warnings from perl about missing files
3349         * top/maint.mk (def_sym_regex): Ignore files listed in
3350         $(gl_other_headers_) that do not exist, say because a project
3351         does not use a corresponding module.
3352
3353 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3354
3355         stat: use pathmax.h only if needed
3356         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3357         This is better for Emacs, which does not have a mingw port and
3358         therefore can avoid the pathmax module.
3359
3360         utimens: remove dependency on dup2
3361         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3362         to work around the Linux kernel bug.
3363         * modules/utimens (Depends-on): Remove dup2.
3364
3365 2011-09-18  Bruno Haible  <bruno@clisp.org>
3366
3367         inet_ntop, inet_pton: Look for it also in libresolv.
3368         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3369         libnsl, search for it in libresolv.
3370         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3371         Needed on Solaris 7.
3372
3373 2011-09-18  Bruno Haible  <bruno@clisp.org>
3374
3375         accept, accept4 tests: Avoid link error on Solaris.
3376         * modules/accept-tests (Makefile.am): Link test-accept against
3377         $(LIBSOCKET).
3378         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3379         $(LIBSOCKET).
3380
3381         accept4: Avoid link error on Solaris.
3382         * modules/accept4 (Link): New section.
3383
3384         socket functions: Avoid link errors on Solaris.
3385         * modules/accept (Depends-on): Add socketlib.
3386         (Link): New section.
3387         * modules/bind (Depends-on): Add socketlib.
3388         (Link): New section.
3389         * modules/connect (Depends-on): Add socketlib.
3390         (Link): New section.
3391         * modules/getpeername (Depends-on): Add socketlib.
3392         (Link): New section.
3393         * modules/getsockname (Depends-on): Add socketlib.
3394         (Link): New section.
3395         * modules/getsockopt (Depends-on): Add socketlib.
3396         (Link): New section.
3397         * modules/listen (Depends-on): Add socketlib.
3398         (Link): New section.
3399         * modules/recv (Depends-on): Add socketlib.
3400         (Link): New section.
3401         * modules/recvfrom (Depends-on): Add socketlib.
3402         (Link): New section.
3403         * modules/send (Depends-on): Add socketlib.
3404         (Link): New section.
3405         * modules/sendto (Depends-on): Add socketlib.
3406         (Link): New section.
3407         * modules/setsockopt (Depends-on): Add socketlib.
3408         (Link): New section.
3409         * modules/shutdown (Depends-on): Add socketlib.
3410         (Link): New section.
3411         * modules/socket (Depends-on): Add socketlib.
3412         (Link): New section.
3413
3414 2011-09-18  Bruno Haible  <bruno@clisp.org>
3415
3416         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3417         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3418         than 5 seconds.
3419         * modules/ptsname-tests (configure.ac): Test for alarm.
3420
3421 2011-09-18  Bruno Haible  <bruno@clisp.org>
3422
3423         posix_spawn_file_actions_add*: Fix module dependencies.
3424         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3425         posix_spawn_file_actions_init.
3426         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3427         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3428
3429 2011-09-18  Bruno Haible  <bruno@clisp.org>
3430
3431         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3432         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3433         * tests/test-renameat.c (main): Likewise.
3434
3435 2011-09-18  Bruno Haible  <bruno@clisp.org>
3436
3437         Tests for module 'accept4'.
3438         * modules/accept4-tests: New file.
3439         * tests/test-accept4.c: New file.
3440
3441 2011-09-18  Bruno Haible  <bruno@clisp.org>
3442
3443         Tests for module 'accept'.
3444         * modules/accept-tests: New file.
3445         * tests/test-accept.c: New file.
3446
3447 2011-09-18  Bruno Haible  <bruno@clisp.org>
3448
3449         dup2: Support for MSVC.
3450         * lib/dup2.c: Include msvc-inval.h.
3451         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3452         _get_osfhandle calls.
3453         * modules/dup2 (Depends-on): Add msvc-inval.
3454         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3455
3456         New module 'msvc-inval'.
3457         * lib/msvc-inval.h: New file.
3458         * lib/msvc-inval.c: New file.
3459         * m4/msvc-inval.m4: New file.
3460         * modules/msvc-inval: New file.
3461
3462 2011-09-17  Bruno Haible  <bruno@clisp.org>
3463
3464         Tests for module 'pclose'.
3465         * modules/pclose-tests: New file.
3466
3467         New module 'pclose'.
3468         * lib/stdio.in.h (pclose): New declaration.
3469         * lib/pclose.c: New file.
3470         * m4/pclose.m4: New file.
3471         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3472         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3473         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3474         * modules/pclose: New file.
3475         * modules/popen-tests (Depends-on): Add pclose.
3476         * modules/popen-safer-tests (Depends-on): Likewise.
3477         * doc/posix-functions/pclose.texi: Mention the new module.
3478
3479 2011-09-17  Bruno Haible  <bruno@clisp.org>
3480
3481         popen: Support for MSVC.
3482         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3483         * lib/popen.c (popen): Provide alternate definition for native Windows.
3484         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3486         * modules/popen (Depends-on, configure.ac): Update condition.
3487         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3488         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3489         fixed.
3490
3491 2011-09-17  Bruno Haible  <bruno@clisp.org>
3492
3493         isnanl, isnand, isnanf: Work around MSVC bug.
3494         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3495
3496 2011-09-17  Bruno Haible  <bruno@clisp.org>
3497
3498         sys_socket tests: Fix recent mistake.
3499         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3500
3501 2011-09-17  Bruno Haible  <bruno@clisp.org>
3502
3503         putenv: Support for MSVC.
3504         * modules/putenv (Depends-on): Add environ.
3505         * lib/putenv.c (environ): Disable declaration.
3506         * lib/unistd.in.h: Update comment.
3507
3508 2011-09-17  Bruno Haible  <bruno@clisp.org>
3509
3510         math: Avoid macro redefinition warnings on MSVC.
3511         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3512         Undefine before redefining.
3513
3514 2011-09-17  Bruno Haible  <bruno@clisp.org>
3515
3516         doc: Mention functions which are declared as macros.
3517         * doc/posix-functions/*[fl].texi: Mention that some functions are
3518         defined as macros with arguments only.
3519
3520 2011-09-17  Bruno Haible  <bruno@clisp.org>
3521
3522         Add dependencies to new dirent related modules.
3523         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3524         * modules/fts (Depends-on): Likewise.
3525         * modules/glob (Depends-on): Likewise.
3526         * modules/savedir (Depends-on): Likewise.
3527         * modules/scandir (Depends-on): Likewise.
3528         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3529         * modules/fdopendir (Depends-on): Add opendir.
3530
3531 2011-09-17  Bruno Haible  <bruno@clisp.org>
3532
3533         inet_pton: Support for MSVC on Windows Vista or newer.
3534         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3535         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3536         HAVE_DECL_INET_PTON is defined.
3537         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3538         On platforms with <winsock2.h>, test whether inet_pton is declared in
3539         <ws2tcpip.h>. If so, arrange to replace it.
3540         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3541         REPLACE_INET_PTON.
3542         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3543         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3544         (Depends-on, configure.ac): Update condition.
3545         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3546
3547 2011-09-17  Bruno Haible  <bruno@clisp.org>
3548
3549         inet_ntop: Support for MSVC on Windows Vista or newer.
3550         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3551         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3552         HAVE_DECL_INET_NTOP is defined.
3553         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3554         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3555         <ws2tcpip.h>. If so, arrange to replace it.
3556         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3557         REPLACE_INET_NTOP.
3558         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3559         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3560         (Depends-on, configure.ac): Update condition.
3561         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3562
3563 2011-09-16  Eric Blake  <eblake@redhat.com>
3564
3565         test-fsync: yet another enhancement
3566         * tests/test-fsync.c (main): Also test behavior on read-only text
3567         file.
3568
3569 2011-09-16  Bruno Haible  <bruno@clisp.org>
3570
3571         Enhance fsync, fdatasync tests.
3572         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3573         * tests/test-fdatasync.c (main): Likewise.
3574
3575 2011-09-16  Bruno Haible  <bruno@clisp.org>
3576
3577         Support for MSVC compiler: Ensure mode_t gets defined.
3578         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3579         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3581         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3582         * tests/test-fcntl-h.c: Check that mode_t is defined.
3583         * tests/test-sys_stat.c: Likewise.
3584         * tests/test-sys_types.c: Likewise.
3585         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3586         * doc/posix-headers/sys_stat.texi: Likewise.
3587         * doc/posix-headers/sys_types.texi: Likewise.
3588
3589 2011-09-16  Bruno Haible  <bruno@clisp.org>
3590
3591         sys_stat: Support for MSVC.
3592         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3593         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3594         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3595         MSVC.
3596
3597 2011-09-16  Bruno Haible  <bruno@clisp.org>
3598
3599         Support for MSVC compiler: Ensure off_t gets defined.
3600         * lib/unistd.in.h: Include <sys/types.h>.
3601         * tests/test-fcntl-h.c: Check that off_t is defined.
3602         * tests/test-sys_stat.c: Likewise.
3603         * tests/test-sys_types.c: Likewise.
3604
3605 2011-09-16  Eric Blake  <eblake@redhat.com>
3606
3607         fdatasync: port to Solaris
3608         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3609         * modules/fdatasync (Link): Document it.
3610         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3611
3612         fdatasync: port to MacOS X 10.7
3613         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3614         declared.
3615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3616         * modules/unistd (Makefile.am): Substitute it.
3617         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3618         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3619
3620         fdatasync: minor improvements
3621         * modules/fdatasync (Depends-on): Add condition for fsync.
3622         * lib/fdatasync.c (fdatasync): Add comment.
3623         * tests/test-unistd-c++.cc: Test fdatasync.
3624
3625         unistd: update refs to newer POSIX
3626         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3627         Suggested by Bruno Haible.
3628
3629         fdatasync: new module
3630         * modules/fsync (Description): Document difference to fdatasync.
3631         * modules/fdatasync: New module.
3632         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3633         * lib/fdatasync.c (fdatasync): Likewise.
3634         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3635         defaults.
3636         * modules/unistd (Makefile.am): Set witnesses.
3637         * lib/unistd.in.h (fdatasync): Declare.
3638         * MODULES.html.sh: Document it.
3639         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3640         * modules/fdatasync-tests: New test.
3641         * tests/test-fdatasync.c: Likewise.
3642
3643 2011-09-16  Eric Blake  <eblake@redhat.com>
3644
3645         test-fsync: enhance tests
3646         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3647         * tests/test-fsync.c (main): Enhance test.
3648
3649 2011-09-15  Bruno Haible  <bruno@clisp.org>
3650
3651         Support for MSVC compiler: Ensure ssize_t gets defined.
3652         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3653         * doc/posix-headers/stdio.texi: Likewise.
3654         * modules/stdio (Depends-on): Add ssize_t.
3655         * modules/sys_socket (Depends-on): Likewise.
3656         * modules/sys_types (Depends-on): Likewise.
3657         * modules/sys_uio (Depends-on): Likewise.
3658         * modules/unistd (Depends-on): Likewise.
3659         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3660         * tests/test-sys_types.c: Check that ssize_t is defined.
3661
3662 2011-09-14  Bruno Haible  <bruno@clisp.org>
3663
3664         Avoid using #, the m4 comment starter character, near brackets.
3665         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3666         delimiter character in sed expressions.
3667         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3668         Suggested by Eric Blake.
3669
3670         Properly quote AC_CHECK_DECLS' 4th argument.
3671         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3672         argument.
3673         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3674         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3675         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3676         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3677         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3678         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3679         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3680         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3681         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3682         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3683         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3684         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3685         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3686         * m4/isinf.m4 (gl_ISINF): Likewise.
3687         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3688         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3689         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3690         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3691         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3692         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3693         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3694         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3695         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3696         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3697         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3700         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3702         Reported by Eric Blake.
3703
3704         Properly quote AC_CHECK_DECL's 4th argument.
3705         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3706         argument.
3707         * m4/argp.m4 (gl_ARGP): Likewise.
3708         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3709         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3710         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3711         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3712         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3713         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3715         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3716         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3717         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3718         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3719         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3720         Reported by Eric Blake.
3721
3722 2011-09-14  Eric Blake  <eblake@redhat.com>
3723
3724         opendir: avoid compile warning
3725         * lib/opendir.c (includes): Always include errno.h.
3726         Reported by Tatsuro MATSUOKA.
3727
3728 2011-09-14  Jim Meyering  <meyering@redhat.com>
3729
3730         maint.mk: sc_tight_scope: propagate failure from sub-make
3731         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3732         Reported by Martin von Gagern.
3733
3734 2011-09-13  Bruno Haible  <bruno@clisp.org>
3735
3736         tempname: Support for MSVC.
3737         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3738         MSVC.
3739         * modules/tempname (Depends-on): Add fcntl-h.
3740
3741 2011-09-13  Bruno Haible  <bruno@clisp.org>
3742
3743         sys_time: Support for MSVC.
3744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3745         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3746         include <winsock2.h>.
3747         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3748         function declarations that collide with POSIX.
3749         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3750         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3751
3752 2011-09-13  Bruno Haible  <bruno@clisp.org>
3753
3754         stat: Support for MSVC.
3755         * lib/stat.c: Include pathmax.h.
3756         * modules/stat (Depends-on): Add pathmax.
3757
3758         pathmax: Support for native Windows.
3759         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3760
3761 2011-09-12  Bruno Haible  <bruno@clisp.org>
3762
3763         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3764         * lib/dirent.in.h (struct dirent): New type.
3765         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3766         DT_WHT): New macros.
3767         (DIR): New type.
3768         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3769         (readdir, rewinddir): New declarations.
3770         * lib/dirent-private.h: New file.
3771         * lib/opendir.c: New file.
3772         * lib/readdir.c: New file.
3773         * lib/rewinddir.c: New file.
3774         * lib/closedir.c: New file.
3775         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3776         * m4/opendir.m4: New file.
3777         * m4/readdir.m4: New file.
3778         * m4/rewinddir.m4: New file.
3779         * m4/closedir.m4: New file.
3780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3781         REPLACE_CLOSEDIR here.
3782         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3783         readdir, rewinddir are declared.
3784         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3785         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3786         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3787         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3788         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3789         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3790         * modules/opendir: New file.
3791         * modules/readdir: New file.
3792         * modules/rewinddir: New file.
3793         * modules/closedir: New file.
3794         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3795         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3796         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3797         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3798         * NEWS: Mention the 'fchdir' change.
3799
3800 2011-09-11  Bruno Haible  <bruno@clisp.org>
3801
3802         asm-underscore.m4: Support for MSVC.
3803         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3804         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3805
3806 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3807
3808         Doc about crypt functions.
3809         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3810         needing for _GNU_SOURCE to get crypt.
3811         * doc/posix-functions/encrypt.texi: Likewise.
3812         * doc/posix-functions/setkey.texi: Likewise.
3813
3814 2011-09-11  Bruno Haible  <bruno@clisp.org>
3815
3816         doc: Update regarding MSVC 9.
3817         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3818         tested".
3819         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3820         * doc/posix-headers/*.texi: Likewise.
3821         * doc/pastposix-functions/*.texi: Likewise.
3822         * doc/glibc-functions/*.texi: Likewise.
3823         * doc/glibc-headers/*.texi: Likewise.
3824
3825 2011-09-11  Bruno Haible  <bruno@clisp.org>
3826
3827         unistd et al.: Don't assume <unistd.h> exists.
3828         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3829         does not exist.
3830         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3831         exist. But include <stdlib.h>.
3832         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3833         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3834         symlink() does not exist.
3835         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3836         include <io.h> instead.
3837         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3838         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3839         include <direct.h> instead.
3840         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3841         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3842         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3843         <io.h> instead.
3844         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3845         correctly if the system does not have hard links.
3846         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3847         <direct.h> instead.
3848         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3849         it when looking for function declarations.
3850         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3851         <direct.h> and <io.h> instead.
3852         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3853
3854 2011-09-11  Bruno Haible  <bruno@clisp.org>
3855
3856         strcase: Support for MSVC.
3857         * modules/strcase (Status, Notice): Remove obsoletion mark.
3858         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3859         * doc/posix-functions/strncasecmp.texi: Likewise.
3860
3861         strings: Don't assume <strings.h> exists.
3862         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3863         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3864         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3865         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3866
3867 2011-09-11  Bruno Haible  <bruno@clisp.org>
3868
3869         dirent: Don't assume <dirent.h> exists.
3870         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3871         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3872         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3873         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3874
3875 2011-09-11  Bruno Haible  <bruno@clisp.org>
3876
3877         Fix wint_t on MSVC.
3878         * lib/wchar.in.h (wint_t): On MSVC, override it.
3879         * lib/wctype.in.h (wint_t): Likewise.
3880         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3881         MSVC.
3882         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3883         * doc/posix-headers/wctype.texi: Likewise.
3884
3885 2011-09-11  Bruno Haible  <bruno@clisp.org>
3886
3887         sys_types: Fix typo.
3888         * lib/sys_types.in.h: Fix typo in comment.
3889         Reported by Paul Eggert.
3890
3891         Support for MSVC compiler: Ensure size_t gets defined.
3892         * modules/strings (Depends-on): Add 'sys_types'.
3893         * modules/sys_uio (Depends-on): Likewise.
3894         * lib/sys_uio.in.h: Update comment.
3895
3896         C++ tests for module 'sys_types'.
3897         * modules/sys_types-c++-tests: New file.
3898         * tests/test-sys_types-c++.cc: New file.
3899
3900         Tests for module 'sys_types'.
3901         * modules/sys_types-tests: New file.
3902         * tests/test-sys_types.c: New file.
3903
3904         New module 'sys_types'.
3905         * lib/sys_types.in.h: New file.
3906         * m4/sys_types_h.m4: New file.
3907         * modules/sys_types: New file.
3908         * doc/posix-headers/sys_types.texi: Mention the new module and the
3909         size_t problem on MSVC 9.
3910
3911 2011-09-11  Bruno Haible  <bruno@clisp.org>
3912
3913         Support for MSVC compiler: Avoid division by a literal 0.
3914         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3915         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3916         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3917         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3918         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3919         * tests/infinity.h: New file.
3920         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3921         on MSVC.
3922         * tests/test-ceilf1.c: Include infinity.h.
3923         (main): Use Infinityf.
3924         * tests/test-ceil1.c: Include infinity.h.
3925         (main): Use Infinityd.
3926         * tests/test-ceill.c: Include infinity.h.
3927         (main): Use Infinityl.
3928         * tests/test-dprintf-posix.c: Include infinity.h.
3929         (test_function): Use Infinityd.
3930         * tests/test-floorf1.c: Include infinity.h.
3931         (main): Use Infinityf.
3932         * tests/test-floor1.c: Include infinity.h.
3933         (main): Use Infinityd.
3934         * tests/test-floorl.c: Include infinity.h.
3935         (main): Use Infinityl.
3936         * tests/test-fprintf-posix.c: Include infinity.h.
3937         (test_function): Use Infinityd.
3938         * tests/test-frexp.c: Include infinity.h.
3939         (main): Use Infinityd.
3940         * tests/test-frexpl.c: Include infinity.h.
3941         (main): Use Infinityl.
3942         * tests/test-isfinite.c: Include infinity.h.
3943         (test_isfinitef): Use Infinityf.
3944         (test_isfinited): Use Infinityd.
3945         (test_isfinitel): Use Infinityl.
3946         * tests/test-isinf.c: Include infinity.h.
3947         (test_isinff): Use Infinityf.
3948         (test_isinfd): Use Infinityd.
3949         (test_isinfl): Use Infinityl.
3950         * tests/test-isnan.c: Include infinity.h.
3951         (test_float): Use Infinityf.
3952         (test_double): Use Infinityd.
3953         (test_long_double): Use Infinityl.
3954         * tests/test-isnanf.h: Include infinity.h.
3955         (main): Use Infinityf.
3956         * tests/test-isnand.h: Include infinity.h.
3957         (main): Use Infinityd.
3958         * tests/test-isnanl.h: Include infinity.h.
3959         (main): Use Infinityl.
3960         * tests/test-ldexpl.c: Include infinity.h.
3961         (main): Use Infinityl.
3962         * tests/test-printf-posix.h: Include infinity.h.
3963         (test_function): Use Infinityd.
3964         * tests/test-roundf1.c: Include infinity.h.
3965         (main): Use Infinityf.
3966         * tests/test-round1.c: Include infinity.h.
3967         (main): Use Infinityd.
3968         * tests/test-roundl.c: Include infinity.h.
3969         (main): Use Infinityl.
3970         * tests/test-signbit.c: Include infinity.h.
3971         (test_signbitf): Use Infinityf.
3972         (test_signbitd): Use Infinityd.
3973         (test_signbitl): Use Infinityl.
3974         * tests/test-snprintf-posix.h: Include infinity.h.
3975         (test_function): Use Infinityd, Infinityl.
3976         * tests/test-sprintf-posix.h: Include infinity.h.
3977         (test_function): Use Infinityd, Infinityl.
3978         * tests/test-truncf1.c: Include infinity.h.
3979         (main): Use Infinityf.
3980         * tests/test-trunc1.c: Include infinity.h.
3981         (main): Use Infinityd.
3982         * tests/test-truncl.c: Include infinity.h.
3983         (main): Use Infinityl.
3984         * tests/test-vasnprintf-posix.c: Include infinity.h.
3985         (test_function): Use Infinityd, Infinityl.
3986         * tests/test-vasprintf-posix.c: Include infinity.h.
3987         (test_function): Use Infinityd, Infinityl.
3988         * modules/ceilf-tests (Files): Add tests/infinity.h.
3989         * modules/ceil-tests (Files): Likewise.
3990         * modules/ceill-tests (Files): Likewise.
3991         * modules/dprintf-posix-tests (Files): Likewise.
3992         * modules/floorf-tests (Files): Likewise.
3993         * modules/floor-tests (Files): Likewise.
3994         * modules/floorl-tests (Files): Likewise.
3995         * modules/fprintf-posix-tests (Files): Likewise.
3996         * modules/frexp-tests (Files): Likewise.
3997         * modules/frexp-nolibm-tests (Files): Likewise.
3998         * modules/frexpl-tests (Files): Likewise.
3999         * modules/frexpl-nolibm-tests (Files): Likewise.
4000         * modules/isfinite-tests (Files): Likewise.
4001         * modules/isinf-tests (Files): Likewise.
4002         * modules/isnan-tests (Files): Likewise.
4003         * modules/isnanf-tests (Files): Likewise.
4004         * modules/isnanf-nolibm-tests (Files): Likewise.
4005         * modules/isnand-tests (Files): Likewise.
4006         * modules/isnand-nolibm-tests (Files): Likewise.
4007         * modules/isnanl-tests (Files): Likewise.
4008         * modules/isnanl-nolibm-tests (Files): Likewise.
4009         * modules/ldexpl-tests (Files): Likewise.
4010         * modules/printf-posix-tests (Files): Likewise.
4011         * modules/roundf-tests (Files): Likewise.
4012         * modules/round-tests (Files): Likewise.
4013         * modules/roundl-tests (Files): Likewise.
4014         * modules/signbit-tests (Files): Likewise.
4015         * modules/snprintf-posix-tests (Files): Likewise.
4016         * modules/sprintf-posix-tests (Files): Likewise.
4017         * modules/truncf-tests (Files): Likewise.
4018         * modules/trunc-tests (Files): Likewise.
4019         * modules/truncl-tests (Files): Likewise.
4020         * modules/vasnprintf-posix-tests (Files): Likewise.
4021         * modules/vasprintf-posix-tests (Files): Likewise.
4022         * modules/vdprintf-posix-tests (Files): Likewise.
4023         * modules/vfprintf-posix-tests (Files): Likewise.
4024         * modules/vprintf-posix-tests (Files): Likewise.
4025         * modules/vsnprintf-posix-tests (Files): Likewise.
4026         * modules/vsprintf-posix-tests (Files): Likewise.
4027         * modules/xprintf-posix-tests (Files): Likewise.
4028
4029 2011-09-11  Bruno Haible  <bruno@clisp.org>
4030
4031         Ensure pid_t gets defined.
4032         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4033         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4034         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4035         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4036         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4037         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4038         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4039         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4040         * tests/test-fcntl-h.c: Check that pid_t is defined.
4041         * tests/test-sched.c: Likewise.
4042         * tests/test-termios.c: Likewise.
4043         * tests/test-time.c: Likewise.
4044         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4045         * doc/posix-headers/signal.texi: Likewise.
4046         * doc/posix-headers/sys_types.texi: Likewise.
4047         * doc/posix-headers/time.texi: Likewise.
4048
4049 2011-09-11  Bruno Haible  <bruno@clisp.org>
4050
4051         acl: Fix compilation on Solaris 10 (older version).
4052         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4053         of ACE_EVERYONE.
4054         * lib/set-mode-acl.c (qset_acl): Likewise.
4055         Reported by Christian Jullien <eligis@orange.fr>.
4056
4057 2011-09-10  Bruno Haible  <bruno@clisp.org>
4058
4059         iconv, unsetenv: Add support for MSVC compiler.
4060         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4061         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4062
4063 2011-09-10  Bruno Haible  <bruno@clisp.org>
4064
4065         *printf: Add support for MSVC compiler.
4066         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4067         handles the exception caused by the %n directive. When cross-compiling,
4068         guess no on native Windows.
4069         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4070         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4071         emulate it through vsnprintf.
4072         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4073         * doc/posix-functions/dprintf.texi: Update documentation regarding
4074         MSVC 9.
4075         * doc/posix-functions/fprintf.texi: Likewise.
4076         * doc/posix-functions/printf.texi: Likewise.
4077         * doc/posix-functions/snprintf.texi: Likewise.
4078         * doc/posix-functions/sprintf.texi: Likewise.
4079         * doc/posix-functions/swprintf.texi: Likewise.
4080         * doc/posix-functions/vdprintf.texi: Likewise.
4081         * doc/posix-functions/vfprintf.texi: Likewise.
4082         * doc/posix-functions/vprintf.texi: Likewise.
4083         * doc/posix-functions/vsnprintf.texi: Likewise.
4084         * doc/posix-functions/vsprintf.texi: Likewise.
4085         * doc/glibc-functions/asprintf.texi: Likewise.
4086         * doc/glibc-functions/obstack_printf.texi: Likewise.
4087         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4088         * doc/glibc-functions/vasprintf.texi: Likewise.
4089
4090 2011-09-10  Bruno Haible  <bruno@clisp.org>
4091
4092         nocrash: Add support for native Windows.
4093         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4094
4095 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4096             Bruno Haible  <bruno@clisp.org>
4097
4098         absolute-header, include-next: Add support for MSVC compiler.
4099         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4100         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4101         directory separator in #line directives.
4102         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4103         recognize also backslash as directory separator in #line directives.
4104
4105 2011-09-08  Jim Meyering  <meyering@redhat.com>
4106
4107         maint.mk: mark the post-release commit log with "maint: " prefix
4108         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4109         one-line commit-log summary.
4110
4111 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4112             Bruno Haible  <bruno@clisp.org>
4113
4114         Doc about crypt functions.
4115         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4116         systems.
4117         * doc/posix-functions/encrypt.texi: Likewise.
4118         * doc/posix-functions/setkey.texi: Likewise.
4119
4120 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4121
4122         * lib/gc.h: Fix copyright header.
4123
4124 2011-09-07  Bruno Haible  <bruno@clisp.org>
4125
4126         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4127         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4128         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4129
4130 2011-09-07  Bruno Haible  <bruno@clisp.org>
4131
4132         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4133         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4134         * lib/freopen.c: Likewise.
4135         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4136         * lib/lstat.c: Likewise.
4137         * lib/stat.c: Likewise.
4138         * lib/open.c: Use different syntax for include of <fcntl.h>.
4139         * lib/openat.c: Include fcntl.h again, explicitly.
4140
4141 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4142
4143         parse-datetime: document the newly accepted format
4144         * doc/parse-datetime.texi (Combined date and time of day items):
4145         New section.
4146
4147 2011-09-06  Bruno Haible  <bruno@clisp.org>
4148
4149         acl: Fix a test failure on newer Solaris 10 with ZFS.
4150         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4151         ENOSYS as no ACL.
4152         Reported by Jim Meyering.
4153
4154 2011-09-06  Bruno Haible  <bruno@clisp.org>
4155
4156         acl: Update for AIX >= 5.3 with NFS.
4157         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4158         ENOSYS as no ACL.
4159
4160         acl: Fix a test failure on AIX >= 5.3 with NFS.
4161         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4162         as no ACL.
4163
4164 2011-09-06  Bruno Haible  <bruno@clisp.org>
4165
4166         acl: Fix a test failure on IRIX 6.5 with NFS.
4167         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4168         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4169         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4170         * lib/copy-acl.c (qcopy_acl): Likewise.
4171
4172 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4173
4174         openat: port to AIX 7.1 with large files
4175         AIX 7.1 does a "#define openat open64at" if large files are in use,
4176         so we can't simply #undef openat.  Use the orig_openat trick (similar
4177         to orig_open in lib/open.c) to work around the problem.  Problem
4178         reported by Kevin Brott for GNU tar, in the thread containing
4179         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4180         * lib/openat.c (__need_system_fcntl_h): Define first.
4181         Include <fcntl.h> and <sys/types.h> before undefining.
4182         (orig_openat) [HAVE_OPENAT]: New inline function.
4183         (openat) [HAVE_OPENAT]: Do not undef.
4184         (rpl_openat): Use orig_openat, not openat.
4185
4186 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4187             Bruno Haible  <bruno@clisp.org>
4188
4189         acl: Avoid errors on NonStop Kernel.
4190         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4191         ENOTSUP errors.
4192
4193 2011-09-05  Bruno Haible  <bruno@clisp.org>
4194
4195         acl: Clean up Solaris code.
4196         * lib/acl-internal.h: Remove no-op #if.
4197         * lib/file-has-acl.c: Likewise.
4198         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4199         * lib/copy-acl.c (qcopy_acl): Likewise.
4200
4201 2011-09-05  Bruno Haible  <bruno@clisp.org>
4202
4203         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4204         binaries built on the original Solaris 10.
4205         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4206         trivial.
4207
4208 2011-09-05  Bruno Haible  <bruno@clisp.org>
4209
4210         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4211         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4212         10.
4213         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4214         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4215         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4216         instead of acl_get, facl_get, acl_set, facl_set.
4217
4218 2011-09-05  Bruno Haible  <bruno@clisp.org>
4219
4220         copy-file: Try unit tests on more file systems.
4221         * tests/test-copy-file-1.sh: New file.
4222         * tests/test-copy-file-2.sh: New file.
4223         * modules/copy-file-tests (Files): Add them.
4224         (Makefile.am): Add them to TESTS.
4225
4226         acl: Try unit tests on more file systems.
4227         * tests/test-file-has-acl-1.sh: New file.
4228         * tests/test-file-has-acl-2.sh: New file.
4229         * tests/test-set-mode-acl-1.sh: New file.
4230         * tests/test-set-mode-acl-2.sh: New file.
4231         * tests/test-copy-acl-1.sh: New file.
4232         * tests/test-copy-acl-2.sh: New file.
4233         * modules/acl-tests (Files): Add them.
4234         (Makefile.am): Add them to TESTS.
4235
4236 2011-09-04  Bruno Haible  <bruno@clisp.org>
4237
4238         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4239         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4240         10.
4241         (OLD_ALLOW, OLD_DENY): New macros.
4242         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4243         ACE_ACCESS_ALLOWED_ACE_TYPE.
4244         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4245         ACE_ACCESS_DENIED_ACE_TYPE.
4246         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4247         (NEW_ACE_EXECUTE): Fix value.
4248         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4249         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4250         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4251         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4252         NEW_ACE_SYNCHRONIZE): New macros.
4253         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4254         instead of acl_fromtext, acl_set, facl_set.
4255         Fixes a coreutils/tests/cp/perm failure.
4256
4257 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4258
4259         openat: test for fstatat (..., 0) bug
4260         Further testing with tar suggests that fstatat (..., 0)
4261         does not work in general, on AIX 7.1; see
4262         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4263         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4264         replacement fstatat (which is what older AIX releases were using
4265         anyway).
4266         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4267         use is now changed to orig_fstatat.  This was probably the right
4268         thing to do anyway.
4269         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4270         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4271         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4272         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4273         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4274         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4275         if the bug is found.
4276
4277         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4278         This tests for another fstatat bug on AIX 7.1:
4279         fstatat (AT_FDCWD, ..., 0) does not work.  See
4280         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4281         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4282         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4283         (rpl_fstatat): Adjust so that it works around either (or both)
4284         bugs if present.
4285         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4286
4287 2011-09-03  Karl Berry  <karl@gnu.org>
4288
4289         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4290         in index entries.
4291
4292 2011-09-02  Bruno Haible  <bruno@clisp.org>
4293
4294         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4295         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4296         values of AR, ARFLAGS, RANLIB.
4297         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4298
4299 2011-09-02  Bruno Haible  <bruno@clisp.org>
4300
4301         Find 'ar' program that fits with --host argument.
4302         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4303
4304 2011-09-02  Bruno Haible  <bruno@clisp.org>
4305
4306         tests: init.sh: Support any non-GNU diff.
4307         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4308         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4309         Solaris 8.
4310
4311 2011-09-02  Bruno Haible  <bruno@clisp.org>
4312
4313         tests: init.sh: work also with any non-GNU diff that supports -u
4314         * tests/init.sh: Relax check for diff -u support.
4315         Rather than checking for GNU diff via --version, simply check
4316         for support for -u itself.  Useful at least on OpenBSD 4.9,
4317         AIX 7.1, IRIX 6.5, and Solaris 10.
4318
4319 2011-09-01  Bruno Haible  <bruno@clisp.org>
4320
4321         strtoimax, strtoumax: Document problem on HP-UX 11.
4322         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4323         * doc/posix-functions/strtoumax.texi: Likewise.
4324
4325 2011-09-01  Bruno Haible  <bruno@clisp.org>
4326
4327         strtoumax: Avoid link error on OSF/1 with DTK cc.
4328         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4329         defined as a function.
4330         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4331         strtoumax is defined, not whether it is declared.
4332
4333 2011-09-01  Bruno Haible  <bruno@clisp.org>
4334
4335         strtoimax: Avoid link error on OSF/1 with DTK cc.
4336         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4337         defined as a function.
4338         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4339         strtoimax is defined, not whether it is declared.
4340
4341 2011-09-01  Bruno Haible  <bruno@clisp.org>
4342
4343         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4344         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4345         as a function.
4346         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4347         whether it is declared.
4348
4349 2011-09-01  Bruno Haible  <bruno@clisp.org>
4350
4351         imaxabs: Avoid link error on OSF/1 with DTK cc.
4352         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4353         as a function.
4354         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4355         whether it is declared.
4356
4357 2011-09-01  Bruno Haible  <bruno@clisp.org>
4358
4359         Tests for module 'strtoumax'.
4360         * modules/strtoumax-tests: New file.
4361         * tests/test-strtoumax.c: New file.
4362
4363         Tests for module 'strtoimax'.
4364         * modules/strtoimax-tests: New file.
4365         * tests/test-strtoimax.c: New file.
4366
4367         Tests for module 'imaxdiv'.
4368         * modules/imaxdiv-tests: New file.
4369         * tests/test-imaxdiv.c: New file.
4370
4371         Tests for module 'imaxabs'.
4372         * modules/imaxabs-tests: New file.
4373         * tests/test-imaxabs.c: New file.
4374
4375 2011-09-01  Bruno Haible  <bruno@clisp.org>
4376
4377         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4378         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4379         pthread_create.
4380
4381 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4382
4383         openat: work around AIX 7.1 fstatat issue
4384         This should fix the problem that was not properly fixed
4385         in the previous change, dated 2011-08-30.
4386         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4387         __need_system_stat_h defined.
4388         (orig_fstatat) [HAVE_FSTATAT]: New function.
4389         (rpl_fstatat): Go back to the old way of doing things,
4390         except call orig_fstatat instead of fstatat.
4391         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4392         Remove unnecessary check whether fstatat fills in st_size etc.
4393
4394 2011-09-01  Bruno Haible  <bruno@clisp.org>
4395
4396         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4397         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4398         just include the system's header.
4399
4400 2011-08-31  Jim Meyering  <meyering@redhat.com>
4401
4402         tests: avoid spurious assertion failure in test-float.c on ppc64
4403         * tests/test-float.c (test_long_double): Comment out an assertion,
4404         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4405         with gcc-4.4.4.
4406
4407         maint: indent with spaces, not TABs
4408         I need to get in the habit of running gnulib's "make check".
4409         Both of these would have been caught.
4410         * m4/largefile.m4: Indent with spaces, not TABs.
4411         * lib/parse-datetime.y (iso_8601_time): Likewise.
4412         Spotted by Pádraig Brady.
4413
4414         test-parse-datetime.c: accommodate a relatively strict gcc warning
4415         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4416         to avoid a warning from gcc's -Werror=missing-declarations.
4417         Insert a few spaces-before-funcall-parenthesis.
4418
4419 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4420
4421         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4422         The parser now accepts ISO 8601 date-time strings with "T" as the
4423         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4424         with a space between the date and time strings.  Now it also parses
4425         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4426         variants like "2004-02-29T16:21:42.333-07:00"
4427         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4428         of day representation using the 'T' separator character.
4429         * doc/parse-datetime.texi (General date syntax): replace use of
4430         deprecated --iso-8601 option with --rfc-3339 in example of date
4431         command output formats that can be parsed.
4432         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4433         lib/parse-datetime.y.
4434         (gmt_offset): New function.
4435         (main): Add additional test cases to validate ISO8601 extended
4436         date and time of day parsing.
4437
4438 2011-08-31  Bruno Haible  <bruno@clisp.org>
4439
4440         freopen: Documentation.
4441         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4442         name.
4443         Reported by Claudio Bley <claudio.bley@gmail.com>.
4444
4445 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4446
4447         freopen: Don't crash if the filename argument is NULL.
4448         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4449         NULL.
4450
4451 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4452
4453         openat: work around AIX 7.1 fstatat bug
4454         Problem reported by Kevin Brott for GNU tar, in the thread containing
4455         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4456         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4457         FSTATAT_ST_SIZE_ETC_BROKEN.
4458         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4459         rpl_fstatat.
4460         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4461         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4462         AC_CHECK_FUNCS_ONCE for fstatat.
4463         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4464         fchmodat, mkdirat, openat and unlinkat.
4465
4466 2011-08-30  Bruno Haible  <bruno@clisp.org>
4467
4468         Avoid endless recursions if config.h includes some header files.
4469         * lib/fopen.c (__need_FILE): Define already before including config.h.
4470         * lib/freopen.c (__need_FILE): Likewise.
4471         * lib/open.c (__need_system_fcntl_h): Likewise.
4472         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4473         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4474         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4475
4476 2011-08-25  Karl Berry  <karl@gnu.org>
4477
4478         * config/srclist.txt (ylwrap): new try.
4479         * build-aux/ylwrap: new file.
4480
4481 2011-08-23  Bruno Haible  <bruno@clisp.org>
4482
4483         tmpdir: Use a good default directory on native Windows.
4484         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4485         (P_tmpdir): Default to _P_tmpdir on native Windows.
4486         (path_search): On native Windows, try the value returned by GetTempPath
4487         before trying P_tmpdir.
4488         * modules/tmpdir (Depends-on): Add pathmax.
4489         Suggested by John Darrington <john@darrington.wattle.id.au>.
4490
4491 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4492
4493         doc: fix typo in README-release
4494         * top/README-release: Capitalize first word of a sentence.
4495
4496 2011-08-19  Jim Meyering  <meyering@redhat.com>
4497
4498         fts: do not exhaust memory when processing million-entry directories
4499         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4500         directory would require about 256*N bytes of memory.  Thus, it was
4501         easy to construct a directory too large to be processed by any of
4502         those tools.  With this change, fts' maximum memory utilization is
4503         now limited to around 30MB.
4504         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4505         (fts_read): When we've processed the final entry (i.e., when
4506         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4507         using the parent entry to read any remaining entries.  Dispatch
4508         depending on what fts_build returns:
4509         - NULL+stop, aka failure: stop
4510         - NULL otherwise: move up in the dir hierarchy
4511         - non-NULL: handle this new entry
4512         (fts_build): Declare and use new local, continue_readdir.
4513         Prepare to be called from fts_read, when the entries
4514         from a partially-read directory have just been exhausted.
4515         In that case, we'll skip the opendir and instead use the parent's
4516         fts_dirp and derive dir_fd from that.
4517         Finally, in the readdir loop, if we read max_entries entries,
4518         exit the loop ensuring *not* to call closedir.  This is required
4519         so that fts_dirp can be reused on a subsequent call.
4520         Prompted by Ben England's report of memory exhaustion in find
4521         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4522
4523         maint: fts: move decl of `dp' down into while loop; split a long line
4524         * lib/fts.c (fts_build): No semantic change.
4525
4526         fts: add/use new struct member, fts_dirp
4527         We are about to use this to manage any directory with
4528         too many entries to read all of them into memory at once.
4529         To do that, we'll need to save the DIR* pointer in each
4530         affected FTSENT struct.
4531         * lib/fts_.h: Include <dirent.h>.
4532         (struct FTSENT) [fts_dirp]: New member.
4533         * lib/fts.c (closedir_and_clear): Define.
4534         Use it in place of closedir so that we are sure to
4535         clear the new fts_dirp member when done with it.
4536         (fts_alloc): Initialize the new member.
4537         (fts_lfree): Free, if needed.
4538
4539         maint: fts: give __opendir2 a new parameter and rename
4540         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4541         than surreptitiously using sole caller's "dir_fd".
4542         (fts_opendir): Rename from __opendir2.
4543
4544         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4545         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4546
4547         maint: fts.c: correct off-by-one indentation
4548         * lib/fts.c (fts_build): Correct indentation, change style
4549         of a couple of block comments, and bracing style.
4550
4551         maint: fts.c: move __opendir2 #define "up" out of function body
4552         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4553
4554         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4555         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4556         out for a long time and besides was useful only on BSD systems.
4557
4558 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4559
4560         regex: port to Stratus OpenVOS
4561         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4562         define to empty, rather than attempting nonportable optimizations.
4563         Problem reported by Paul Green in:
4564         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4565         and fix suggested by Eric Blake in:
4566         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4567
4568 2011-08-17  Eric Blake  <eblake@redhat.com>
4569
4570         getcwd: fix test failures on mingw
4571         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4572         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4573         test if long directory cannot be created, and allow mingw errno.
4574
4575         getcwd-lgpl: fix m4 to match relaxed test for BSD
4576         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4577         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4578         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4579         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4580         signature problem.
4581
4582         getcwd: fix compilation on mingw64
4583         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4584         getcwd.
4585         Reported by Marc-André Lureau.
4586
4587         pipe2: silence compiler warning
4588         * lib/pipe2.c (pipe2): Hide label if it is not used.
4589
4590 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4591
4592         relocatable-prog: fix link error
4593         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4594         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4595         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4596         into modules/relocatable-lib without noticing that
4597         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4598         also needs to build relocatable.c.
4599
4600 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4601
4602         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4604         shell code: it contained a 'break' that was not in a loop.
4605         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4606         via a shell-language loop; this may have been true in old Autoconf
4607         versions, but it's not true in Autoconf 2.68.  I found this bug
4608         when testing coreutils git on Solaris 8, whose shell complains
4609         about the syntax error.
4610
4611 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4612
4613         * lib/base64.c: Fix comment to reference RFC 4648.
4614         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4615         <gvtulder@gmail.com>.
4616
4617 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4618
4619         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4620
4621         po/Makefile.in.in: fix make -q problem
4622         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4623         rule, since there's no file named 'check-macro-version' and its
4624         use as a file breaks make -q.
4625         (all): Don't depend on check-macro-version.
4626         (CHECK_MACRO_VERSION): New macro.
4627         (stamp-po): Use it.
4628
4629         configmake: fix make -q problem
4630         * modules/configmake (configmake.h): Update configmake.h's time stamp
4631         even if the file does not change.  Otherwise, 'make -q' fails.
4632         Problem reported by Simon Josefsson in
4633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4634
4635 2011-08-11  Jim Meyering  <meyering@redhat.com>
4636
4637         git-version-gen: correct the advice in a comment
4638         * build-aux/git-version-gen: Correct comment.
4639         Don't recommend to list .tarball-version in .gitignore.
4640
4641 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4642
4643         base64: fix off-by-one buffer size bug
4644         Problem and (trivial) fix reported by Gijs van Tulder in
4645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4646         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4647         * tests/test-base64.c (main): Catch the bug.
4648
4649 2011-08-10  Eric Blake  <eblake@redhat.com>
4650
4651         closein: correct comments
4652         * lib/closein.c (close_stdin): Improve comments.
4653
4654 2011-08-09  Bruno Haible  <bruno@clisp.org>
4655
4656         More tests for 'fseeko'.
4657         * tests/test-fseeko3.c: New file, from Eric Blake.
4658         * tests/test-fseeko3.sh: New file.
4659         * modules/fseeko-tests (Files): Add them.
4660         (TESTS): Add test-fseeko3.sh.
4661         (check_PROGRAMS): Add test-fseeko3.
4662
4663 2011-08-09  Eric Blake  <eblake@redhat.com>
4664
4665         fseeko: remove unneeded hack
4666         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4667
4668         fseeko: fix bug on glibc
4669         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4670         Reported by John W. Eaton.
4671
4672 2011-08-08  Bruno Haible  <bruno@clisp.org>
4673
4674         unictype/base: Fix interoperability with preinstalled libunistring.
4675         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4676         Reported by Simon Josefsson.
4677
4678 2011-08-08  Bruno Haible  <bruno@clisp.org>
4679
4680         iswblank: Detect declaration correctly.
4681         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4682         AC_CHECK_DECLS invocation.
4683
4684 2011-08-08  Bruno Haible  <bruno@clisp.org>
4685
4686         tcgetsid: Detect declaration correctly.
4687         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4688         AC_CHECK_DECLS invocation.
4689         Reported by Simon Josefsson.
4690
4691 2011-08-08  Eric Blake  <eblake@redhat.com>
4692
4693         largefile: fix typo that regressed large file support
4694         * modules/largefile (configure.ac-early): Fix section name.
4695
4696 2011-08-06  Karl Berry  <karl@gnu.org>
4697
4698         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4699         a separate module.
4700
4701 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4702
4703         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4704         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4705         get prototype for free.
4706
4707 2011-08-04  Bruno Haible  <bruno@clisp.org>
4708
4709         Tests for module 'pathmax'.
4710         * modules/pathmax-tests: New file.
4711         * tests/test-pathmax.c: New file.
4712
4713         canonicalize-lgpl: Support larger filenames on the Hurd.
4714         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4715         Reported by Paul Eggert.
4716
4717         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4718         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4719         * lib/chdir-long.h: Include pathmax.h.
4720         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4721         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4722         (PATH_MAX): Remove code that is done by pathmax.h.
4723         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4724         * lib/tmpfile.c: Add a comment.
4725         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4726         * modules/chdir-long (Depends-on): Add pathmax.
4727         * modules/getcwd (Depends-on): Add pathmax.
4728         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4729         is not defined.
4730         * doc/posix-headers/limits.texi: Mention the pathmax module.
4731         * NEWS: Mention the change.
4732
4733 2011-08-02  Bruno Haible  <bruno@clisp.org>
4734
4735         pthread_sigmask: Actually use results of gl_THREADLIB.
4736         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4737         gl_THREADLIB, not gl_[]THREADLIB.
4738         Reported by Eric Blake.
4739
4740 2011-08-02  Jim Meyering  <meyering@redhat.com>
4741
4742         maint.mk: relax the default _gl_TS_function_match regexp
4743         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4744         space between function name and "(" in an "extern" declaration.
4745         That would fail to match a decl with no space there: extern void foo();
4746
4747 2011-07-31  Iain Nicol  <iain@thenicols.net>
4748
4749         git-version-gen: document that EXTRA_DIST must include .version
4750         * build-aux/git-version-gen: In the how-to-use comment, document
4751         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4752         will fail when run from an unpacked distribution tarball.
4753
4754 2011-08-01  Bruno Haible  <bruno@clisp.org>
4755
4756         wctype-h: Fix last change.
4757         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4758         REPLACE_TOWLOWER to 0.
4759         Reported by Sam Steingold <sds@gnu.org>.
4760
4761 2011-07-31  Bruno Haible  <bruno@clisp.org>
4762
4763         frexpl: Update autoconf test.
4764         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4765         according to changes of 2011-06-20.
4766
4767 2011-07-31  Bruno Haible  <bruno@clisp.org>
4768
4769         sys_utsname: Add support for Minix.
4770         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4771         <sys/utsname.h>.
4772         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4773         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4774
4775 2011-07-31  Bruno Haible  <bruno@clisp.org>
4776
4777         strings: Add support for Minix.
4778         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4779         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4780         * doc/posix-headers/strings.texi: Document the Minix problem.
4781
4782 2011-07-31  Bruno Haible  <bruno@clisp.org>
4783
4784         wctype-h: Add support for Minix.
4785         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4786         REPLACE_TOWLOWER.
4787         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4788         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4789         REPLACE_ISWCNTRL.
4790
4791 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4792
4793         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4794         This is a performance improvement for 64-bit hosts: it causes the
4795         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4796
4797 2011-07-31  Bruno Haible  <bruno@clisp.org>
4798
4799         stdioext: Add support for Minix.
4800         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4801         * lib/fpurge.c (fpurge): Likewise.
4802         * lib/freadahead.c (freadahead): Likewise.
4803         * lib/freadable.c (freadable): Likewise.
4804         * lib/freading.c (freading): Likewise.
4805         * lib/freadptr.c (freadptr): Likewise.
4806         * lib/freadseek.c (freadptrinc): Likewise.
4807         * lib/fseeko.c (rpl_fseeko): Likewise.
4808         * lib/fseterr.c (fseterr): Likewise.
4809         * lib/fwritable.c (fwritable): Likewise.
4810         * lib/fwriting.c (fwriting): Likewise.
4811         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4812         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4813
4814 2011-07-31  Bruno Haible  <bruno@clisp.org>
4815
4816         errno: Port to Minix.
4817         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4818         ECONNABORTED are defined.
4819         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4820         GNULIB_defined_ECONNABORTED): New macros.
4821         * lib/strerror-override.h (strerror_override): Test also
4822         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4823         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4824         ECONNABORTED.
4825         * doc/posix-headers/errno.texi: Mention the Minix problem.
4826
4827 2011-07-31  Bruno Haible  <bruno@clisp.org>
4828
4829         Work around declaration collisions on Minix.
4830         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4831         defined, set REPLACE_MBSINIT.
4832         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4833         defined, set REPLACE_MBRTOWC.
4834         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4835         set REPLACE_MBRLEN.
4836         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4837         defined, set REPLACE_MBSRTOWCS.
4838         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4839         defined, set REPLACE_WCRTOMB.
4840         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4841         defined, set REPLACE_WCSRTOMBS.
4842
4843 2011-07-31  Bruno Haible  <bruno@clisp.org>
4844
4845         Add support for Minix with ACK compiler.
4846         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4847         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4848         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4849
4850 2011-07-31  Bruno Haible  <bruno@clisp.org>
4851
4852         Documentation about Minix.
4853         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4854         * doc/glibc-headers/*.texi: Likewise.
4855         * doc/posix-functions/*.texi: Likewise.
4856         * doc/glibc-functions/*.texi: Likewise.
4857
4858 2011-07-31  Bruno Haible  <bruno@clisp.org>
4859
4860         snippet/warn-on-use: Fix indentation.
4861         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4862
4863 2011-07-25  Jim Meyering  <meyering@redhat.com>
4864
4865         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4866         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4867         commands.
4868
4869 2011-07-27  Jim Meyering  <meyering@redhat.com>
4870
4871         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4872         * top/maint.mk (gl_extract_significant_defines_): Now that
4873         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4874         gnulib/lib/signal.in.h, and now that we recommend to
4875         define-if-undefined those two symbols in application code,
4876         we must filter them out of the "significant" list.
4877         This avoids a "make syntax-check" failure in coreutils.
4878
4879 2011-07-26  Eric Blake  <eblake@redhat.com>
4880
4881         warnings: add comments about previous patch
4882         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4883         * m4/include_next.m4: Likewise.
4884         * m4/warn-on-use.m4: Likewise.
4885         * m4/warnings.m4: Likewise, and simplify use.
4886         Suggested by Stefano Lattarini.
4887
4888         include-next, warnings: support older autoconf
4889         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4890         AS_VAR_PUSHDEF in a way that works with older autoconf.
4891         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4892         Reported by Daniel P. Berrange.
4893
4894 2011-07-25  Bruno Haible  <bruno@clisp.org>
4895
4896         fseek, ftell: Fix doc.
4897         * doc/posix-functions/fseek.texi: Reword statement about
4898         AC_SYS_LARGEFILE.
4899         * doc/posix-functions/ftell.texi: Likewise.
4900
4901 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4902             Bruno Haible  <bruno@clisp.org>
4903
4904         Add dependencies to the 'largefile' module.
4905         * modules/fopen (Depends-on): Add 'largefile'.
4906         * modules/freopen (Depends-on): Likewise.
4907         * modules/fseeko (Depends-on): Likewise.
4908         * modules/ftello (Depends-on): Likewise.
4909         * modules/glob (Depends-on): Likewise.
4910         * modules/lseek (Depends-on): Likewise.
4911         * modules/lstat (Depends-on): Likewise.
4912         * modules/mkostemp (Depends-on): Likewise.
4913         * modules/mkostemps (Depends-on): Likewise.
4914         * modules/mkstemp (Depends-on): Likewise.
4915         * modules/mkstemps (Depends-on): Likewise.
4916         * modules/open (Depends-on): Likewise.
4917         * modules/openat (Depends-on): Likewise.
4918         * modules/pread (Depends-on): Likewise.
4919         * modules/pwrite (Depends-on): Likewise.
4920         * modules/scandir (Depends-on): Likewise.
4921         * modules/stat (Depends-on): Likewise.
4922         * modules/tmpfile (Depends-on): Likewise.
4923         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4924         since the containing module now depends on the largefile module.
4925         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4926         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4927         off_t is fixed by gnulib.
4928         * doc/posix-functions/freopen.texi: Likewise.
4929         * doc/posix-functions/fseeko.texi: Likewise.
4930         * doc/posix-functions/fstatat.texi: Likewise.
4931         * doc/posix-functions/ftello.texi: Likewise.
4932         * doc/posix-functions/glob.texi: Likewise.
4933         * doc/posix-functions/lseek.texi: Likewise.
4934         * doc/posix-functions/lstat.texi: Likewise.
4935         * doc/posix-functions/mkstemp.texi: Likewise.
4936         * doc/posix-functions/open.texi: Likewise.
4937         * doc/posix-functions/openat.texi: Likewise.
4938         * doc/posix-functions/pread.texi: Likewise.
4939         * doc/posix-functions/pwrite.texi: Likewise.
4940         * doc/posix-functions/scandir.texi: Likewise.
4941         * doc/posix-functions/stat.texi: Likewise.
4942         * doc/posix-functions/tmpfile.texi: Likewise.
4943         * doc/glibc-functions/mkostemp.texi: Likewise.
4944         * doc/glibc-functions/mkostemps.texi: Likewise.
4945         * doc/glibc-functions/mkstemps.texi: Likewise.
4946
4947 2011-07-25  Bruno Haible  <bruno@clisp.org>
4948
4949         fcntl: Move AC_LIBOBJ invocation to module description.
4950         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4951         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4952
4953         fcntl: Remove call-in from fchdir.m4.
4954         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4955         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4956
4957         dup3: Remove potential call-in from fchdir.m4.
4958         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4959         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4960
4961         dup2: Move AC_LIBOBJ invocation to module description.
4962         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4963         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4964         Don't invoke AC_LIBOBJ.
4965         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4966
4967         dup2: Remove call-in from fchdir.m4.
4968         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4970
4971         fclose: Move AC_LIBOBJ invocation to module description.
4972         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4973         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4974         to 1.
4975         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4976
4977         fclose: Remove call-in from close.m4.
4978         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4979         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4980
4981         close: Move AC_LIBOBJ invocation to module description.
4982         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4983         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4984         1.
4985         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4986
4987         close: Remove call-in from fchdir.m4.
4988         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4990
4991         open: Move AC_LIBOBJ invocation to module description.
4992         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4993         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4994         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4995
4996         open: Remove call-in from fchdir.m4.
4997         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4999
5000         fchdir: Start to remove gl_REPLACE_* idiom.
5001         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5002         (gl_FUNC_FCHDIR): Invoke it.
5003
5004 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5005
5006         * lib/ftell.c (ftell): Comment out cast.
5007
5008         close: use gl_REPLACE_FCLOSE only if defined
5009         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5010         is defined.  The close module doesn't depend on the fclose module
5011         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5013         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5014
5015 2011-07-24  Jim Meyering  <meyering@redhat.com>
5016
5017         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5018         * tests/test-select.h (test_function): Declare as "static".
5019
5020 2011-07-24  Bruno Haible  <bruno@clisp.org>
5021
5022         doc: Mention the effects of AC_SYS_LARGEFILE.
5023         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5024         on this function.
5025         * doc/posix-functions/aio_error.texi: Likewise.
5026         * doc/posix-functions/aio_fsync.texi: Likewise.
5027         * doc/posix-functions/aio_read.texi: Likewise.
5028         * doc/posix-functions/aio_return.texi: Likewise.
5029         * doc/posix-functions/aio_suspend.texi: Likewise.
5030         * doc/posix-functions/aio_write.texi: Likewise.
5031         * doc/posix-functions/fgetpos.texi: Likewise.
5032         * doc/posix-functions/fopen.texi: Likewise.
5033         * doc/posix-functions/freopen.texi: Likewise.
5034         * doc/posix-functions/fsetpos.texi: Likewise.
5035         * doc/posix-functions/fstatvfs.texi: Likewise.
5036         * doc/posix-functions/ftruncate.texi: Likewise.
5037         * doc/posix-functions/ftw.texi: Likewise.
5038         * doc/posix-functions/getrlimit.texi: Likewise.
5039         * doc/posix-functions/glob.texi: Likewise.
5040         * doc/posix-functions/lio_listio.texi: Likewise.
5041         * doc/posix-functions/lockf.texi: Likewise.
5042         * doc/posix-functions/mkstemp.texi: Likewise.
5043         * doc/posix-functions/mmap.texi: Likewise.
5044         * doc/posix-functions/nftw.texi: Likewise.
5045         * doc/posix-functions/openat.texi: Likewise.
5046         * doc/posix-functions/opendir.texi: Likewise.
5047         * doc/posix-functions/posix_fadvise.texi: Likewise.
5048         * doc/posix-functions/posix_fallocate.texi: Likewise.
5049         * doc/posix-functions/pread.texi: Likewise.
5050         * doc/posix-functions/pwrite.texi: Likewise.
5051         * doc/posix-functions/readdir.texi: Likewise.
5052         * doc/posix-functions/readdir_r.texi: Likewise.
5053         * doc/posix-functions/rewinddir.texi: Likewise.
5054         * doc/posix-functions/scandir.texi: Likewise.
5055         * doc/posix-functions/seekdir.texi: Likewise.
5056         * doc/posix-functions/setrlimit.texi: Likewise.
5057         * doc/posix-functions/statvfs.texi: Likewise.
5058         * doc/posix-functions/telldir.texi: Likewise.
5059         * doc/posix-functions/tmpfile.texi: Likewise.
5060         * doc/posix-functions/truncate.texi: Likewise.
5061         * doc/glibc-functions/fallocate.texi: Likewise.
5062         * doc/glibc-functions/fstatfs.texi: Likewise.
5063         * doc/glibc-functions/fts_children.texi: Likewise.
5064         * doc/glibc-functions/fts_read.texi: Likewise.
5065         * doc/glibc-functions/getdirentries.texi: Likewise.
5066         * doc/glibc-functions/mkostemp.texi: Likewise.
5067         * doc/glibc-functions/mkostemps.texi: Likewise.
5068         * doc/glibc-functions/mkstemps.texi: Likewise.
5069         * doc/glibc-functions/preadv.texi: Likewise.
5070         * doc/glibc-functions/pwritev.texi: Likewise.
5071         * doc/glibc-functions/sendfile.texi: Likewise.
5072         * doc/glibc-functions/statfs.texi: Likewise.
5073
5074 2011-07-24  Bruno Haible  <bruno@clisp.org>
5075
5076         doc: Fix typo.
5077         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5078
5079 2011-07-24  Bruno Haible  <bruno@clisp.org>
5080
5081         doc: Mention fsusage.
5082         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5083
5084 2011-07-24  Bruno Haible  <bruno@clisp.org>
5085
5086         doc: Mention new glibc headers and functions.
5087         * doc/glibc-headers/gshadow.texi: New file.
5088         * doc/glibc-functions/endsgent.texi: New file.
5089         * doc/glibc-functions/fgetsgent.texi: New file.
5090         * doc/glibc-functions/fgetsgent_r.texi: New file.
5091         * doc/glibc-functions/getsgent.texi: New file.
5092         * doc/glibc-functions/getsgent_r.texi: New file.
5093         * doc/glibc-functions/getsgnam.texi: New file.
5094         * doc/glibc-functions/getsgnam_r.texi: New file.
5095         * doc/glibc-functions/putsgent.texi: New file.
5096         * doc/glibc-functions/setsgent.texi: New file.
5097         * doc/glibc-functions/sgetsgent.texi: New file.
5098         * doc/glibc-functions/sgetsgent_r.texi: New file.
5099         * doc/glibc-functions/malloc_info.texi: New file.
5100         * doc/glibc-functions/preadv.texi: New file.
5101         * doc/glibc-functions/pwritev.texi: New file.
5102         * doc/glibc-functions/register_printf_modifier.texi: New file.
5103         * doc/glibc-functions/register_printf_specifier.texi: New file.
5104         * doc/glibc-functions/register_printf_type.texi: New file.
5105         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5106         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5107         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5108         * doc/glibc-functions/pthread_getname_np.texi: New file.
5109         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5110         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5111         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5112         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5113         * doc/glibc-functions/pthread_setname_np.texi: New file.
5114         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5115         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5116         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5117         * doc/glibc-functions/qsort_r.texi: New file.
5118         * doc/glibc-functions/quick_exit.texi: New file.
5119         * doc/glibc-functions/syncfs.texi: New file.
5120         * doc/gnulib.texi: Include them.
5121         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5122         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5123         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5124         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5125         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5126         * doc/glibc-functions/execvpe.texi: Likewise.
5127
5128 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5129
5130         ftell: don't include <unistd.h>
5131         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5132         guaranteed to define off_t, and the ftell module depends on the
5133         stdio module.
5134
5135         ftell: do not assume wraparound signed arithmetic
5136         * lib/ftell.c: Include <limits.h>.
5137         (ftell): Don't assume wraparound signed arithmetic.
5138
5139 2011-07-24  Bruno Haible  <bruno@clisp.org>
5140
5141         close: No longer depend on module 'fclose'.
5142         * modules/close (Depends-on): Remove fclose.
5143         * NEWS: Mention the change.
5144         Suggested by Sam Steingold <sds@gnu.org>.
5145
5146 2011-07-24  Bruno Haible  <bruno@clisp.org>
5147
5148         fsusage: Enable large volume support on AIX >= 5.2.
5149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5150         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5151         instead of STAT_STATVFS.
5152         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5153
5154         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5155         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5156         f_blocks field only on MacOS X.
5157
5158         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5159         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5160         * modules/fsusage (Depends-on): Add largefile.
5161
5162 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5163
5164         * README: Modernize discussion of signed integers.
5165         Assuming overflow wraparound is no longer safe.
5166         Mention ones' complement and signed magnitude.
5167
5168 2011-07-22  Bruno Haible  <bruno@clisp.org>
5169
5170         select tests, pselect tests: Refactor.
5171         * tests/test-select.h: New file, extracted from tests/test-select.c.
5172         (select_fn): New type.
5173         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5174         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5175         test_pipe): Add my_select argument.
5176         (test_function): Renamed from main. Add my_select argument.
5177         * tests/test-select.c: Move most code to tests/test-select.h. Include
5178         test-select.h.
5179         * modules/select-tests (Files): Add tests/test-select.h.
5180         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5181         (my_select, main): New functions.
5182         * modules/pselect-tests (Files): Add tests/test-select.h,
5183         tests/macros.h, tests/signature.h.
5184         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5185         (configure.ac): Check for <sys/wait.h>.
5186
5187 2011-07-22  Bruno Haible  <bruno@clisp.org>
5188
5189         sys_select tests: Check the signature of FD_*.
5190         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5191         signature tests from here...
5192         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5193         here.
5194         * modules/sys_select-tests (Files): Add tests/signature.h.
5195
5196 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5197
5198         largefile: new module, replacing large-inode
5199         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5200         * MODULES.html.sh: Add largefile, remove large-inode.
5201         * modules/largefile, m4/largefile.m4: New files.
5202         * modules/large-inode, m4/large-inode.m4: Remove.
5203
5204         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5205         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5206         implementations that use only 32 bits to count blocks.
5207         On typical hosts with 1024-byte blocks, this fails with file
5208         systems as small as 4 TiB.  Problem reported by Herb Wartens
5209         <http://debbugs.gnu.org/9140> and this should also fix a similar
5210         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5211
5212         large-inode: New module
5213         * MODULES.html.sh: Add it.
5214         * modules/large-inode, m4/large-inode.m4: New files.
5215
5216         extensions: Enable extensions on MacOS X 10.5 and later.
5217         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5218
5219 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5220
5221         file-has-acl: use acl_extended_file_nofollow if available
5222         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5223         (acl_extended_file): New macro.
5224         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5225         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5226
5227 2011-07-21  Bruno Haible  <bruno@clisp.org>
5228
5229         Declare system functions in a way that works with C++.
5230         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5231         declare fdopendir as extern "C".
5232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5233         declare frexpl as extern "C".
5234         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5235         declare gai_strerror as extern "C".
5236         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5237         programs, declare gai_strerror as extern "C".
5238         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5239         declare getlogin_r as extern "C".
5240         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5241         as extern "C".
5242         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5243         declare ldexpl as extern "C".
5244         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5245         as extern "C".
5246         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5247         program, declare getmntinfo as extern "C".
5248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5249         stpncpy as extern "C".
5250         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5251         program, declare __xpg_strerror_r as extern "C".
5252         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5253         strndup as extern "C".
5254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5255         declare memset and bzero as extern "C".
5256         Reported by Sam Steingold <sds@gnu.org>.
5257
5258 2011-07-12  Jim Meyering  <meyering@redhat.com>
5259
5260         maint.mk: prohibit inclusion of "verify.h" without use
5261         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5262
5263 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5264
5265         timer-time: A new module to check for timer_settime()
5266         * m4/timer_time.m4: Check for the posix function.
5267         * modules/timer-time: Add the new module.
5268         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5269         Mention it.
5270
5271 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5272             Bruno Haible  <bruno@clisp.org>
5273
5274         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5275         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5276         not defined, assume POSIX threads and look for pthread_sigmask in
5277         $LIBS, without changing $CPPFLAGS.
5278
5279 2011-07-19  Bruno Haible  <bruno@clisp.org>
5280
5281         strstr: Update cross-compilation guess.
5282         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5283         CPUs, guess no, in view of glibc
5284         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5285         Suggested by Eric Blake. Reported by Reuben Thomas.
5286
5287 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5288
5289         getopt-gnu: suppress core dumps from detection code
5290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5291         to suppress core dumps that may well occur on glibc systems.
5292         * modules/getopt-gnu: Depend on nocrash.
5293
5294 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5295
5296         pthread_sigmask: ensure usleep is declared
5297         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5298         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5299
5300 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5301
5302         doc: Document NonStop portability issues.
5303         * doc/posix-functions/sigaction.texi (sigaction):
5304         * doc/posix-headers/signal.texi (signal.h):
5305         Document NonStop.  See Joachim Schmitz in
5306         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5307
5308 2011-07-15  Bruno Haible  <bruno@clisp.org>
5309
5310         ffsl, ffsll: Avoid unportable behaviour.
5311         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5312
5313 2011-07-15  Bruno Haible  <bruno@clisp.org>
5314
5315         ffs: More tests.
5316         * tests/test-ffs.c (NBITS): New macro.
5317         (main): Add more tests.
5318         * tests/test-ffsl.c (NBITS): New macro.
5319         (main): Add more tests.
5320         * tests/test-ffsll.c (NBITS): New macro.
5321         (main): Add more tests.
5322
5323 2011-07-15  Eric Blake  <eblake@redhat.com>
5324
5325         ffsl, ffsll: new modules
5326         * modules/ffsl: New file.
5327         * modules/ffsll: Likewise.
5328         * m4/ffsl.m4: Likewise.
5329         * m4/ffsll.m4: Likewise.
5330         * lib/ffsl.c: Likewise.
5331         * lib/ffsl.h: Likewise.
5332         * lib/ffsll.c: Likewise.
5333         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5334         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5335         * modules/string (Makefile.am): Substitute witnesses.
5336         * lib/strings.in.h (ffsl, ffsll): Declare.
5337         * modules/ffsl-tests: New test file.
5338         * modules/ffsll-tests: Likewise.
5339         * tests/test-ffsl.c: Likewise.
5340         * tests/test-ffsll.c: Likewise.
5341         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5342         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5343         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5344
5345         ffs: fix m4 prerequisite
5346         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5347
5348         ffs: avoid undefined behavior
5349         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5350         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5351         Reported by Bruno Haible.
5352
5353 2011-07-12  Bruno Haible  <bruno@clisp.org>
5354
5355         pthread_sigmask: Rely on module 'threadlib'.
5356         * modules/pthread_sigmask (Depends-on): Add threadlib.
5357         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5358         is defined.
5359
5360 2011-07-12  Bruno Haible  <bruno@clisp.org>
5361
5362         regex: Depend on module 'strcase'.
5363         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5364
5365 2011-07-12  Jim Meyering  <meyering@redhat.com>
5366
5367         warn-on-use: fix typo in file name
5368         * modules/snippet/warn-on-use (Files): Correct file name:
5369         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5370
5371 2011-07-12  Bruno Haible  <bruno@clisp.org>
5372
5373         strings: Document module.
5374         * doc/posix-headers/strings.texi: Mention module 'strings'.
5375
5376 2011-07-12  Bruno Haible  <bruno@clisp.org>
5377
5378         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5379         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5380         (Files, Makefile.am): Update.
5381         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5382         * modules/stdlib (Depends-on): Update.
5383
5384 2011-07-12  Bruno Haible  <bruno@clisp.org>
5385
5386         * NEWS: Mention the changes.
5387
5388         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5389         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5390         (Files, Makefile.am): Update.
5391         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5392         * modules/arpa_inet (Depends-on): Update.
5393         * modules/ctype (Depends-on): Update.
5394         * modules/dirent (Depends-on): Update.
5395         * modules/fcntl-h (Depends-on): Update.
5396         * modules/glob (Depends-on): Update.
5397         * modules/iconv-h (Depends-on): Update.
5398         * modules/inttypes-incomplete (Depends-on): Update.
5399         * modules/langinfo (Depends-on): Update.
5400         * modules/locale (Depends-on): Update.
5401         * modules/math (Depends-on): Update.
5402         * modules/netdb (Depends-on): Update.
5403         * modules/poll-h (Depends-on): Update.
5404         * modules/pty (Depends-on): Update.
5405         * modules/search (Depends-on): Update.
5406         * modules/signal (Depends-on): Update.
5407         * modules/spawn (Depends-on): Update.
5408         * modules/stdio (Depends-on): Update.
5409         * modules/stdlib (Depends-on): Update.
5410         * modules/string (Depends-on): Update.
5411         * modules/strings (Depends-on): Update.
5412         * modules/sys_file (Depends-on): Update.
5413         * modules/sys_ioctl (Depends-on): Update.
5414         * modules/sys_select (Depends-on): Update.
5415         * modules/sys_socket (Depends-on): Update.
5416         * modules/sys_stat (Depends-on): Update.
5417         * modules/sys_time (Depends-on): Update.
5418         * modules/sys_times (Depends-on): Update.
5419         * modules/sys_utsname (Depends-on): Update.
5420         * modules/sys_wait (Depends-on): Update.
5421         * modules/termios (Depends-on): Update.
5422         * modules/time (Depends-on): Update.
5423         * modules/unistd (Depends-on): Update.
5424         * modules/wchar (Depends-on): Update.
5425         * modules/wctype-h (Depends-on): Update.
5426         * MODULES.html.sh (Support for building libraries and executables):
5427         Update.
5428
5429         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5430         * modules/snippet/unused-parameter: Renamed from
5431         modules/unused-parameter.
5432         (Files, Makefile.am): Update.
5433         * build-aux/snippet/unused-parameter.h: Renamed from
5434         build-aux/unused-parameter.h.
5435         * modules/selinux-h (Depends-on): Update.
5436         * modules/unistr/base (Depends-on): Update.
5437         * MODULES.html.sh (Core language properties): Update.
5438
5439         Rename module 'link-warning' to 'snippet/link-warning'.
5440         * modules/snippet/link-warning: Renamed from modules/link-warning.
5441         (Files, Makefile.am): Update.
5442         * build-aux/snippet/link-warning.h: Renamed from
5443         build-aux/link-warning.h.
5444         * MODULES.html.sh (Support for building libraries and executables):
5445         Update.
5446
5447         Rename module 'c++defs' to 'snippet/c++defs'.
5448         * modules/snippet/c++defs: Renamed from modules/c++defs.
5449         (Files, Makefile.am): Update.
5450         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5451         * modules/arpa_inet (Depends-on): Update.
5452         * modules/ctype (Depends-on): Update.
5453         * modules/dirent (Depends-on): Update.
5454         * modules/fcntl-h (Depends-on): Update.
5455         * modules/glob (Depends-on): Update.
5456         * modules/iconv-h (Depends-on): Update.
5457         * modules/langinfo (Depends-on): Update.
5458         * modules/locale (Depends-on): Update.
5459         * modules/math (Depends-on): Update.
5460         * modules/netdb (Depends-on): Update.
5461         * modules/poll-h (Depends-on): Update.
5462         * modules/pty (Depends-on): Update.
5463         * modules/search (Depends-on): Update.
5464         * modules/signal (Depends-on): Update.
5465         * modules/spawn (Depends-on): Update.
5466         * modules/stdio (Depends-on): Update.
5467         * modules/stdlib (Depends-on): Update.
5468         * modules/string (Depends-on): Update.
5469         * modules/strings (Depends-on): Update.
5470         * modules/sys_ioctl (Depends-on): Update.
5471         * modules/sys_select (Depends-on): Update.
5472         * modules/sys_socket (Depends-on): Update.
5473         * modules/sys_stat (Depends-on): Update.
5474         * modules/sys_time (Depends-on): Update.
5475         * modules/sys_wait (Depends-on): Update.
5476         * modules/termios (Depends-on): Update.
5477         * modules/time (Depends-on): Update.
5478         * modules/unistd (Depends-on): Update.
5479         * modules/wchar (Depends-on): Update.
5480         * modules/wctype-h (Depends-on): Update.
5481
5482         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5483         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5484         (Files, Makefile.am): Update.
5485         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5486         * modules/argv-iter (Depends-on): Update.
5487         * modules/arpa_inet (Depends-on): Update.
5488         * modules/dirent (Depends-on): Update.
5489         * modules/fcntl-h (Depends-on): Update.
5490         * modules/fnmatch (Depends-on): Update.
5491         * modules/getopt-posix (Depends-on): Update.
5492         * modules/glob (Depends-on): Update.
5493         * modules/iconv-h (Depends-on): Update.
5494         * modules/inttypes-incomplete (Depends-on): Update.
5495         * modules/locale (Depends-on): Update.
5496         * modules/math (Depends-on): Update.
5497         * modules/netdb (Depends-on): Update.
5498         * modules/search (Depends-on): Update.
5499         * modules/signal (Depends-on): Update.
5500         * modules/spawn (Depends-on): Update.
5501         * modules/stdio (Depends-on): Update.
5502         * modules/stdlib (Depends-on): Update.
5503         * modules/string (Depends-on): Update.
5504         * modules/strings (Depends-on): Update.
5505         * modules/sys_socket (Depends-on): Update.
5506         * modules/sys_stat (Depends-on): Update.
5507         * modules/sys_time (Depends-on): Update.
5508         * modules/sys_times (Depends-on): Update.
5509         * modules/sys_utsname (Depends-on): Update.
5510         * modules/time (Depends-on): Update.
5511         * modules/unistd (Depends-on): Update.
5512         * modules/wchar (Depends-on): Update.
5513         * MODULES.html.sh (Support for building libraries and executables):
5514         Update.
5515
5516 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5517
5518         Improvements on _Noreturn and related modules.
5519
5520         modules/_Exit-tests: test _Noreturn too
5521         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5522         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5523         (main): Use them.
5524
5525         stdnoreturn, stdnoreturn-tests: remove modules
5526         They're not needed here and a bit premature for use elsewhere.  See
5527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5528         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5529         * tests/test-stdnoreturn.c: Remove files.
5530         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5531         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5532         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5533         and using noreturn.
5534         * modules/openat, modules/sigpipe-die, modules/xalloc:
5535         * modules/xmemdup0, modules/xstrtol:
5536         Remove dependency on stdnoreturn.
5537
5538         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5539         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5540         Reparenthesize to avoid GCC warning.
5541         Support Microsoft's syntax.
5542         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5543
5544         _Noreturn-tests: remove module
5545         * modules/_Noreturn-tests: Remove.
5546         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5547         * tests/test-_Noreturn.c: Remove.
5548         * tests/test-stdnoreturn.c: Merge from the old
5549         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5550
5551 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5552
5553         _Noreturn, stdnoreturn, and related modules.
5554
5555         * top/maint.mk: Adjust to new noreturn support.
5556         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5557         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5558
5559         xalloc: use stdnoreturn.h
5560         * lib/xalloc.h: Include <stdnoreturn.h>.
5561         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5562         * modules/xalloc (Depends-on): Add stdnoreturn.
5563
5564         xstrtol: use stdnoreturn.h
5565         * lib/xstrtol.h: Include <stdnoreturn.h>.
5566         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5567         * modules/xstrtol (Depends-on): Add stdnoreturn.
5568
5569         xmemdup0: use stdnoreturn.h
5570         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5571         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5572         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5573
5574         sigpipe-die: use stdnoreturn.h
5575         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5576         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5577         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5578
5579         openat: use stdnoreturn.h
5580         * lib/openat.h: Include <stdnoreturn.h>.
5581         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5582         * modules/openat (Depends-on): Add stdnoreturn.
5583
5584         * lib/openat-die.c (openat_save_fail): Modernize comment.
5585
5586         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5587
5588         * lib/glthread/thread.h: Modernize comment.
5589
5590         obstack: use _Noreturn
5591         * lib/obstack.c (__attribute__): Remove macro.
5592         (print_and_abort): Use _Noreturn.
5593
5594         c-stack: use _Noreturn
5595         * lib/c-stack.c (die, overflow_handler, segv_handler):
5596         Use _Noreturn rather than __attribute__((noreturn)).
5597
5598         argmatch-tests, exclude_tests: use _Noreturn
5599         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5600         Remove.
5601         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5602
5603         stdlib: use _Noreturn
5604         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5605         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5606         * modules/stdlib (Depends-on): Add _Noreturn.
5607         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5608
5609         stdnoreturn-tests: new module
5610         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5611
5612         stdnoreturn: new module
5613         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5614         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5615
5616         _Noreturn-tests: new module
5617         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5618
5619         _Noreturn: new module
5620         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5621         New section, mentioning it.
5622         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5623
5624         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5625
5626 2011-07-11  Eric Blake  <eblake@redhat.com>
5627
5628         ffs: new module
5629         * modules/ffs: New file.
5630         * m4/ffs.m4: Likewise.
5631         * lib/ffs.c: Likewise.
5632         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5633         * modules/strings (Makefile.am): Substitute witness.
5634         (Depends-on): Add c++defs.
5635         * lib/strings.in.h (ffs): Declare.
5636         * modules/ffs-tests: New test file.
5637         * tests/test-ffs.c: Test new module.
5638         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5639         * doc/posix-functions/ffs.texi (ffs): Likewise.
5640
5641         regex: avoid compiler warning
5642         * lib/regex.c (includes): Include <strings.h>, for use of
5643         strcasecmp in regcomp.c.
5644         Reported by Joachim Schmitz.
5645
5646 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5647
5648         stdint: respect system's intmax_t if INTMAX_MAX
5649         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5650         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5651         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5652         long but int64_t is long long, and where we will clash with the
5653         system intmax_t if we override it.  See
5654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5655         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5656         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5657         similarly for UINTMAX_C.
5658
5659 2011-07-08  Bruno Haible  <bruno@clisp.org>
5660
5661         pthread_sigmask tests: Avoid a compiler warning.
5662         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5663         non-zero.
5664
5665         sigprocmask tests: A better way to avoid a compiler warning.
5666         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5667         (main): Complain if system() returns non-zero.
5668         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5669
5670 2011-07-08  Bruno Haible  <bruno@clisp.org>
5671
5672         pthread_sigmask: Work around IRIX bug.
5673         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5674         bug.
5675         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5676         there may be unblocked pending signals.
5677         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5678
5679 2011-07-08  Bruno Haible  <bruno@clisp.org>
5680
5681         pthread_sigmask: Work around Cygwin bug.
5682         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5683         bug.
5684         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5685         the system's pthread_sigmask function.
5686         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5687
5688 2011-07-08  Bruno Haible  <bruno@clisp.org>
5689
5690         pthread_sigmask: Work around bug in single-threaded implementation.
5691         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5692         FreeBSD, HP-UX, Solaris bug.
5693         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5694         * lib/pthread_sigmask.c: Include <stddef.h>.
5695         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5696         the system's pthread_sigmask function.
5697         * modules/pthread_sigmask (configure.ac): Invoke
5698         gl_PREREQ_PTHREAD_SIGMASK.
5699         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5700         HP-UX, Solaris.
5701
5702 2011-07-08  Eric Blake  <eblake@redhat.com>
5703
5704         test-sigprocmask: avoid compiler warning
5705         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5706         * tests/test-sigprocmask.c (main): Use it to silence warning.
5707         Reported by Jim Meyering.
5708
5709         test-snprintf: avoid compiler warning
5710         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5711         * tests/test-vsnprintf.c (main): Likewise.
5712         Reported by Jim Meyering.
5713
5714 2011-07-08  Bruno Haible  <bruno@clisp.org>
5715
5716         Tests for module 'pthread_sigmask'.
5717         * modules/pthread_sigmask-tests: New file.
5718         * tests/test-pthread_sigmask1.c: New file, based on
5719         tests/test-sigprocmask.c.
5720         * tests/test-pthread_sigmask2.c: New file.
5721
5722 2011-07-08  Jim Meyering  <meyering@redhat.com>
5723
5724         test-getopt.h: avoid warning about an unused variable
5725         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5726
5727 2011-07-07  Jim Meyering  <meyering@redhat.com>
5728
5729         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5730         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5731         now that it no longer contains leading TABs.
5732         Remove unused "url=FIXME" statement.
5733
5734 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5735
5736         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5737         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5738         When gl_THREADLIB is not in use, assume that the POSIX sematics
5739         are desired.  This is better for Emacs, which uses POSIX semantics
5740         on GNUish and/or POSIXish platforms, and does not use threads at
5741         all otherwise.
5742
5743         pthread_sigmask: fix typo when testing for libraries
5744         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5745         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5746
5747 2011-07-08  Eric Blake  <eblake@redhat.com>
5748
5749         fts: introduce FTS_NOATIME
5750         * lib/fts_.h (FTS_NOATIME): New bit flag.
5751         (FTS_OPTIONMASK): Adjust.
5752         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5753         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5754
5755 2011-07-08  Bruno Haible  <bruno@clisp.org>
5756
5757         Tests for module 'thread'.
5758         * modules/thread-tests: New file.
5759         * tests/test-thread_self.c: New file.
5760         * tests/test-thread_create.cc: New file.
5761
5762 2011-07-08  Bruno Haible  <bruno@clisp.org>
5763
5764         thread: Avoid gcc warnings when using gl_thread_self().
5765         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5766         'void *'.
5767         (gl_thread_self_pointer): Update.
5768
5769 2011-07-07  Bruno Haible  <bruno@clisp.org>
5770
5771         signal-c++-tests: Check declaration of pthread_sigmask.
5772         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5773         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5774         $(LIB_PTHREAD_SIGMASK).
5775
5776 2011-07-07  Bruno Haible  <bruno@clisp.org>
5777
5778         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5779         * lib/signal.in.h (pthread_sigmask): Override if
5780         REPLACE_PTHREAD_SIGMASK is 1.
5781         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5782         REPLACE_PTHREAD_SIGMASK.
5783         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5784         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5785         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5786         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5787         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5788
5789 2011-07-07  Bruno Haible  <bruno@clisp.org>
5790
5791         pthread_sigmask: Ensure declaration in <signal.h>.
5792         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5793         include <pthread.h>.
5794         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5795         problem.
5796
5797 2011-07-07  Bruno Haible  <bruno@clisp.org>
5798
5799         pthread_sigmask: Document the module.
5800         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5801
5802 2011-07-07  Bruno Haible  <bruno@clisp.org>
5803
5804         pthread_sigmask: Follow gnulib conventions.
5805         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5806         gl_PTHREAD_SIGMASK.
5807         * modules/pthread_sigmask (configure.ac): Update.
5808
5809 2011-07-07  Bruno Haible  <bruno@clisp.org>
5810
5811         pthread_sigmask: Make declaration C++ safe.
5812         * lib/signal.in.h: In two special conditions, just do an #include_next.
5813         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5814         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5815         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5816         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5817         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5818         not REPLACE_PTHREAD_MASK.
5819         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5820         not REPLACE_PTHREAD_MASK.
5821         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5822
5823 2011-07-07  Bruno Haible  <bruno@clisp.org>
5824
5825         pthread_sigmask: Fix return value.
5826         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5827         * lib/pthread_sigmask.c: New file.
5828         * modules/pthread_sigmask (Files): Add it.
5829         (configure.ac): Invoke AC_LIBOBJ.
5830
5831 2011-07-07  Eric Blake  <eblake@redhat.com>
5832
5833         getopt: more portable argv creation
5834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5835         const, use char arrays rather than strings.
5836         Suggested by Paul Eggert.
5837
5838 2011-07-07  Bruno Haible  <bruno@clisp.org>
5839
5840         Tests for module 'sigprocmask'.
5841         * modules/sigprocmask-tests: New file.
5842         * tests/test-sigprocmask.c: New file.
5843
5844 2011-07-07  Bruno Haible  <bruno@clisp.org>
5845
5846         float tests: Tweak.
5847         * tests/test-float.c (main): Tweak skip message.
5848
5849 2011-07-07  Eric Blake  <eblake@redhat.com>
5850
5851         getopt: avoid compiler warning during configure
5852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5853         assigning string literals to non-const pointer.
5854
5855         getopt-gnu: avoid crash in glibc getopt
5856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5857         * tests/test-getopt.h (test_getopt): Enhance test.
5858         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5859         * doc/posix-functions/getopt.texi (getopt): Document it.
5860         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5861         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5862         Likewise.
5863
5864 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5865
5866         getopt: handle W; without long options in getopt [BZ #12922]
5867         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5868         but no long options are defined, just return 'W'.
5869
5870 2011-07-07  Bruno Haible  <bruno@clisp.org>
5871
5872         Avoid literal tabs.
5873         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5874         variable containing a tab instead of a literal tab.
5875         Reported by Jim Meyering.
5876
5877 2011-07-07  Bruno Haible  <bruno@clisp.org>
5878
5879         Comments.
5880         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5881
5882 2011-07-06  Bruno Haible  <bruno@clisp.org>
5883
5884         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5885         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5886         <winsock2.h>.
5887         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5888         lib/sys_socket.in.h.
5889         (close, gethostname): Hide declarations from <winsock2.h>.
5890         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5891         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5892         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5893         (select): Don't override if gnulib's <sys/select.h> was already
5894         included.
5895         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5896         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5897         setsockopt, shutdown, select): Tweak indentation.
5898
5899 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5900
5901         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5902         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5903         in an application that does not use the sys_select module.
5904
5905 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5906
5907         poll: do not return 0 on timeout=-1
5908         * lib/poll.c: Loop with yield if no events occured
5909
5910 2011-07-06  Eric Blake  <eblake@redhat.com>
5911
5912         pthread_sigmask: always replace when not using pthread
5913         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5914         replacement when using some threading other than pthread.  Fix
5915         logic bug.
5916
5917 2011-07-06  Bruno Haible  <bruno@clisp.org>
5918
5919         Comments.
5920         * m4/printf.m4: Update comments about mingw.
5921
5922 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5923
5924         sys_select: define sigset_t more portably
5925         * lib/sys_select.in.h: Always include <sys/types.h>, since
5926         we now need sigset_t and mingw defines it there.
5927         Include <signal.h> before split inclusion guard, to avoid
5928         mishaps on Solaris, whose <signal.h> eventually includes us.
5929         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5930         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5931         which come from ...
5932         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5933         gl_CHECK_TYPE_SIGSET_T.
5934         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5935         does the real work.
5936         * modules/sys_select (Depends-on): Add 'signal'.
5937
5938         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5939         Suggested by Bruno Haible.
5940
5941         pselect: Use pthread_sigmask, not sigprocmask.
5942         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5943         multithreaded apps better than sigprocmask does.
5944         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5945         sigprocmask directly.
5946
5947 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5948
5949         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5950         Don't #undef,  since we don't need any underlying pselect.
5951         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5952         (Depends-on): Add select.
5953         (Link): Add $(LIBSOCKET).
5954         These changes suggested by Bruno Haible.
5955
5956         pselect: document better
5957         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5958         * doc/posix-functions/pselect.texi (pselect): Document new module.
5959
5960         pthread_sigmask: new module
5961         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5962         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5963         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5964         This is done only as a macro; I don't know how well that'll
5965         work for C++.  Move <sys/types.h> include before the include_next,
5966         to avoid mishap on Solaris.
5967         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5968         * modules/signal (Makefile.am): Substitute the check's results.
5969         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5970
5971         test-pselect: new module
5972         * modules/pselect-tests, tests/test-pselect.c: New files.
5973         * tests/test-select.c, tests/test-sys_select-c++.cc:
5974         If TEST_PSELECT is defined, test pselect instead of testing select.
5975
5976         * tests/test-sys_select.c (sigset_t): Test for it, too.
5977         Suggested by Bruno Haible.
5978
5979 2011-07-05  Eric Blake  <eblake@redhat.com>
5980
5981         snprintf: guarantee %1$d, for libintl
5982         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5983         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5984         * doc/posix-functions/snprintf.texi (snprintf): Update.
5985         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5986         * tests/test-snprintf.c (main): Enhance test.
5987         * tests/test-vsnprintf.c (main): Likewise.
5988
5989 2011-07-05  Jim Meyering  <meyering@redhat.com>
5990
5991         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5992         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5993         per Bruno's request, to accommodate this idiom (no space after "#")
5994         even when the function is inside an #if block:
5995         char *
5996         gets (char *s)
5997         #undef gets
5998         {
5999           ...
6000         }
6001
6002 2011-07-04  Jim Meyering  <meyering@redhat.com>
6003
6004         maint: indent with spaces, not TABs, and add a rule to check this
6005         * tests/test-userspec.c: Indent with spaces, not TABs.
6006         * tests/test-argp.c: Likewise.
6007         * tests/test-c-stack2.sh: Likewise.
6008         * tests/test-parse-duration.sh: Likewise
6009         * m4/strtod.m4: Likewise.
6010         * m4/alloca.m4: Likewise.
6011         * m4/pselect.m4: Likewise.
6012         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6013
6014 2011-07-03  Jim Meyering  <meyering@redhat.com>
6015
6016         maint.mk: correct omissions in prohibit_argmatch_without_use check
6017         This rule would mistakenly report that argmatch.h is included without
6018         use even when both the argmatch and invalid_arg macro were used.
6019         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6020         of argmatch and invalid_arg.
6021
6022 2011-07-03  Bruno Haible  <bruno@clisp.org>
6023
6024         Comments about EINTR.
6025         * lib/safe-read.h: Explain the purpose of this module.
6026         * lib/safe-write.h: Likewise.
6027         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6028         module.
6029         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6030         module.
6031         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6032
6033 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6034
6035         xnanosleep: Rewrite to use new dtotimespec module.
6036         It has the conversion code that used to be in xnanosleep.
6037         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6038         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6039         (TIME_T_MAX): Remove.
6040         (xnanosleep): Rewrite in terms of dtotimespec.
6041         * modules/xnanosleep (Depends-on): Add dtotimespec.
6042         Remove intprops, stdbool.
6043
6044         timespec-add, timespec-sub: new modules
6045         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6046         * lib/timespec-add.c, lib/timespec-sub.c:
6047         * modules/timespec-add, modules/timespec-sub: New files.
6048
6049         dtotimespec: new module
6050         * lib/timespec.h (dtotimespec): New decl.
6051         * lib/dtotimespec.c, modules/dtotimespec: New files.
6052
6053         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6054
6055         pselect: new module
6056         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6057         (pselect): New decls.
6058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6059         since the standard pselect decl uses 'restrict'.
6060         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6061         HAVE_PSELECT, REPLACE_PSELECT.
6062         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6063         HAVE_PSELECT, REPLACE_PSELECT.
6064         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6065
6066         sys_select: don't depend on sys_socket
6067         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6069         This fix works on GNU and GNU-like platforms, but has not been tested
6070         on native Windows.
6071         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6073         gl_HEADER_SYS_SOCKET.
6074         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6075         gl_PREREQ_SYS_H_WINSOCK2.
6076
6077 2011-06-29  Eric Blake  <eblake@redhat.com>
6078
6079         pipe2: fix C89 compile problem
6080         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6081         Reported by Bruno Haible.
6082
6083         pipe, pipe2: don't corrupt fd on error
6084         * lib/pipe.c (pipe): Leave fd unchanged on error.
6085         * lib/pipe2.c (pipe2): Likewise.
6086         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6087         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6088
6089 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6090
6091         mmap-anon: do not use regular expressions inadvertently
6092         * m4/mmap-anon.m4: Remove trailing period from strings sought
6093         in the output.
6094
6095 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6096
6097         nanosleep: fix integer overflow problem
6098         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6099         arithmetic wraps around on overflow.
6100
6101         nanosleep: simplify carrying
6102         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6103         first call to the underyling nanosleep, not for the last one.
6104         This doesn't fix any bugs, but it simplifies the computation of
6105         the remaining delay.  Found while auditing integer overflow issues.
6106
6107         dup2: remove test for existence of fcntl
6108         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6109         "#if HAVE_FCNTL", in the configure-time test program.
6110         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6111         and therefore speeds up "configure" a bit.  Found while
6112         adding the dup2 module to Emacs.
6113
6114 2011-06-24  Eric Blake  <eblake@redhat.com>
6115
6116         maint.mk: enhance useless header checks
6117         * top/maint.mk (_sc_header_without_use): Check both include
6118         styles.
6119         (sc_prohibit_assert_without_use)
6120         (sc_prohibit_close_stream_without_use)
6121         (sc_prohibit_getopt_without_use)
6122         (sc_prohibit_quotearg_without_use)
6123         (sc_prohibit_quote_without_use)
6124         (sc_prohibit_long_options_without_use)
6125         (sc_prohibit_inttostr_without_use)
6126         (sc_prohibit_ignore_value_without_use)
6127         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6128         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6129         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6130         (sc_prohibit_hash_pjw_without_use)
6131         (sc_prohibit_safe_read_without_use)
6132         (sc_prohibit_argmatch_without_use)
6133         (sc_prohibit_canonicalize_without_use)
6134         (sc_prohibit_root_dev_ino_without_use)
6135         (sc_prohibit_openat_without_use)
6136         (sc_prohibit_c_ctype_without_use)
6137         (sc_prohibit_signal_without_use)
6138         (sc_prohibit_stdio--_without_use)
6139         (sc_prohibit_stdio-safer_without_use)
6140         (sc_prohibit_strings_without_use)
6141         (sc_prohibit_intprops_without_use)
6142         (sc_prohibit_stddef_without_use)
6143         (sc_prohibit_xfreopen_without_use): Update clients.
6144
6145 2011-06-24  Jim Meyering  <meyering@redhat.com>
6146
6147         syntax-check: keep one maint.mk rule in sync with its header
6148         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6149         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6150         I prefer to avoid temporary files here, so use <(...), but that
6151         is not supported by /bin/sh, so...
6152         (SHELL): Define to /bin/bash.
6153
6154 2011-06-24  Eric Blake  <eblake@redhat.com>
6155
6156         maint.mk: update sc_prohibit_intprops_without_use
6157         * top/maint.mk (_intprops_names): Match recent changes.
6158
6159 2011-06-24  Bruno Haible  <bruno@clisp.org>
6160
6161         strerror-override: No-op tweak.
6162         * lib/strerror-override.h (strerror_override): Reorder conditions,
6163         for consistency with lib/strerror-override.c.
6164
6165 2011-06-23  Eric Blake  <eblake@redhat.com>
6166
6167         maint.mk: test further PATH_MAX issues
6168         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6169         (sc_prohibit_path_max_allocation): ...and also test alloca.
6170         Suggested by Jim Meyering.
6171
6172 2011-06-22  Eric Blake  <eblake@redhat.com>
6173
6174         maint.mk: add syntax-check to avoid char[PATH_MAX]
6175         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6176
6177         stat: be robust to PATH_MAX definition
6178         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6179         * modules/stat (Depends-on): Add verify.
6180
6181         link: work around IRIX bug
6182         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6183         * lib/link.c (rpl_link): Work around it.
6184         * tests/test-link.h (test_link): Enhance test.
6185         * doc/posix-functions/link.texi (link): Document the bug.
6186
6187         getopt: silence clang warning
6188         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6189         dereference.
6190         Reported by Gustavo Martin Domato.
6191
6192 2011-06-22  Jim Meyering  <meyering@redhat.com>
6193
6194         bootstrap: do not insert a blank line into each .gitignore file
6195         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6196
6197 2011-06-21  Eric Blake  <eblake@redhat.com>
6198
6199         perror: test for output mismatch
6200         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6201         perror on IRIX.
6202
6203         strerror_r: fix OpenBSD behavior on out-of-range
6204         * lib/strerror_r.c (strerror_r): Always use maximal string.
6205         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6206
6207         strerror_r: fix OpenBSD behavior on 0
6208         * lib/strerror-override.c (strerror_override): Also override 0
6209         when needed.
6210         * lib/strerror-override.h (strerror_override): Likewise.
6211         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6212         earlier.
6213         * lib/strerror_r.c (strerror_r): Likewise.
6214         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6215         behavior...
6216         (gl_FUNC_STRERROR_0): ...into new macro.
6217         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6218         is overridden.
6219         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6220         * modules/strerror-override (Files): Add strerror.m4.
6221         (configure.ac): Also provide override for 0 when needed.
6222         * doc/posix-functions/strerror.texi (strerror): Document this.
6223         * doc/posix-functions/perror.texi (perror): Likewise.
6224
6225         perror: adjust array size
6226         * modules/perror (Depends-on): Add strerror-override.
6227         * lib/perror.c (perror): Use it to avoid magic number.
6228
6229         strerror-override: reduce size
6230         * lib/strerror-override.c (strerror_override): Use fewer lines.
6231
6232 2011-06-20  Bruno Haible  <bruno@clisp.org>
6233
6234         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6235         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6236
6237 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6238
6239         alloca: port to compilers that can optimize like GCC 4.6.0
6240         * lib/alloca.c (find_stack_direction): New signature, taken from
6241         Autoconf git.  This works with GCC 4.6.0.  This code should never
6242         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6243         be used with other compilers that optimize as well as GCC 4.6.0 does.
6244         (alloca): Adjust to new signature.
6245         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6246         New macro, which patches Autoconf in a similar way.
6247
6248         c-stack: stop worrying about stack direction
6249         * lib/c-stack.c (find_stack_direction): Remove.
6250         (segv_handler): Don't worry about stack direction growth, as it's
6251         too much of a pain to configure this correctly, given how compilers
6252         are optimizing-away our stack-growth detection code.  Instead, assume
6253         that any access to just before or just after the stack is OK.
6254         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6255         Don't require AC_FUNC_ALLOCA; no longer needed.
6256
6257 2011-06-20  Eric Blake  <eblake@redhat.com>
6258
6259         test-stat: don't allocate PATH_MAX bytes
6260         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6261         PATH_MAX-sized buffer.
6262         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6263         * modules/stat-tests (Depends-on): Likewise.
6264         * tests/test-fstatat.c (includes): Drop pathmax.h.
6265         * tests/test-stat.c (includes): Likewise.
6266         Reported by Bruno Haible.
6267
6268 2011-06-20  Bruno Haible  <bruno@clisp.org>
6269
6270         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6271         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6272         * lib/float.c: New file.
6273         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6274         REPLACE_FLOAT_LDBL.
6275         * modules/float (Files): Add lib/float.c.
6276         (configure.ac): Invoke AC_LIBOBJ.
6277         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6278
6279 2011-06-20  Bruno Haible  <bruno@clisp.org>
6280
6281         Tests for module 'float'.
6282         * modules/float-tests: New file.
6283         * tests/test-float.c: New file.
6284
6285 2011-06-19  Bruno Haible  <bruno@clisp.org>
6286
6287         isinf: Coding style.
6288         * lib/isinf.c: Use GNU coding style.
6289
6290 2011-06-19  Bruno Haible  <bruno@clisp.org>
6291
6292         linkat test: Avoid test failure on AIX 7.1.
6293         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6294         * tests/test-link.h (test_link): Likewise.
6295
6296 2011-06-19  Bruno Haible  <bruno@clisp.org>
6297
6298         pread test: Avoid test failure on OpenBSD 4.9.
6299         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6300
6301 2011-06-19  Bruno Haible  <bruno@clisp.org>
6302
6303         sprintf-posix: Fix test failure on AIX 7.1.
6304         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6305         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6306         on AIX.
6307         * doc/posix-functions/fprintf.texi: Likewise.
6308         * doc/posix-functions/printf.texi: Likewise.
6309         * doc/posix-functions/snprintf.texi: Likewise.
6310         * doc/posix-functions/sprintf.texi: Likewise.
6311         * doc/posix-functions/vdprintf.texi: Likewise.
6312         * doc/posix-functions/vfprintf.texi: Likewise.
6313         * doc/posix-functions/vprintf.texi: Likewise.
6314         * doc/posix-functions/vsnprintf.texi: Likewise.
6315         * doc/posix-functions/vsprintf.texi: Likewise.
6316
6317 2011-06-19  Bruno Haible  <bruno@clisp.org>
6318
6319         roundl-ieee: Fix test failure on AIX 7.1.
6320         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6321         * doc/posix-functions/roundl.texi: Mention problem with negative
6322         arguments.
6323
6324 2011-06-19  Bruno Haible  <bruno@clisp.org>
6325
6326         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6327         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6328         * doc/posix-functions/round.texi: Mention problem with negative
6329         arguments.
6330         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6331
6332 2011-06-19  Bruno Haible  <bruno@clisp.org>
6333
6334         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6336         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6337         * doc/posix-functions/roundf.texi: Mention problem with negative
6338         arguments.
6339         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6340
6341 2011-06-19  Bruno Haible  <bruno@clisp.org>
6342
6343         ceilf-ieee: Work around bug on MacOS X 10.5.
6344         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6345
6346         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6347         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6348         IEEE compliant, avoid compiler optimizations.
6349         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6350         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6351         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6352         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6353         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6354         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6355         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6357         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6358         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6359
6360 2011-06-19  Bruno Haible  <bruno@clisp.org>
6361
6362         ceilf-ieee: Work around bug on AIX 7.1.
6363         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6364         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6365
6366 2011-06-19  Bruno Haible  <bruno@clisp.org>
6367
6368         ceil-ieee: Work around bug on AIX 7.1.
6369         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6370         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6371
6372 2011-06-18  Bruno Haible  <bruno@clisp.org>
6373
6374         fsync test: Avoid test failure on MacOS X and AIX.
6375         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6376         EINVAL.
6377
6378 2011-06-18  Bruno Haible  <bruno@clisp.org>
6379
6380         openat, fdopendir tests: Fix link errors.
6381         * modules/openat-tests (Depends-on): Add progname.
6382         * modules/fdopendir-tests (Depends-on): Likewise.
6383         * tests/test-fchownat.c: Include progname.h.
6384         (main): Call set_program_name.
6385         * tests/test-fstatat.c: Include progname.h.
6386         (main): Call set_program_name.
6387         * tests/test-mkdirat.c: Include progname.h.
6388         (main): Call set_program_name.
6389         * tests/test-openat.c: Include progname.h.
6390         (main): Call set_program_name.
6391         * tests/test-unlinkat.c: Include progname.h.
6392         (main): Call set_program_name.
6393         * tests/test-fdopendir.c: Include progname.h.
6394         (main): Call set_program_name.
6395
6396 2011-06-18  Bruno Haible  <bruno@clisp.org>
6397
6398         Doc update.
6399         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6400         HP-UX.
6401         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6402
6403 2011-06-18  Bruno Haible  <bruno@clisp.org>
6404
6405         getcwd tests: Avoid compilation error on HP-UX 11.31.
6406         * modules/getcwd-tests (Depends-on): Add pathmax.
6407         * tests/test-getcwd.c: Include pathmax.h.
6408
6409 2011-06-18  Bruno Haible  <bruno@clisp.org>
6410
6411         isfinite, isinf: Fix link error on AIX 6 and 7.
6412         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6413         needed, also test the macro with a 'float' argument.
6414         * m4/isinf.m4 (gl_ISINF): Likewise.
6415
6416 2011-06-18  Bruno Haible  <bruno@clisp.org>
6417
6418         getloadavg: Don't clobber LIBS. Regression from previous commit.
6419         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6420         AC_CHECK_LIB from here...
6421         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6422         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6423         gl_func_getloadavg_done.
6424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6425
6426 2011-06-18  Bruno Haible  <bruno@clisp.org>
6427
6428         clean-temp: Improve documentation.
6429         * lib/clean-temp.h: Explain better how to use this module.
6430         Reported by John Darrington <john@darrington.wattle.id.au>.
6431
6432 2011-06-17  Bruno Haible  <bruno@clisp.org>
6433
6434         pread, pwrite: Avoid cc warning on AIX.
6435         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6436         (pwrite): Likewise.
6437
6438 2011-06-17  Bruno Haible  <bruno@clisp.org>
6439
6440         spawn-pipe tests: Fix link error.
6441         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6443
6444 2011-06-17  Bruno Haible  <bruno@clisp.org>
6445
6446         Tests: Remove unnecessary dependency.
6447         * modules/canonicalize-tests (Depends-on): Remove progname.
6448         * modules/chown-tests (Depends-on): Likewise.
6449         * modules/dirname-tests (Depends-on): Likewise.
6450         * modules/fdopendir-tests (Depends-on): Likewise.
6451         * modules/fdutimensat-tests (Depends-on): Likewise.
6452         * modules/hash-tests (Depends-on): Likewise.
6453         * modules/lchown-tests (Depends-on): Likewise.
6454         * modules/linkat-tests (Depends-on): Likewise.
6455         * modules/renameat-tests (Depends-on): Likewise.
6456         * modules/spawn-pipe-tests (Depends-on): Likewise.
6457         * modules/utimensat-tests (Depends-on): Likewise.
6458
6459 2011-06-17  Bruno Haible  <bruno@clisp.org>
6460
6461         spawn-pipe tests: Fix link error.
6462         * tests/test-spawn-pipe-child.c: Undefine fflush.
6463
6464 2011-06-17  Bruno Haible  <bruno@clisp.org>
6465
6466         Fix tests link errors.
6467         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6468         * modules/chown-tests (Makefile.am): Don't link test-chown with
6469         LIBINTL.
6470         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6471         LIBINTL.
6472         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6473         LIBINTL.
6474         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6475         LIBINTL.
6476
6477 2011-06-16  Bruno Haible  <bruno@clisp.org>
6478
6479         crypto/gc-sha1: Fix recent regression.
6480         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6481         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6482
6483         crypto/gc-md5: Fix recent regression.
6484         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6485
6486         crypto/gc-md4: Fix recent regression.
6487         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6488         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6489
6490         crypto/gc-arctwo: Fix recent regression.
6491         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6492         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6493
6494         crypto/gc-rijndael: Fix recent regression.
6495         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6496         (configure.ac): Invoke AC_LIBOBJ here.
6497         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6499
6500         crypto/gc-hmac-sha1: Fix recent regression.
6501         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6502         (configure.ac): Invoke AC_LIBOBJ here.
6503         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6504         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6505
6506         crypto/gc-hmac-md5: Fix recent regression.
6507         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6508         (configure.ac): Invoke AC_LIBOBJ here.
6509         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6511
6512         crypto/gc-des: Fix recent regression.
6513         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6514         (configure.ac): Invoke AC_LIBOBJ here.
6515         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6517
6518         crypto/gc-arcfour: Fix recent regression.
6519         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6520         (configure.ac): Invoke AC_LIBOBJ here.
6521         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6522         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6523
6524 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6527         After the 2011-05-21 change, this macro requires
6528         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6529         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6530
6531 2011-06-16  Bruno Haible  <bruno@clisp.org>
6532
6533         fprintftime: Move AC_LIBOBJ invocations to module description.
6534         * m4/fprintftime.m4: Remove file.
6535         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6536         (configure.ac): Remove gl_FPRINTFTIME call.
6537         (Makefile.am): Augment lib_SOURCES.
6538         Reported by Jim Meyering.
6539
6540 2011-06-16  Bruno Haible  <bruno@clisp.org>
6541
6542         tmpfile-safer: Finish 2011-05-23 commit.
6543         * m4/stdio-safer.m4: Really remove file.
6544         Reported by Jim Meyering.
6545
6546 2011-06-16  Bruno Haible  <bruno@clisp.org>
6547
6548         syntax-check: Fix typo.
6549         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6550         printf-posix.m4.
6551         Reported by Jim Meyering.
6552
6553 2011-06-13  Jim Meyering  <meyering@redhat.com>
6554
6555         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6556         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6557
6558 2011-05-23  Bruno Haible  <bruno@clisp.org>
6559
6560         yesno: Move AC_LIBOBJ invocations to module description.
6561         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6562         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6563
6564 2011-05-23  Bruno Haible  <bruno@clisp.org>
6565
6566         xstrtol: Move AC_LIBOBJ invocations to module description.
6567         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6568         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6569
6570 2011-05-23  Bruno Haible  <bruno@clisp.org>
6571
6572         xstrtold: Move AC_LIBOBJ invocations to module description.
6573         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6574         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6575
6576 2011-05-23  Bruno Haible  <bruno@clisp.org>
6577
6578         xstrtod: Move AC_LIBOBJ invocations to module description.
6579         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6580         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6581
6582 2011-05-23  Bruno Haible  <bruno@clisp.org>
6583
6584         xnanosleep: Move AC_LIBOBJ invocations to module description.
6585         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6586         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6587
6588 2011-05-23  Bruno Haible  <bruno@clisp.org>
6589
6590         xgetcwd: Move AC_LIBOBJ invocations to module description.
6591         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6592         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6593
6594 2011-05-23  Bruno Haible  <bruno@clisp.org>
6595
6596         xalloc: Move AC_LIBOBJ invocations to module description.
6597         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6598         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6599
6600 2011-05-23  Bruno Haible  <bruno@clisp.org>
6601
6602         write-any-file: Move AC_LIBOBJ invocations to module description.
6603         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6604         invocation.
6605         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6606
6607 2011-05-23  Bruno Haible  <bruno@clisp.org>
6608
6609         utimens: Move AC_LIBOBJ invocations to module description.
6610         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6611         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6612
6613 2011-05-23  Bruno Haible  <bruno@clisp.org>
6614
6615         utimecmp: Move AC_LIBOBJ invocations to module description.
6616         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6617         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6618
6619 2011-05-23  Bruno Haible  <bruno@clisp.org>
6620
6621         userspec: Move AC_LIBOBJ invocations to module description.
6622         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6623         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6624
6625 2011-05-23  Bruno Haible  <bruno@clisp.org>
6626
6627         unlinkdir: Move AC_LIBOBJ invocations to module description.
6628         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6629         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6630
6631 2011-05-23  Bruno Haible  <bruno@clisp.org>
6632
6633         unistd-safer: Move AC_LIBOBJ invocations to module description.
6634         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6635         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6636
6637 2011-05-23  Bruno Haible  <bruno@clisp.org>
6638
6639         tempname: Move AC_LIBOBJ invocations to module description.
6640         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6641         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6642
6643 2011-05-23  Bruno Haible  <bruno@clisp.org>
6644
6645         strftime: Move AC_LIBOBJ invocations to module description.
6646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6647         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6648
6649 2011-05-23  Bruno Haible  <bruno@clisp.org>
6650
6651         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6652         * m4/stdlib-safer.m4: Remove file.
6653         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6654         (configure.ac): Remove gl_STDLIB_SAFER call.
6655         (Makefile.am): Augment lib_SOURCES.
6656
6657 2011-05-23  Bruno Haible  <bruno@clisp.org>
6658
6659         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6660         * m4/stdio-safer.m4: Remove file.
6661         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6662         (configure.ac): Remove gl_TMPFILE_SAFER call.
6663         (Makefile.am): Augment lib_SOURCES.
6664
6665 2011-05-23  Bruno Haible  <bruno@clisp.org>
6666
6667         popen-safer: Move AC_LIBOBJ invocations to module description.
6668         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6669         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6670         (configure.ac): Remove gl_POPEN_SAFER call.
6671         (Makefile.am): Augment lib_SOURCES.
6672
6673 2011-05-23  Bruno Haible  <bruno@clisp.org>
6674
6675         freopen-safer: Move AC_LIBOBJ invocations to module description.
6676         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6677         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6678         (configure.ac): Remove gl_FREOPEN_SAFER call.
6679         (Makefile.am): Augment lib_SOURCES.
6680
6681 2011-05-23  Bruno Haible  <bruno@clisp.org>
6682
6683         fopen-safer: Move AC_LIBOBJ invocations to module description.
6684         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6685         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6686         (configure.ac): Remove gl_FOPEN_SAFER call.
6687         (Makefile.am): Augment lib_SOURCES.
6688
6689 2011-05-23  Bruno Haible  <bruno@clisp.org>
6690
6691         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6692         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6693         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6694
6695 2011-05-23  Bruno Haible  <bruno@clisp.org>
6696
6697         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6698         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6699         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6700
6701 2011-05-23  Bruno Haible  <bruno@clisp.org>
6702
6703         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6704         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6705         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6706
6707 2011-05-23  Bruno Haible  <bruno@clisp.org>
6708
6709         settime: Move AC_LIBOBJ invocations to module description.
6710         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6711         * modules/settime (Makefile.am): Augment lib_SOURCES.
6712
6713 2011-05-23  Bruno Haible  <bruno@clisp.org>
6714
6715         savedir: Move AC_LIBOBJ invocations to module description.
6716         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6717         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6718
6719 2011-05-23  Bruno Haible  <bruno@clisp.org>
6720
6721         save-cwd: Move AC_LIBOBJ invocations to module description.
6722         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6723         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6724
6725 2011-05-23  Bruno Haible  <bruno@clisp.org>
6726
6727         same: Move AC_LIBOBJ invocations to module description.
6728         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6729         * modules/same (Makefile.am): Augment lib_SOURCES.
6730
6731 2011-05-23  Bruno Haible  <bruno@clisp.org>
6732
6733         safe-write: Move AC_LIBOBJ invocations to module description.
6734         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6735         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6736         instead of gl_SAFE_WRITE.
6737         (Makefile.am): Augment lib_SOURCES.
6738
6739 2011-05-23  Bruno Haible  <bruno@clisp.org>
6740
6741         safe-read: Move AC_LIBOBJ invocations to module description.
6742         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6743         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6744         of gl_SAFE_READ.
6745         (Makefile.am): Augment lib_SOURCES.
6746
6747 2011-05-23  Bruno Haible  <bruno@clisp.org>
6748
6749         safe-alloc: Move AC_LIBOBJ invocations to module description.
6750         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6751         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6752
6753 2011-05-23  Bruno Haible  <bruno@clisp.org>
6754
6755         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6756         * m4/rijndael.m4: Remove file.
6757         * modules/crypto/rijndael (Files): Remove it.
6758         (configure.ac): Remove gl_RIJNDAEL call.
6759         (Makefile.am): Augment lib_SOURCES.
6760
6761 2011-05-23  Bruno Haible  <bruno@clisp.org>
6762
6763         readtokens: Move AC_LIBOBJ invocations to module description.
6764         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6765         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6766
6767 2011-05-23  Bruno Haible  <bruno@clisp.org>
6768
6769         read-file: Move AC_LIBOBJ invocations to module description.
6770         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6771         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6772         of gl_FUNC_READ_FILE.
6773         (Makefile.am): Augment lib_SOURCES.
6774
6775 2011-05-23  Bruno Haible  <bruno@clisp.org>
6776
6777         quotearg: Move AC_LIBOBJ invocations to module description.
6778         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6779         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6780
6781 2011-05-23  Bruno Haible  <bruno@clisp.org>
6782
6783         quote: Move AC_LIBOBJ invocations to module description.
6784         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6785         * modules/quote (Makefile.am): Augment lib_SOURCES.
6786
6787 2011-05-23  Bruno Haible  <bruno@clisp.org>
6788
6789         posixver: Move AC_LIBOBJ invocations to module description.
6790         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6791         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6792
6793 2011-05-23  Bruno Haible  <bruno@clisp.org>
6794
6795         posixtm: Move AC_LIBOBJ invocations to module description.
6796         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6797         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6798
6799 2011-05-23  Bruno Haible  <bruno@clisp.org>
6800
6801         physmem: Move AC_LIBOBJ invocations to module description.
6802         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6803         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6804
6805 2011-05-23  Bruno Haible  <bruno@clisp.org>
6806
6807         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6808         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6809         invocation.
6810         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6811
6812 2011-05-23  Bruno Haible  <bruno@clisp.org>
6813
6814         mpsort: Move AC_LIBOBJ invocations to module description.
6815         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6816         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6817
6818 2011-05-23  Bruno Haible  <bruno@clisp.org>
6819
6820         modechange: Move AC_LIBOBJ invocations to module description.
6821         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6822         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6823
6824 2011-05-23  Bruno Haible  <bruno@clisp.org>
6825
6826         mkdir-p: Move AC_LIBOBJ invocations to module description.
6827         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6828         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6829
6830 2011-05-23  Bruno Haible  <bruno@clisp.org>
6831
6832         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6833         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6834         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6835
6836 2011-05-23  Bruno Haible  <bruno@clisp.org>
6837
6838         mgetgroups: Move AC_LIBOBJ invocations to module description.
6839         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6840         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6841
6842 2011-05-23  Bruno Haible  <bruno@clisp.org>
6843
6844         memxor: Move AC_LIBOBJ invocations to module description.
6845         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6846         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6847
6848 2011-05-23  Bruno Haible  <bruno@clisp.org>
6849
6850         memcoll: Move AC_LIBOBJ invocations to module description.
6851         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6852         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6853
6854 2011-05-23  Bruno Haible  <bruno@clisp.org>
6855
6856         memcasecmp: Move AC_LIBOBJ invocations to module description.
6857         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6858         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6859
6860 2011-05-23  Bruno Haible  <bruno@clisp.org>
6861
6862         crypto/md5: Move AC_LIBOBJ invocations to module description.
6863         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6864         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6865
6866 2011-05-23  Bruno Haible  <bruno@clisp.org>
6867
6868         crypto/md4: Move AC_LIBOBJ invocations to module description.
6869         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6870         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6871
6872 2011-05-23  Bruno Haible  <bruno@clisp.org>
6873
6874         crypto/md2: Move AC_LIBOBJ invocations to module description.
6875         * m4/md2.m4: Remove file.
6876         * modules/crypto/md2 (Files): Remove it.
6877         (configure.ac): Remove gl_MD2 call.
6878         (Makefile.am): Augment lib_SOURCES.
6879
6880 2011-05-23  Bruno Haible  <bruno@clisp.org>
6881
6882         long-options: Move AC_LIBOBJ invocations to module description.
6883         * m4/long-options.m4: Remove file.
6884         * modules/long-options (Files): Remove it.
6885         (configure.ac): Remove gl_LONG_OPTIONS call.
6886         (Makefile.am): Augment lib_SOURCES.
6887
6888 2011-05-23  Bruno Haible  <bruno@clisp.org>
6889
6890         i-ring: Move AC_LIBOBJ invocations to module description.
6891         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6892         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6893
6894 2011-05-23  Bruno Haible  <bruno@clisp.org>
6895
6896         idcache: Move AC_LIBOBJ invocations to module description.
6897         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6898         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6899
6900 2011-05-23  Bruno Haible  <bruno@clisp.org>
6901
6902         human: Move AC_LIBOBJ invocations to module description.
6903         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6904         * modules/human (Makefile.am): Augment lib_SOURCES.
6905
6906 2011-05-23  Bruno Haible  <bruno@clisp.org>
6907
6908         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6909         * m4/hmac-sha1.m4: Remove file.
6910         * modules/crypto/hmac-sha1 (Files): Remove it.
6911         (configure.ac): Remove gl_HMAC_SHA1 call.
6912         (Makefile.am): Augment lib_SOURCES.
6913
6914 2011-05-23  Bruno Haible  <bruno@clisp.org>
6915
6916         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6917         * m4/hmac-md5.m4: Remove file.
6918         * modules/crypto/hmac-md5 (Files): Remove it.
6919         (configure.ac): Remove gl_HMAC_MD5 call.
6920         (Makefile.am): Augment lib_SOURCES.
6921
6922 2011-05-23  Bruno Haible  <bruno@clisp.org>
6923
6924         hash: Move AC_LIBOBJ invocations to module description.
6925         * m4/hash.m4: Remove file.
6926         * modules/hash (Files): Remove it.
6927         (configure.ac): Remove gl_HASH call.
6928         (Makefile.am): Augment lib_SOURCES.
6929
6930 2011-05-23  Bruno Haible  <bruno@clisp.org>
6931
6932         hard-locale: Move AC_LIBOBJ invocations to module description.
6933         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6934         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6935
6936 2011-05-23  Bruno Haible  <bruno@clisp.org>
6937
6938         getugroups: Move AC_LIBOBJ invocations to module description.
6939         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6940         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6941
6942 2011-05-23  Bruno Haible  <bruno@clisp.org>
6943
6944         gettime: Move AC_LIBOBJ invocations to module description.
6945         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6946         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6947
6948 2011-05-23  Bruno Haible  <bruno@clisp.org>
6949
6950         getndelim2: Move AC_LIBOBJ invocations to module description.
6951         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6952         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6953
6954 2011-05-23  Bruno Haible  <bruno@clisp.org>
6955
6956         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6957         * m4/gc-pbkdf2-sha1.m4: Remove file.
6958         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6959         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6960         (Makefile.am): Augment lib_SOURCES.
6961
6962 2011-05-23  Bruno Haible  <bruno@clisp.org>
6963
6964         fts: Move AC_LIBOBJ invocations to module description.
6965         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6966         * modules/fts (configure.ac): ... to here.
6967
6968 2011-05-23  Bruno Haible  <bruno@clisp.org>
6969
6970         file-type: Move AC_LIBOBJ invocations to module description.
6971         * m4/file-type.m4: Remove file.
6972         * modules/file-type (Files): Remove it.
6973         (configure.ac): Remove gl_FILE_TYPE call.
6974         (Makefile.am): Augment lib_SOURCES.
6975
6976 2011-05-23  Bruno Haible  <bruno@clisp.org>
6977
6978         filenamecat*: Respect rules for use of AC_LIBOBJ.
6979         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6980         Remove AC_LIBOBJ invocation.
6981         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6982         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6983
6984 2011-05-23  Bruno Haible  <bruno@clisp.org>
6985
6986         filemode: Move AC_LIBOBJ invocations to module description.
6987         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6988         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6989
6990 2011-05-23  Bruno Haible  <bruno@clisp.org>
6991
6992         openat-safer: Move AC_LIBOBJ invocations to module description.
6993         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6994         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6995
6996 2011-05-23  Bruno Haible  <bruno@clisp.org>
6997
6998         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6999         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7000         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7001
7002 2011-05-23  Bruno Haible  <bruno@clisp.org>
7003
7004         exclude: Move AC_LIBOBJ invocations to module description.
7005         * m4/exclude.m4: Remove file.
7006         * modules/exclude (Files): Remove it.
7007         (configure.ac): Remove gl_EXCLUDE call.
7008         (Makefile.am): Augment lib_SOURCES.
7009
7010 2011-05-23  Bruno Haible  <bruno@clisp.org>
7011
7012         dirname*: Respect rules for use of AC_LIBOBJ.
7013         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7014         invocations.
7015         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7016         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7017
7018 2011-05-23  Bruno Haible  <bruno@clisp.org>
7019
7020         dirent-safer: Move AC_LIBOBJ invocations to module description.
7021         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7022         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7023
7024 2011-05-23  Bruno Haible  <bruno@clisp.org>
7025
7026         crypto/des: Move AC_LIBOBJ invocations to module description.
7027         * m4/des.m4: Remove file.
7028         * modules/crypto/des (Files): Remove it.
7029         (configure.ac): Remove gl_DES call.
7030         (Makefile.am): Augment lib_SOURCES.
7031
7032 2011-05-23  Bruno Haible  <bruno@clisp.org>
7033
7034         cycle-check: Move AC_LIBOBJ invocations to module description.
7035         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7036         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7037
7038 2011-05-23  Bruno Haible  <bruno@clisp.org>
7039
7040         c-strtold: Move AC_LIBOBJ invocations to module description.
7041         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7042         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7043
7044 2011-05-23  Bruno Haible  <bruno@clisp.org>
7045
7046         c-strtod: Move AC_LIBOBJ invocations to module description.
7047         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7048         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7049
7050 2011-05-23  Bruno Haible  <bruno@clisp.org>
7051
7052         crc: Move AC_LIBOBJ invocations to module description.
7053         * m4/crc.m4: Remove file.
7054         * modules/crc (Files): Remove it.
7055         (configure.ac): Remove gl_CRC call.
7056         (Makefile.am): Augment lib_SOURCES.
7057
7058 2011-05-23  Bruno Haible  <bruno@clisp.org>
7059
7060         close-stream: Move AC_LIBOBJ invocations to module description.
7061         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7062         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7063
7064 2011-05-23  Bruno Haible  <bruno@clisp.org>
7065
7066         closeout: Move AC_LIBOBJ invocations to module description.
7067         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7068         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7069
7070 2011-05-23  Bruno Haible  <bruno@clisp.org>
7071
7072         closein: Move AC_LIBOBJ invocations to module description.
7073         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7074         * modules/closein (Makefile.am): Augment lib_SOURCES.
7075
7076 2011-05-23  Bruno Haible  <bruno@clisp.org>
7077
7078         cloexec: Move AC_LIBOBJ invocations to module description.
7079         * m4/cloexec.m4: Remove file.
7080         * modules/cloexec (Files): Remove it.
7081         (configure.ac): Remove gl_CLOEXEC call.
7082         (Makefile.am): Augment lib_SOURCES.
7083
7084 2011-05-23  Bruno Haible  <bruno@clisp.org>
7085
7086         check-version: Move AC_LIBOBJ invocations to module description.
7087         * m4/check-version.m4: Remove file.
7088         * modules/check-version (Files): Remove it.
7089         (configure.ac): Remove gl_CHECK_VERSION call.
7090         (Makefile.am): Augment lib_SOURCES.
7091
7092 2011-05-23  Bruno Haible  <bruno@clisp.org>
7093
7094         chdir-safer: Move AC_LIBOBJ invocations to module description.
7095         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7096         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7097
7098 2011-05-23  Bruno Haible  <bruno@clisp.org>
7099
7100         canonicalize: Move AC_LIBOBJ invocations to module description.
7101         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7102         AC_LIBOBJ invocation.
7103         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7104
7105 2011-05-23  Bruno Haible  <bruno@clisp.org>
7106
7107         canon-host: Move AC_LIBOBJ invocations to module description.
7108         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7109         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7110         instead of gl_CANON_HOST.
7111         (Makefile.am): Augment lib_SOURCES.
7112
7113 2011-05-23  Bruno Haible  <bruno@clisp.org>
7114
7115         backupfile: Move AC_LIBOBJ invocations to module description.
7116         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7117         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7118
7119 2011-05-23  Bruno Haible  <bruno@clisp.org>
7120
7121         argmatch: Move AC_LIBOBJ invocations to module description.
7122         * m4/argmatch.m4: Remove file.
7123         * modules/argmatch (Files): Remove it.
7124         (configure.ac): Remove gl_ARGMATCH call.
7125         (Makefile.am): Augment lib_SOURCES.
7126
7127 2011-05-23  Bruno Haible  <bruno@clisp.org>
7128
7129         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7130         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7131         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7132
7133 2011-05-23  Bruno Haible  <bruno@clisp.org>
7134
7135         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7136         * m4/arcfour.m4: Remove file.
7137         * modules/crypto/arcfour (Files): Remove it.
7138         (configure.ac): Remove gl_ARCFOUR call.
7139         (Makefile.am): Augment lib_SOURCES.
7140
7141 2011-05-22  Bruno Haible  <bruno@clisp.org>
7142
7143         write: Move AC_LIBOBJ invocations to module description.
7144         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7145         * modules/write (configure.ac): ... to here.
7146
7147 2011-05-22  Bruno Haible  <bruno@clisp.org>
7148
7149         wmemset: Move AC_LIBOBJ invocations to module description.
7150         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7151         here...
7152         * modules/wmemset (configure.ac): ... to here.
7153
7154 2011-05-22  Bruno Haible  <bruno@clisp.org>
7155
7156         wmemmove: Move AC_LIBOBJ invocations to module description.
7157         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7158         here...
7159         * modules/wmemmove (configure.ac): ... to here.
7160
7161 2011-05-22  Bruno Haible  <bruno@clisp.org>
7162
7163         wmemcpy: Move AC_LIBOBJ invocations to module description.
7164         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7165         here...
7166         * modules/wmemcpy (configure.ac): ... to here.
7167
7168 2011-05-22  Bruno Haible  <bruno@clisp.org>
7169
7170         wmemcmp: Move AC_LIBOBJ invocations to module description.
7171         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7172         here...
7173         * modules/wmemcmp (configure.ac): ... to here.
7174
7175 2011-05-22  Bruno Haible  <bruno@clisp.org>
7176
7177         wmemchr: Move AC_LIBOBJ invocations to module description.
7178         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7179         here...
7180         * modules/wmemchr (configure.ac): ... to here.
7181
7182 2011-05-22  Bruno Haible  <bruno@clisp.org>
7183
7184         wcswidth: Move AC_LIBOBJ invocations to module description.
7185         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7186         here...
7187         * modules/wcswidth (configure.ac): ... to here.
7188
7189 2011-05-22  Bruno Haible  <bruno@clisp.org>
7190
7191         wcwidth: Respect rules for use of AC_LIBOBJ.
7192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7193         invocation from here...
7194         * modules/wcwidth (configure.ac): ... to here.
7195         (Depends-on): Update conditions.
7196
7197 2011-05-22  Bruno Haible  <bruno@clisp.org>
7198
7199         wctype: Move AC_LIBOBJ invocations to module description.
7200         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7201         invocation from here...
7202         * modules/wctype (configure.ac): ... to here.
7203         (Depends-on): Update conditions.
7204
7205 2011-05-22  Bruno Haible  <bruno@clisp.org>
7206
7207         wctrans: Move AC_LIBOBJ invocations to module description.
7208         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7209         invocation from here...
7210         * modules/wctrans (configure.ac): ... to here.
7211
7212 2011-05-22  Bruno Haible  <bruno@clisp.org>
7213
7214         wctomb: Move AC_LIBOBJ invocations to module description.
7215         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7216         invocations from here...
7217         * modules/wctomb (configure.ac): ... to here.
7218
7219 2011-05-22  Bruno Haible  <bruno@clisp.org>
7220
7221         wctob: Move AC_LIBOBJ invocations to module description.
7222         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7223         gl_PREREQ_WCTOB invocations from here...
7224         * modules/wctob (configure.ac): ... to here.
7225         (Depends-on): Update conditions.
7226
7227 2011-05-22  Bruno Haible  <bruno@clisp.org>
7228
7229         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7230         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7231         here...
7232         * modules/wcsxfrm (configure.ac): ... to here.
7233
7234 2011-05-22  Bruno Haible  <bruno@clisp.org>
7235
7236         wcstok: Move AC_LIBOBJ invocations to module description.
7237         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7238         * modules/wcstok (configure.ac): ... to here.
7239
7240 2011-05-22  Bruno Haible  <bruno@clisp.org>
7241
7242         wcsstr: Move AC_LIBOBJ invocations to module description.
7243         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7244         * modules/wcsstr (configure.ac): ... to here.
7245
7246 2011-05-22  Bruno Haible  <bruno@clisp.org>
7247
7248         wcsspn: Move AC_LIBOBJ invocations to module description.
7249         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7250         * modules/wcsspn (configure.ac): ... to here.
7251
7252 2011-05-22  Bruno Haible  <bruno@clisp.org>
7253
7254         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7255         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7256         gl_PREREQ_WCSRTOMBS invocations from here...
7257         * modules/wcsrtombs (configure.ac): ... to here.
7258
7259 2011-05-22  Bruno Haible  <bruno@clisp.org>
7260
7261         wcsrchr: Move AC_LIBOBJ invocations to module description.
7262         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7263         here...
7264         * modules/wcsrchr (configure.ac): ... to here.
7265
7266 2011-05-22  Bruno Haible  <bruno@clisp.org>
7267
7268         wcspbrk: Move AC_LIBOBJ invocations to module description.
7269         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7270         here...
7271         * modules/wcspbrk (configure.ac): ... to here.
7272
7273 2011-05-22  Bruno Haible  <bruno@clisp.org>
7274
7275         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7276         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7277         gl_PREREQ_WCSNRTOMBS invocations from here...
7278         * modules/wcsnrtombs (configure.ac): ... to here.
7279
7280 2011-05-22  Bruno Haible  <bruno@clisp.org>
7281
7282         wcsnlen: Move AC_LIBOBJ invocations to module description.
7283         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7284         here...
7285         * modules/wcsnlen (configure.ac): ... to here.
7286
7287 2011-05-22  Bruno Haible  <bruno@clisp.org>
7288
7289         wcsncpy: Move AC_LIBOBJ invocations to module description.
7290         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7291         here...
7292         * modules/wcsncpy (configure.ac): ... to here.
7293
7294 2011-05-22  Bruno Haible  <bruno@clisp.org>
7295
7296         wcsncmp: Move AC_LIBOBJ invocations to module description.
7297         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7298         here...
7299         * modules/wcsncmp (configure.ac): ... to here.
7300
7301 2011-05-22  Bruno Haible  <bruno@clisp.org>
7302
7303         wcsncat: Move AC_LIBOBJ invocations to module description.
7304         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7305         here...
7306         * modules/wcsncat (configure.ac): ... to here.
7307
7308 2011-05-22  Bruno Haible  <bruno@clisp.org>
7309
7310         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7311         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7312         from here...
7313         * modules/wcsncasecmp (configure.ac): ... to here.
7314
7315 2011-05-22  Bruno Haible  <bruno@clisp.org>
7316
7317         wcslen: Move AC_LIBOBJ invocations to module description.
7318         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7319         * modules/wcslen (configure.ac): ... to here.
7320
7321 2011-05-22  Bruno Haible  <bruno@clisp.org>
7322
7323         wcsdup: Move AC_LIBOBJ invocations to module description.
7324         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7325         * modules/wcsdup (configure.ac): ... to here.
7326
7327 2011-05-22  Bruno Haible  <bruno@clisp.org>
7328
7329         wcscspn: Move AC_LIBOBJ invocations to module description.
7330         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7331         here...
7332         * modules/wcscspn (configure.ac): ... to here.
7333
7334 2011-05-22  Bruno Haible  <bruno@clisp.org>
7335
7336         wcscpy: Move AC_LIBOBJ invocations to module description.
7337         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7338         * modules/wcscpy (configure.ac): ... to here.
7339
7340 2011-05-22  Bruno Haible  <bruno@clisp.org>
7341
7342         wcscoll: Move AC_LIBOBJ invocations to module description.
7343         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7344         here...
7345         * modules/wcscoll (configure.ac): ... to here.
7346
7347 2011-05-22  Bruno Haible  <bruno@clisp.org>
7348
7349         wcscmp: Move AC_LIBOBJ invocations to module description.
7350         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7351         * modules/wcscmp (configure.ac): ... to here.
7352
7353 2011-05-22  Bruno Haible  <bruno@clisp.org>
7354
7355         wcschr: Move AC_LIBOBJ invocations to module description.
7356         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7357         * modules/wcschr (configure.ac): ... to here.
7358
7359 2011-05-22  Bruno Haible  <bruno@clisp.org>
7360
7361         wcscat: Move AC_LIBOBJ invocations to module description.
7362         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7363         * modules/wcscat (configure.ac): ... to here.
7364
7365 2011-05-22  Bruno Haible  <bruno@clisp.org>
7366
7367         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7368         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7369         here...
7370         * modules/wcscasecmp (configure.ac): ... to here.
7371
7372 2011-05-22  Bruno Haible  <bruno@clisp.org>
7373
7374         wcrtomb: Move AC_LIBOBJ invocations to module description.
7375         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7376         invocations from here...
7377         * modules/wcrtomb (configure.ac): ... to here.
7378
7379 2011-05-22  Bruno Haible  <bruno@clisp.org>
7380
7381         wcpncpy: Move AC_LIBOBJ invocations to module description.
7382         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7383         here...
7384         * modules/wcpncpy (configure.ac): ... to here.
7385
7386 2011-05-22  Bruno Haible  <bruno@clisp.org>
7387
7388         wcpcpy: Move AC_LIBOBJ invocations to module description.
7389         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7390         * modules/wcpcpy (configure.ac): ... to here.
7391
7392 2011-05-22  Bruno Haible  <bruno@clisp.org>
7393
7394         waitpid: Move AC_LIBOBJ invocations to module description.
7395         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7396         invocation from here...
7397         * modules/waitpid (configure.ac): ... to here.
7398
7399 2011-05-22  Bruno Haible  <bruno@clisp.org>
7400
7401         utimensat: Move AC_LIBOBJ invocations to module description.
7402         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7403         here...
7404         * modules/utimensat (configure.ac): ... to here.
7405
7406 2011-05-22  Bruno Haible  <bruno@clisp.org>
7407
7408         usleep: Move AC_LIBOBJ invocations to module description.
7409         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7410         here...
7411         * modules/usleep (configure.ac): ... to here.
7412
7413 2011-05-22  Bruno Haible  <bruno@clisp.org>
7414
7415         unlockpt: Move AC_LIBOBJ invocations to module description.
7416         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7417         gl_PREREQ_UNLOCKPT invocations from here...
7418         * modules/unlockpt (configure.ac): ... to here.
7419
7420 2011-05-22  Bruno Haible  <bruno@clisp.org>
7421
7422         unlink: Respect rules for use of AC_LIBOBJ.
7423         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7424         * modules/unlink (configure.ac): ... to here.
7425
7426 2011-05-22  Bruno Haible  <bruno@clisp.org>
7427
7428         uname: Move AC_LIBOBJ invocations to module description.
7429         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7430         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7431         here...
7432         * modules/uname (configure.ac): ... to here.
7433
7434 2011-05-22  Bruno Haible  <bruno@clisp.org>
7435
7436         ttyname_r: Move AC_LIBOBJ invocations to module description.
7437         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7438         gl_PREREQ_TTYNAME_R invocations from here...
7439         * modules/ttyname_r (configure.ac): ... to here.
7440
7441 2011-05-22  Bruno Haible  <bruno@clisp.org>
7442
7443         tsearch: Move AC_LIBOBJ invocations to module description.
7444         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7445         invocations from here...
7446         * modules/tsearch (configure.ac): ... to here.
7447
7448 2011-05-22  Bruno Haible  <bruno@clisp.org>
7449
7450         towctrans: Move AC_LIBOBJ invocations to module description.
7451         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7452         AC_LIBOBJ invocation from here...
7453         * modules/towctrans (configure.ac): ... to here.
7454
7455 2011-05-22  Bruno Haible  <bruno@clisp.org>
7456
7457         tmpfile: Move AC_LIBOBJ invocations to module description.
7458         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7459         invocations from here...
7460         * modules/tmpfile (configure.ac): ... to here.
7461
7462 2011-05-22  Bruno Haible  <bruno@clisp.org>
7463
7464         times: Move AC_LIBOBJ invocations to module description.
7465         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7466         * modules/times (configure.ac): ... to here.
7467
7468 2011-05-22  Bruno Haible  <bruno@clisp.org>
7469
7470         time_r: Move AC_LIBOBJ invocations to module description.
7471         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7472         invocations from here...
7473         * modules/time_r (configure.ac): ... to here.
7474
7475 2011-05-22  Bruno Haible  <bruno@clisp.org>
7476
7477         timegm: Move AC_LIBOBJ invocations to module description.
7478         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7479         invocations from here...
7480         * modules/timegm (configure.ac): ... to here.
7481
7482 2011-05-22  Bruno Haible  <bruno@clisp.org>
7483
7484         tcgetsid: Move AC_LIBOBJ invocations to module description.
7485         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7486         and gl_PREREQ_TCGETSID invocations from here...
7487         * modules/tcgetsid (configure.ac): ... to here.
7488         (Depends-on): Update conditions.
7489
7490 2011-05-22  Bruno Haible  <bruno@clisp.org>
7491
7492         symlinkat: Move AC_LIBOBJ invocations to module description.
7493         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7494         here...
7495         * modules/symlinkat (configure.ac): ... to here.
7496
7497 2011-05-22  Bruno Haible  <bruno@clisp.org>
7498
7499         symlink: Move AC_LIBOBJ invocations to module description.
7500         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7501         here...
7502         * modules/symlink (configure.ac): ... to here.
7503
7504 2011-05-22  Bruno Haible  <bruno@clisp.org>
7505
7506         strverscmp: Move AC_LIBOBJ invocations to module description.
7507         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7508         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7509         from here...
7510         * modules/strverscmp (configure.ac): ... to here.
7511
7512 2011-05-22  Bruno Haible  <bruno@clisp.org>
7513
7514         strtok_r: Move AC_LIBOBJ invocations to module description.
7515         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7516         and gl_PREREQ_STRTOK_R invocations from here...
7517         * modules/strtok_r (configure.ac): ... to here.
7518         (Depends-on): Update conditions.
7519
7520 2011-05-22  Bruno Haible  <bruno@clisp.org>
7521
7522         strtoumax: Move AC_LIBOBJ invocations to module description.
7523         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7524         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7525         from here...
7526         * modules/strtoumax (configure.ac): ... to here.
7527
7528 2011-05-22  Bruno Haible  <bruno@clisp.org>
7529
7530         strtoimax: Move AC_LIBOBJ invocations to module description.
7531         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7533         from here...
7534         * modules/strtoimax (configure.ac): ... to here.
7535
7536 2011-05-22  Bruno Haible  <bruno@clisp.org>
7537
7538         strtoull: Move AC_LIBOBJ invocations to module description.
7539         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7540         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7541         from here...
7542         * modules/strtoull (configure.ac): ... to here.
7543
7544 2011-05-22  Bruno Haible  <bruno@clisp.org>
7545
7546         strtoll: Move AC_LIBOBJ invocations to module description.
7547         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7549         here...
7550         * modules/strtoll (configure.ac): ... to here.
7551
7552 2011-05-22  Bruno Haible  <bruno@clisp.org>
7553
7554         strtoul: Move AC_LIBOBJ invocations to module description.
7555         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7556         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7557         * modules/strtoul (configure.ac): ... to here.
7558
7559 2011-05-22  Bruno Haible  <bruno@clisp.org>
7560
7561         strtol: Move AC_LIBOBJ invocations to module description.
7562         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7563         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7564         * modules/strtol (configure.ac): ... to here.
7565
7566 2011-05-22  Bruno Haible  <bruno@clisp.org>
7567
7568         strtod: Move AC_LIBOBJ invocations to module description.
7569         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7570         invocations from here...
7571         * modules/strtod (configure.ac): ... to here.
7572
7573 2011-05-22  Bruno Haible  <bruno@clisp.org>
7574
7575         strstr*: Move AC_LIBOBJ invocations to module description.
7576         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7577         invocations from here...
7578         * modules/strstr-simple (configure.ac): ... to here.
7579         * modules/strstr (configure.ac): ... and here.
7580
7581 2011-05-22  Bruno Haible  <bruno@clisp.org>
7582
7583         strsignal: Move AC_LIBOBJ invocations to module description.
7584         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7585         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7586         * modules/strsignal (configure.ac): ... to here.
7587         (Depends-on): Update conditions.
7588
7589 2011-05-22  Bruno Haible  <bruno@clisp.org>
7590
7591         strsep: Move AC_LIBOBJ invocations to module description.
7592         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7593         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7594         here...
7595         * modules/strsep (configure.ac): ... to here.
7596
7597 2011-05-22  Bruno Haible  <bruno@clisp.org>
7598
7599         strptime: Move AC_LIBOBJ invocations to module description.
7600         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7601         gl_PREREQ_STRPTIME invocations from here...
7602         * modules/strptime (configure.ac): ... to here.
7603
7604 2011-05-22  Bruno Haible  <bruno@clisp.org>
7605
7606         strpbrk: Move AC_LIBOBJ invocations to module description.
7607         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7608         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7609         here...
7610         * modules/strpbrk (configure.ac): ... to here.
7611
7612 2011-05-22  Bruno Haible  <bruno@clisp.org>
7613
7614         strnlen: Move AC_LIBOBJ invocations to module description.
7615         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7616         invocations from here...
7617         * modules/strnlen (configure.ac): ... to here.
7618
7619 2011-05-22  Bruno Haible  <bruno@clisp.org>
7620
7621         strndup: Move AC_LIBOBJ invocations to module description.
7622         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7623         invocations from here...
7624         * modules/strndup (configure.ac): ... to here.
7625         (Depends-on): Update conditions.
7626
7627 2011-05-22  Bruno Haible  <bruno@clisp.org>
7628
7629         strncat: Move AC_LIBOBJ invocations to module description.
7630         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7631         invocations from here...
7632         * modules/strncat (configure.ac): ... to here.
7633
7634 2011-05-22  Bruno Haible  <bruno@clisp.org>
7635
7636         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7637         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7638         invocations from here...
7639         * modules/strdup (configure.ac): ... to here.
7640         * modules/strdup-posix (configure.ac): ... and here.
7641
7642 2011-05-22  Bruno Haible  <bruno@clisp.org>
7643
7644         strcspn: Move AC_LIBOBJ invocations to module description.
7645         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7647         here...
7648         * modules/strcspn (configure.ac): ... to here.
7649
7650 2011-05-22  Bruno Haible  <bruno@clisp.org>
7651
7652         strchrnul: Move AC_LIBOBJ invocations to module description.
7653         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7654         gl_PREREQ_STRCHRNUL invocations from here...
7655         * modules/strchrnul (configure.ac): ... to here.
7656
7657 2011-05-22  Bruno Haible  <bruno@clisp.org>
7658
7659         strcasestr*: Move AC_LIBOBJ invocations to module description.
7660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7661         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7662         * modules/strcasestr-simple (configure.ac): ... to here.
7663         * modules/strcasestr (configure.ac): ... and here.
7664
7665 2011-05-22  Bruno Haible  <bruno@clisp.org>
7666
7667         strcase: Move AC_LIBOBJ invocations to module description.
7668         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7669         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7670         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7671         gl_PREREQ_STRNCASECMP invocations from here...
7672         * modules/strcase (configure.ac): ... to here.
7673
7674 2011-05-22  Bruno Haible  <bruno@clisp.org>
7675
7676         stpncpy: Move AC_LIBOBJ invocations to module description.
7677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7678         here...
7679         * modules/stpncpy (configure.ac): ... to here.
7680
7681 2011-05-22  Bruno Haible  <bruno@clisp.org>
7682
7683         stpcpy: Move AC_LIBOBJ invocations to module description.
7684         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7685         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7686         here...
7687         * modules/stpcpy (configure.ac): ... to here.
7688
7689 2011-05-21  Bruno Haible  <bruno@clisp.org>
7690
7691         stat: Move AC_LIBOBJ invocations to module description.
7692         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7693         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7694         here...
7695         * modules/stat (configure.ac): ... to here.
7696
7697 2011-05-21  Bruno Haible  <bruno@clisp.org>
7698
7699         sleep: Move AC_LIBOBJ invocations to module description.
7700         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7701         * modules/sleep (configure.ac): ... to here.
7702
7703 2011-05-21  Bruno Haible  <bruno@clisp.org>
7704
7705         signbit: Move AC_LIBOBJ invocations to module description.
7706         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7707         * modules/signbit (configure.ac): ... to here.
7708
7709 2011-05-21  Bruno Haible  <bruno@clisp.org>
7710
7711         sigprocmask: Move AC_LIBOBJ invocations to module description.
7712         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7713         gl_PREREQ_SIGPROMASK invocations from here...
7714         * modules/sigprocmask (configure.ac): ... to here.
7715
7716 2011-05-21  Bruno Haible  <bruno@clisp.org>
7717
7718         sigaction: Move AC_LIBOBJ invocations to module description.
7719         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7720         gl_PREREQ_SIGACTION invocations from here...
7721         * modules/sigaction (configure.ac): ... to here.
7722
7723 2011-05-21  Bruno Haible  <bruno@clisp.org>
7724
7725         sig2str: Move AC_LIBOBJ invocations to module description.
7726         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7728         here...
7729         * modules/sig2str (configure.ac): ... to here.
7730
7731 2011-05-21  Bruno Haible  <bruno@clisp.org>
7732
7733         setlocale: Move AC_LIBOBJ invocations to module description.
7734         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7735         gl_PREREQ_SETLOCALE invocations from here...
7736         * modules/setlocale (configure.ac): ... to here.
7737
7738 2011-05-21  Bruno Haible  <bruno@clisp.org>
7739
7740         unsetenv: Move AC_LIBOBJ invocations to module description.
7741         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7742         and gl_PREREQ_UNSETENV invocations from here...
7743         * modules/unsetenv (configure.ac): ... to here.
7744         (Depends-on): Update.
7745
7746 2011-05-21  Bruno Haible  <bruno@clisp.org>
7747
7748         setenv: Move AC_LIBOBJ invocations to module description.
7749         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7750         here...
7751         * modules/setenv (configure.ac): ... to here.
7752
7753 2011-05-21  Bruno Haible  <bruno@clisp.org>
7754
7755         selinux-h: Move AC_LIBOBJ invocations to module description.
7756         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7757         AC_LIBOBJ invocation from here...
7758         * modules/selinux-h (configure.ac): ... to here.
7759
7760 2011-05-21  Bruno Haible  <bruno@clisp.org>
7761
7762         select: Respect rules for use of AC_LIBOBJ.
7763         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7764         here...
7765         * modules/select (configure.ac): ... to here.
7766
7767 2011-05-21  Bruno Haible  <bruno@clisp.org>
7768
7769         scandir: Move AC_LIBOBJ invocations to module description.
7770         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7771         invocations from here...
7772         * modules/scandir (configure.ac): ... to here.
7773
7774 2011-05-21  Bruno Haible  <bruno@clisp.org>
7775
7776         rpmatch: Move AC_LIBOBJ invocations to module description.
7777         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7778         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7779         here...
7780         * modules/rpmatch (configure.ac): ... to here.
7781
7782 2011-05-21  Bruno Haible  <bruno@clisp.org>
7783
7784         rmdir: Respect rules for use of AC_LIBOBJ.
7785         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7786         * modules/rmdir (configure.ac): ... to here.
7787
7788 2011-05-21  Bruno Haible  <bruno@clisp.org>
7789
7790         renameat: Move AC_LIBOBJ invocations to module description.
7791         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7792         here...
7793         * modules/renameat (configure.ac): ... to here.
7794
7795 2011-05-21  Bruno Haible  <bruno@clisp.org>
7796
7797         rename: Respect rules for use of AC_LIBOBJ.
7798         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7799         here...
7800         * modules/rename (configure.ac): ... to here.
7801
7802 2011-05-21  Bruno Haible  <bruno@clisp.org>
7803
7804         remove: Move AC_LIBOBJ invocations to module description.
7805         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7806         here...
7807         * modules/remove (configure.ac): ... to here.
7808
7809 2011-05-21  Bruno Haible  <bruno@clisp.org>
7810
7811         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7812         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7813         macro.
7814         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7815         * modules/relocatable-lib (configure.ac): ... to here.
7816         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7817         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7818
7819 2011-05-21  Bruno Haible  <bruno@clisp.org>
7820
7821         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7822         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7823         here...
7824         * modules/relocatable-prog (configure.ac): ... to here.
7825
7826 2011-05-21  Bruno Haible  <bruno@clisp.org>
7827
7828         regex: Move AC_LIBOBJ invocations to module description.
7829         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7830         invocations from here...
7831         * modules/regex (configure.ac): ... to here.
7832
7833 2011-05-21  Bruno Haible  <bruno@clisp.org>
7834
7835         realloc-*: Move AC_LIBOBJ invocations to module description.
7836         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7837         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7838         AC_LIBOBJ invocations from here...
7839         * modules/realloc-gnu (configure.ac): ... to here.
7840         * modules/realloc-posix (configure.ac): ... and here.
7841
7842 2011-05-21  Bruno Haible  <bruno@clisp.org>
7843
7844         readutmp: Move AC_LIBOBJ invocations to module description.
7845         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7846         * modules/readutmp (configure.ac): ... to here.
7847
7848 2011-05-21  Bruno Haible  <bruno@clisp.org>
7849
7850         readlinkat: Move AC_LIBOBJ invocations to module description.
7851         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7852         here...
7853         * modules/readlinkat (configure.ac): ... to here.
7854
7855 2011-05-21  Bruno Haible  <bruno@clisp.org>
7856
7857         readlink: Move AC_LIBOBJ invocations to module description.
7858         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7859         gl_PREREQ_READLINK invocations from here...
7860         * modules/readlink (configure.ac): ... to here.
7861
7862 2011-05-21  Bruno Haible  <bruno@clisp.org>
7863
7864         readline: Move AC_LIBOBJ invocations to module description.
7865         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7866         gl_PREREQ_READLINE invocations from here...
7867         * modules/readline (configure.ac): ... to here.
7868
7869 2011-05-21  Bruno Haible  <bruno@clisp.org>
7870
7871         read: Move AC_LIBOBJ invocations to module description.
7872         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7873         * modules/read (configure.ac): ... to here.
7874
7875 2011-05-21  Bruno Haible  <bruno@clisp.org>
7876
7877         rawmemchr: Move AC_LIBOBJ invocations to module description.
7878         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7880         from here...
7881         * modules/rawmemchr (configure.ac): ... to here.
7882
7883 2011-05-21  Bruno Haible  <bruno@clisp.org>
7884
7885         random_r: Move AC_LIBOBJ invocations to module description.
7886         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7887         gl_PREREQ_RANDOM_R invocations from here...
7888         * modules/random_r (configure.ac): ... to here.
7889
7890 2011-05-21  Bruno Haible  <bruno@clisp.org>
7891
7892         pwrite: Move AC_LIBOBJ invocations to module description.
7893         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7894         * modules/pwrite (configure.ac): ... to here.
7895
7896 2011-05-21  Bruno Haible  <bruno@clisp.org>
7897
7898         putenv: Move AC_LIBOBJ invocations to module description.
7899         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7900         * modules/putenv (configure.ac): ... to here.
7901
7902 2011-05-21  Bruno Haible  <bruno@clisp.org>
7903
7904         login_tty: Move AC_LIBOBJ invocations to module description.
7905         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7906         * modules/login_tty (configure.ac): ... to here.
7907
7908 2011-05-21  Bruno Haible  <bruno@clisp.org>
7909
7910         openpty: Move AC_LIBOBJ invocations to module description.
7911         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7912         * modules/openpty (configure.ac): ... to here.
7913
7914 2011-05-21  Bruno Haible  <bruno@clisp.org>
7915
7916         forkpty: Move AC_LIBOBJ invocations to module description.
7917         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7918         * modules/forkpty (configure.ac): ... to here.
7919
7920 2011-05-21  Bruno Haible  <bruno@clisp.org>
7921
7922         ptsname: Move AC_LIBOBJ invocations to module description.
7923         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7924         invocations from here...
7925         * modules/ptsname (configure.ac): ... to here.
7926
7927 2011-05-21  Bruno Haible  <bruno@clisp.org>
7928
7929         pread: Move AC_LIBOBJ invocations to module description.
7930         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7931         * modules/pread (configure.ac): ... to here.
7932
7933 2011-05-21  Bruno Haible  <bruno@clisp.org>
7934
7935         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7936         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7937         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7938         * modules/posix_spawn (configure.ac): ... to here.
7939         * modules/posix_spawnp (configure.ac): ... and here.
7940
7941 2011-05-21  Bruno Haible  <bruno@clisp.org>
7942
7943         popen: Move AC_LIBOBJ invocations to module description.
7944         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7945         invocations from here...
7946         * modules/popen (configure.ac): ... to here.
7947
7948 2011-05-21  Bruno Haible  <bruno@clisp.org>
7949
7950         poll: Move AC_LIBOBJ invocations to module description.
7951         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7952         invocations from here...
7953         * modules/poll (configure.ac): ... to here.
7954
7955 2011-05-21  Bruno Haible  <bruno@clisp.org>
7956
7957         pipe-posix: Move AC_LIBOBJ invocations to module description.
7958         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7959         * modules/pipe-posix (configure.ac): ... to here.
7960
7961 2011-05-21  Bruno Haible  <bruno@clisp.org>
7962
7963         openat: Respect rules for use of AC_LIBOBJ.
7964         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7965         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7966         * modules/openat (configure.ac): ... to here.
7967
7968 2011-05-21  Bruno Haible  <bruno@clisp.org>
7969
7970         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7971         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7972         invocation from here...
7973         * modules/obstack-printf (configure.ac): ... to here.
7974         * modules/obstack-printf-posix (configure.ac): ... and here.
7975
7976 2011-05-21  Bruno Haible  <bruno@clisp.org>
7977
7978         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7979         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7980         from here...
7981         * modules/nl_langinfo (configure.ac): ... to here.
7982
7983 2011-05-21  Bruno Haible  <bruno@clisp.org>
7984
7985         nanosleep: Move AC_LIBOBJ invocations to module description.
7986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7987         gl_PREREQ_NANOSLEEP invocations from here...
7988         * modules/nanosleep (configure.ac): ... to here.
7989
7990 2011-05-21  Bruno Haible  <bruno@clisp.org>
7991
7992         mountlist: Move AC_LIBOBJ invocations to module description.
7993         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7994         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7995         * modules/mountlist (configure.ac): ... to here.
7996
7997 2011-05-21  Bruno Haible  <bruno@clisp.org>
7998
7999         mktime: Respect rules for use of AC_LIBOBJ.
8000         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8001         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8002         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8003         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8004         * modules/mktime (configure.ac): ... to here.
8005         * modules/mktime-internal (configure.ac): ... and here.
8006         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8007
8008 2011-05-21  Bruno Haible  <bruno@clisp.org>
8009
8010         mkstemps: Move AC_LIBOBJ invocations to module description.
8011         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8012         here...
8013         * modules/mkstemps (configure.ac): ... to here.
8014
8015 2011-05-21  Bruno Haible  <bruno@clisp.org>
8016
8017         mkstemp: Move AC_LIBOBJ invocations to module description.
8018         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8019         gl_PREREQ_MKSTEMP invocations from here...
8020         * modules/mkstemp (configure.ac): ... to here.
8021
8022 2011-05-21  Bruno Haible  <bruno@clisp.org>
8023
8024         mkostemps: Move AC_LIBOBJ invocations to module description.
8025         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8026         here...
8027         * modules/mkostemps (configure.ac): ... to here.
8028
8029 2011-05-21  Bruno Haible  <bruno@clisp.org>
8030
8031         mkostemp: Move AC_LIBOBJ invocations to module description.
8032         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8033         gl_PREREQ_MKOSTEMP invocations from here...
8034         * modules/mkostemp (configure.ac): ... to here.
8035
8036 2011-05-21  Bruno Haible  <bruno@clisp.org>
8037
8038         mknod: Move AC_LIBOBJ invocations to module description.
8039         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8040         * modules/mknod (configure.ac): ... to here.
8041
8042 2011-05-21  Bruno Haible  <bruno@clisp.org>
8043
8044         mkfifoat: Move AC_LIBOBJ invocations to module description.
8045         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8046         here...
8047         * modules/mkfifoat (configure.ac): ... to here.
8048
8049 2011-05-21  Bruno Haible  <bruno@clisp.org>
8050
8051         mkfifo: Respect rules for use of AC_LIBOBJ.
8052         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8053         here...
8054         * modules/mkfifo (configure.ac): ... to here.
8055
8056 2011-05-21  Bruno Haible  <bruno@clisp.org>
8057
8058         mkdtemp: Move AC_LIBOBJ invocations to module description.
8059         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8060         invocations from here...
8061         * modules/mkdtemp (configure.ac): ... to here.
8062
8063 2011-05-21  Bruno Haible  <bruno@clisp.org>
8064
8065         mkdir: Move AC_LIBOBJ invocations to module description.
8066         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8067         * modules/mkdir (configure.ac): ... to here.
8068
8069 2011-05-21  Bruno Haible  <bruno@clisp.org>
8070
8071         memset: Move AC_LIBOBJ invocations to module description.
8072         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8073         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8074         here...
8075         * modules/memset (configure.ac): ... to here.
8076
8077 2011-05-21  Bruno Haible  <bruno@clisp.org>
8078
8079         memrchr: Move AC_LIBOBJ invocations to module description.
8080         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8082         here...
8083         * modules/memrchr (configure.ac): ... to here.
8084
8085 2011-05-21  Bruno Haible  <bruno@clisp.org>
8086
8087         mempcpy: Move AC_LIBOBJ invocations to module description.
8088         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8090         here...
8091         * modules/mempcpy (configure.ac): ... to here.
8092
8093 2011-05-21  Bruno Haible  <bruno@clisp.org>
8094
8095         memmove: Move AC_LIBOBJ invocations to module description.
8096         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8097         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8098         here...
8099         * modules/memmove (configure.ac): ... to here.
8100
8101 2011-05-21  Bruno Haible  <bruno@clisp.org>
8102
8103         memmem*: Move AC_LIBOBJ invocations to module description.
8104         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8105         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8106         here...
8107         (gl_FUNC_MEMMEM): ... and here...
8108         * modules/memmem-simple (configure.ac): ... to here.
8109         * modules/memmem (configure.ac): ... and here.
8110
8111 2011-05-21  Bruno Haible  <bruno@clisp.org>
8112
8113         memcpy: Move AC_LIBOBJ invocations to module description.
8114         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8115         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8116         here...
8117         * modules/memcpy (configure.ac): ... to here.
8118
8119 2011-05-21  Bruno Haible  <bruno@clisp.org>
8120
8121         memcmp: Simplify autoconf macro.
8122         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8123         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8124         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8125
8126 2011-05-21  Bruno Haible  <bruno@clisp.org>
8127
8128         memcmp: Move AC_LIBOBJ invocations to module description.
8129         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8130         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8131         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8132         * modules/memcmp (configure.ac): ... to here.
8133         (Depends-on): Update conditions.
8134
8135 2011-05-21  Bruno Haible  <bruno@clisp.org>
8136
8137         memchr: Respect rules for use of AC_LIBOBJ.
8138         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8139         invocations from here...
8140         * modules/memchr (configure.ac): ... to here.
8141
8142 2011-05-21  Bruno Haible  <bruno@clisp.org>
8143
8144         mbtowc: Move AC_LIBOBJ invocations to module description.
8145         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8146         invocations from here...
8147         * modules/mbtowc (configure.ac): ... to here.
8148
8149 2011-05-21  Bruno Haible  <bruno@clisp.org>
8150
8151         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8152         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8153         gl_PREREQ_MBSRTOWCS invocations from here...
8154         * modules/mbsrtowcs (configure.ac): ... to here.
8155
8156 2011-05-21  Bruno Haible  <bruno@clisp.org>
8157
8158         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8159         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8160         gl_PREREQ_MBSNRTOWCS invocations from here...
8161         * modules/mbsnrtowcs (configure.ac): ... to here.
8162
8163 2011-05-21  Bruno Haible  <bruno@clisp.org>
8164
8165         mbsinit: Move AC_LIBOBJ invocations to module description.
8166         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8167         invocations from here...
8168         * modules/mbsinit (configure.ac): ... to here.
8169
8170 2011-05-21  Bruno Haible  <bruno@clisp.org>
8171
8172         mbrlen: Move AC_LIBOBJ invocations to module description.
8173         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8174         invocations from here...
8175         * modules/mbrlen (configure.ac): ... to here.
8176
8177 2011-05-21  Bruno Haible  <bruno@clisp.org>
8178
8179         mbrtowc: Respect rules for use of AC_LIBOBJ.
8180         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8181         invocations from here...
8182         * modules/mbrtowc (configure.ac): ... to here.
8183
8184 2011-05-21  Bruno Haible  <bruno@clisp.org>
8185
8186         malloc-*: Move AC_LIBOBJ invocations to module description.
8187         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8188         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8189         AC_LIBOBJ invocations from here...
8190         * modules/malloc-gnu (configure.ac): ... to here.
8191         * modules/malloc-posix (configure.ac): ... and here.
8192
8193 2011-05-21  Bruno Haible  <bruno@clisp.org>
8194
8195         lstat, openat: Respect rules for use of AC_LIBOBJ.
8196         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8197         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8198         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8199         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8200         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8201         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8202         here.
8203         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8204
8205 2011-05-21  Bruno Haible  <bruno@clisp.org>
8206
8207         lseek: Move AC_LIBOBJ invocations to module description.
8208         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8209         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8210         * modules/lseek (configure.ac): ... to here.
8211
8212 2011-05-21  Bruno Haible  <bruno@clisp.org>
8213
8214         linkat: Move AC_LIBOBJ invocations to module description.
8215         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8216         here...
8217         * modules/linkat (configure.ac): ... to here.
8218
8219 2011-05-21  Bruno Haible  <bruno@clisp.org>
8220
8221         link: Respect rules for use of AC_LIBOBJ.
8222         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8223         * modules/link (configure.ac): ... to here.
8224
8225 2011-05-21  Bruno Haible  <bruno@clisp.org>
8226
8227         lchown: Move AC_LIBOBJ invocations to module description.
8228         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8229         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8230         * modules/lchown (configure.ac): ... to here.
8231
8232 2011-05-21  Bruno Haible  <bruno@clisp.org>
8233
8234         iswctype: Move AC_LIBOBJ invocations to module description.
8235         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8236         here...
8237         * modules/iswctype (configure.ac): ... to here.
8238
8239 2011-05-21  Bruno Haible  <bruno@clisp.org>
8240
8241         iswblank: Move AC_LIBOBJ invocations to module description.
8242         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8243         here...
8244         * modules/iswblank (configure.ac): ... to here.
8245
8246 2011-05-21  Bruno Haible  <bruno@clisp.org>
8247
8248         atanl: Move AC_LIBOBJ invocations to module description.
8249         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8250         * modules/atanl (configure.ac): ... to here.
8251
8252 2011-05-21  Bruno Haible  <bruno@clisp.org>
8253
8254         acosl: Move AC_LIBOBJ invocations to module description.
8255         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8256         * modules/acosl (configure.ac): ... to here.
8257
8258 2011-05-21  Bruno Haible  <bruno@clisp.org>
8259
8260         asinl: Respect rules for use of AC_LIBOBJ.
8261         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8262         * modules/asinl (configure.ac): ... to here.
8263
8264 2011-05-21  Bruno Haible  <bruno@clisp.org>
8265
8266         tanl: Move AC_LIBOBJ invocations to module description.
8267         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8268         * modules/tanl (configure.ac): ... to here.
8269
8270 2011-05-21  Bruno Haible  <bruno@clisp.org>
8271
8272         cosl: Move AC_LIBOBJ invocations to module description.
8273         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8274         * modules/cosl (configure.ac): ... to here.
8275
8276 2011-05-21  Bruno Haible  <bruno@clisp.org>
8277
8278         sinl: Move AC_LIBOBJ invocations to module description.
8279         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8280         * modules/sinl (configure.ac): ... to here.
8281
8282 2011-05-21  Bruno Haible  <bruno@clisp.org>
8283
8284         logl: Move AC_LIBOBJ invocations to module description.
8285         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8286         * modules/logl (configure.ac): ... to here.
8287
8288 2011-05-21  Bruno Haible  <bruno@clisp.org>
8289
8290         expl: Move AC_LIBOBJ invocations to module description.
8291         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8292         * modules/expl (configure.ac): ... to here.
8293
8294 2011-05-21  Bruno Haible  <bruno@clisp.org>
8295
8296         roundl: Move AC_LIBOBJ invocations to module description.
8297         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8298         * modules/roundl (configure.ac): ... to here.
8299
8300 2011-05-21  Bruno Haible  <bruno@clisp.org>
8301
8302         round: Move AC_LIBOBJ invocations to module description.
8303         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8304         * modules/round (configure.ac): ... to here.
8305
8306 2011-05-21  Bruno Haible  <bruno@clisp.org>
8307
8308         roundf: Move AC_LIBOBJ invocations to module description.
8309         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8310         * modules/roundf (configure.ac): ... to here.
8311
8312 2011-05-21  Bruno Haible  <bruno@clisp.org>
8313
8314         truncl: Move AC_LIBOBJ invocations to module description.
8315         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8316         * modules/truncl (configure.ac): ... to here.
8317
8318 2011-05-21  Bruno Haible  <bruno@clisp.org>
8319
8320         trunc: Move AC_LIBOBJ invocations to module description.
8321         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8322         * modules/trunc (configure.ac): ... to here.
8323
8324 2011-05-21  Bruno Haible  <bruno@clisp.org>
8325
8326         truncf: Move AC_LIBOBJ invocations to module description.
8327         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8328         * modules/truncf (configure.ac): ... to here.
8329
8330 2011-05-21  Bruno Haible  <bruno@clisp.org>
8331
8332         ceill: Move AC_LIBOBJ invocations to module description.
8333         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8334         * modules/ceill (configure.ac): ... to here.
8335
8336 2011-05-21  Bruno Haible  <bruno@clisp.org>
8337
8338         ceil: Move AC_LIBOBJ invocations to module description.
8339         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8340         * modules/ceil (configure.ac): ... to here.
8341
8342 2011-05-21  Bruno Haible  <bruno@clisp.org>
8343
8344         ceilf: Move AC_LIBOBJ invocations to module description.
8345         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8346         * modules/ceilf (configure.ac): ... to here.
8347
8348 2011-05-21  Bruno Haible  <bruno@clisp.org>
8349
8350         floorl: Respect rules for use of AC_LIBOBJ.
8351         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8352         * modules/floorl (configure.ac): ... to here.
8353
8354 2011-05-21  Bruno Haible  <bruno@clisp.org>
8355
8356         floor: Respect rules for use of AC_LIBOBJ.
8357         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8358         * modules/floor (configure.ac): ... to here.
8359
8360 2011-05-21  Bruno Haible  <bruno@clisp.org>
8361
8362         floorf: Move AC_LIBOBJ invocations to module description.
8363         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8364         * modules/floorf (configure.ac): ... to here.
8365
8366 2011-05-20  Bruno Haible  <bruno@clisp.org>
8367
8368         sqrtl: Respect rules for use of AC_LIBOBJ.
8369         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8370         * modules/sqrtl (configure.ac): ... to here.
8371
8372 2011-05-20  Bruno Haible  <bruno@clisp.org>
8373
8374         ldexpl: Respect rules for use of AC_LIBOBJ.
8375         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8376         * modules/ldexpl (configure.ac): ... to here.
8377
8378 2011-05-20  Bruno Haible  <bruno@clisp.org>
8379
8380         frexpl*: Respect rules for use of AC_LIBOBJ.
8381         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8382         invocation from here...
8383         * modules/frexpl (configure.ac): ... to here.
8384         * modules/frexpl-nolibm (configure.ac): ... and here.
8385
8386 2011-05-20  Bruno Haible  <bruno@clisp.org>
8387
8388         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8389         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8390         invocation from here...
8391         * modules/frexp (configure.ac): ... to here.
8392         * modules/frexp-nolibm (configure.ac): ... and here.
8393
8394 2011-05-20  Bruno Haible  <bruno@clisp.org>
8395
8396         isnan: Respect rules for use of AC_LIBOBJ.
8397         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8398         invocations here.
8399         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8400         REPLACE_ISNAN.
8401         * modules/isnand (configure.ac): Likewise.
8402         * modules/isnanl (configure.ac): Likewise.
8403
8404 2011-05-20  Bruno Haible  <bruno@clisp.org>
8405
8406         isnanl*: Respect rules for use of AC_LIBOBJ.
8407         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8408         invocation from here...
8409         * modules/isnanl (configure.ac): ... to here.
8410         * modules/isnanl-nolibm (configure.ac): ... and here.
8411
8412 2011-05-20  Bruno Haible  <bruno@clisp.org>
8413
8414         isnand*: Move AC_LIBOBJ invocations to module description.
8415         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8416         invocation from here...
8417         * modules/isnand (configure.ac): ... to here.
8418         * modules/isnand-nolibm (configure.ac): ... and here.
8419
8420 2011-05-20  Bruno Haible  <bruno@clisp.org>
8421
8422         isnanf*: Move AC_LIBOBJ invocations to module description.
8423         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8424         invocation from here...
8425         * modules/isnanf (configure.ac): ... to here.
8426         * modules/isnanf-nolibm (configure.ac): ... and here.
8427
8428 2011-05-20  Bruno Haible  <bruno@clisp.org>
8429
8430         isnan*: Separate the AC_LIBOBJ invocations.
8431         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8432         AC_LIBOBJ invocation.
8433         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8434         here.
8435         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8436         AC_LIBOBJ invocation.
8437         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8438         here.
8439         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8440         AC_LIBOBJ invocation.
8441         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8442         here.
8443         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8444
8445 2011-05-08  Bruno Haible  <bruno@clisp.org>
8446
8447         isinf: Move AC_LIBOBJ invocations to module description.
8448         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8449         * modules/isinf (configure.ac): ... to here.
8450
8451 2011-05-08  Bruno Haible  <bruno@clisp.org>
8452
8453         isfinite: Move AC_LIBOBJ invocations to module description.
8454         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8455         * modules/isfinite (configure.ac): ... to here.
8456
8457 2011-05-08  Bruno Haible  <bruno@clisp.org>
8458
8459         isblank: Move AC_LIBOBJ invocations to module description.
8460         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8461         here...
8462         * modules/isblank (configure.ac): ... to here.
8463
8464 2011-05-08  Bruno Haible  <bruno@clisp.org>
8465
8466         isapipe: Move AC_LIBOBJ invocations to module description.
8467         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8468         gl_PREREQ_ISAPIPE invocations from here...
8469         * modules/isapipe (configure.ac): ... to here.
8470         (Depends-on): Update condition.
8471
8472 2011-05-08  Bruno Haible  <bruno@clisp.org>
8473
8474         ioctl: Move AC_LIBOBJ invocations to module description.
8475         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8476         invocations from here...
8477         * modules/ioctl (configure.ac): ... to here.
8478         (Depends-on): Update condition.
8479
8480 2011-05-08  Bruno Haible  <bruno@clisp.org>
8481
8482         imaxdiv: Move AC_LIBOBJ invocations to module description.
8483         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8484         invocations from here...
8485         * modules/imaxdiv (configure.ac): ... to here.
8486
8487 2011-05-08  Bruno Haible  <bruno@clisp.org>
8488
8489         imaxabs: Move AC_LIBOBJ invocations to module description.
8490         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8491         invocations from here...
8492         * modules/imaxabs (configure.ac): ... to here.
8493
8494 2011-05-08  Bruno Haible  <bruno@clisp.org>
8495
8496         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8497         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8498         AC_LIBOBJ invocations from here...
8499         * modules/getaddrinfo (configure.ac): ... to here.
8500         (Depends-on): Add conditions.
8501
8502 2011-05-08  Bruno Haible  <bruno@clisp.org>
8503
8504         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8505         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8506         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8507         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8508         (gl_PREREQ_INET_PTON): ... from here.
8509         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8510         gl_PREREQ_INET_PTON here.
8511         (Depends-on): Update condition.
8512
8513 2011-05-08  Bruno Haible  <bruno@clisp.org>
8514
8515         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8516         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8517         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8518         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8519         (gl_PREREQ_INET_NTOP): ... from here.
8520         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8521         gl_PREREQ_INET_NTOP here.
8522         (Depends-on): Update condition.
8523
8524 2011-05-08  Bruno Haible  <bruno@clisp.org>
8525
8526         iconv_open: Move AC_LIBOBJ invocations to module description.
8527         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8528         AC_LIBOBJ invocations from here...
8529         * modules/iconv_open (configure.ac): ... to here.
8530
8531 2011-05-08  Bruno Haible  <bruno@clisp.org>
8532
8533         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8534         If module 'iconv_open' is among the main modules and module
8535         'iconv_open-utf' is among the tests dependencies, then
8536         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8537         return the special iconv_t values. Therefore iconv() and iconv_close()
8538         must support these special iconv_t values, already in lib, not only in
8539         tests.
8540         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8541         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8542         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8543         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8544         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8545         (Depends-on): Add the dependencies of iconv_open-utf.
8546         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8547         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8548         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8549
8550 2011-05-08  Bruno Haible  <bruno@clisp.org>
8551
8552         group-member: Move AC_LIBOBJ invocations to module description.
8553         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8554         gl_PREREQ_GROUP_MEMBER invocations from here...
8555         * modules/group-member (configure.ac): ... to here.
8556
8557 2011-05-08  Bruno Haible  <bruno@clisp.org>
8558
8559         grantpt: Move AC_LIBOBJ invocations to module description.
8560         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8561         invocations from here...
8562         * modules/grantpt (configure.ac): ... to here.
8563
8564 2011-05-08  Bruno Haible  <bruno@clisp.org>
8565
8566         glob: Move AC_LIBOBJ invocations to module description.
8567         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8568         from here...
8569         * modules/glob (configure.ac): ... to here.
8570
8571 2011-05-08  Bruno Haible  <bruno@clisp.org>
8572
8573         getusershell: Move AC_LIBOBJ invocations to module description.
8574         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8575         Move AC_LIBOBJ invocation from here...
8576         * modules/getusershell (configure.ac): ... to here.
8577         (Depends-on): Update condition.
8578
8579 2011-05-08  Bruno Haible  <bruno@clisp.org>
8580
8581         gettimeofday: Move AC_LIBOBJ invocations to module description.
8582         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8583         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8584         gl_PREREQ_GETTIMEOFDAY invocations from here...
8585         * modules/gettimeofday (configure.ac): ... to here.
8586
8587 2011-05-08  Bruno Haible  <bruno@clisp.org>
8588
8589         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8590         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8591         just gl_FUNC_TZSET.
8592         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8593         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8595         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8596
8597 2011-05-08  Bruno Haible  <bruno@clisp.org>
8598
8599         getsubopt: Move AC_LIBOBJ invocations to module description.
8600         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8601         gl_PREREQ_GETSUBOPT invocations from here...
8602         * modules/getsubopt (configure.ac): ... to here.
8603
8604 2011-05-08  Bruno Haible  <bruno@clisp.org>
8605
8606         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8607         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8608         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8609         * modules/getpass-gnu (configure.ac): ... to here.
8610
8611 2011-05-08  Bruno Haible  <bruno@clisp.org>
8612
8613         getpass: Move AC_LIBOBJ invocations to module description.
8614         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8615         gl_PREREQ_GETPASS invocations from here...
8616         * modules/getpass (configure.ac): ... to here.
8617
8618 2011-05-08  Bruno Haible  <bruno@clisp.org>
8619
8620         getpagesize: Move AC_LIBOBJ invocations to module description.
8621         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8622         from here...
8623         * modules/getpagesize (configure.ac): ... to here.
8624
8625 2011-05-08  Bruno Haible  <bruno@clisp.org>
8626
8627         getopt: Move AC_LIBOBJ invocations to module description.
8628         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8629         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8630         invocations from here...
8631         * modules/getopt-gnu (configure.ac): ... to here.
8632         * modules/getopt-posix (configure.ac): ... and here.
8633         (Depends-on): Update condition.
8634
8635 2011-05-08  Bruno Haible  <bruno@clisp.org>
8636
8637         getopt, argp: Respect rules for use of AC_LIBOBJ.
8638         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8639         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8640         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8641         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8642
8643 2011-05-08  Bruno Haible  <bruno@clisp.org>
8644
8645         getlogin_r: Move AC_LIBOBJ invocations to module description.
8646         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8647         gl_PREREQ_GETLOGIN_R invocations from here...
8648         * modules/getlogin_r (configure.ac): ... to here.
8649
8650 2011-05-08  Bruno Haible  <bruno@clisp.org>
8651
8652         getlogin: Move AC_LIBOBJ invocations to module description.
8653         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8654         here...
8655         * modules/getlogin (configure.ac): ... to here.
8656
8657 2011-05-08  Bruno Haible  <bruno@clisp.org>
8658
8659         getloadavg: Move AC_LIBOBJ invocations to module description.
8660         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8661         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8662         * modules/getloadavg (configure.ac): ... to here.
8663
8664 2011-05-08  Bruno Haible  <bruno@clisp.org>
8665
8666         gethrxtime: Move AC_LIBOBJ invocations to module description.
8667         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8668         LIB_GETHRXTIME from here...
8669         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8670         invocations from here...
8671         * modules/gethrxtime (configure.ac): ... to here.
8672
8673 2011-05-08  Bruno Haible  <bruno@clisp.org>
8674
8675         gethostname: Move AC_LIBOBJ invocations to module description.
8676         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8677         gl_PREREQ_GETHOSTNAME invocations from here...
8678         * modules/gethostname (configure.ac): ... to here.
8679
8680 2011-05-08  Bruno Haible  <bruno@clisp.org>
8681
8682         getgroups: Move AC_LIBOBJ invocations to module description.
8683         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8684         here...
8685         * modules/getgroups (configure.ac): ... to here.
8686
8687 2011-05-08  Bruno Haible  <bruno@clisp.org>
8688
8689         getdtablesize: Move AC_LIBOBJ invocations to module description.
8690         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8691         invocation from here...
8692         * modules/getdtablesize (configure.ac): ... to here.
8693
8694 2011-05-08  Bruno Haible  <bruno@clisp.org>
8695
8696         getdomainname: Move AC_LIBOBJ invocations to module description.
8697         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8698         gl_PREREQ_GETDOMAINNAME invocations from here...
8699         * modules/getdomainname (configure.ac): ... to here.
8700
8701 2011-05-08  Bruno Haible  <bruno@clisp.org>
8702
8703         getline: Move AC_LIBOBJ invocations to module description.
8704         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8705         invocations from here...
8706         * modules/getline (configure.ac): ... to here.
8707
8708 2011-05-08  Bruno Haible  <bruno@clisp.org>
8709
8710         getline: Simplify.
8711         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8712         It's already handled through the module dependency.
8713
8714 2011-05-08  Bruno Haible  <bruno@clisp.org>
8715
8716         getdelim: Move AC_LIBOBJ invocations to module description.
8717         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8718         and gl_PREREQ_GETDELIM invocations from here...
8719         * modules/getdelim (configure.ac): ... to here.
8720         (Depends-on): Fix condition.
8721
8722 2011-05-08  Bruno Haible  <bruno@clisp.org>
8723
8724         getcwd: Move AC_LIBOBJ invocations to module description.
8725         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8726         invocations from here...
8727         * modules/getcwd (configure.ac): ... to here.
8728
8729 2011-05-08  Bruno Haible  <bruno@clisp.org>
8730
8731         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8732         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8733         here...
8734         * modules/getcwd-lgpl (configure.ac): ... to here.
8735
8736 2011-05-07  Bruno Haible  <bruno@clisp.org>
8737
8738         crypto/gc: Move AC_LIBOBJ invocations to module description.
8739         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8740         * modules/crypto/gc (configure.ac): ... to here.
8741
8742 2011-05-07  Bruno Haible  <bruno@clisp.org>
8743
8744         fwriting: Move AC_LIBOBJ invocations to module description.
8745         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8746         here...
8747         * modules/fwriting (configure.ac): ... to here.
8748
8749 2011-05-07  Bruno Haible  <bruno@clisp.org>
8750
8751         fwritable: Move AC_LIBOBJ invocations to module description.
8752         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8753         here...
8754         * modules/fwritable (configure.ac): ... to here.
8755
8756 2011-05-07  Bruno Haible  <bruno@clisp.org>
8757
8758         futimens: Move AC_LIBOBJ invocations to module description.
8759         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8760         here...
8761         * modules/futimens (configure.ac): ... to here.
8762
8763 2011-05-07  Bruno Haible  <bruno@clisp.org>
8764
8765         ftruncate: Move AC_LIBOBJ invocations to module description.
8766         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8767         gl_PREREQ_FTRUNCATE invocations from here...
8768         * modules/ftruncate (configure.ac): ... to here.
8769
8770 2011-05-07  Bruno Haible  <bruno@clisp.org>
8771
8772         fsync: Move AC_LIBOBJ invocations to module description.
8773         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8774         invocations from here...
8775         * modules/fsync (configure.ac): ... to here.
8776
8777 2011-05-07  Bruno Haible  <bruno@clisp.org>
8778
8779         fsusage: Move AC_LIBOBJ invocations to module description.
8780         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8781         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8782         * modules/fsusage (configure.ac): ... to here.
8783
8784 2011-05-07  Bruno Haible  <bruno@clisp.org>
8785
8786         freopen: Move AC_LIBOBJ invocations to module description.
8787         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8788         invocations from here...
8789         * modules/freopen (configure.ac): ... to here.
8790
8791 2011-05-07  Bruno Haible  <bruno@clisp.org>
8792
8793         free: Move AC_LIBOBJ invocations to module description.
8794         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8795         invocations from here...
8796         * modules/free (configure.ac): ... to here.
8797
8798 2011-05-07  Bruno Haible  <bruno@clisp.org>
8799
8800         freadable: Move AC_LIBOBJ invocations to module description.
8801         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8802         here...
8803         * modules/freadable (configure.ac): ... to here.
8804
8805 2011-05-07  Bruno Haible  <bruno@clisp.org>
8806
8807         fpurge: Move AC_LIBOBJ invocations to module description.
8808         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8809         invocations from here...
8810         * modules/fpurge (configure.ac): ... to here.
8811
8812 2011-05-07  Bruno Haible  <bruno@clisp.org>
8813
8814         fpending: Move AC_LIBOBJ invocations to module description.
8815         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8816         gl_FUNC_FPENDING.
8817         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8818         invocations from here...
8819         * modules/fpending (configure.ac): ... to here.
8820
8821 2011-05-07  Bruno Haible  <bruno@clisp.org>
8822
8823         fopen: Move AC_LIBOBJ invocations to module description.
8824         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8825         invocations from here...
8826         * modules/fopen (configure.ac): ... to here.
8827
8828 2011-05-07  Bruno Haible  <bruno@clisp.org>
8829
8830         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8831         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8832         gl_FUNC_FNMATCH_POSIX.
8833         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8834         invocations from here...
8835         * modules/fnmatch (configure.ac): ... to here.
8836         * modules/fnmatch-gnu (configure.ac): ... and here.
8837
8838 2011-05-07  Bruno Haible  <bruno@clisp.org>
8839
8840         flock: Move AC_LIBOBJ invocations to module description.
8841         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8842         invocations from here...
8843         * modules/flock (configure.ac): ... to here.
8844
8845 2011-05-07  Bruno Haible  <bruno@clisp.org>
8846
8847         fileblocks: Move AC_LIBOBJ invocations to module description.
8848         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8849         gl_PREREQ_FILEBLOCKS invocations from here...
8850         * modules/fileblocks (configure.ac): ... to here.
8851
8852 2011-05-06  Bruno Haible  <bruno@clisp.org>
8853
8854         fflush: Move AC_LIBOBJ invocations to module description.
8855         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8856         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8857         invocations from here...
8858         * modules/fflush (configure.ac): ... to here.
8859
8860 2011-05-06  Bruno Haible  <bruno@clisp.org>
8861
8862         fdopendir: Move AC_LIBOBJ invocations to module description.
8863         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8864         here...
8865         * modules/fdopendir (configure.ac): ... to here.
8866         (Depends-on): Improve conditions.
8867
8868 2011-05-06  Bruno Haible  <bruno@clisp.org>
8869
8870         _Exit: Move AC_LIBOBJ invocations to module description.
8871         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8872         invocations from here...
8873         * modules/_Exit (configure.ac): ... to here.
8874
8875 2011-05-21  Bruno Haible  <bruno@clisp.org>
8876
8877         euidaccess: Respect rules for use of AC_LIBOBJ.
8878         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8880         from here...
8881         * modules/euidaccess (configure.ac): ... to here.
8882
8883 2011-05-06  Bruno Haible  <bruno@clisp.org>
8884
8885         error: Move AC_LIBOBJ invocations to module description.
8886         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8887         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8888         invocations from here...
8889         * modules/error (configure.ac): ... to here.
8890
8891 2011-05-06  Bruno Haible  <bruno@clisp.org>
8892
8893         duplocale: Move AC_LIBOBJ invocations to module description.
8894         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8895         gl_PREREQ_DUPLOCALE invocations from here...
8896         * modules/duplocale (configure.ac): ... to here.
8897
8898 2011-05-05  Bruno Haible  <bruno@clisp.org>
8899
8900         dirfd: Move AC_LIBOBJ invocations to module description.
8901         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8902         gl_FUNC_DIRFD.
8903         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8904         here...
8905         * modules/dirfd (configure.ac): ... to here.
8906         (Depends-on): Fix condition.
8907
8908 2011-05-05  Bruno Haible  <bruno@clisp.org>
8909
8910         chown: Respect rules for use of AC_LIBOBJ.
8911         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8912         * modules/chown (configure.ac): ... to here.
8913
8914 2011-05-05  Bruno Haible  <bruno@clisp.org>
8915
8916         chdir-long: Move AC_LIBOBJ invocations to module description.
8917         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8918         gl_PREREQ_CHDIR_LONG invocations from here...
8919         * modules/chdir-long (configure.ac): ... to here.
8920
8921 2011-05-05  Bruno Haible  <bruno@clisp.org>
8922
8923         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8924         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8925         from here...
8926         * modules/canonicalize-lgpl (configure.ac): ... to here.
8927
8928 2011-05-05  Bruno Haible  <bruno@clisp.org>
8929
8930         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8931         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8932         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8933         REPLACE_CALLOC.
8934         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8935         * modules/calloc-gnu (configure.ac): Likewise.
8936
8937 2011-05-05  Bruno Haible  <bruno@clisp.org>
8938
8939         btowc: Move AC_LIBOBJ invocations to module description.
8940         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8941         invocations from here...
8942         * modules/btowc (configure.ac): ... to here.
8943
8944 2011-05-21  Bruno Haible  <bruno@clisp.org>
8945
8946         atexit: Move AC_LIBOBJ invocations to module description.
8947         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8949         here...
8950         * modules/atexit (configure.ac): ... to here.
8951
8952 2011-05-05  Bruno Haible  <bruno@clisp.org>
8953
8954         atoll: Move AC_LIBOBJ invocations to module description.
8955         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8956         invocations from here...
8957         * modules/atoll (configure.ac): ... to here.
8958
8959 2011-05-05  Bruno Haible  <bruno@clisp.org>
8960
8961         argz: Move AC_LIBOBJ invocations to module description.
8962         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8963         * modules/argz (configure.ac): ... to here.
8964
8965 2011-05-05  Bruno Haible  <bruno@clisp.org>
8966
8967         alphasort: Move AC_LIBOBJ invocations to module description.
8968         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8969         gl_PREREQ_ALPHASORT invocations from here...
8970         * modules/alphasort (configure.ac): ... to here.
8971
8972 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8973
8974         verify: new macro verify_expr; verify_true deprecated
8975         * NEWS: Mention this.
8976         * doc/verify.texi (Compile-time Assertions): Document this.
8977         * lib/verify.h (verify_true): Deprecate.
8978         (verify_expr): New macro.
8979         * tests/test-verify.c (function): Test verify_expr.
8980
8981 2011-06-14  Jim Meyering  <meyering@redhat.com>
8982
8983         init.sh: give more portable redirection-related advice in a comment
8984         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8985         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8986         for lots of discussion.  Stefano Lattarini suggested the solution
8987         of putting "9>&2" after the command.  Reported by Bruno Haible.
8988
8989 2011-06-13  Bruno Haible  <bruno@clisp.org>
8990
8991         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8992         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8993         'none'.
8994
8995 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8996
8997         ftoastr: use strtof only if HAVE_STRTOF
8998         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9000         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9001         * modules/ftoastr (configure.ac): Check for strtof.
9002
9003 2011-06-13  Bruno Haible  <bruno@clisp.org>
9004
9005         gnulib-tool: Addendum to 2011-06-08 commit.
9006         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9007         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9008
9009 2011-06-13  Bruno Haible  <bruno@clisp.org>
9010
9011         fseeko: Provide a non-inline replacement of fseek().
9012         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9013         * modules/fseeko (Depends-on): Add fseek.
9014         * modules/fseek (License): Change to LGPLv2+.
9015
9016 2011-06-13  Bruno Haible  <bruno@clisp.org>
9017
9018         ftello: Provide a non-inline replacement of ftell().
9019         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9020         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9021         not have ftello() (such as on mingw).
9022         * modules/ftello (Depends-on): Add ftell.
9023         * modules/ftell (License): Change to LGPLv2+.
9024
9025 2011-05-07  Bruno Haible  <bruno@clisp.org>
9026
9027         ftell: Move AC_LIBOBJ invocations to module description.
9028         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9029         * modules/ftell (configure.ac): ... to here.
9030
9031 2011-05-07  Bruno Haible  <bruno@clisp.org>
9032
9033         ftello: Respect rules for use of AC_LIBOBJ.
9034         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9035         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9036         here...
9037         * modules/ftello (configure.ac): ... to here.
9038
9039 2011-05-07  Bruno Haible  <bruno@clisp.org>
9040
9041         fseeko: Simplify.
9042         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9043         (gl_FUNC_FSEEKO): Inline it here.
9044
9045 2011-05-07  Bruno Haible  <bruno@clisp.org>
9046
9047         fseek: Move AC_LIBOBJ invocations to module description.
9048         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9049         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9050         * modules/fseek (configure.ac): ... to here.
9051
9052 2011-05-07  Bruno Haible  <bruno@clisp.org>
9053
9054         fseek: Respect rules for use of AC_LIBOBJ.
9055         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9056         here...
9057         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9058
9059 2011-05-07  Bruno Haible  <bruno@clisp.org>
9060
9061         fseeko: Respect rules for use of AC_LIBOBJ.
9062         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9063         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9064         here...
9065         * modules/fseeko (configure.ac): ... to here.
9066
9067 2011-06-13  Bruno Haible  <bruno@clisp.org>
9068
9069         gnulib-tool: Allow comments in the 'Depends-on' section.
9070         * doc/gnulib.texi (Module description): Mention comment syntax in the
9071         Depends-on section.
9072         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9073
9074 2011-06-13  Bruno Haible  <bruno@clisp.org>
9075
9076         file-set.h: guard __attibute__ use, now that it's not always defined
9077         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9078         versions that support it.  This fixes a coreutils build failure with
9079         the vendor cc on HP-UX 11.31.
9080
9081 2011-06-12  Bruno Haible  <bruno@clisp.org>
9082
9083         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9084         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9085         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9086         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9087         (acl, aclsort): New declarations.
9088         (aclv_nontrivial): New declaration.
9089         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9090         (file_has_acl): Read also the second kind of HP-UX ACLs.
9091         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9092         kind of HP-UX ACLs if the first kind fails.
9093         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9094         second kind of HP-UX ACLs.
9095         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9096         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9097         agree.
9098         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9099         hpuxjfs.
9100         Handle hpuxjfs.
9101         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9102         hpuxjfs.
9103         Handle hpuxjfs.
9104         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9105         (func_test_same_acls): Use both lsacl and getacl.
9106         Handle hpuxjfs.
9107         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9108         (func_test_same_acls): Use both lsacl and getacl.
9109         Handle hpuxjfs.
9110
9111 2011-06-12  Bruno Haible  <bruno@clisp.org>
9112
9113         acl: Complete the 2010-08-10 fix.
9114         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9115         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9116         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9117         explicitly.
9118         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9119         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9120
9121 2011-06-12  Bruno Haible  <bruno@clisp.org>
9122
9123         spawn-pipe tests: Comments.
9124         * tests/test-spawn-pipe-child.c (main): Update comment.
9125         Reported by James Youngman <jay@gnu.org>.
9126
9127 2011-06-11  James Youngman  <jay@gnu.org>
9128
9129         New module 'stat-size'.
9130         * modules/stat-size: New module.  Provides macros for accessing
9131         file size information in instances of struct stat.  Depends on the
9132         fileblocks module because it calls st_blocks.
9133         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9134         * doc/gnulib.texi: Include stat-size.texi.
9135         * doc/stat-size.texi: Documentation for this module.
9136         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9137         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9138         AC_STRUCT_ST_BLOCKS.
9139
9140 2011-06-09  Bruno Haible  <bruno@clisp.org>
9141
9142         thread: Support pthreads-win32.
9143         * lib/glthread/thread.h (gl_thread_self): Define differently on
9144         pthreads-win32.
9145         (gl_null_thread): New declaration.
9146         (gl_thread_self_pointer): New macro.
9147         * lib/glthread/thread.c (gl_null_thread): New constant.
9148         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9149         gl_thread_self.
9150         * tests/test-tls.c: Likewise.
9151         Suggested by Paul Eggert. Reported by Eric Blake.
9152
9153 2011-06-09  Bruno Haible  <bruno@clisp.org>
9154
9155         thread: Fix confusion between NULL and 0.
9156         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9157         Reported by Paul Eggert.
9158
9159 2011-06-09  Bruno Haible  <bruno@clisp.org>
9160
9161         spawn-pipe tests: Avoid test failure on HP-UX 11.
9162         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9163         is closed.
9164
9165 2011-06-09  Bruno Haible  <bruno@clisp.org>
9166
9167         acl tests: Fix compilation error on HP-UX 11.
9168         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9169
9170 2011-06-09  Bruno Haible  <bruno@clisp.org>
9171
9172         rmdir: Avoid test failure on HP-UX 10.20.
9173         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9174         EEXIST.
9175
9176 2011-06-08  Eric Blake  <eblake@redhat.com>
9177
9178         perror: fix test on mingw
9179         * modules/perror-tests (Depends-on): Add dup2.
9180
9181         strerror_r-posix: fix on MacOS
9182         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9183         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9184         logic bug.
9185         * lib/strerror_r.c (strerror_r): Fix the bug.
9186         * lib/strerror.c (strerror): Likewise.
9187         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9188         problem.
9189         * doc/posix-functions/strerror.texi (strerror): Likewise.
9190         * doc/posix-functions/perror.texi (perror): Likewise.
9191         * tests/test-strerror.c (main): Enhance test.
9192         * tests/test-strerror_r.c (main): Likewise.
9193
9194 2011-06-08  Bruno Haible  <bruno@clisp.org>
9195
9196         gnulib-tool: Better isolation between different gnulib-tool invocations.
9197         * gnulib-tool: New option --witness-c-macro.
9198         (witness_c_macro): New variable.
9199         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9200         AM_CPPFLAGS define it as a C macro.
9201         (func_emit_tests_Makefile_am): Likewise.
9202         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9203         read it from there.
9204         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9205         m4_define, not AC_DEFUN.
9206         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9207         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9208         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9209         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9210         s|...|...|, to substitute the values of the GNULIB_* module indicator
9211         variables.
9212         * modules/dirent (Makefile.am): Likewise.
9213         * modules/fcntl-h (Makefile.am): Likewise.
9214         * modules/iconv-h (Makefile.am): Likewise.
9215         * modules/langinfo (Makefile.am): Likewise.
9216         * modules/locale (Makefile.am): Likewise.
9217         * modules/math (Makefile.am): Likewise.
9218         * modules/netdb (Makefile.am): Likewise.
9219         * modules/poll-h (Makefile.am): Likewise.
9220         * modules/pty (Makefile.am): Likewise.
9221         * modules/search (Makefile.am): Likewise.
9222         * modules/signal (Makefile.am): Likewise.
9223         * modules/spawn (Makefile.am): Likewise.
9224         * modules/stdio (Makefile.am): Likewise.
9225         * modules/stdlib (Makefile.am): Likewise.
9226         * modules/string (Makefile.am): Likewise.
9227         * modules/sys_ioctl (Makefile.am): Likewise.
9228         * modules/sys_select (Makefile.am): Likewise.
9229         * modules/sys_socket (Makefile.am): Likewise.
9230         * modules/sys_stat (Makefile.am): Likewise.
9231         * modules/sys_times (Makefile.am): Likewise.
9232         * modules/sys_utsname (Makefile.am): Likewise.
9233         * modules/sys_wait (Makefile.am): Likewise.
9234         * modules/termios (Makefile.am): Likewise.
9235         * modules/time (Makefile.am): Likewise.
9236         * modules/unistd (Makefile.am): Likewise.
9237         * modules/wchar (Makefile.am): Likewise.
9238
9239 2011-06-08  Eric Blake  <eblake@redhat.com>
9240
9241         strerror: simplify replacement
9242         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9243         * modules/strerror (configure.ac): No prereqs needed here...
9244         * modules/strerror-override (configure.ac): ...but this needs it.
9245         (Files): Add file for needed prereq macro.
9246
9247 2011-06-08  Bruno Haible  <bruno@clisp.org>
9248
9249         strerror_r-posix: Tweaks.
9250         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9251         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9253         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9254         (gl_FUNC_STRERROR_R): ... to here.
9255         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9256
9257 2011-06-07  Eric Blake  <eblake@redhat.com>
9258
9259         perror: document fixed bugs
9260         * doc/posix-functions/perror.texi (perror): Document recent
9261         patches.
9262
9263 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9264
9265         stat-time: get_stat_birthtime failure is better-defined
9266         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9267         return a timestamp whose tv_sec and tv_nsec values are both -1.
9268         Previously, the spec said only that the tv_nsec value was negative.
9269         This upward-compatible change simplifies GNU tar a bit.
9270
9271 2011-06-07  Eric Blake  <eblake@redhat.com>
9272
9273         strerror_r-posix: work around cygwin 1.7.9
9274         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9275         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9276         bug without replacing strerror_r.
9277         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9278         strerror_r is buggy, but without requiring strerror_r compilation.
9279         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9280
9281         test-perror: relax test to ignore cygwin bug
9282         * tests/test-perror2.c (main): Relax test on requiring detection
9283         of stream errors, and use unbuffered stream.
9284         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9285         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9286         * doc/posix-functions/fputc.texi (fputc): Likewise.
9287         * doc/posix-functions/fputs.texi (fputs): Likewise.
9288         * doc/posix-functions/fputws.texi (fputws): Likewise.
9289         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9290         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9291         * doc/posix-functions/getopt.texi (getopt): Likewise.
9292         * doc/posix-functions/perror.texi (perror): Likewise.
9293         * doc/posix-functions/printf.texi (printf): Likewise.
9294         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9295         * doc/posix-functions/psignal.texi (psignal): Likewise.
9296         * doc/posix-functions/putc.texi (putc): Likewise.
9297         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9298         Likewise.
9299         * doc/posix-functions/putchar.texi (putchar): Likewise.
9300         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9301         Likewise.
9302         * doc/posix-functions/puts.texi (puts): Likewise.
9303         * doc/posix-functions/putwc.texi (putwc): Likewise.
9304         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9305         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9306         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9307         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9308         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9309         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9310         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9311         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9312
9313 2011-05-22  Bruno Haible  <bruno@clisp.org>
9314
9315         strerror: Move AC_LIBOBJ invocations to module description.
9316         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9317         gl_PREREQ_STRERROR invocations from here...
9318         * modules/strerror (configure.ac): ... to here.
9319
9320 2011-05-21  Bruno Haible  <bruno@clisp.org>
9321
9322         perror: Use common idiom.
9323         * modules/perror (configure.ac): Reorder statements.
9324
9325 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9326
9327         tests: fix usage message in 'mktempd_'
9328         * tests/init.sh (mktempd_): In the usage message, use literal
9329         'mktempd_', not '$ME' (which is even undefined), as the name of
9330         the subroutine.
9331
9332 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9333
9334         tests init: new function 'fatal_', for hard errors
9335         Before this patch, the only way offered by tests/init.sh to
9336         properly signal a hard error was the `framework_failure_'
9337         function.  But the error message issued by that function,
9338         as its name would suggest, refers to a set-up failure in the
9339         testsuite, while hard errors can obviously also be due to
9340         other reasons.  The best way to fix this inconsistency is to
9341         introduce a new function with a more general error message.
9342         * tests/init.sh (fatal_): New function.
9343
9344 2011-06-06  Eric Blake  <eblake@redhat.com>
9345
9346         canonicalize-lgpl: use common idiom
9347         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9348         over newer POSIX -Rf.
9349         Reported by Bruno Haible.
9350
9351         canonicalize-lgpl: work around AIX realpath bug
9352         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9353         * doc/posix-functions/realpath.texi (realpath): Document it.
9354         Reported by Bruno Haible.
9355
9356         strerror: work around FreeBSD bug
9357         * lib/strerror.c (strerror): Special case 0.
9358         Reported by Bruno Haible.
9359
9360         strerror-override: avoid bloating errno module
9361         * modules/errno (Files, configure.ac): Move replacement strings...
9362         * modules/strerror-override: ...to new module.
9363         * modules/strerror (Depends-on): Add strerror-override.
9364         * modules/strerror_r-posix (Depends-on): Likewise.
9365         * MODULES.html.sh: Document new module.
9366         Reported by Bruno Haible.
9367
9368 2011-06-06  Bruno Haible  <bruno@clisp.org>
9369
9370         spawn-pipe tests: Rename program.
9371         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9372         * tests/test-spawn-pipe-child.c: Update comment.
9373         * tests/test-spawn-pipe.sh: Update.
9374         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9375
9376         spawn-pipe tests: Link the child program only against libc.
9377         * tests/test-spawn-pipe-child.c: New file, extracted from
9378         tests/test-spawn-pipe.c.
9379         (main): Expect only one argument.
9380         (is_open): New function, copied from tests/test-pipe.c.
9381         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9382         (child_main): Remove function.
9383         (test_pipe): Pass only one argument to the child program.
9384         (main): Remove child process code. Expect the child program's name as
9385         first argument.
9386         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9387         argument.
9388         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9389         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9390         test-spawn-pipe-child against no libraries.
9391
9392 2011-06-06  Bruno Haible  <bruno@clisp.org>
9393
9394         careadlinkat: Avoid mismatch between ssize_t and int.
9395         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9396         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9397
9398 2011-06-06  Jim Meyering  <meyering@redhat.com>
9399
9400         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9401         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9402         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9403
9404 2011-06-05  Bruno Haible  <bruno@clisp.org>
9405
9406         ansi-c++-opt: Interoperability with libtool.
9407         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9408         set the variable to "no", not to ":".
9409         * NEWS: Mention the change.
9410
9411 2011-06-05  Bruno Haible  <bruno@clisp.org>
9412
9413         acl: Fix test failure on AIX 7.
9414         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9415         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9416
9417 2011-06-05  Bruno Haible  <bruno@clisp.org>
9418
9419         pipe-filter-ii: Fix test failure on AIX and IRIX.
9420         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9421         with EAGAIN, retry with a smaller buffer size.
9422
9423 2011-06-05  Bruno Haible  <bruno@clisp.org>
9424
9425         localename: Fix link dependencies.
9426         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9427         * modules/localename-tests (Makefile.am): Link test-localename with
9428         $(LIBTHREAD).
9429
9430 2011-06-05  Bruno Haible  <bruno@clisp.org>
9431
9432         error: Avoid gcc warning.
9433         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9434
9435 2011-06-05  Bruno Haible  <bruno@clisp.org>
9436
9437         unsetenv: Avoid gcc warning.
9438         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9439
9440 2011-06-05  Bruno Haible  <bruno@clisp.org>
9441
9442         setenv: Avoid gcc warning.
9443         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9444
9445 2011-06-05  Bruno Haible  <bruno@clisp.org>
9446
9447         sys_select: Ensure memset is declared also on AIX 7.
9448         * lib/sys_select.in.h: Include <string.h> also on AIX.
9449         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9450         self-contained also on AIX 7.1.
9451
9452 2011-06-04  Jim Meyering  <meyering@redhat.com>
9453
9454         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9455         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9456         function name, "error".
9457         (_gl_translatable_diag_func_re): New configurable variable.
9458
9459 2011-06-04  Bruno Haible  <bruno@clisp.org>
9460
9461         getopt: Avoid gcc warning.
9462         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9463
9464 2011-06-04  Bruno Haible  <bruno@clisp.org>
9465
9466         strerror_r: Fix comments.
9467         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9468         commit.
9469
9470 2011-06-04  Bruno Haible  <bruno@clisp.org>
9471
9472         perror: Fix compilation error.
9473         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9474         Undefine fprintf, not sprintf.
9475         * modules/perror (Depends-on): Remove intprops, verify.
9476
9477 2011-06-04  Bruno Haible  <bruno@clisp.org>
9478
9479         setlocale: Enable replacement on Cygwin 1.5.
9480         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9481         Cygwin 1.5.x.
9482         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9483         LC_CTYPE category also exists on Cygwin 1.5.x.
9484
9485 2011-06-04  Bruno Haible  <bruno@clisp.org>
9486
9487         strerror-override: Don't disable symbol renamings.
9488         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9489         * lib/strerror-override.c: Include config.h.
9490         (strerror_override): Don't undefine.
9491
9492 2011-06-03  Bruno Haible  <bruno@clisp.org>
9493
9494         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9495         * lib/localename.h: Update copyright header.
9496         * lib/localename.c: Likewise.
9497         * lib/relocatable.h: Likewise.
9498         * lib/relocatable.c: Likewise.
9499
9500 2011-06-02  Bruno Haible  <bruno@clisp.org>
9501
9502         doc: Fix a module name.
9503         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9504
9505 2011-06-02  Bruno Haible  <bruno@clisp.org>
9506
9507         pipe2: Remove dependency on 'nonblocking' module.
9508         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9509         O_NONBLOCK is defined by gnulib.
9510         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9511         is zero.
9512         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9513         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9514         defined by gnulib.
9515         (get_nonblocking_flag): New function.
9516         (main): Test O_NONBLOCK flag only if it is nonzero.
9517         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9518
9519 2011-06-03  Jim Meyering  <meyering@redhat.com>
9520
9521         maint: three new prohibit-header-without-use rules
9522         Prohibit use of cloexec.h, posixver.h, same.h without use.
9523         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9524         (sc_prohibit_posixver_without_use): Likewise.
9525         (sc_prohibit_same_without_use): Likewise.
9526
9527 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9528
9529         allocator: 'die' routine is now given requested size
9530         * lib/allocator.h (struct allocator.die): New size arg.
9531         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9532         If the actual problem is an ssize_t limitation, not a size_t or
9533         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9534
9535 2011-06-01  Eric Blake  <eblake@redhat.com>
9536
9537         strerror: drop strerror_r dependency
9538         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9539         * lib/strerror-override.c (strerror_override): ...to new file.
9540         * lib/strerror-override.h: Add prototype.
9541         * lib/strerror-impl.h: Delete.
9542         * lib/strerror.c (strerror): New implementation.
9543         * modules/errno (Files): Add new files.
9544         (configure.ac): Compile new file as appropriate.
9545         * modules/strerror (Files): Drop unused file.
9546         (Depends-on): Drop strerror_r-posix.
9547         * MODULES.html.sh: Document strerror_r-posix.
9548         Requested by Sam Steingold.
9549
9550         perror: call strerror_r directly
9551         * modules/perror (Files): Drop strerror-impl.h.
9552         * lib/perror.c (perror): Use our own stack buffer, rather than
9553         calling a wrapper that uses static storage.
9554         * doc/posix-functions/perror.texi (perror): Document a limitation
9555         of our replacement.
9556
9557         strerror_r: fix includes for FreeBSD
9558         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9559         since we use abort on some platforms.
9560         Reported by Matthias Bolte.
9561
9562 2011-05-31  Bruno Haible  <bruno@clisp.org>
9563
9564         Fix link errors in tests: openat-die uses gettext-h.
9565         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9566         against $(LIBINTL).
9567         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9568         against $(LIBINTL).
9569         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9570         $(LIBINTL).
9571         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9572         against $(LIBINTL).
9573         * modules/linkat-tests (Makefile.am): Link test-linkat against
9574         $(LIBINTL).
9575         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9576         $(LIBINTL).
9577         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9578         against $(LIBINTL).
9579         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9580         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9581         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9582         $(LIBINTL).
9583         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9584         $(LIBINTL).
9585         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9586         $(LIBINTL).
9587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9588
9589 2011-05-31  Bruno Haible  <bruno@clisp.org>
9590
9591         Fix link errors in tests: wait-process uses gettext-h.
9592         * modules/nonblocking-pipe-tests (Makefile.am): Set
9593         test_nonblocking_pipe_main_LDADD.
9594         * modules/nonblocking-socket-tests (Makefile.am): Link
9595         test-nonblocking-socket-main against $(LIBINTL).
9596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9597
9598 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9599
9600         assert-h: work around 'verify' incompatibility
9601         * lib/verify.h: Use @...@ directives, not ifdef.
9602         * modules/assert-h (assert.h): Implement the directives.
9603         (assert.h): Substitute the symbol-prefix more consistently.
9604
9605 2011-05-29  Jim Meyering  <meyering@redhat.com>
9606
9607         trim: remove three superfluous assignments
9608         * lib/trim.c (trim2): Remove three superfluous assignments
9609         and correct brace positioning.
9610
9611 2011-05-29  Bruno Haible  <bruno@clisp.org>
9612
9613         wctype-h: Avoid namespace pollution on Solaris 2.6.
9614         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9615         identifiers.
9616         * doc/posix-headers/wctype.texi: Mention the problem.
9617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9618
9619 2011-05-28  Jim Meyering  <meyering@redhat.com>
9620
9621         parse-datetime.y: accommodate -Wstrict-overflow
9622         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9623         placate -Wstrict-overflow.
9624
9625         trim: avoid a warning from -O2 -Wstrict-overflow
9626         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9627
9628 2011-05-29  Bruno Haible  <bruno@clisp.org>
9629
9630         gnulib-tool: Fix bug in yesterday's commit.
9631         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9632         twice.
9633
9634 2011-05-29  Bruno Haible  <bruno@clisp.org>
9635
9636         Allow multiple gnulib generated include files to be combined.
9637         * gnulib-tool (func_compute_include_guard_prefix): New function.
9638         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9639         ${gl_include_guard_prefix} references.
9640         (func_import, func_create_testdir): Invoke
9641         func_compute_include_guard_prefix.
9642         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9643         * lib/ctype.in.h: Likewise.
9644         * lib/dirent.in.h: Likewise.
9645         * lib/errno.in.h: Likewise.
9646         * lib/fcntl.in.h: Likewise.
9647         * lib/float.in.h: Likewise.
9648         * lib/getopt.in.h: Likewise.
9649         * lib/iconv.in.h: Likewise.
9650         * lib/langinfo.in.h: Likewise.
9651         * lib/locale.in.h: Likewise.
9652         * lib/math.in.h: Likewise.
9653         * lib/netdb.in.h: Likewise.
9654         * lib/netinet_in.in.h: Likewise.
9655         * lib/poll.in.h: Likewise.
9656         * lib/pthread.in.h: Likewise.
9657         * lib/pty.in.h: Likewise.
9658         * lib/sched.in.h: Likewise.
9659         * lib/se-selinux.in.h: Likewise.
9660         * lib/search.in.h: Likewise.
9661         * lib/signal.in.h: Likewise.
9662         * lib/spawn.in.h: Likewise.
9663         * lib/stdarg.in.h: Likewise.
9664         * lib/stddef.in.h: Likewise.
9665         * lib/stdint.in.h: Likewise.
9666         * lib/stdio.in.h: Likewise.
9667         * lib/stdlib.in.h: Likewise.
9668         * lib/string.in.h: Likewise.
9669         * lib/strings.in.h: Likewise.
9670         * lib/sys_file.in.h: Likewise.
9671         * lib/sys_ioctl.in.h: Likewise.
9672         * lib/sys_select.in.h: Likewise.
9673         * lib/sys_socket.in.h: Likewise.
9674         * lib/sys_stat.in.h: Likewise.
9675         * lib/sys_time.in.h: Likewise.
9676         * lib/sys_times.in.h: Likewise.
9677         * lib/sys_uio.in.h: Likewise.
9678         * lib/sys_utsname.in.h: Likewise.
9679         * lib/sys_wait.in.h: Likewise.
9680         * lib/sysexits.in.h: Likewise.
9681         * lib/termios.in.h: Likewise.
9682         * lib/time.in.h: Likewise.
9683         * lib/unistd.in.h: Likewise.
9684         * lib/wchar.in.h: Likewise.
9685         * lib/wctype.in.h: Likewise.
9686         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9687         * modules/ctype (Makefile.am): Likewise.
9688         * modules/dirent (Makefile.am): Likewise.
9689         * modules/errno (Makefile.am): Likewise.
9690         * modules/fcntl-h (Makefile.am): Likewise.
9691         * modules/float (Makefile.am): Likewise.
9692         * modules/getopt-posix (Makefile.am): Likewise.
9693         * modules/iconv-h (Makefile.am): Likewise.
9694         * modules/langinfo (Makefile.am): Likewise.
9695         * modules/locale (Makefile.am): Likewise.
9696         * modules/math (Makefile.am): Likewise.
9697         * modules/netdb (Makefile.am): Likewise.
9698         * modules/netinet_in (Makefile.am): Likewise.
9699         * modules/poll-h (Makefile.am): Likewise.
9700         * modules/pthread (Makefile.am): Likewise.
9701         * modules/pty (Makefile.am): Likewise.
9702         * modules/sched (Makefile.am): Likewise.
9703         * modules/search (Makefile.am): Likewise.
9704         * modules/selinux-h (Makefile.am): Likewise.
9705         * modules/signal (Makefile.am): Likewise.
9706         * modules/spawn (Makefile.am): Likewise.
9707         * modules/stdarg (Makefile.am): Likewise.
9708         * modules/stddef (Makefile.am): Likewise.
9709         * modules/stdint (Makefile.am): Likewise.
9710         * modules/stdio (Makefile.am): Likewise.
9711         * modules/stdlib (Makefile.am): Likewise.
9712         * modules/string (Makefile.am): Likewise.
9713         * modules/strings (Makefile.am): Likewise.
9714         * modules/sys_file (Makefile.am): Likewise.
9715         * modules/sys_ioctl (Makefile.am): Likewise.
9716         * modules/sys_select (Makefile.am): Likewise.
9717         * modules/sys_socket (Makefile.am): Likewise.
9718         * modules/sys_stat (Makefile.am): Likewise.
9719         * modules/sys_time (Makefile.am): Likewise.
9720         * modules/sys_times (Makefile.am): Likewise.
9721         * modules/sys_uio (Makefile.am): Likewise.
9722         * modules/sys_utsname (Makefile.am): Likewise.
9723         * modules/sys_wait (Makefile.am): Likewise.
9724         * modules/sysexits (Makefile.am): Likewise.
9725         * modules/termios (Makefile.am): Likewise.
9726         * modules/time (Makefile.am): Likewise.
9727         * modules/unistd (Makefile.am): Likewise.
9728         * modules/wchar (Makefile.am): Likewise.
9729         * modules/wctype-h (Makefile.am): Likewise.
9730         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9731
9732 2011-05-29  Bruno Haible  <bruno@clisp.org>
9733
9734         assert-h: Allow multiple gnulib generated replacements to coexist.
9735         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9736
9737 2011-05-29  Bruno Haible  <bruno@clisp.org>
9738
9739         argp: Allow coexistence with strerror_r-posix module.
9740         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9741         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9742         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9743         not the glibc signature.
9744
9745 2011-05-28  Bruno Haible  <bruno@clisp.org>
9746
9747         gnulib-tool: Alternative structure of testdirs, similar to --import.
9748         * gnulib-tool: New option --single-configure.
9749         (func_usage): Document it.
9750         (single_configure): New variable.
9751         (func_modules_transitive_closure_separately,
9752         func_modules_transitive_closure_separately,
9753         func_determine_use_libtests, func_modules_add_dummy_separately,
9754         func_modules_to_filelist_separately): New functions, extracted from
9755         func_import.
9756         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9757         (func_import): Use the new functions.
9758         (func_create_testdir): Set final_modules. Handle $single_configure =
9759         true case.
9760
9761 2011-05-28  Bruno Haible  <bruno@clisp.org>
9762
9763         getloadavg: Remove an unreliable safety check.
9764         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9765         getloadavg.c is in place.
9766         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9767         Reported by Sam Steingold <sds@gnu.org>.
9768
9769 2011-05-28  Bruno Haible  <bruno@clisp.org>
9770
9771         doc: Cleanup yet another file produced by texinfo.tex.
9772         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9773
9774 2011-05-28  Bruno Haible  <bruno@clisp.org>
9775
9776         Finish the conditional dependencies mechanism.
9777         * gnulib-tool: New option --no-conditional-dependencies.
9778         (func_usage): Document it. Don't mark --conditional-dependencies as
9779         experimental.
9780         (cond_dependencies): The possible values can now be true, false, empty.
9781         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9782         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9783         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9784
9785 2011-05-28  Bruno Haible  <bruno@clisp.org>
9786
9787         doc: Use a recent texinfo.tex.
9788         * doc/Makefile (tex_opts): New variable.
9789         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9790
9791 2011-05-28  Jim Meyering  <meyering@redhat.com>
9792
9793         intprops.h: adjust comment to match code change
9794         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9795         only once, it *may* have side effects.  Also fix an unrelated typo.
9796         (_GL_INT_SIGNED): Likewise.
9797
9798 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9799
9800         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9801
9802 2011-05-26  Bruno Haible  <bruno@clisp.org>
9803
9804         mbsrchr: Avoid collision with system function on Interix.
9805         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9806         Reported by Markus Duft <mduft@gentoo.org>.
9807
9808 2011-05-15  James Youngman  <jay@gnu.org>
9809
9810         getopt: for ambiguous options, enumerate the possibilities.
9811         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9812         the ambiguous options when an ambiguous prefix is given. This was
9813         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9814         glibc change was
9815         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9816
9817 2011-05-25  Eric Blake  <eblake@redhat.com>
9818
9819         getcwd: work around mingw bug
9820         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9821         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9822         Reported by Matthias Bolte.
9823
9824 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9825
9826         test-intprops: disable -Wtype-limits diagnostics
9827         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9828         diagnostics.  Otherwise, the integer overflow macros generate many
9829         diagnostics.  Reported by Jim Meyering in
9830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9831
9832         intprops: shorten, to pacify gcc -Woverlength-strings
9833         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9834         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9835         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9836         likely to run afoul of C compiler limits for string constant lengths.
9837         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9838
9839 2011-05-24  Eric Blake  <eblake@redhat.com>
9840
9841         docs: document recently fixed glibc printf bug
9842         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9843         * doc/posix-functions/printf.texi (printf): Likewise.
9844         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9845         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9846
9847         closein-tests: convert to init.sh
9848         * modules/closein-tests (Files): Add init.sh
9849         * tests/test-closein.sh Use it.
9850
9851         yesno-tests: convert to init.sh
9852         * modules/yesno-tests (Files): Add init.sh.
9853         * tests/test-yesno.sh: Use it.
9854
9855         atexit-tests: ensure reliable exit status
9856         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9857         Reported by Bruno Haible.
9858
9859 2011-05-24  Bruno Haible  <bruno@clisp.org>
9860
9861         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9862         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9863         gl_PREREQ_STRERROR_R invocations from here...
9864         * modules/strerror_r-posix (configure.ac): ... to here.
9865
9866 2011-05-24  Eric Blake  <eblake@redhat.com>
9867
9868         strerror_r: fix missing header
9869         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9870
9871         strerror_r: fix AIX test failures
9872         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9873         ERANGE failure.
9874
9875         strerror_r: fix Solaris test failures
9876         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9877         failures.
9878         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9879
9880         strerror_r: enforce POSIX recommendations
9881         * lib/strerror_r.c (safe_copy): New helper method.
9882         (strerror_r): Guarantee a non-empty string.
9883         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9884         recent POSIX rulings and to match our strerror guarantees.
9885         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9886
9887 2011-05-24  Jim Meyering  <meyering@redhat.com>
9888
9889         test-perror2.c: avoid warning about unused variable
9890         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9891
9892 2011-05-24  Eric Blake  <eblake@redhat.com>
9893
9894         perror: avoid spurious test failure on HP-UX
9895         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9896
9897         tests: fix logic bug in init.sh
9898         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9899         shell.
9900
9901 2011-05-24  Jim Meyering  <meyering@redhat.com>
9902
9903         utimensat: do not reference an out-of-scope buffer
9904         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9905         declared in an inner scope, yet "times" would be dereferenced outside
9906         the scope in which "ts" was valid.
9907         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9908         of ts[2] "out/up", so that the use of aliased "times" (via
9909         "times = ts;") does not end up referencing an out-of-scope "ts"
9910
9911         opendir-safer.c: don't clobber errno; don't close negative FD
9912         * lib/opendir-safer.c (opendir_safer):
9913         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9914         file descriptor, and more importantly, don't clobber the
9915         offending errno value with EINVAL.  Before, upon failure
9916         of dup_safer, we would pass the negative file descriptor to
9917         fdopendir, which would clobber errno.
9918
9919 2011-05-23  Bruno Haible  <bruno@clisp.org>
9920
9921         idcache: Fix module description.
9922         * modules/idcache (Include): Set to "idcache.h".
9923
9924 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9925
9926         gnulib-tool: fix portability problem with MacOS sed
9927         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9928         before the "}".  Problem reported by Leo in
9929         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9930         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9931         sed_extract_condition1, sed_extract_condition2.
9932
9933 2011-05-23  Bruno Haible  <bruno@clisp.org>
9934
9935         hash: Simplify autoconf macro.
9936         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9937
9938 2011-05-23  Bruno Haible  <bruno@clisp.org>
9939
9940         getugroups: Fix module description.
9941         * modules/getugroups (Include): Set to "getugroups.h".
9942
9943 2011-05-23  Bruno Haible  <bruno@clisp.org>
9944
9945         linkat: Simplify autoconf macro.
9946         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9947
9948 2011-05-23  Bruno Haible  <bruno@clisp.org>
9949             Eric Blake  <eblake@redhat.com>
9950
9951         linkat, renameat: Update dependencies.
9952         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9953         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9954         symlinkat.
9955
9956 2011-05-23  Jim Meyering  <meyering@redhat.com>
9957
9958         maint.mk: more tight_scope improvements
9959         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9960         (_gl_TS_headers): Define only in if-0'd block.
9961         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9962         sometimes we must *not* use it.  Adjust uses accordingly.
9963         (sc_tight_scope): Use much simpler grep-based test to determine
9964         whether we skip this rule.
9965
9966         maint.mk: generalize/improve the tight-scope rule
9967         * top/maint.mk: Emit a warning when the test is skipped.
9968         (_gl_TS_dir): Add $(srcdir)/ prefix.
9969         (_gl_TS_function_match): Simplify, rather than trying
9970         to enumerate common types.  Otherwise, it would fail to match an
9971         "extern unsigned char const *" declaration in idutils.
9972         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9973         a way to support use of that type of macro.
9974         (_gl_TS_var_match): Simplify regexp.
9975         (_gl_TS_obj_files): New configurable variable.
9976         (_gl_TS_headers): Likewise.
9977
9978 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9979
9980         verify: fix bug when gnulib <assert.h> is also included
9981         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9982         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9983         Perhaps there's a better way, but this fixes the immediate problem.
9984         Problem reported by Bruno Haible in
9985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9986
9987 2011-05-22  Bruno Haible  <bruno@clisp.org>
9988
9989         xgetcwd: Simplify autoconf macro.
9990         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9991
9992 2011-05-22  Bruno Haible  <bruno@clisp.org>
9993
9994         New module 'mktime-internal'.
9995         * modules/mktime-internal: New file.
9996         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9997         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9998         mktime_internal as a C macro if libc has __mktime_internal.
9999         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10000         conditions.
10001         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10002
10003 2011-05-22  Bruno Haible  <bruno@clisp.org>
10004
10005         timegm: Correct mktime replacement statements.
10006         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10007         defining mktime as a C macro. This completes a 2009-07-28 commit.
10008
10009 2011-05-22  Bruno Haible  <bruno@clisp.org>
10010
10011         timegm: Simplify autoconf macro.
10012         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10013
10014 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10015
10016         clock-time: change to LGPLv2+.
10017         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10018         BSD-like but we have no mark for that; this is good enough for now.
10019
10020 2011-05-21  Bruno Haible  <bruno@clisp.org>
10021
10022         strerror_r: Fix comments.
10023         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10024
10025 2011-05-21  Bruno Haible  <bruno@clisp.org>
10026
10027         relocatable-prog-wrapper: Fix possible link error.
10028         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10029         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10030         (gl_FUNC_SETENV): ... to here.
10031         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10032         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10033
10034 2011-05-21  Bruno Haible  <bruno@clisp.org>
10035
10036         relocatable-prog-wrapper: Assume strerror() exists.
10037         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10038         m4/strerror.m4.
10039         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10040         * lib/relocwrapper.c: Remove mention of strerror module.
10041         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10042         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10043         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10044         C macro.
10045
10046 2011-05-21  Bruno Haible  <bruno@clisp.org>
10047
10048         select: Simplify replacement idiom.
10049         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10050         Win32 platforms.
10051         * lib/sys_select.in.h (select): Simplify accordingly.
10052         * modules/select (Depends-on): Likewise.
10053
10054 2011-05-21  Bruno Haible  <bruno@clisp.org>
10055
10056         mkdir-p: Simplify autoconf macro.
10057         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10058         gl_FUNC_LCHOWN.
10059
10060 2011-05-21  Eric Blake  <eblake@redhat.com>
10061
10062         strerror_r: avoid clobbering strerror on cygwin
10063         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10064         fall back instead to sys_errlist.
10065         * modules/strerror (configure.ac): Add witness.
10066         * tests/test-strerror_r.c (main): Enhance test.
10067         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10068         * tests/test-perror2.c (main): Free memory before exit.
10069
10070 2011-05-21  Bruno Haible  <bruno@clisp.org>
10071
10072         mkdtemp: Use gnulib naming conventions.
10073         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10074         * modules/mkdtemp (configure.ac): Update.
10075
10076 2011-05-20  Eric Blake  <eblake@redhat.com>
10077
10078         strerror_r: avoid corrupting errno on Solaris
10079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10080         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10081
10082         strerror_r: avoid compiler warning
10083         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10084
10085         strerror_r: simplify AIX code
10086         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10087
10088         test-perror: avoid spurious failure on FreeBSD
10089         * modules/perror-tests (Depends-on): Add strerror, now that
10090         strerror_r no longer pulls it in.
10091
10092 2011-05-20  Bruno Haible  <bruno@clisp.org>
10093
10094         strerror_r-posix: Remove unused dependencies.
10095         * modules/strerror_r-posix (Depends-on): Remove strerror.
10096         Reported by Eric Blake.
10097
10098 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10099
10100         intprops: remove assumption about A|B representation
10101         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10102         is a valid integer if both A and B are.  Although this is true for
10103         all known practical hosts, the C standard doesn't guarantee it,
10104         and the code need not assume it.  Also, this change may work around
10105         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10107
10108 2011-05-20  Eric Blake  <eblake@redhat.com>
10109
10110         perror: work around FreeBSD bug
10111         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10112         is broken.  Move AC_LIBOBJ...
10113         * modules/perror (configure.ac): Here.
10114         * doc/posix-functions/perror.texi (perror): Document this.
10115         * tests/test-perror2.c (main): Enhance test.
10116
10117         test-perror: check for strerror interactions
10118         * tests/macros.h (STREQ): Add macro.
10119         * modules/perror-tests (Files): Add second test.
10120         * tests/test-perror2.c (main): New file.
10121         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10122
10123         test-perror: rewrite to use init script
10124         * modules/perror-tests (Files): Add init.sh.
10125         * tests/test-perror.sh: Use temporary directory.
10126
10127 2011-05-20  Jim Meyering  <meyering@redhat.com>
10128
10129         maint: replace misused "a" with "an"
10130         * doc/intprops.texi: "a integer"
10131         * doc/regex.texi: "a explanation"
10132         * lib/alignof.h: "a object"
10133         * lib/argmatch.h: "a explanation"
10134         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10135         * lib/stdint.in.h: "a integer"
10136         * lib/userspec.c: "a owner"
10137         * doc/gnulib.texi: Fix "a idea", and reword.
10138
10139 2011-05-19  Jim Meyering  <meyering@redhat.com>
10140
10141         maint: correct misuse of "a" and "an"
10142         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10143         * lib/argp-help.c: "an docum...": s/an/a/
10144         * lib/argp-parse.c: "An vector": s/An/A/
10145         * lib/execute.c: "an native": s/an/a/
10146         * lib/spawn-pipe.c: Likewise.
10147         * lib/gc.h: "an Gc_rc": s/an/a/
10148         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10149         * lib/fts.c: "an stat.st_dev": s/an/a/
10150
10151 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10152
10153         intprops-tests: work around HP-UX 11.23 cc bug with constants
10154         * tests/test-intprops.c (VERIFY): New macro.
10155         (main): Use it, instead of verify, to work around the compiler bug; see
10156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10157
10158         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10159         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10160         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10161         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10162         (_GL_REMAINDER_OVERFLOW): Use it.
10163
10164         intprops-tests: revert unsigned part of previous change
10165         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10166         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10167         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10169
10170 2011-05-19  Bruno Haible  <bruno@clisp.org>
10171
10172         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10173         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10174         strerror_r() returned without filling the buffer.
10175         Reported by Eric Blake.
10176
10177 2011-05-19  Eric Blake  <eblake@redhat.com>
10178
10179         strerror_r: guarantee unchanged errno
10180         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10181         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10182         failure.
10183         * tests/test-strerror_r.c (main): Enhance test.
10184
10185 2011-05-19  Bruno Haible  <bruno@clisp.org>
10186
10187         strerror_r: Reorder #if blocks.
10188         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10189         for consistency with the previous commit.
10190
10191 2011-05-19  Bruno Haible  <bruno@clisp.org>
10192
10193         perror: Avoid clobbering the strerror buffer when possible.
10194         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10195         * lib/strerror.c: Include it.
10196         * modules/strerror (Files): Add lib/strerror-impl.h.
10197         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10198         (my_strerror): New function, defined through lib/strerror-impl.h.
10199         (perror): Use it instead of strerror.
10200         * modules/perror (Files): Add lib/strerror-impl.h.
10201         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10202
10203 2011-05-19  Eric Blake  <eblake@redhat.com>
10204
10205         strerror_r: fix on newer cygwin
10206         * lib/strerror_r.c (strerror_r): Cygwin now has
10207         __xpg_strerror_r, use it.
10208
10209 2011-05-19  Bruno Haible  <bruno@clisp.org>
10210
10211         strerror_r: Avoid clobbering the strerror buffer when possible.
10212         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10213         (sys_nerr, sys_errlist): New declarations.
10214         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10215         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10216         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10217
10218 2011-05-19  Bruno Haible  <bruno@clisp.org>
10219
10220         strerror_r: Fix test failure on mingw.
10221         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10222         EXTEND_STRERROR_R.
10223         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10224         macros from errno.in.h instead.
10225
10226 2011-05-19  Eric Blake  <eblake@redhat.com>
10227
10228         strerror: relax test for Solaris
10229         * tests/test-strerror.c (main): Permit Solaris behavior.
10230         * tests/test-strerror_r.c (main): Likewise.
10231
10232         strerror: enforce POSIX ruling on strerror(0)
10233         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10234         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10235         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10236         * doc/posix-functions/strerror.texi (strerror): Document it.
10237         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10238         * tests/test-strerror.c (main): Strengthen test.
10239         * tests/test-strerror_r.c (main): Likewise.
10240
10241 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10242
10243         intprop-tests: port to older and more-pedantic compilers
10244         * modules/intprops-tests (Files): Add tests/macros.h.
10245         * tests/test-intprops.c: Include macros.h.
10246         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10247         it's no longer documented to expand to an integer constant expression.
10248         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10249         argument is floating point, as it's no longer documented to expand
10250         to an integer constant expression in that case.
10251         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10252         compiler bugs reported by Bruno Haible.  See
10253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10254         (U0, U1): New constants, to work around the same bugs.  Also,
10255         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10256
10257         intprops: work around C compiler bugs
10258         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10259         bug in Sun C 5.11 2010/08/13 and other compilers; see
10260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10261
10262         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10263         * doc/intprops.texi (Integer Type Determination): Fix
10264         documentation for TYPE_IS_INTEGER: it returns an constant
10265         expression, not an integer constant expression.  Fix doc for
10266         TYPE_SIGNED: it returns an integer constant expression only if its
10267         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10268         hardly worth documented that way....)
10269
10270 2011-05-18  Bruno Haible  <bruno@clisp.org>
10271
10272         strerror_r: Avoid clobbering the strerror buffer when possible.
10273         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10274         Handle gnulib defined errno values here. When strerror() returns NULL
10275         or an empty string, return EINVAL.
10276         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10277         gnulib defined errno values here.
10278         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10279
10280 2011-05-18  Eric Blake  <eblake@redhat.com>
10281
10282         fnmatch: avoid compiler warning
10283         * lib/fnmatch_loop.c (FCT): Use correct type.
10284         Reported by Matthias Bolte.
10285
10286 2011-05-13  Jim Meyering  <meyering@redhat.com>
10287
10288         maint.mk: three new prohibit_<HDR>_without_use rules
10289         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10290         (sc_prohibit_stdio-safer_without_use): Likewise.
10291         (sc_prohibit_xfreopen_without_use): Likewise.
10292
10293 2011-05-17  Jim Meyering  <meyering@redhat.com>
10294
10295         announce-gen: fail if the NEWS delta is empty
10296         If there's nothing noteworthy in NEWS, then either you forgot
10297         or you shouldn't be releasing.
10298         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10299
10300 2011-05-17  Pádraig Brady <P@draigBrady.com>
10301
10302         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10303         reserved symbols starting with double underscore from the check.
10304
10305 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10306
10307         intprops: add doc
10308         * doc/intprops.texi: New file, documenting intprops.
10309         * doc/gnulib.texi (Particular Modules): Include it.
10310
10311         verify: add doc to gnulib manual and fix example
10312         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10313         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10314         (Compile-time Assertions): Fix example so it can't overflow.
10315
10316 2011-05-17  Jim Meyering  <meyering@redhat.com>
10317
10318         warnings.m4: don't usurp save_CPPFLAGS variable name
10319         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10320
10321         doc: fix typo
10322         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10323
10324 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10325             Bruno Haible  <bruno@clisp.org>
10326
10327         doc: Tweak recent change.
10328         * README (Portability guidelines): Tweak new text.
10329         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10330         Interix 6.1.
10331
10332 2011-05-16  Eric Blake  <eblake@redhat.com>
10333
10334         inttypes: avoid autoconf warning
10335         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10336         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10337
10338 2011-05-16  Sam Steingold <sds@gnu.org>
10339         and Eric Blake  <eblake@redhat.com>
10340
10341         vc-list-files: accept multiple directory operands
10342         * build-aux/vc-list-files: Iterate over all remaining operands.
10343
10344 2011-05-16  Bruno Haible  <bruno@clisp.org>
10345
10346         Fix confusion regarding deprecated modules.
10347         * modules/calloc (Status, Notice): Mark module as deprecated, not
10348         obsolete.
10349         * modules/fnmatch-posix (Status, Notice): Likewise.
10350         * modules/getdate (Status, Notice): Likewise.
10351         * modules/getopt (Status, Notice): Likewise.
10352         * modules/malloc (Status, Notice): Likewise.
10353         * modules/pipe (Status, Notice): Likewise.
10354         * modules/realloc (Status, Notice): Likewise.
10355         * modules/rename-dest-slash (Status, Notice): Likewise.
10356         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10357         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10358         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10359         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10360         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10361
10362 2011-05-16  Bruno Haible  <bruno@clisp.org>
10363
10364         doc: List the target platforms.
10365         * doc/gnulib-intro.texi (Target Platforms): New section.
10366         * doc/gnulib.texi (Introduction): Update menu.
10367         * README (Portability guidelines): Refer to the new section. Update
10368         statement about oldest supported environment. Remove rationale why
10369         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10370         unportable C89 function.
10371         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10372         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10373
10374 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10375
10376         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10377
10378 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10379
10380         intprops-tests: new module
10381         * modules/intprops-tests, tests/test-intprops.c: New files.
10382
10383         intprops: add safe, portable integer overflow checking
10384         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10385         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10386         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10387         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10388         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10389         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10390         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10391         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10392         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10393         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10394         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10395
10396 2011-05-12  James Youngman  <jay@gnu.org>
10397
10398         Add a test for glibc's Bugzilla bug #12378.
10399         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10400         doesn't allow the literal matching of a lone "[" (which is
10401         required by POSIX).
10402         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10403
10404 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10405
10406         Sync glibc change fixing Bugzilla bug #12378.
10407         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10408         beginning and fall back to matching as normal character if the
10409         string ends before the matching ']' is found.  This is what POSIX
10410         requires.
10411
10412 2011-05-13  Eric Blake  <eblake@redhat.com>
10413
10414         getcwd-lgpl: relax test for FreeBSD
10415         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10416         issue.
10417         * tests/test-getcwd-lgpl.c (main): Relax test.
10418         Reported by Matthias Bolte.
10419
10420 2011-05-11  Eric Blake  <eblake@redhat.com>
10421
10422         test-fflush: silence compiler warning
10423         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10424
10425 2011-05-11  Bruno Haible  <bruno@clisp.org>
10426
10427         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10428         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10429         * modules/canonicalize (Depends-on): Add 'nocrash'.
10430         * modules/canonicalize-lgpl (Depends-on): Likewise.
10431         * doc/posix-functions/realpath.texi: Update platforms list.
10432         Reported by Ryan Schmidt <ryandesign@macports.org>.
10433
10434 2011-05-11  Bruno Haible  <bruno@clisp.org>
10435
10436         group-member: Declare function in <unistd.h>.
10437         * lib/unistd.in.h (group_member): New declaration.
10438         * lib/group-member.h: Remove file.
10439         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10440         * tests/test-unistd-c++.cc: Check signature of group_member.
10441         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10442         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10443         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10444         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10445         HAVE_GROUP_MEMBER.
10446         * modules/group-member (Files): Remove lib/group-member.h.
10447         (Depends-on): Add unistd. Specify conditions.
10448         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10449         (Include): Change to <unistd.h>.
10450         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10451         HAVE_GROUP_MEMBER.
10452         * NEWS: Mention the change.
10453         * lib/euidaccess.c: Don't include group-member.h.
10454
10455 2011-05-11  Bruno Haible  <bruno@clisp.org>
10456
10457         group-member: Document module.
10458         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10459         module.
10460
10461 2011-05-11  Bruno Haible  <bruno@clisp.org>
10462
10463         fclose: Fix mistake earlier today.
10464         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10465
10466 2011-05-11  Eric Blake  <eblake@redhat.com>
10467
10468         fclose: preserve fflush errors
10469         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10470         Reported by Jim Meyering.
10471
10472         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10473         * build-aux/bootstrap (check_versions): When no specific version
10474         is required, merely check that the app produces an exit status
10475         that indicates its existence.
10476
10477         maint.mk: drop redundant check
10478         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10479         the same but better.
10480
10481 2011-05-11  Bruno Haible  <bruno@clisp.org>
10482
10483         fclose: Fix possible link error.
10484         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10485         unregister_shadow_fd. Improve comments.
10486         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10487         Eric Blake.
10488
10489 2011-05-11  Jim Meyering  <meyering@redhat.com>
10490
10491         maint.mk: improve "can not" detection and generalize rule name
10492         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10493         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10494         Use the same technique as in sc_prohibit_doubled_word, so that
10495         we recognize "can not" also when the words are separated by a newline.
10496         Suggested by Eric Blake.
10497         (perl_filename_lineno_text_): Define.  Factored out of...
10498         (prohibit_doubled_word_): ...here.  Use the new definition.
10499         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10500         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10501         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10502
10503 2011-05-10  Eric Blake  <eblake@redhat.com>
10504
10505         fclose: avoid double close race when possible
10506         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10507         all but WINDOWS_SOCKETS.
10508
10509 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10510
10511         openat: correct new comment
10512         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10513
10514 2011-05-10  Jim Meyering  <meyering@redhat.com>
10515
10516         openat: add comments
10517         * lib/openat-proc.c (openat_proc_name): Add comments,
10518         mostly from Eric Blake.
10519
10520 2011-05-09  Eric Blake  <eblake@redhat.com>
10521
10522         openat: reduce syscalls in first probe of /proc
10523         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10524         be a directory.  Simplify the probe for .. bugs.
10525         * modules/openat (Depends-on): Drop same-inode.
10526         Reported by Bastien ROUCARIES.
10527
10528 2011-05-09  Jim Meyering  <meyering@redhat.com>
10529
10530         maint.mk: change semantics/name of tight_scope variables
10531         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10532         Rename variables to align with semantics that make them more useful.
10533
10534         maint.mk: tweak new rule's name not to impinge
10535         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10536         (sc_tight_scope): Use new rule name rather than $@-0.
10537
10538         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10539         * top/maint.mk (sc_tight_scope): New rule.
10540         (sc_tight_scope-0): New rule, ifdef'd out.
10541         (_gl_TS_dir): Default.
10542         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10543         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10544
10545 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10546
10547         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10548         Haible <bruno@clisp.org>.
10549
10550 2011-05-08  Bruno Haible  <bruno@clisp.org>
10551
10552         Comments.
10553         * m4/isnanf.m4: Add comment.
10554         * m4/isnanl.m4: Likewise.
10555
10556 2011-05-08  Bruno Haible  <bruno@clisp.org>
10557
10558         glob: Remove obsolete macro.
10559         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10560
10561 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10562
10563         intprops: Sun C 5.11 supports __typeof__
10564         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10565         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10566         which is new.
10567         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10568
10569         intprops: switch to usual gnulib indenting and naming
10570         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10571         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10572
10573         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10574
10575 2011-05-08  Jim Meyering  <meyering@redhat.com>
10576
10577         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10578         * top/maint.mk (release-prep): Use make's --no-print-directory
10579         option when generating the announcement.  This eliminates the
10580         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10581         generated announcement template.
10582
10583 2011-05-08  Bruno Haible  <bruno@clisp.org>
10584
10585         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10586         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10587         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10588
10589 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10590
10591         ignore-value, verify: Omit include files from lib_SOURCES.
10592         * modules/ignore-value, modules/verify (Makefile.am):
10593         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10594         that leads Automake to duplicate use of am__objects_... variables
10595         in Makefile.in.  See
10596         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10597
10598 2011-05-07  Bruno Haible  <bruno@clisp.org>
10599
10600         fclose: Simplify autoconf macro.
10601         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10602         defined.
10603
10604 2011-05-07  Bruno Haible  <bruno@clisp.org>
10605
10606         canonicalize-lgpl: Fix autoconf macro ordering bug.
10607         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10608         gl_STDLIB_H_DEFAULTS.
10609
10610 2011-05-06  Eric Blake  <eblake@redhat.com>
10611
10612         maintainer-makefile: make sc_po_check easier to tune
10613         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10614         to probe for strings, such as an alternate location for gnulib.
10615
10616         fclose: guarantee behavior on seekable stdin
10617         * modules/fclose (Depends-on): Add fflush.
10618         * doc/posix-functions/fclose.texi (fclose): Document this.
10619         * tests/test-fclose.c (main): Make test for this unconditional.
10620
10621 2011-05-06  Bruno Haible  <bruno@clisp.org>
10622
10623         fflush, fpurge: Relicense under LGPLv2+.
10624         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10625         * modules/fpurge (License): Likewise.
10626         With permission from Eric Blake and Jim Meyering.
10627         Suggested by Eric Blake.
10628
10629 2011-05-06  Karl Berry  <karl@gnu.org>
10630
10631         * MODULES.html.sh (func_all_modules): remove exit.
10632
10633 2011-05-06  Jim Meyering  <meyering@redhat.com>
10634
10635         maint.mk: use info-gnu@ as the default only for a stable release
10636         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10637         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10638         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10639         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10640
10641 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10642
10643         assert-h: new module, which supports C1X-style static_assert
10644         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10645         * lib/verify.h: Revamp so that this can be copied into assert.h,
10646         while retaining the ability to use it standalone as before.
10647         Rename private identifiers so as not to encroach on the
10648         standard C namespace, since this is now used by assert.h.
10649         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10650         the old verify_true.
10651         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10652         the old verify_true.  Use _GL_VERIFY_TYPE.
10653         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10654         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10655         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10656         defined when this file is copied into the replacement assert.h.
10657         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10658         and _Static_assert is not built in.
10659         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10660         defined, and use the new macros mentioned above.
10661         * doc/posix-headers/assert.texi: Document this.
10662
10663 2011-05-05  Bruno Haible  <bruno@clisp.org>
10664
10665         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10666         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10667         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10668         gl_REPLACE_FCLOSE here.
10669         * modules/fflush (Depends-on): Remove fclose.
10670         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10671         combination with module 'fclose'.
10672
10673 2011-05-05  Bruno Haible  <bruno@clisp.org>
10674
10675         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10676         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10677         gl_FUNC_FFLUSH.
10678         (gl_FUNC_FFLUSH): Use it.
10679         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10681         gl_REPLACE_FSEEKO here.
10682
10683 2011-05-05  Bruno Haible  <bruno@clisp.org>
10684
10685         tzset: Relicense under LGPL.
10686         * modules/tzset (License): Change to LGPL.
10687         No agreement needed; it's a no-op.
10688
10689         strtoimax, strtoumax: Relicense under LGPL.
10690         * modules/strtoimax (License): Change to LGPL.
10691         * modules/strtoumax (License): Likewise.
10692         With permission from Jim Meyering, Paul Eggert:
10693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10695
10696         getgroups: Relicense under LGPL.
10697         * modules/getgroups (License): Change to LGPL.
10698         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10702
10703         nanosleep: Relicense under LGPL.
10704         * modules/nanosleep (License): Change to LGPL.
10705         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10706         Haible:
10707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10711
10712         futimens: Relicense under LGPL.
10713         * modules/futimens (License): Change to LGPL.
10714         With permission from Eric Blake:
10715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10716
10717         fflush: Relicense under LGPL.
10718         * modules/fflush (License): Change to LGPL.
10719         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10723
10724         tmpfile: Relicense under LGPL.
10725         * modules/tmpfile (License): Change to LGPL.
10726         With permission from Ben Pfaff:
10727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10728
10729         isfinite: Relicense under LGPL.
10730         * modules/isfinite (License): Change to LGPL.
10731         With permission from Ben Pfaff, Bruno Haible:
10732         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10734
10735         acosl..tanl: Relicense under LGPL.
10736         * modules/acosl (License): Change to LGPL.
10737         * modules/asinl (License): Likewise.
10738         * modules/atanl (License): Likewise.
10739         * modules/cosl (License): Likewise.
10740         * modules/expl (License): Likewise.
10741         * modules/logl (License): Likewise.
10742         * modules/sinl (License): Likewise.
10743         * modules/sqrtl (License): Likewise.
10744         * modules/tanl (License): Likewise.
10745         Source code originally from glibc and Paolo Bonzini. Agreements:
10746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10748
10749 2011-05-05  Bruno Haible  <bruno@clisp.org>
10750
10751         signal: Define sighandler_t.
10752         * lib/signal.in.h (sighandler_t): New type.
10753         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10754         whether sighandler_t is defined.
10755         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10756         * modules/signal (Depends-on): Add extensions.
10757         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10758         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10759         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10760
10761 2011-05-05  Eric Blake  <eblake@redhat.com>
10762
10763         maint: remove useless REPLACE_*_H macros
10764         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10765         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10766         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10767         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10768         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10769         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10770         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10771         * m4/btowc.m4: Update callers.
10772         * m4/dirfd.m4: Likewise.
10773         * m4/duplocale.m4: Likewise.
10774         * m4/fchdir.m4: Likewise.
10775         * m4/fdopendir.m4: Likewise.
10776         * m4/inet_ntop.m4: Likewise.
10777         * m4/inet_pton.m4: Likewise.
10778         * m4/ioctl.m4: Likewise.
10779         * m4/mbrlen.m4: Likewise.
10780         * m4/mbrtowc.m4: Likewise.
10781         * m4/mbsinit.m4: Likewise.
10782         * m4/mbsnrtowcs.m4: Likewise.
10783         * m4/mbsrtowcs.m4: Likewise.
10784         * m4/poll.m4: Likewise.
10785         * m4/setlocale.m4: Likewise.
10786         * m4/wcrtomb.m4: Likewise.
10787         * m4/wcsnrtombs.m4: Likewise.
10788         * m4/wcsrtombs.m4: Likewise.
10789         * m4/wctob.m4: Likewise.
10790         * m4/wcwidth.m4: Likewise.
10791         * modules/posix_spawn: Likewise.
10792         * modules/posix_spawn_file_actions_addclose: Likewise.
10793         * modules/posix_spawn_file_actions_adddup2: Likewise.
10794         * modules/posix_spawn_file_actions_addopen: Likewise.
10795         * modules/posix_spawn_file_actions_destroy: Likewise.
10796         * modules/posix_spawn_file_actions_init: Likewise.
10797         * modules/posix_spawnattr_destroy: Likewise.
10798         * modules/posix_spawnattr_getflags: Likewise.
10799         * modules/posix_spawnattr_getpgroup: Likewise.
10800         * modules/posix_spawnattr_getschedparam: Likewise.
10801         * modules/posix_spawnattr_getschedpolicy: Likewise.
10802         * modules/posix_spawnattr_getsigdefault: Likewise.
10803         * modules/posix_spawnattr_getsigmask: Likewise.
10804         * modules/posix_spawnattr_init: Likewise.
10805         * modules/posix_spawnattr_setflags: Likewise.
10806         * modules/posix_spawnattr_setpgroup: Likewise.
10807         * modules/posix_spawnattr_setschedparam: Likewise.
10808         * modules/posix_spawnattr_setschedpolicy: Likewise.
10809         * modules/posix_spawnattr_setsigdefault: Likewise.
10810         * modules/posix_spawnattr_setsigmask: Likewise.
10811         * modules/posix_spawnp: Likewise.
10812
10813 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10814
10815         Add option to do-release-commit-and-tag to specify branch.
10816         * build-aux/do-release-commit-and-tag: Add --branch.
10817
10818 2011-05-03  Bruno Haible  <bruno@clisp.org>
10819
10820         Avoid unnecessary compilation units, through conditional dependencies.
10821         * modules/accept (Depends-on): Add conditions to the dependencies.
10822         * modules/acosl (Depends-on): Likewise.
10823         * modules/argz (Depends-on): Likewise.
10824         * modules/asinl (Depends-on): Likewise.
10825         * modules/atanl (Depends-on): Likewise.
10826         * modules/atoll (Depends-on): Likewise.
10827         * modules/bind (Depends-on): Likewise.
10828         * modules/btowc (Depends-on): Likewise.
10829         * modules/canonicalize-lgpl (Depends-on): Likewise.
10830         * modules/ceil (Depends-on): Likewise.
10831         * modules/ceilf (Depends-on): Likewise.
10832         * modules/ceill (Depends-on): Likewise.
10833         * modules/chdir-long (Depends-on): Likewise.
10834         * modules/chown (Depends-on): Likewise.
10835         * modules/close (Depends-on): Likewise.
10836         * modules/connect (Depends-on): Likewise.
10837         * modules/cosl (Depends-on): Likewise.
10838         * modules/dirfd (Depends-on): Likewise.
10839         * modules/dprintf (Depends-on): Likewise.
10840         * modules/dprintf-posix (Depends-on): Likewise.
10841         * modules/error (Depends-on): Likewise.
10842         * modules/euidaccess (Depends-on): Likewise.
10843         * modules/expl (Depends-on): Likewise.
10844         * modules/faccessat (Depends-on): Likewise.
10845         * modules/fchdir (Depends-on): Likewise.
10846         * modules/fclose (Depends-on): Likewise.
10847         * modules/fcntl (Depends-on): Likewise.
10848         * modules/fdopendir (Depends-on): Likewise.
10849         * modules/fflush (Depends-on): Likewise.
10850         * modules/floor (Depends-on): Likewise.
10851         * modules/floorf (Depends-on): Likewise.
10852         * modules/floorl (Depends-on): Likewise.
10853         * modules/fnmatch (Depends-on): Likewise.
10854         * modules/fopen (Depends-on): Likewise.
10855         * modules/fprintf-posix (Depends-on): Likewise.
10856         * modules/frexp (Depends-on): Likewise.
10857         * modules/frexp-nolibm (Depends-on): Likewise.
10858         * modules/frexpl (Depends-on): Likewise.
10859         * modules/frexpl-nolibm (Depends-on): Likewise.
10860         * modules/fseek (Depends-on): Likewise.
10861         * modules/fsusage (Depends-on): Likewise.
10862         * modules/ftell (Depends-on): Likewise.
10863         * modules/ftello (Depends-on): Likewise.
10864         * modules/futimens (Depends-on): Likewise.
10865         * modules/getcwd (Depends-on): Likewise.
10866         * modules/getcwd-lgpl (Depends-on): Likewise.
10867         * modules/getdelim (Depends-on): Likewise.
10868         * modules/getdomainname (Depends-on): Likewise.
10869         * modules/getgroups (Depends-on): Likewise.
10870         * modules/gethostname (Depends-on): Likewise.
10871         * modules/getline (Depends-on): Likewise.
10872         * modules/getlogin_r (Depends-on): Likewise.
10873         * modules/getopt-posix (Depends-on): Likewise.
10874         * modules/getpeername (Depends-on): Likewise.
10875         * modules/getsockname (Depends-on): Likewise.
10876         * modules/getsockopt (Depends-on): Likewise.
10877         * modules/getsubopt (Depends-on): Likewise.
10878         * modules/getusershell (Depends-on): Likewise.
10879         * modules/glob (Depends-on): Likewise.
10880         * modules/grantpt (Depends-on): Likewise.
10881         * modules/iconv_open (Depends-on): Likewise.
10882         * modules/iconv_open-utf (Depends-on): Likewise.
10883         * modules/inet_ntop (Depends-on): Likewise.
10884         * modules/inet_pton (Depends-on): Likewise.
10885         * modules/ioctl (Depends-on): Likewise.
10886         * modules/isapipe (Depends-on): Likewise.
10887         * modules/isfinite (Depends-on): Likewise.
10888         * modules/isinf (Depends-on): Likewise.
10889         * modules/lchown (Depends-on): Likewise.
10890         * modules/ldexpl (Depends-on): Likewise.
10891         * modules/link (Depends-on): Likewise.
10892         * modules/linkat (Depends-on): Likewise.
10893         * modules/listen (Depends-on): Likewise.
10894         * modules/logl (Depends-on): Likewise.
10895         * modules/lstat (Depends-on): Likewise.
10896         * modules/mbrlen (Depends-on): Likewise.
10897         * modules/mbrtowc (Depends-on): Likewise.
10898         * modules/mbsinit (Depends-on): Likewise.
10899         * modules/mbsnrtowcs (Depends-on): Likewise.
10900         * modules/mbsrtowcs (Depends-on): Likewise.
10901         * modules/mbtowc (Depends-on): Likewise.
10902         * modules/memcmp (Depends-on): Likewise.
10903         * modules/mkdir (Depends-on): Likewise.
10904         * modules/mkdtemp (Depends-on): Likewise.
10905         * modules/mkfifo (Depends-on): Likewise.
10906         * modules/mkfifoat (Depends-on): Likewise.
10907         * modules/mknod (Depends-on): Likewise.
10908         * modules/mkostemp (Depends-on): Likewise.
10909         * modules/mkostemps (Depends-on): Likewise.
10910         * modules/mkstemp (Depends-on): Likewise.
10911         * modules/mkstemps (Depends-on): Likewise.
10912         * modules/mktime (Depends-on): Likewise.
10913         * modules/nanosleep (Depends-on): Likewise.
10914         * modules/open (Depends-on): Likewise.
10915         * modules/openat (Depends-on): Likewise.
10916         * modules/perror (Depends-on): Likewise.
10917         * modules/poll (Depends-on): Likewise.
10918         * modules/popen (Depends-on): Likewise.
10919         * modules/posix_spawn (Depends-on): Likewise.
10920         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10921         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10922         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10923         * modules/posix_spawnp (Depends-on): Likewise.
10924         * modules/pread (Depends-on): Likewise.
10925         * modules/printf-posix (Depends-on): Likewise.
10926         * modules/ptsname (Depends-on): Likewise.
10927         * modules/putenv (Depends-on): Likewise.
10928         * modules/pwrite (Depends-on): Likewise.
10929         * modules/readline (Depends-on): Likewise.
10930         * modules/readlink (Depends-on): Likewise.
10931         * modules/readlinkat (Depends-on): Likewise.
10932         * modules/recv (Depends-on): Likewise.
10933         * modules/recvfrom (Depends-on): Likewise.
10934         * modules/regex (Depends-on): Likewise.
10935         * modules/remove (Depends-on): Likewise.
10936         * modules/rename (Depends-on): Likewise.
10937         * modules/renameat (Depends-on): Likewise.
10938         * modules/rmdir (Depends-on): Likewise.
10939         * modules/round (Depends-on): Likewise.
10940         * modules/roundf (Depends-on): Likewise.
10941         * modules/roundl (Depends-on): Likewise.
10942         * modules/rpmatch (Depends-on): Likewise.
10943         * modules/select (Depends-on): Likewise.
10944         * modules/send (Depends-on): Likewise.
10945         * modules/sendto (Depends-on): Likewise.
10946         * modules/setenv (Depends-on): Likewise.
10947         * modules/setlocale (Depends-on): Likewise.
10948         * modules/setsockopt (Depends-on): Likewise.
10949         * modules/shutdown (Depends-on): Likewise.
10950         * modules/sigaction (Depends-on): Likewise.
10951         * modules/signbit (Depends-on): Likewise.
10952         * modules/sigprocmask (Depends-on): Likewise.
10953         * modules/sinl (Depends-on): Likewise.
10954         * modules/sleep (Depends-on): Likewise.
10955         * modules/snprintf (Depends-on): Likewise.
10956         * modules/snprintf-posix (Depends-on): Likewise.
10957         * modules/socket (Depends-on): Likewise.
10958         * modules/sprintf-posix (Depends-on): Likewise.
10959         * modules/sqrtl (Depends-on): Likewise.
10960         * modules/stat (Depends-on): Likewise.
10961         * modules/strchrnul (Depends-on): Likewise.
10962         * modules/strdup-posix (Depends-on): Likewise.
10963         * modules/strerror (Depends-on): Likewise.
10964         * modules/strerror_r-posix (Depends-on): Likewise.
10965         * modules/strndup (Depends-on): Likewise.
10966         * modules/strnlen (Depends-on): Likewise.
10967         * modules/strptime (Depends-on): Likewise.
10968         * modules/strsep (Depends-on): Likewise.
10969         * modules/strsignal (Depends-on): Likewise.
10970         * modules/strstr-simple (Depends-on): Likewise.
10971         * modules/strtod (Depends-on): Likewise.
10972         * modules/strtoimax (Depends-on): Likewise.
10973         * modules/strtok_r (Depends-on): Likewise.
10974         * modules/strtoumax (Depends-on): Likewise.
10975         * modules/symlink (Depends-on): Likewise.
10976         * modules/symlinkat (Depends-on): Likewise.
10977         * modules/tanl (Depends-on): Likewise.
10978         * modules/tcgetsid (Depends-on): Likewise.
10979         * modules/tmpfile (Depends-on): Likewise.
10980         * modules/trunc (Depends-on): Likewise.
10981         * modules/truncf (Depends-on): Likewise.
10982         * modules/truncl (Depends-on): Likewise.
10983         * modules/uname (Depends-on): Likewise.
10984         * modules/unlink (Depends-on): Likewise.
10985         * modules/unlockpt (Depends-on): Likewise.
10986         * modules/unsetenv (Depends-on): Likewise.
10987         * modules/usleep (Depends-on): Likewise.
10988         * modules/utimensat (Depends-on): Likewise.
10989         * modules/vasprintf (Depends-on): Likewise.
10990         * modules/vdprintf (Depends-on): Likewise.
10991         * modules/vdprintf-posix (Depends-on): Likewise.
10992         * modules/vfprintf-posix (Depends-on): Likewise.
10993         * modules/vprintf-posix (Depends-on): Likewise.
10994         * modules/vsnprintf (Depends-on): Likewise.
10995         * modules/vsnprintf-posix (Depends-on): Likewise.
10996         * modules/vsprintf-posix (Depends-on): Likewise.
10997         * modules/wcrtomb (Depends-on): Likewise.
10998         * modules/wcscasecmp (Depends-on): Likewise.
10999         * modules/wcscspn (Depends-on): Likewise.
11000         * modules/wcsdup (Depends-on): Likewise.
11001         * modules/wcsncasecmp (Depends-on): Likewise.
11002         * modules/wcsnrtombs (Depends-on): Likewise.
11003         * modules/wcspbrk (Depends-on): Likewise.
11004         * modules/wcsrtombs (Depends-on): Likewise.
11005         * modules/wcsspn (Depends-on): Likewise.
11006         * modules/wcsstr (Depends-on): Likewise.
11007         * modules/wcstok (Depends-on): Likewise.
11008         * modules/wcswidth (Depends-on): Likewise.
11009         * modules/wctob (Depends-on): Likewise.
11010         * modules/wctomb (Depends-on): Likewise.
11011         * modules/wctype (Depends-on): Likewise.
11012         * modules/wcwidth (Depends-on): Likewise.
11013         * modules/write (Depends-on): Likewise.
11014
11015 2011-05-03  Bruno Haible  <bruno@clisp.org>
11016
11017         Support for conditional dependencies.
11018         * doc/gnulib.texi (Module description): Document the syntax of
11019         conditional dependencies.
11020         * gnulib-tool: New option --conditional-dependencies.
11021         (func_usage): Document it.
11022         (cond_dependencies): New variable.
11023         (func_get_automake_snippet_conditional,
11024         func_get_automake_snippet_unconditional): New functions, extracted from
11025         func_get_automake_snippet.
11026         (func_get_automake_snippet): Use them.
11027         (sed_first_32_chars): New variable.
11028         (func_module_shellfunc_name): New function.
11029         (func_module_shellvar_name): New function.
11030         (func_module_conditional_name): New function.
11031         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11032         func_cond_module_condition): New functions.
11033         (func_modules_transitive_closure): Add support for conditional
11034         dependencies.
11035         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11036         conditional automake snippet in an automake conditional.
11037         (func_emit_autoconf_snippets): Emit shell functions that contain the
11038         code for conditional modules.
11039         (func_import, func_create_testdir): Update specification.
11040
11041 2011-05-03  Eric Blake  <eblake@redhat.com>
11042
11043         test-getaddrinfo: report error information
11044         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11045
11046 2011-05-03  Jim Meyering  <meyering@redhat.com>
11047
11048         bootstrap: avoid build failure when $GZIP is set
11049         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11050         program name.  If defined at all, it is supposed to list gzip options.
11051         Reported by Alan Curry in http://debbugs.gnu.org/8609
11052
11053 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11054
11055         readme-release: new module with release instructions
11056         * modules/readme-release: New module.
11057         * top/README-release: New file, from coreutils, grep, diffutils.
11058         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11059
11060 2011-05-02  Eric Blake  <eblake@redhat.com>
11061
11062         fflush: also replace fclose when fixing fflush
11063         * modules/fflush (Depends-on): Add fclose.
11064         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11065         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11066         memstreams with no backing fd.
11067         * doc/posix-functions/fclose.texi (fclose): Document the use of
11068         fflush module to fix the bug.
11069         * tests/test-fclose.c (main): Relax test when fclose is used in
11070         isolation.
11071
11072         fclose: add some tests
11073         * modules/fclose-tests: New test module.
11074         * tests/test-fclose.c: New file.
11075         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11076
11077         fclose: reduced dependencies
11078         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11079         simpler lseek.
11080         * lib/fclose.c (rpl_fclose): Likewise.
11081         Reported by Simon Josefsson.
11082
11083         exit: drop remaining clients
11084         * modules/argmatch (Depends-on): Replace exit with stdlib.
11085         * modules/copy-file (Depends-on): Likewise.
11086         * modules/execute (Depends-on): Likewise.
11087         * modules/exitfail (Depends-on): Likewise.
11088         * modules/obstack (Depends-on): Likewise.
11089         * modules/pagealign_alloc (Depends-on): Likewise.
11090         * modules/pipe-filter-gi (Depends-on): Likewise.
11091         * modules/pipe-filter-ii (Depends-on): Likewise.
11092         * modules/savewd (Depends-on): Likewise.
11093         * modules/spawn-pipe (Depends-on): Likewise.
11094         * modules/wait-process (Depends-on): Likewise.
11095         * modules/xsetenv (Depends-on): Likewise.
11096         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11097         * modules/git-merge-changelog (Depends-on): Likewise.
11098         * modules/long-options (Depends-on): Likewise.
11099         * modules/pt_chown (Depends-on): Likewise.
11100         * modules/sysexits (Depends-on): Likewise.
11101
11102         freading: relax license from LGPLv3+ to LGPLv2+
11103         * modules/freading (License): Relax LGPL version.
11104
11105 2011-05-02  Bruno Haible  <bruno@clisp.org>
11106
11107         fchdir: Remove unused dependencies.
11108         * modules/fchdir (Depends-on): Remove include_next.
11109
11110 2011-05-02  Bruno Haible  <bruno@clisp.org>
11111
11112         gnulib-tool: Refactor.
11113         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11114         from func_emit_autoconf_snippets.
11115         (func_emit_autoconf_snippets): Use it.
11116
11117 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11118
11119         * NEWS: Document removal of 'exit'.
11120         * modules/exit: Remove file.
11121
11122 2011-05-01  Bruno Haible  <bruno@clisp.org>
11123
11124         Update DEPENDENCIES.
11125         * DEPENDENCIES (gettext): Recommend the newest release.
11126         Reported by Simon Josefsson.
11127
11128 2011-05-01  Bruno Haible  <bruno@clisp.org>
11129
11130         gnulib-tool: Reduce code duplication.
11131         * gnulib-tool (func_emit_autoconf_snippets): New function.
11132         (func_import, func_create_testdir): Use it.
11133
11134 2011-04-30  Eric Blake  <eblake@redhat.com>
11135
11136         fclose: don't fail on non-seekable input stream
11137         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11138         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11139         since fflush is allowed to fail in that case.
11140
11141 2011-04-30  Bruno Haible  <bruno@clisp.org>
11142
11143         dup3: cleanup
11144         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11145
11146 2011-04-30  Bruno Haible  <bruno@clisp.org>
11147
11148         netdb: Make it work in C++ mode.
11149         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11150         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11151         module.
11152         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11153         gl_MODULE_INDICATOR_FOR_TESTS.
11154         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11155         * modules/netdb-c++-tests: New file.
11156         * tests/test-netdb-c++.cc: New file.
11157
11158 2011-04-30  Bruno Haible  <bruno@clisp.org>
11159
11160         New modules 'vfscanf', 'vscanf'.
11161         * modules/vfscanf: New file.
11162         * modules/vscanf: New file.
11163         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11164         here.
11165         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11166         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11167
11168 2011-04-30  Bruno Haible  <bruno@clisp.org>
11169
11170         passfd: Add comments.
11171         * lib/passfd.c: Add comments about platforms.
11172
11173 2011-04-30  Bruno Haible  <bruno@clisp.org>
11174
11175         sys_uio: Make <sys/uio.h> self-contained.
11176         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11177         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11178
11179 2011-04-30  Bruno Haible  <bruno@clisp.org>
11180
11181         sys_socket: Ensure 'struct iovec' definition.
11182         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11183         <sys/socket.h>.
11184         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11185
11186 2011-04-30  Bruno Haible  <bruno@clisp.org>
11187
11188         sys_uio: Protect definition of 'struct iovec'.
11189         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11190         it as a C struct.
11191
11192 2011-04-30  Bruno Haible  <bruno@clisp.org>
11193
11194         manywarnings: fix indentation
11195         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11196
11197 2011-04-30  Pádraig Brady <P@draigBrady.com>
11198
11199         manywarnings: add -Wno-missing-field-initializers if needed.
11200         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11201         option if it's needed to allow initialization with { 0, }
11202
11203 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11204
11205         announce-gen: cosmetic improvement
11206         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11207
11208 2011-04-29  Jim Meyering  <meyering@redhat.com>
11209
11210         vc-list-files: indent with spaces, not TABs
11211         * build-aux/vc-list-files: Convert leading TABs to spaces,
11212         to match the style of most other files in gnulib.
11213
11214         announce-gen: indent with spaces, not TABs
11215         * build-aux/announce-gen: Convert all TABs to spaces, to match
11216         the style of most other files in gnulib.
11217
11218 2011-04-29  Eric Blake  <eblake@redhat.com>
11219
11220         quotearg: avoid uninitialized variable use
11221         * lib/quotearg.c (quoting_options_from_style): Initialize
11222         remaining fields, and ensure that custom styles are only used via
11223         quoting_options rather than quoting_style.
11224
11225 2011-04-29  Jim Meyering  <meyering@redhat.com>
11226
11227         maint.mk: remove unused VC-tag variable
11228         * top/maint.mk (VC-tag): Remove unused variable.
11229
11230 2011-04-29  Bruno Haible  <bruno@clisp.org>
11231
11232         netdb: fix gai_strerror replacements
11233         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11234         * modules/netdb: Substitute it.
11235
11236 2011-04-29  Jim Meyering  <meyering@redhat.com>
11237
11238         test-getcwd.c: avoid new set-but-not-used warning
11239         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11240         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11241         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11242         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11243
11244         test-hash.c: avoid a new shadowing warning
11245         * tests/test-hash.c (main): Don't shadow "dup".
11246
11247 2011-04-28  Eric Blake  <eblake@redhat.com>
11248
11249         getaddrinfo: fix gai_strerror signature
11250         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11251         and work around mingw with UNICODE defined.
11252         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11253         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11254         * modules/netdb (Makefile.am): Substitute it.
11255         * lib/netdb.in.h (gai_strerror): Declare replacement.
11256         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11257         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11258         the fix.
11259
11260         getsockopt: avoid compiler warning
11261         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11262         Reported by Matthias Bolte.
11263
11264         tests: drop unused link dependency
11265         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11266         * modules/dirent-safer-tests (Makefile.am): Likewise.
11267         * modules/fdopendir-tests (Makefile.am): Likewise.
11268         * modules/mkfifoat-tests (Makefile.am): Likewise.
11269         * modules/openat-safer-tests (Makefile.am): Likewise.
11270         * modules/openat-tests (Makefile.am): Likewise.
11271         * modules/readlinkat-tests (Makefile.am): Likewise.
11272         * modules/symlinkat-tests (Makefile.am): Likewise.
11273         * modules/linkat-tests (Makefile.am): Likewise.
11274         (Depends-on): Switch to filenamecat-lgpl.
11275         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11276         LIBINTL.
11277         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11278         * tests/test-linkat.c (main): Don't require xalloc.
11279
11280         hash, mgetgroups: drop xalloc dependency
11281         * lib/hash.c (includes): Adjust includes.
11282         * lib/mgetgroups.c (includes): Likewise.
11283         (xgetgroups): Move...
11284         * lib/xgetgroups.c: ...to new file.
11285         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11286         * modules/xgetgroups: New file, split from...
11287         * modules/mgetgroups: ...here.
11288         (Depends-on): Add xalloc-oversized.
11289         * modules/hash (Depends-on): Likewise.
11290         * modules/hash-tests (Depends-on): Drop xalloc.
11291         (test_hash_LDADD): Drop unused library.
11292         * tests/test-hash.c (main): Break xalloc dependency.
11293         (includes): Drop unused include.
11294
11295         xalloc-oversized: new module
11296         * modules/xalloc-oversized: New module.
11297         * modules/xalloc (Depends-on): Add it.
11298         * lib/xalloc.h (xalloc_oversized): Move...
11299         * lib/xalloc-oversized.h: ...into new file.
11300
11301         utimecmp: drop dependency on xmalloc
11302         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11303         due to memory pressure.
11304         * modules/utimecmp (Depends-on): Drop xalloc.
11305
11306 2011-04-27  Eric Blake  <eblake@redhat.com>
11307
11308         getcwd: fix mingw bugs
11309         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11310         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11311         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11312
11313 2011-04-27  Bruno Haible  <bruno@clisp.org>
11314
11315         mkstemps: Ensure declaration on MacOS X 10.5.
11316         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11317         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11318         MacOS X.
11319
11320 2011-04-27  Bruno Haible  <bruno@clisp.org>
11321
11322         mkstemp: More documentation.
11323         * doc/posix-functions/mkstemp.texi: Document header file problem on
11324         MacOS X.
11325
11326 2011-04-27  Bruno Haible  <bruno@clisp.org>
11327
11328         mkstemp: Tweak configure message when cross-compiling.
11329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11330         result as a guess.
11331
11332 2011-04-27  Bruno Haible  <bruno@clisp.org>
11333
11334         clean-temp: Clarify what it does.
11335         * lib/clean-temp.h: Add more comments.
11336         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11337         module.
11338         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11339         * doc/glibc-functions/mkstemps.texi: Likewise.
11340         * doc/glibc-functions/mkostemps.texi: Likewise.
11341
11342 2011-04-27  Eric Blake  <eblake@redhat.com>
11343
11344         fchdir: avoid extra chdir and fix test
11345         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11346         getcwd-lgpl.
11347         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11348         have to be canonical.
11349         (canonicalize_file_name): Drop unused macro.
11350         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11351
11352         filenamecat-lgpl: fix licence
11353         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11354         when it was first created.
11355
11356         linkat, renameat: add missing dependency
11357         * modules/linkat (Depends-on): Require getcwd-lgpl.
11358         * modules/renameat (Depends-on): Likewise.
11359
11360         tests: reduce dependencies
11361         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11362         * tests/test-renameat.c (main): Likewise.
11363         * modules/linkat-tests (Depends-on): Relax dependency.
11364         * modules/renameat-tests (Depends-on): Likewise.
11365         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11366         dependency explicit.
11367
11368         save-cwd: reduce default dependency
11369         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11370         * lib/save-cwd.c: Update comments.
11371         * NEWS: Document the semantic change.
11372
11373         getcwd: enhance tests
11374         * tests/test-getcwd-lgpl.c: New file, taken from...
11375         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11376         repeat long path stress tests from m4 probe.
11377         * modules/getcwd-lgpl-tests: New module.
11378         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11379         * m4/getcwd-abort-bug.m4: Update comment.
11380         * m4/getcwd-path-max.m4: Likewise.
11381
11382         getcwd-lgpl: new module
11383         * modules/getcwd-lgpl: New module.
11384         * lib/getcwd-lgpl.c: New file.
11385         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11386         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11387         * modules/getcwd (configure.ac): Set C witness.
11388         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11389
11390         getcwd: tweak comments
11391         * m4/getcwd-abort-bug.m4: Fix comments.
11392         * m4/getcwd-path-max.m4: Likewise.
11393         * m4/getcwd.m4: Likewise.
11394
11395 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11396         and Eric Blake  <eblake@redhat.com>
11397
11398         mkstemp: replace if system version uses wrong permissions
11399         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11400         read/write mode bits set in file created by mkstemp.
11401         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11402
11403 2011-04-27  Eric Blake  <eblake@redhat.com>
11404
11405         passfd: avoid compiler warning
11406         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11407         Reported by Laine Stump.
11408
11409 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11410
11411         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11412         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11413
11414 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11415         and Eric Blake  <eblake@redhat.com>
11416
11417         mkstemp: mention clean-temp module
11418         * lib/mkstemp.c: Add comment.
11419         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11420
11421 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11422
11423         inttypes: also provide default values for 32-bit tests
11424         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11425         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11426
11427 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11428
11429         strtoumax: remove dependency on strtoimax
11430         This is like the strtoull change of yesterday.
11431         * modules/strtoumax (Files): Add lib/strtoimax.c.
11432         (Depends-on): Remove strtoimax and add verify.
11433
11434         inttypes-incomplete: new module
11435         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11436         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11437         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11438         of gl_INTTYPES_H.
11439         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11440         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11441         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11442         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11443         * modules/strtoumax, modules/xstrtol (Depends-on):
11444         Depend on inttypes-incomplete, not inttypes.
11445         * modules/inttypes-incomplete: New module, containing the contents
11446         of the old modules/inttypes module, except that the Files: section
11447         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11448         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11449         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11450         (Depends-on): Depend only on inttypes-incomplete.
11451         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11452
11453         inttypes: omit now-redundant strtoimax and strtoumax work
11454         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11455         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11456
11457         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11458         This supports apps that need pointers to strtoimax and strtoumax,
11459         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11460         nonexistent functions.  See
11461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11462         et seq.
11463         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11464         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11465         a macro.
11466         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11467
11468 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11469
11470         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11471
11472 2011-04-25  Bruno Haible  <bruno@clisp.org>
11473
11474         strtol, strtoul: Mark modules as obsolete.
11475         * modules/strtol (Status, Notice): New sections.
11476         * modules/strtoul (Status, Notice): New sections.
11477
11478 2011-04-25  Bruno Haible  <bruno@clisp.org>
11479
11480         strtod: Remove check for strtod, unless supporting old platforms.
11481         * modules/strtod-obsolete: New file.
11482         * m4/strtod-obsolete.m4: New file.
11483         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11484         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11485         * modules/strtod (Depends-on): Add strtod-obsolete.
11486         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11487
11488 2011-04-25  Bruno Haible  <bruno@clisp.org>
11489
11490         strcase: Make module obsolete.
11491         * modules/strcase (Status, Notice): New sections.
11492
11493 2011-04-25  Bruno Haible  <bruno@clisp.org>
11494
11495         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11496         * modules/dup2-obsolete: New file.
11497         * m4/dup2-obsolete.m4: New file.
11498         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11499         gl_FUNC_DUP2_OBSOLETE is not also defined.
11500         * modules/dup2 (Depends-on): Add dup2-obsolete.
11501         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11502
11503 2011-04-25  Bruno Haible  <bruno@clisp.org>
11504
11505         strnlen: Avoid memchr related link error on old obsolete platforms.
11506         * modules/memchr-obsolete: New file.
11507         * m4/memchr-obsolete.m4: New file.
11508         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11509         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11510         * modules/memchr (Depends-on): Add memchr-obsolete.
11511         * modules/strnlen (Depends-on): Likewise.
11512         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11513
11514 2011-04-25  Jim Meyering  <meyering@redhat.com>
11515
11516         maint.mk: makefile_at_at_check extend and clean up
11517         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11518         in addition to */Makefile.am.
11519         Exempt legitimate uses of @VAR@ notation, e.g.,
11520         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11521         Remove obsolete coreutils-specific comment.
11522         Prompted by discussion here:
11523         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11524
11525 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11526
11527         strtoul: remove dependency on strtol
11528         This is so that 'configure' need not check for strtol merely because
11529         the application needs strtoul.
11530         * modules/strtoul (Files): Add lib/strtol.c.
11531         (Depends-on): Remove strtol.
11532
11533         strtoull: remove dependency on strtoul
11534         This is like the strtoll change.
11535         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11536         (Depends-on): Remove strtoul.
11537
11538         strtoll: remove dependency on strtol
11539         This is so that 'configure' need not check for strtol merely because
11540         the application needs strtoll.
11541         * modules/strtoll (Files): Add lib/strtol.c.
11542         (Depends-on): Remove strtol.
11543
11544 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11545
11546         inttypes: Move some configure check to module 'imaxdiv'.
11547         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11548         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11549         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11550
11551 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11552
11553         inttypes: Move some configure check to module 'imaxabs'.
11554         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11555         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11556         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11557
11558 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11559
11560         inttypes: Remove configure tests that are not needed since 2009-12-31.
11561         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11562         gl_cv_header_working_inttypes_h.
11563
11564 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11565
11566         * modules/strnlen (Depends-on): Remove memchr.
11567         The strnlen implementation doesn't need the memchr module's fixes; see
11568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11569
11570         strtol: remove dependency on wchar
11571         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11572         * modules/strtol (Depends-on): Remove wchar.
11573
11574 2011-04-21  Eric Blake  <eblake@redhat.com>
11575
11576         passfd: fix test regression on Linux
11577         * modules/passfd-tests (configure.ac): Correct socketpair check.
11578
11579         passfd: speed up configure and drop unused code
11580         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11581         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11582         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11583         Instead of probing at configure for unix_scm_rights_bsd44_way,
11584         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11585         check to a struct member probe.
11586         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11587         (sendfd, recvfd): Update preprocessor checks.
11588         * modules/passfd (Files): Reflect rename, and drop unused file.
11589         (Depends-on): Drop unused dependency.
11590
11591         passfd: allow compilation on mingw
11592         * modules/sys_socket (Depends-on): Add sys_uio.
11593         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11594         iovec and a minimal struct msghdr.
11595         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11596         * tests/test-sys_socket.c (main): Enhance test.
11597         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11598         guaranteed to provide what we need.
11599         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11600         * modules/passfd-tests (Depends-on): Add sys_wait.
11601         * tests/test-passfd.c (main): Skip test on mingw, for now.
11602         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11603         partial 'struct msghdr' implementation.
11604
11605         sys_uio: new module
11606         * modules/sys_uio: New module.
11607         * modules/sys_uio-tests: Likewise.
11608         * lib/sys_uio.in.h: New file.
11609         * m4/sys_uio_h.m4: Likewise.
11610         * tests/test-sys_uio.c: Likewise.
11611         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11612         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11613
11614 2011-04-20  Jim Meyering  <meyering@redhat.com>
11615
11616         useless-if-before-free: avoid false-positive
11617         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11618         disjunct so that it too requires a terminating ";".  Without that,
11619         this script would identify as useless one statement from gcc that
11620         was not:
11621           if (aligned_ptr)
11622             free (((void **) aligned_ptr) [-1]);
11623
11624 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11625
11626         doc: update users.txt.
11627         * users.txt: Add barcode.
11628
11629 2011-04-19  Bruno Haible  <bruno@clisp.org>
11630
11631         ioctl: Remove link dependency on native Windows.
11632         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11633         (gl_close_fn, gl_ioctl_fn): New types.
11634         (struct fd_hook): Renamed from struct close_hook. Change type of
11635         private_close_fn field. Add private_ioctl_fn field.
11636         (close_hook_fn): Add parameter for primary close method.
11637         (execute_close_hooks, execute_all_close_hooks): Likewise.
11638         (ioctl_hook_fn): New type.
11639         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11640         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11641         argument.
11642         (unregister_fd_hook): Renamed from unregister_close_hook.
11643         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11644         Don't include <unistd.h>.
11645         (close): Remove undef.
11646         (anchor): Update.
11647         (execute_close_hooks): Add argument for primary close method.
11648         (execute_all_close_hooks): Likewise.
11649         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11650         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11651         argument. Allow each argument to be NULL.
11652         (unregister_fd_hook): Renamed from unregister_close_hook.
11653         * lib/close.c (rpl_close): Pass 'close' function pointer to
11654         execute_all_close_hooks.
11655         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11656         (primary_ioctl): New function.
11657         (ioctl): Don't call ioctlsocket here. Instead, call
11658         execute_all_ioctl_hooks.
11659         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11660         close method.
11661         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11662         (fd_sockets_hook): Renamed from close_sockets_hook.
11663         (gl_sockets_startup, gl_sockets_cleanup): Update.
11664         * modules/fd-hook: Renamed from modules/close-hook. Update.
11665         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11666         * modules/sockets (Depends-on): Likewise.
11667         * modules/ioctl (Depends-on): Add fd-hook.
11668         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11669         GNULIB_SOCKET.
11670
11671 2011-04-19  Bruno Haible  <bruno@clisp.org>
11672
11673         Move the support of O_NONBLOCK in open() to the 'open' module.
11674         * modules/nonblocking (Depends-on): Remove 'open'.
11675         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11676         gl_cv_have_open_O_NONBLOCK.
11677         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11678         O_NONBLOCK support.
11679         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11680
11681 2011-04-17  Bruno Haible  <bruno@clisp.org>
11682
11683         pipe2: Simplify code.
11684         * lib/pipe2.c (pipe2): Reduce code duplication.
11685
11686 2011-04-17  Bruno Haible  <bruno@clisp.org>
11687
11688         nonblocking: Add comment.
11689         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11690
11691 2011-04-17  Bruno Haible  <bruno@clisp.org>
11692
11693         nonblocking: Add tests for sockets.
11694         * tests/test-nonblocking-socket.sh: New file.
11695         * tests/test-nonblocking-socket-main.c: New file.
11696         * tests/test-nonblocking-socket-child.c: New file.
11697         * tests/test-nonblocking-socket.h: New file.
11698         * tests/socket-server.h: New file.
11699         * tests/socket-client.h: New file.
11700         * modules/nonblocking-socket-tests: New file.
11701         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11702
11703 2011-04-17  Bruno Haible  <bruno@clisp.org>
11704
11705         nonblocking: Add tests for pipes.
11706         * tests/test-nonblocking-pipe.sh: New file.
11707         * tests/test-nonblocking-pipe-main.c: New file.
11708         * tests/test-nonblocking-pipe-child.c: New file.
11709         * tests/test-nonblocking-pipe.h: New file.
11710         * tests/test-nonblocking-writer.h: New file.
11711         * tests/test-nonblocking-reader.h: New file.
11712         * tests/test-nonblocking-misc.h: New file.
11713         * modules/nonblocking-pipe-tests: New file.
11714         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11715
11716 2011-04-16  Bruno Haible  <bruno@clisp.org>
11717
11718         gettext: Clarify the needed programmer actions.
11719         * modules/gettext (Notice): New field.
11720         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11721
11722 2011-04-16  Bruno Haible  <bruno@clisp.org>
11723
11724         strchrnul: Tweak last commit.
11725         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11726         bug.
11727         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11728         as in _GL_FUNCDECL_SYS.
11729         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11730         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11731
11732 2011-04-15  Eric Blake  <eblake@redhat.com>
11733
11734         strchrnul: work around cygwin bug
11735         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11736         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11738         * modules/string (Makefile.am): Substitute it.
11739         * lib/string.in.h (strchrnul): Use it.
11740
11741 2011-04-15  Bruno Haible  <bruno@clisp.org>
11742
11743         Don't require lib/stdio-write.c when only module 'stdio' is used.
11744         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11745         invocation.
11746         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11747
11748 2011-04-14  Bruno Haible  <bruno@clisp.org>
11749
11750         Support non-blocking pipe I/O in read() on native Windows.
11751         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11752         (read): New declaration.
11753         * lib/read.c: New file.
11754         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11755         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11756         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11757         vscanf): New declarations.
11758         * lib/stdio-read.c: New file.
11759         * m4/read.m4: New file.
11760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11761         REPLACE_READ.
11762         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11763         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11764         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11765         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11766         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11767         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11768         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11769         * modules/read: New file.
11770         * modules/nonblocking (Files): Add lib/stdio-read.c.
11771         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11772         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11773         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11774         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11775         * modules/pread (Depends-on): Add read.
11776         * modules/safe-read (Depends-on): Likewise.
11777         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11778         gets, scanf, vfscanf, vscanf): Verify signatures.
11779         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11780         problem with non-blocking pipes.
11781         * doc/posix-functions/fgetc.texi: Likewise.
11782         * doc/posix-functions/fgets.texi: Likewise.
11783         * doc/posix-functions/fread.texi: Likewise.
11784         * doc/posix-functions/fscanf.texi: Likewise.
11785         * doc/posix-functions/getc.texi: Likewise.
11786         * doc/posix-functions/getchar.texi: Likewise.
11787         * doc/posix-functions/gets.texi: Likewise.
11788         * doc/posix-functions/scanf.texi: Likewise.
11789         * doc/posix-functions/vfscanf.texi: Likewise.
11790         * doc/posix-functions/vscanf.texi: Likewise.
11791
11792 2011-04-14  Bruno Haible  <bruno@clisp.org>
11793
11794         Support non-blocking pipe I/O in write() on native Windows.
11795         * lib/write.c (rpl_write): Split a write request that failed merely
11796         because the byte count was larger than the pipe buffer's size.
11797         * doc/posix-functions/write.texi: Mention the problem with large byte
11798         counts.
11799
11800 2011-04-14  Bruno Haible  <bruno@clisp.org>
11801
11802         wchar: Ensure that wchar_t gets defined on uClibc.
11803         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11804         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11805
11806 2011-04-13  Bruno Haible  <bruno@clisp.org>
11807
11808         safe-write, full-read: Avoid unnecessary compilation units.
11809         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11810         (Depends-on): Remove safe-read. Add ssize_t.
11811         * modules/full-read (Files): Add lib/full-write.c.
11812         (Depends-on): Add full-write.
11813
11814 2011-04-13  Bruno Haible  <bruno@clisp.org>
11815
11816         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11817         * modules/pwrite (Depends-on): Add 'write'.
11818
11819 2011-04-13  Bruno Haible  <bruno@clisp.org>
11820
11821         Support non-blocking pipe I/O in write() on native Windows.
11822         * lib/unistd.in.h (write): Enable replacement also if
11823         GNULIB_UNISTD_H_NONBLOCKING is 1.
11824         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11825         (rpl_write): When failing to write on a non-blocking pipe, change
11826         errno from ENOSPC to EAGAIN.
11827         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11828         putchar, puts, vfprintf, vprintf): Enable replacement also if
11829         GNULIB_STDIO_H_NONBLOCKING is 1.
11830         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11831         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11832         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11833         CALL_WITH_SIGPIPE_EMULATION.
11834         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11835         * m4/nonblocking.m4: New file.
11836         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11837         for non-blocking I/O support.
11838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11839         GNULIB_UNISTD_H_NONBLOCKING.
11840         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11841         required for non-blocking I/O support.
11842         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11843         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11844         lib/stdio-write.c, m4/asm-underscore.m4.
11845         (Depends-on): Add stdio, unistd.
11846         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11847         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11848         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11849         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11850         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11851         problem with non-blocking pipes.
11852         * doc/posix-functions/fputc.texi: Likewise.
11853         * doc/posix-functions/fputs.texi: Likewise.
11854         * doc/posix-functions/fwrite.texi: Likewise.
11855         * doc/posix-functions/printf.texi: Likewise.
11856         * doc/posix-functions/putc.texi: Likewise.
11857         * doc/posix-functions/putchar.texi: Likewise.
11858         * doc/posix-functions/puts.texi: Likewise.
11859         * doc/posix-functions/vfprintf.texi: Likewise.
11860         * doc/posix-functions/vprintf.texi: Likewise.
11861         * doc/posix-functions/write.texi: Likewise.
11862
11863 2011-04-10  Jim Meyering  <meyering@redhat.com>
11864
11865         maint.mk: prohibit doubled words
11866         Detect them also when they're separated by a newline.
11867         There are 3 ways to customize it:
11868           - disable the test on a per file basis, as usual with rules using
11869             $(VC_LIST_EXCEPT)
11870           - replace the default doubled-word-selecting regexp (affects all files)
11871           - ignore a particular file-vs-doubled-word match
11872         I nearly used that last one to ignore the "is is" match in
11873         coreutils' NEWS file, since the text was "ls -is is ..."
11874         To do that, I would have added this line to cfg.mk:
11875           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11876         but it would have ignored any "is is" match in NEWS.
11877         Low probability, but still...
11878         Instead, I changed the text, slightly:
11879           -  ls -is is now consistent with ls -lis in ignoring values returned
11880           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11881         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11882         (prohibit_doubled_word_): Define.
11883         (sc_prohibit_doubled_word): New rule.
11884         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11885
11886 2011-04-10  Jim Meyering  <meyering@redhat.com>
11887
11888         maint: fix doubled-word typo in comment
11889         * m4/gethostname.m4: s/is is/it is/
11890         * m4/getdomainname.m4: Likewise.
11891
11892 2011-04-10  Jim Meyering  <meyering@redhat.com>
11893
11894         maint: remove doubled word: s/it it/it/
11895         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11896
11897 2011-04-10  Jim Meyering  <meyering@redhat.com>
11898
11899         maint.mk: remove useless semicolon and backslash
11900         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11901         semicolon and backslash.
11902
11903 2011-04-10  Bruno Haible  <bruno@clisp.org>
11904
11905         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11906         * modules/stdint-tests (Depends-on): Add wchar.
11907
11908 2011-04-10  Jim Meyering  <meyering@redhat.com>
11909
11910         maint: remove doubled words in comments, e.g., s/a a/a/
11911         * lib/strptime.c (day_of_the_week): s/the the/the/
11912         * tests/test-chown.h (test_chown): s/a a/a/
11913
11914         test-chown.h: correct a cast
11915         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11916         when the destination is a stat.st_gid.
11917
11918 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11919
11920         getaddrinfo: Fix test for sa_len member.
11921         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11922         include <sys/types.h> before <sys/socket.h>.
11923
11924 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11925
11926         maint: change "can not" to "cannot"
11927         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11928         boundaries.
11929
11930 2011-04-09  Jim Meyering  <meyering@redhat.com>
11931
11932         maint: change "a a" to "a"
11933         * tests/test-lchown.h (test_lchown): s/a a/a/
11934
11935         maint.mk: prohibit \<the the\>
11936         * top/maint.mk (sc_prohibit_the_the): New rule.
11937
11938         maint: fix "the the" in comment
11939         * lib/count-one-bits.h: s/the the/the/
11940
11941         maint: change "can not" to "cannot"
11942         But do not change the occurrences in maintain.texi or in
11943         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11944         * doc/gnulib-tool.texi: s/can not/cannot/
11945         * doc/posix-functions/accept.texi (accept): Likewise.
11946         * doc/posix-functions/socket.texi (socket): Likewise.
11947         * lib/mbrtowc.c: Likewise.
11948
11949         maint.mk: prohibit use of "can not"
11950         * top/maint.mk (sc_prohibit_can_not): New rule.
11951         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11952
11953 2011-04-09  Bruno Haible  <bruno@clisp.org>
11954
11955         careadlinkat: Guard against misuse of careadlinkatcwd.
11956         * lib/careadlinkat.c: Include <stdlib.h>.
11957         (careadlinkatcwd): Check that the fd argument is as expected.
11958
11959 2011-04-09  Bruno Haible  <bruno@clisp.org>
11960
11961         careadlinkat: Use common coding style.
11962         * lib/careadlinkat.c: Move gnulib includes after system includes.
11963
11964 2011-04-09  Bruno Haible  <bruno@clisp.org>
11965
11966         careadlinkat: Clarify specification.
11967         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11968         (careadlinkatcwd): Add comment.
11969         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11970
11971 2011-04-09  Bruno Haible  <bruno@clisp.org>
11972
11973         areadlinkat: Avoid link error on many platforms.
11974         * modules/areadlinkat (Depends-on): Add areadlink.
11975
11976 2011-04-09  Bruno Haible  <bruno@clisp.org>
11977
11978         allocator, careadlinkat: Fix double-inclusion guard.
11979         * lib/allocator.h: Fix double-inclusion guard.
11980         * lib/careadlinkat.h: Likewise.
11981
11982 2011-04-09  Bruno Haible  <bruno@clisp.org>
11983
11984         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11985         * lib/relocwrapper.c: Update dependencies hierarchy.
11986         * build-aux/install-reloc: Update list of files to be compiled.
11987         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11988         lib/allocator.[hc].
11989
11990 2011-04-08  Eric Blake  <eblake@redhat.com>
11991
11992         strftime: silence gnulib-tool warning
11993         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11994
11995 2011-04-08  Bruno Haible  <bruno@clisp.org>
11996
11997         verify: Fix syntax error with GCC 4.6 in C++ mode.
11998         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11999         (HAVE_STATIC_ASSERT): New macro.
12000         (verify_true, verify): Use 'static_assert' if it is supported and
12001         '_Static_assert' is not supported.
12002
12003 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12004
12005         allocator: New module.
12006         * modules/allocator, lib/allocator.c: New files.
12007         * lib/allocator.h (stdlib_allocator): New decl.
12008         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12009         Remove.  Do not include <stdlib.h>.
12010         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12011         * modules/careadlinkat (Files): Remove lib/allocator.h.
12012         (Depends-on): Add allocator.
12013
12014         stdlib: let modules use system malloc, realloc
12015         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12016         if !_GL_USE_STDLIB_ALLOC.
12017         (malloc, realloc): Limit this change to a smaller scope.
12018
12019         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12020         (malloc, realloc): Don't #undef; no longer needed.
12021         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12022         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12023         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12024         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12025         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12026         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12027         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12028         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12029
12030         careadlinkat: rename members to avoid problem
12031         * lib/allocator.h (struct allocator): Rename members from
12032         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12033         and realloc are #define'd.  Reported by Eric Blake in
12034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12035         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12036
12037 2011-04-08  Eric Blake  <eblake@redhat.com>
12038
12039         nonblocking: reduce dependency
12040         * tests/test-nonblocking.c: Only test sockets when in use.
12041         * modules/nonblocking-tests (Depends-on): Drop socket.
12042         (Makefile.am): Link even if sockets are not present.
12043         * modules/pipe2-tests (Makefile.am): Likewise.
12044         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12045
12046         pipe2: fix O_NONBLOCK support on mingw
12047         * modules/pipe2 (Depends-on): Add nonblocking.
12048         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12049         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12050         * tests/test-nonblocking.c (main): Likewise.
12051         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12052
12053         fcntl-h: fix O_ACCMODE on cygwin
12054         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12055         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12056
12057         pipe-filter: drop O_NONBLOCK workarounds
12058         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12059         * modules/pipe-filter-ii (Depends-on): Likewise.
12060         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12061
12062         nonblocking: provide O_NONBLOCK for mingw
12063         * modules/nonblocking (Depends-on): Add open.
12064         (configure.ac): Set new witness macro.
12065         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12066         * modules/fcntl-h (Makefile.am): Substitute it.
12067         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12068         nonblocking module is in use.
12069         * lib/nonblocking.c: Adjust portability test.
12070         * lib/open.c (open): Don't let native open see gnulib flag.
12071         * tests/test-fcntl-h.c (main): Enhance test.
12072         * tests/test-open.h (test_open): Likewise.
12073         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12074
12075         careadlinkat: fix compilation error on mingw
12076         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12077         within struct allocator.
12078
12079 2011-04-06  Eric Blake  <eblake@redhat.com>
12080
12081         binary-io: relicense under LGPLv2+
12082         * modules/binary-io (License): Relax to LGPLv2+.
12083         Requested for libvirt, and required by pipe2.
12084
12085 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12086
12087         verify: use _Static_assert if available
12088         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12089         (verify_true, verify): Use it if available.  This generates better
12090         diagnostics with GCC 4.6.0 and later.
12091
12092 2011-04-05  Bruno Haible  <bruno@clisp.org>
12093
12094         Remove leftover generated .h files after config.status changed.
12095
12096         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12097         GL_GENERATE_ALLOCA_H.
12098         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12099         GL_GENERATE_ALLOCA_H evaluates to false.
12100
12101         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12102         GL_GENERATE_ARGZ_H.
12103         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12104         evaluates to false.
12105
12106         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12107         GL_GENERATE_BYTESWAP_H.
12108         * modules/byteswap (Makefile.am): Remove byteswap.h if
12109         GL_GENERATE_BYTESWAP_H evaluates to false.
12110
12111         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12112         GL_GENERATE_ERRNO_H.
12113         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12114         evaluates to false.
12115
12116         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12117         GL_GENERATE_FLOAT_H.
12118         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12119         evaluates to false.
12120
12121         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12122         GL_GENERATE_FNMATCH_H.
12123         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12124         GL_GENERATE_FNMATCH_H evaluates to false.
12125
12126         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12127         GL_GENERATE_GLOB_H.
12128         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12129         evaluates to false.
12130
12131         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12132         automake conditional GL_GENERATE_ICONV_H.
12133         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12134         evaluates to false.
12135
12136         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12137         GL_GENERATE_NETINET_IN_H.
12138         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12139         GL_GENERATE_NETINET_IN_H evaluates to false.
12140
12141         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12142         conditional GL_GENERATE_PTHREAD_H.
12143         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12144         * modules/pthread (Makefile.am): Remove pthread.h if
12145         GL_GENERATE_PTHREAD_H evaluates to false.
12146
12147         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12148         GL_GENERATE_SCHED_H.
12149         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12150         evaluates to false.
12151
12152         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12153         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12154         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12155         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12156
12157         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12158         GL_GENERATE_STDARG_H.
12159         * modules/stdarg (Makefile.am): Remove stdarg.h if
12160         GL_GENERATE_STDARG_H evaluates to false.
12161
12162         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12163         GL_GENERATE_STDBOOL_H.
12164         * modules/stdbool (Makefile.am): Remove stdbool.h if
12165         GL_GENERATE_STDBOOL_H evaluates to false.
12166
12167         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12168         conditional GL_GENERATE_STDDEF_H.
12169         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12170         * modules/stddef (Makefile.am): Remove stddef.h if
12171         GL_GENERATE_STDDEF_H evaluates to false.
12172
12173         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12174         GL_GENERATE_STDINT_H.
12175         * modules/stdint (Makefile.am): Remove stdint.h if
12176         GL_GENERATE_STDINT_H evaluates to false.
12177
12178         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12179         GL_GENERATE_SYSEXITS_H.
12180         * modules/sysexits (Makefile.am): Remove sysexits.h if
12181         GL_GENERATE_SYSEXITS_H evaluates to false.
12182
12183         Reported by Karl Berry and Ralf Wildenhues.
12184
12185 2011-04-05  Bruno Haible  <bruno@clisp.org>
12186
12187         Ensure to rebuild generated .h files when config.status has changed.
12188         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12189         config.status.
12190         * modules/ctype (Makefile.am): Likewise.
12191         * modules/dirent (Makefile.am): Likewise.
12192         * modules/errno (Makefile.am): Likewise.
12193         * modules/fcntl-h (Makefile.am): Likewise.
12194         * modules/float (Makefile.am): Likewise.
12195         * modules/getopt-posix (Makefile.am): Likewise.
12196         * modules/glob (Makefile.am): Likewise.
12197         * modules/iconv-h (Makefile.am): Likewise.
12198         * modules/inttypes (Makefile.am): Likewise.
12199         * modules/langinfo (Makefile.am): Likewise.
12200         * modules/locale (Makefile.am): Likewise.
12201         * modules/math (Makefile.am): Likewise.
12202         * modules/netdb (Makefile.am): Likewise.
12203         * modules/netinet_in (Makefile.am): Likewise.
12204         * modules/poll-h (Makefile.am): Likewise.
12205         * modules/pthread (Makefile.am): Likewise.
12206         * modules/pty (Makefile.am): Likewise.
12207         * modules/sched (Makefile.am): Likewise.
12208         * modules/search (Makefile.am): Likewise.
12209         * modules/selinux-h (Makefile.am): Likewise.
12210         * modules/signal (Makefile.am): Likewise.
12211         * modules/spawn (Makefile.am): Likewise.
12212         * modules/stdarg (Makefile.am): Likewise.
12213         * modules/stdbool (Makefile.am): Likewise.
12214         * modules/stddef (Makefile.am): Likewise.
12215         * modules/stdint (Makefile.am): Likewise.
12216         * modules/stdio (Makefile.am): Likewise.
12217         * modules/stdlib (Makefile.am): Likewise.
12218         * modules/string (Makefile.am): Likewise.
12219         * modules/strings (Makefile.am): Likewise.
12220         * modules/sys_file (Makefile.am): Likewise.
12221         * modules/sys_ioctl (Makefile.am): Likewise.
12222         * modules/sys_select (Makefile.am): Likewise.
12223         * modules/sys_socket (Makefile.am): Likewise.
12224         * modules/sys_stat (Makefile.am): Likewise.
12225         * modules/sys_time (Makefile.am): Likewise.
12226         * modules/sys_times (Makefile.am): Likewise.
12227         * modules/sys_utsname (Makefile.am): Likewise.
12228         * modules/sys_wait (Makefile.am): Likewise.
12229         * modules/sysexits (Makefile.am): Likewise.
12230         * modules/termios (Makefile.am): Likewise.
12231         * modules/time (Makefile.am): Likewise.
12232         * modules/unistd (Makefile.am): Likewise.
12233         * modules/wchar (Makefile.am): Likewise.
12234         * modules/wctype-h (Makefile.am): Likewise.
12235         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12236
12237 2011-04-05  Bruno Haible  <bruno@clisp.org>
12238
12239         pipe2: Relicense under LGPLv2+.
12240         * modules/pipe2 (License): Change to LGPLv2+.
12241         Requested by Eric Blake, for libvirt.
12242
12243 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12244
12245         bootstrap: compute gnulib_extra_files after updating build_aux
12246         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12247         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12248
12249 2011-04-05  Eric Blake  <eblake@redhat.com>
12250
12251         bootstrap: preserve git whitelist item sorting
12252         * build-aux/bootstrap (sort_patterns): New function.
12253         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12254
12255 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12256
12257         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12258         sc_space_tab check.
12259
12260 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12261
12262         areadlink, areadlinkat: rewrite in terms of careadlinkat
12263         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12264         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12265         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12266         (malloc, realloc): Remove #undefs.
12267         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12268         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12269         readlink, ssize_t, stdint, unistd.
12270         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12271         areadlink, stdint.
12272
12273         careadlinkat: new module
12274         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12275         * modules/careadlinkat: New files, written by me with
12276         a review and feedback from Ben Pfaff in
12277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12278
12279 2011-04-01  Bruno Haible  <bruno@clisp.org>
12280
12281         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12282         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12283         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12284         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12285         Reported by Bruce Korb <bruce.korb@gmail.com>.
12286
12287 2011-04-01  Bruno Haible  <bruno@clisp.org>
12288
12289         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12290         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12291         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12292         * modules/wcpcpy (Depends-on): Add extensions.
12293         * modules/wcpncpy (Depends-on): Likewise.
12294         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12295         systems.
12296         * doc/posix-functions/wcpncpy.texi: Likewise.
12297         * doc/posix-functions/wcwidth.texi: Likewise.
12298
12299 2011-03-31  Eric Blake  <eblake@redhat.com>
12300
12301         nonblocking: fix mingw test failures
12302         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12303         non-blocking flag on regular file.
12304         (get_nonblocking_flag): Set errno on invalid fd.
12305         * tests/test-nonblocking.c (main): Avoid test failure on
12306         directories if fchdir is not active.
12307         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12308
12309 2011-03-31  Bruno Haible  <bruno@clisp.org>
12310
12311         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12312         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12313         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12314         Reported by Simon Josefsson <simon@josefsson.org>.
12315
12316 2011-03-31  Bruno Haible  <bruno@clisp.org>
12317         and Eric Blake  <eblake@redhat.com>
12318
12319         nonblocking: new module
12320         * modules/nonblocking: New module.
12321         * modules/nonblocking-tests: Likewise.
12322         * lib/nonblocking.h: New file.
12323         * lib/nonblocking.c: Likewise.
12324         * tests/test-nonblocking.c: New test.
12325         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12326
12327 2011-03-30  Bruno Haible  <bruno@clisp.org>
12328
12329         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12330         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12331         instead of 'printf' format for GCC >= 4.4.
12332         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12333         (fprintf, printf, vfprintf, vprintf): Declare with
12334         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12335         the system's vfprintf() function.
12336         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12337
12338 2011-03-30  Eric Blake  <eblake@redhat.com>
12339
12340         passfd: fix scoping bug
12341         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12342         before sendmsg/recvmsg.
12343
12344         passfd: standardize coding conventions
12345         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12346         can be learned at compile time.
12347         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12348         ifdefs.
12349         (sendfd, recvfd): Follow gnulib code conventions.
12350
12351         passfd: fix incorrect sendmsg arguments
12352         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12353         incorrect msg_controllen value.
12354         * modules/passfd-tests (Depends-on): Check for alarm.
12355         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12356         Reported by Bastien ROUCARIES.
12357
12358 2011-03-30  Bruno Haible  <bruno@clisp.org>
12359
12360         c-strcasestr: Relicense under LGPLv2+.
12361         * modules/c-strcasestr (License): Change to LGPLv2+.
12362         Requested by Eric Blake, for libvirt.
12363
12364 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12365
12366         * users.txt: Add libidn2.  Fix libtasn1 link.
12367
12368 2011-03-30  Jim Meyering  <meyering@redhat.com>
12369
12370         tests: readlink* ("",... fails with EINVAL on newer kernels
12371         readlink and readlinkat have typically failed with ENOENT for
12372         the invalid, empty file name,  "".  However, with the advent
12373         of linux-2.6.39, they fail with EINVAL.
12374         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12375         when operating on the empty file name.
12376         * tests/test-readlink.h (test_readlink): Likewise.
12377
12378 2011-03-29  Bruno Haible  <bruno@clisp.org>
12379
12380         Relicense some modules under LGPLv2+, for libidn2.
12381         * modules/array-mergesort (License): Change to LGPLv2+.
12382         * modules/c-strcaseeq (License): Likewise.
12383         * modules/striconveh (License): Likewise.
12384         * modules/striconveha (License): Likewise.
12385         * modules/uniconv/base (License): Likewise.
12386         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12387         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12388         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12389         * modules/unictype/base (License): Likewise.
12390         * modules/unictype/bidiclass-of (License): Likewise.
12391         * modules/unictype/category-M (License): Likewise.
12392         * modules/unictype/category-none (License): Likewise.
12393         * modules/unictype/category-of (License): Likewise.
12394         * modules/unictype/category-test (License): Likewise.
12395         * modules/unictype/category-test-withtable (License): Likewise.
12396         * modules/unictype/combining-class (License): Likewise.
12397         * modules/unictype/joiningtype-of (License): Likewise.
12398         * modules/unictype/scripts (License): Likewise.
12399         * modules/uninorm/base (License): Likewise.
12400         * modules/uninorm/canonical-decomposition (License): Likewise.
12401         * modules/uninorm/composition (License): Likewise.
12402         * modules/uninorm/decompose-internal (License): Likewise.
12403         * modules/uninorm/decomposition-table (License): Likewise.
12404         * modules/uninorm/nfc (License): Likewise.
12405         * modules/uninorm/nfd (License): Likewise.
12406         * modules/uninorm/u32-normalize (License): Likewise.
12407         * modules/unistr/base (License): Likewise.
12408         * modules/unistr/u32-cpy (License): Likewise.
12409         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12410         * modules/unistr/u32-to-u8 (License): Likewise.
12411         * modules/unistr/u32-uctomb (License): Likewise.
12412         * modules/unistr/u8-check (License): Likewise.
12413         * modules/unistr/u8-mblen (License): Likewise.
12414         * modules/unistr/u8-mbtouc (License): Likewise.
12415         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12416         * modules/unistr/u8-mbtoucr (License): Likewise.
12417         * modules/unistr/u8-prev (License): Likewise.
12418         * modules/unistr/u8-strlen (License): Likewise.
12419         * modules/unistr/u8-to-u32 (License): Likewise.
12420         * modules/unistr/u8-uctomb (License): Likewise.
12421         * modules/unitypes (License): Likewise.
12422         Requested by Simon Josefsson.
12423
12424 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12425
12426         lib-symbol-visibility: Add a notice.
12427         * modules/lib-symbol-visibility (Notice): New field.
12428
12429 2011-03-29  Bruno Haible  <bruno@clisp.org>
12430
12431         getaddrinfo: Doc fix.
12432         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12433         section "fixed in Gnulib".
12434
12435 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12436
12437         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12438         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12439
12440 2011-03-26  Bruno Haible  <bruno@clisp.org>
12441
12442         unictype/property-byname: Reduce the number of load-time relocations.
12443         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12444         (UC_PROPERTY_INDEX_*): New enumeration values.
12445         (uc_property_byname): Convert an index from the lookup table to an
12446         uc_property_t.
12447         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12448         values.
12449
12450 2011-03-26  Bruno Haible  <bruno@clisp.org>
12451
12452         unictype/property-byname: Allow omitted word separators and aliases.
12453         * lib/unictype/pr_byname.gperf: Add property names without word
12454         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12455         for 'space'.
12456
12457 2011-03-26  Bruno Haible  <bruno@clisp.org>
12458
12459         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12460         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12461         also hyphens to space.
12462         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12463         without spaces.
12464         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12465
12466 2011-03-26  Bruno Haible  <bruno@clisp.org>
12467
12468         unictype/joiningtype-byname: Recognize long names as well.
12469         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12470         a long name.
12471         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12472         unictype/joiningtype_byname.h.
12473         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12474         * lib/unictype/joiningtype_byname.gperf: New file.
12475         * modules/unictype/joiningtype-byname (Files): Add
12476         lib/unictype/joiningtype_byname.gperf.
12477         (Depends-on): Add gperf.
12478         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12479         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12480         long names.
12481
12482         Tests for module 'unictype/joiningtype-longname'.
12483         * modules/unictype/joiningtype-longname-tests: New file.
12484         * tests/unictype/test-joiningtype_longname.c: New file.
12485
12486         New module 'unictype/joiningtype-longname'.
12487         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12488         * lib/unictype/joiningtype_longname.c: New file.
12489         * modules/unictype/joiningtype-longname: New file.
12490         * modules/unictype/joiningtype-all (Depends-on): Add
12491         unictype/joiningtype-longname.
12492
12493 2011-03-26  Bruno Haible  <bruno@clisp.org>
12494
12495         unictype/bidiclass-byname: Recognize long names as well.
12496         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12497         name.
12498         * lib/unictype/bidi_byname.c: Include <string.h>,
12499         unictype/bidi_byname.h.
12500         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12501         * lib/unictype/bidi_byname.gperf: New file.
12502         * modules/unictype/bidiclass-byname (Files): Add
12503         lib/unictype/bidi_byname.gperf.
12504         (Depends-on): Add gperf.
12505         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12506         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12507         long names.
12508
12509         Tests for module 'unictype/bidiclass-longname'.
12510         * modules/unictype/bidiclass-longname-tests: New file.
12511         * tests/unictype/test-bidi_longname.c: New file.
12512
12513         New module 'unictype/bidiclass-longname'.
12514         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12515         * lib/unictype/bidi_longname.c: New file.
12516         * modules/unictype/bidiclass-longname: New file.
12517         * modules/unictype/bidiclass-all (Depends-on): Add
12518         unictype/bidiclass-longname.
12519
12520 2011-03-26  Bruno Haible  <bruno@clisp.org>
12521
12522         unictype/bidi*: Rename modules.
12523         * modules/unictype/bidiclass-all: Renamed from
12524         modules/unictype/bidicategory-all.
12525         * modules/unictype/bidiclass-name: Renamed from
12526         modules/unictype/bidiclass-name.
12527         (Description): Update.
12528         * modules/unictype/bidiclass-name-tests: Renamed from
12529         modules/unictype/bidicategory-name-tests.
12530         * modules/unictype/bidiclass-byname: Renamed from
12531         modules/unictype/bidicategory-byname.
12532         (Description): Update.
12533         * modules/unictype/bidiclass-byname-tests: Renamed from
12534         modules/unictype/bidicategory-byname-tests.
12535         * modules/unictype/bidiclass-of: Renamed from
12536         modules/unictype/bidicategory-of.
12537         (Description): Update.
12538         * modules/unictype/bidiclass-of-tests: Renamed from
12539         modules/unictype/bidicategory-of-tests.
12540         * modules/unictype/bidiclass-test: Renamed from
12541         modules/unictype/bidicategory-test.
12542         (Description): Update.
12543         * modules/unictype/bidiclass-test-tests: Renamed from
12544         modules/unictype/bidicategory-test-tests.
12545         * modules/unictype/bidicategory-all: New file, a simple redirection.
12546         * modules/unictype/bidicategory-name: Likewise.
12547         * modules/unictype/bidicategory-byname: Likewise.
12548         * modules/unictype/bidicategory-of: Likewise.
12549         * modules/unictype/bidicategory-test: Likewise.
12550         * modules/unictype/property-bidi-* (Dependencies): Update.
12551         * lib/unictype/bidi_*.c: Update comment.
12552
12553 2011-03-26  Bruno Haible  <bruno@clisp.org>
12554
12555         unictype/bidi*: Rename functions, part 2.
12556         * modules/unictype/bidicategory-name (configure.ac): Update required
12557         libunistring version.
12558         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12559
12560 2011-03-25  Bruno Haible  <bruno@clisp.org>
12561
12562         New module 'unictype/combining-class-all'.
12563         * modules/unictype/combining-class-all: New file.
12564
12565         Tests for module 'unictype/combining-class-byname'.
12566         * modules/unictype/combining-class-byname-tests: New file.
12567         * tests/unictype/test-combiningclass_byname.c: New file.
12568
12569         New module 'unictype/combining-class-byname'.
12570         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12571         * lib/unictype/combiningclass_byname.c: New file.
12572         * lib/unictype/combiningclass_byname.gperf: New file.
12573         * modules/unictype/combining-class-byname: New file.
12574
12575         Tests for module 'unictype/combining-class-longname'.
12576         * modules/unictype/combining-class-longname-tests: New file.
12577         * tests/unictype/test-combiningclass_longname.c: New file.
12578
12579         New module 'unictype/combining-class-longname'.
12580         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12581         * lib/unictype/combiningclass_longname.c: New file.
12582         * modules/unictype/combining-class-longname: New file.
12583
12584         Tests for module 'unictype/combining-class-name'.
12585         * modules/unictype/combining-class-name-tests: New file.
12586         * tests/unictype/test-combiningclass_name.c: New file.
12587
12588         New module 'unictype/combining-class-name'.
12589         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12590         * lib/unictype/combiningclass_name.c: New file.
12591         * modules/unictype/combining-class-name: New file.
12592
12593 2011-03-25  Bruno Haible  <bruno@clisp.org>
12594
12595         unictype/combining-class: Rename source files.
12596         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12597         of unictype/combining.h.
12598         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12599         Update.
12600         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12601         * modules/unictype/combining-class (Description): Fix.
12602         (Files, Makefile.am): Update.
12603         * tests/unictype/test-combiningclass.c: Renamed from
12604         tests/unictype/test-combining.c.
12605         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12606
12607 2011-03-25  Bruno Haible  <bruno@clisp.org>
12608
12609         unictype: Update list of canonical combining classes.
12610         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12611
12612 2011-03-25  Bruno Haible  <bruno@clisp.org>
12613
12614         unictype/category-byname: Recognize long names as well.
12615         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12616         a long name.
12617         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12618         unictype/categ_byname.h.
12619         (UC_CATEGORY_INDEX_*): New enumeration values.
12620         (uc_general_category_byname): Use uc_general_category_lookup and
12621         convert from index to value.
12622         * lib/unictype/categ_byname.gperf: New file.
12623         * modules/unictype/category-byname (Files): Add
12624         lib/unictype/categ_byname.gperf.
12625         (Depends-on): Add gperf.
12626         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12627         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12628         long names.
12629
12630         Tests for module 'unictype/category-longname'.
12631         * modules/unictype/category-longname-tests: New file.
12632         * tests/unictype/test-categ_longname.c: New file.
12633
12634         New module 'unictype/category-longname'.
12635         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12636         * lib/unictype/categ_longname.c: New file.
12637         * modules/unictype/category-longname: New file.
12638         * modules/unictype/category-all (Depends-on): Add it.
12639
12640 2011-03-25  Bruno Haible  <bruno@clisp.org>
12641
12642         Tests for module 'unictype/category-LC'.
12643         * modules/unictype/category-LC-tests: New file.
12644         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12645
12646         New module 'unictype/category-LC'.
12647         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12648         (UC_CATEGORY_LC): New declaration.
12649         (UC_CASED_LETTER): New macro.
12650         * lib/gen-uni-tables.c (is_category_LC): New function.
12651         (output_categories): Also handle category LC.
12652         (UC_CATEGORY_MASK_LC): New enumeration value.
12653         (general_category_byname): Also handle category LC.
12654         * lib/unictype/categ_LC.c: New file.
12655         * lib/unictype/categ_LC.h: New file, automatically generated.
12656         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12657         category LC.
12658         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12659         * modules/unictype/category-LC: New file.
12660         * modules/unictype/category-byname (Depends-on): Add
12661         unictype/category-LC.
12662         * modules/unictype/category-all (Depends-on): Likewise.
12663
12664 2011-03-25  Eric Blake  <eblake@redhat.com>
12665
12666         xmalloc: revert yesterday's regression
12667         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12668         realloc's underlying behavior (allowing allocation of zero-size
12669         objects, especially if malloc-gnu is also in use).
12670
12671 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12672
12673         maint.mk: add missing version to VC-tag
12674         * top/maint.mk: git tag was missing actual tag name; add it.
12675
12676         valgrind: do leak checking, and exit with code 1 on error (not 0)
12677         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12678         to VALGRIND.
12679
12680 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12681
12682         posix-modules: say what it does.
12683         * posix-modules: Add a line to the --help output saying what it does.
12684
12685 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12686
12687         xmalloc: Do not leak if underlying realloc is C99 compatible.
12688         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12689         This avoids a leak on C99-based systems.  See
12690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12691
12692 2011-03-24  Eric Blake  <eblake@redhat.com>
12693
12694         realloc: document portability problem
12695         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12696         passing 0 size to realloc.
12697
12698 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12699
12700         doc: update users.txt
12701         * users.txt: Add cvsps, tmpwatch
12702
12703 2011-03-23  Matt Rice  <ratmice@gmail.com>
12704
12705         doc: update users.txt
12706         * users.txt: Add gdb.
12707
12708 2011-03-23  Jim Meyering  <meyering@redhat.com>
12709
12710         doc: update users.txt
12711         Looking through matches up to the following URL (there are still
12712         several more pages), I found several projects that use gnulib:
12713         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12714         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12715         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12716
12717 2011-03-22  Bruno Haible  <bruno@clisp.org>
12718
12719         unictype/bidi*: Rename functions.
12720         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12721         uc_bidi_class, uc_is_bidi_class): New declarations.
12722         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12723         uc_bidi_category_byname.
12724         (uc_bidi_category_byname): New function.
12725         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12726         u_bidi_category_name.
12727         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12728         (uc_bidi_category_name): New function.
12729         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12730         uc_bidi_category.
12731         (uc_bidi_category): New function.
12732         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12733         uc_is_bidi_category. Invoke uc_bidi_class.
12734         (uc_is_bidi_category): New function.
12735         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12736         instead of uc_bidi_category_byname.
12737         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12738         instead of uc_bidi_category_name.
12739         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12740         uc_bidi_category.
12741         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12742         instead of uc_is_bidi_category.
12743
12744 2011-03-21  Bruno Haible  <bruno@clisp.org>
12745
12746         New module 'unictype/joininggroup-all'.
12747         * modules/unictype/joininggroup-all: New file.
12748
12749         Tests for module 'unictype/joininggroup-of'.
12750         * modules/unictype/joininggroup-of-tests: New file.
12751         * tests/unictype/test-joininggroup_of.c: New file.
12752         * tests/unictype/test-joininggroup_of.h: New file, automatically
12753         generated by gen-uni-tables.
12754
12755         New module 'unictype/joininggroup-of'.
12756         * modules/unictype/joininggroup-of: New file.
12757         * lib/unictype/joininggroup_of.c: New file.
12758         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12759         gen-uni-tables.
12760
12761         Tests for module 'unictype/joininggroup-byname'.
12762         * modules/unictype/joininggroup-byname-tests: New file.
12763         * tests/unictype/test-joininggroup_byname.c: New file.
12764
12765         New module 'unictype/joininggroup-byname'.
12766         * modules/unictype/joininggroup-byname: New file.
12767         * lib/unictype/joininggroup_byname.c: New file.
12768         * lib/unictype/joininggroup_byname.gperf: New file.
12769
12770         Tests for module 'unictype/joininggroup-name'.
12771         * modules/unictype/joininggroup-name-tests: New file.
12772         * tests/unictype/test-joininggroup_name.c: New file.
12773
12774         New module 'unictype/joininggroup-name'.
12775         * modules/unictype/joininggroup-name: New file.
12776         * lib/unictype/joininggroup_name.c: New file.
12777         * lib/unictype/joininggroup_name.h: New file.
12778
12779         New module 'unictype/joiningtype-all'.
12780         * modules/unictype/joiningtype-all: New file.
12781
12782         Tests for module 'unictype/joiningtype-of'.
12783         * modules/unictype/joiningtype-of-tests: New file.
12784         * tests/unictype/test-joiningtype_of.c: New file.
12785         * tests/unictype/test-joiningtype_of.h: New file, automatically
12786         generated by gen-uni-tables.
12787
12788         New module 'unictype/joiningtype-of'.
12789         * modules/unictype/joiningtype-of: New file.
12790         * lib/unictype/joiningtype_of.c: New file.
12791         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12792         gen-uni-tables.
12793
12794         Tests for module 'unictype/joiningtype-byname'.
12795         * modules/unictype/joiningtype-byname-tests: New file.
12796         * tests/unictype/test-joiningtype_byname.c: New file.
12797
12798         New module 'unictype/joiningtype-byname'.
12799         * modules/unictype/joiningtype-byname: New file.
12800         * lib/unictype/joiningtype_byname.c: New file.
12801
12802         Tests for module 'unictype/joiningtype-name'.
12803         * modules/unictype/joiningtype-name-tests: New file.
12804         * tests/unictype/test-joiningtype_name.c: New file.
12805
12806         New module 'unictype/joiningtype-name'.
12807         * modules/unictype/joiningtype-name: New file.
12808         * lib/unictype/joiningtype_name.c: New file.
12809
12810         unictype: Add support for Arabic shaping properties.
12811         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12812         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12813         declarations.
12814         (UC_JOINING_GROUP_*): New enumeration values.
12815         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12816         declarations.
12817         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12818         (unicode_joining_type): New variable.
12819         (UC_JOINING_GROUP_*): New enumeration values.
12820         (unicode_joining_group): New variable.
12821         (fill_arabicshaping, joining_type_as_c_identifier,
12822         output_joining_type_test, output_joining_type,
12823         joining_group_as_c_identifier, output_joining_group_test,
12824         output_joining_group): New functions.
12825         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12826         fill_arabicshaping and output_joining_type_test, output_joining_type,
12827         output_joining_group_test, output_joining_group.
12828         Reported by Simon Josefsson.
12829
12830 2011-03-21  Jim Meyering  <meyering@redhat.com>
12831
12832         strftime: fix a bug in yesterday's change
12833         * lib/strftime.c (add): Accommodate width's initial value of -1.
12834         Otherwise, nstrftime would copy uninitialized data into
12835         the result buffer.
12836
12837 2011-03-21  Jim Meyering  <meyering@redhat.com>
12838
12839         tests: add strftime-tests module
12840         * tests/test-strftime.c: New file.
12841         * modules/strftime-tests: New module.
12842
12843 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12844
12845         strftime: don't assume a byte count fits in 'int'
12846         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12847         found this problem by static analysis, using gcc -Wstrict-overflow
12848         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12849         on an integer overflow having undefined behavior, but it turns out
12850         that the argument is a size, which might not fit in 'int' anyway,
12851
12852 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12853
12854         stdio: don't require ignore_value around fwrite
12855
12856         This patch works around libc bug 11959
12857         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12858         Without this patch, applications must often write
12859         ignore_value (fwrite (...)) even though the ignore_value is
12860         not helpful here.  It's common to write many objects, using
12861         fwrite/printf/etc., and then use ferror to detect output error.
12862
12863         I considered making this patch optional, but decided against it,
12864         because libc is obviously being inconsistent here: there is no
12865         reason libc should insist that user code must inspect fwrite
12866         return's value without also insisting that it inspect printf's,
12867         putchar's, etc.  If user code wants to have a strict style where
12868         all these functions' values are checked (so that ferror need not
12869         be checked), we could add support for that style in a new gnulib
12870         module, but in the meantime it's better to be consistent and to
12871         support common usage.
12872
12873         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12874         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12875         that we are compiling in checking mode, and if not C++, and
12876         if not already wrapping fwrite for some other reason.
12877         (fwrite): #define to rpl_fwrite if the latter is defined.
12878
12879 2011-03-20  Bruno Haible  <bruno@clisp.org>
12880
12881         verror: Fix compilation error introduced on 2011-02-13.
12882         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12883         instead of __attribute__.
12884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12885
12886 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12887             Bruno Haible  <bruno@clisp.org>
12888
12889         socklen: do not depend on sys_socket
12890         While trying to modify Emacs to use gnulib's socklen module,
12891         I discovered a circular dependency: socklen depends on sys_socket
12892         and vice versa.  Emacs can use socklen, but it does not need
12893         sys_socket because it has its own substitute for sys/socket.h.
12894         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12895         gl_TYPE_SOCKLEN_T.
12896         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12897         gl_PREREQ_SYS_H_SOCKET.
12898         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12899         gl_PREREQ_SYS_H_SOCKET.
12900         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12901         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12902         * modules/socklen (Depends-on): Do not depend on sys_socket.
12903         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12904
12905 2011-03-20  Jim Meyering  <meyering@redhat.com>
12906
12907         maint.mk: sort file names *after* new transformation
12908         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12909         prefix would have led to an unwarranted failure in GNU parted.
12910         Sort after that transformation.
12911
12912 2011-03-19  Jim Meyering  <meyering@redhat.com>
12913
12914         maint.mk: fix po-file syntax-check rule
12915         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12916         Patch by Bruno Haible.
12917
12918 2011-03-19  Bruno Haible  <bruno@clisp.org>
12919
12920         socklen: Update comment.
12921         * m4/socklen.m4: Update comment about platforms.
12922
12923 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12924             Bruno Haible  <bruno@clisp.org>
12925
12926         inet_ntop, inet_pton: Simplify.
12927         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12928         documented to provide socklen_t and we already depend on sys_socket.
12929         * modules/inet_pton (Depends-on): Likewise.
12930         * lib/arpa_inet.in.h: Adjust comment.
12931
12932 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12933             Bruno Haible  <bruno@clisp.org>
12934
12935         netdb: Simplify.
12936         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12937         documented to provide socklen_t and we already depend on sys_socket.
12938         * lib/netdb.in.h: Adjust comment.
12939
12940 2011-03-19  Bruno Haible  <bruno@clisp.org>
12941
12942         sys_socket, netdb: Document problem with socklen_t.
12943         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12944         platforms.
12945         * doc/posix-headers/netdb.texi: Likewise.
12946
12947 2011-03-18  Eric Blake  <eblake@redhat.com>
12948
12949         maint.mk: let po check work in VPATH build
12950         * top/maint.mk (po_file): Allow cfg.mk override.
12951         (sc_po_check): Allow VPATH use.
12952         Reported by Jiri Denemark.
12953
12954 2011-03-16  Jim Meyering  <meyering@redhat.com>
12955
12956         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12957         Before, you would have had to create one .x-sc_ file per rule in order
12958         to exempt offending files.  Now, you may instead use a Make variable --
12959         usually defined in cfg.mk -- whose name identifies the affected rule.
12960         * top/maint.mk (_sc_excl): Define.
12961         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12962         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12963
12964 2011-03-13  Bruno Haible  <bruno@clisp.org>
12965
12966         ignore-value tests: Avoid warnings.
12967         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12968         empty for gcc < 3.4.
12969
12970 2011-03-13  Bruno Haible  <bruno@clisp.org>
12971
12972         passfd: Fix link error on Solaris.
12973         * modules/passfd (Description): Correct.
12974         (Depends-on): Add socketlib.
12975         (Link): New section.
12976         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12977
12978 2011-03-13  Bruno Haible  <bruno@clisp.org>
12979
12980         passfd: Fix link error on AIX 5.2.
12981         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12982
12983 2011-03-13  Bruno Haible  <bruno@clisp.org>
12984
12985         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12986         * lib/sys_socket.in.h: Include <stddef.h>.
12987         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12988         CMSG_FIRSTHDR. Remove unused variable.
12989
12990 2011-03-13  Bruno Haible  <bruno@clisp.org>
12991
12992         passfd: Fix compilation error on OpenBSD.
12993         * lib/passfd.c: Include <sys/uio.h>.
12994
12995 2011-03-13  Bruno Haible  <bruno@clisp.org>
12996
12997         passfd test: Fix warnings.
12998         * tests/test-passfd.c: Include <sys/wait.h>.
12999         (main): Fix typo.
13000
13001 2011-03-13  Bruno Haible  <bruno@clisp.org>
13002
13003         passfd module, part 4, tweaks.
13004         * tests/test-passfd.c: Reorder includes.
13005         (main): Fix perror and printf calls.
13006
13007 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13008
13009         passfd module, part 4.
13010         * modules/passfd-tests: New file.
13011         * tests/test-passfd.c: New file.
13012
13013 2011-03-13  Jim Meyering  <meyering@redhat.com>
13014
13015         Makefile: rely on GNU make; derive syntax-check rule names
13016         Rather than requiring that each sc_ rule be listed as a dependent
13017         of "check", use features of GNU make to derive the list.
13018         * Makefile (syntax-check-rules): Define.
13019         (check): Depend on the new variable, not the hard-coded list.
13020
13021 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13022             Bruno Haible  <bruno@clisp.org>
13023
13024         passfd module, part 3.
13025         * lib/passfd.h (recvfd): Add a flags argument.
13026         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13027         (recvfd): Add a flags argument.
13028         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13029         exists.
13030         * modules/passfd (Depends-on): Add cloexec.
13031         Suggested by Eric Blake.
13032
13033 2011-03-13  Bruno Haible  <bruno@clisp.org>
13034
13035         passfd module, part 2, tweaks.
13036         * modules/passfd (Files): Reorder.
13037         (Depends-on): Remove errno.
13038         (Include): Remove <sys/socket.h>, <sys/un.h>.
13039         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13040         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13041         specification header. Include <sys/socket.h> always. Don't include
13042         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13043         (sendfd): Clarify that it sets errno when it fails.
13044         (recvfd): Fix specification.
13045
13046 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13047
13048         passfd module, part 2.
13049         * modules/passfd: New file.
13050         * lib/passfd.h: New file.
13051         * lib/passfd.c: New file.
13052
13053 2011-03-12  Bruno Haible  <bruno@clisp.org>
13054
13055         wcswidth, mbswidth: Avoid integer overflow.
13056         * lib/wcswidth.c: Include <limits.h>.
13057         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13058         * lib/mbswidth.c: Include <limits.h>.
13059         (mbsnwidth): Avoid 'int' overflow.
13060         Reported by Jim Meyering.
13061
13062 2011-03-12  Bruno Haible  <bruno@clisp.org>
13063
13064         futimens, utimensat: Avoid endless recursion on Solaris 10.
13065         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13066         Solaris.
13067         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13068         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13069
13070 2011-03-11  Jim Meyering  <meyering@redhat.com>
13071
13072         maint.mk: relax a regexp to accommodate other formatting styles
13073         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13074         between "ngettext" and the following "(".
13075
13076 2011-03-11  Pádraig Brady <P@draigBrady.com>
13077
13078         maint.mk: suppress a false positive warning
13079         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13080         diagnostics are marked with ngettext.
13081
13082 2011-03-10  Eric Blake  <eblake@redhat.com>
13083
13084         wchar: add explicit dependencies, for Tru64
13085         * modules/mbmemcasecoll (Depends-on): Add wchar.
13086         * modules/mbtowc (Depends-on): Likewise.
13087         * modules/vasnprintf (Depends-on): Likewise.
13088         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13089         * modules/wctomb (Depends-on): Likewise.
13090         Reported by Peter O'Gorman.
13091
13092 2011-03-08  Bruno Haible  <bruno@clisp.org>
13093
13094         passfd module, part 1, tweaks.
13095         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13096         Improve indentation. Improve AC_MSG_CHECKING messages.
13097         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13098         gl_SOCKET_FAMILIES.
13099
13100 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13101
13102         passfd module, part 1.
13103         * m4/afunix.m4: New file.
13104         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13105         sockets.
13106
13107 2011-03-08  Bruno Haible  <bruno@clisp.org>
13108
13109         regex-quote: New API.
13110         * lib/regex-quote.h: Include <stdbool.h>.
13111         (struct regex_quote_spec): New type.
13112         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13113         New declarations.
13114         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13115         'const struct regex_quote_spec *' argument.
13116         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13117         (pcre_special): New constant.
13118         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13119         New functions.
13120         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13121         'const struct regex_quote_spec *' argument.
13122         * modules/regex-quote (Depends-on): Add stdbool.
13123         * tests/test-regex-quote.c (check): Update for new API. Add test for
13124         anchored results.
13125         * NEWS: Mention the API change.
13126         Reported by Reuben Thomas and Eric Blake.
13127
13128 2011-03-06  Bruno Haible  <bruno@clisp.org>
13129
13130         regex-quote: Fix creation of POSIX extended regular expressions.
13131         * lib/regex-quote.c (ere_special): Add grouping and alternation
13132         operators.
13133
13134 2011-03-05  Bruno Haible  <bruno@clisp.org>
13135
13136         doc: Improve doc regarding autopoint vs. gnulib.
13137         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13138         disable autopoint while running autoreconf.
13139         Suggested by Ralf Wildenhues.
13140
13141 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13142
13143         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13144         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13145
13146 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13147
13148         parse-duration: remove xalloc.h dependency
13149         * lib/parse-duration.c (parse_period): handle NULL return from
13150         strdup instead of calling xstrdup().
13151         * modules/parse-duration: remove "xalloc" dependency
13152
13153 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13154
13155         bootstrap: honor m4_base when running aclocal
13156         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13157
13158 2011-03-02  Jim Meyering  <meyering@redhat.com>
13159
13160         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13161         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13162         on request from Matt Booth.
13163
13164 2011-03-01  Eric Blake  <eblake@redhat.com>
13165
13166         test-link: work on Hurd
13167         * tests/test-link.h (test_link): Hurd rejects linking directories
13168         with EISDIR instead of the POSIX-mandated EPERM.
13169
13170 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13171
13172         stdio: simplify by moving files to printf-posix, sigpipe
13173         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13174         since this symbol is needed only if printf is replaced.
13175         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13176         Require gl_ASM_SYMBOL_PREFIX.
13177         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13178         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13179         (Depends-on): Add 'raise'.
13180         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13181         * modules/stdio (Files): Remove lib/stdio-write.c,
13182         m4/asm-underscore.m4.
13183         (Depends-on): Remove 'raise'.
13184
13185         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13186         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13187         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13188         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13189
13190 2011-02-28  Bruno Haible  <bruno@clisp.org>
13191
13192         localcharset: Assume ANSI C behaviour of free().
13193         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13194         calling free().
13195         Suggested by Simon Josefsson <simon@josefsson.org>.
13196
13197 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13198             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13199             Bruno Haible  <bruno@clisp.org>  (tiny change)
13200
13201         On Cygwin, use /proc file system instead of win32 API.
13202         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13203         Win32 file names.
13204         (DllMain): Simplify by removing Cygwin specific code.
13205         (find_shared_library_fullname): Use Linux specific implementation also
13206         for Cygwin.
13207         (get_shared_library_fullname): Update accordingly.
13208         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13209         Win32 file names.
13210         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13211         Cygwin specific code.
13212
13213 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13214             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13215
13216         Fix OpenMP flag detection for various Fortran compilers.
13217         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13218         OpenMP-conditional compilation construct, to force compile
13219         failure with missing OpenMP flag.
13220         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13221
13222 2011-02-25  Eric Blake  <eblake@redhat.com>
13223
13224         strstr: expand test coverage
13225         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13226         compilation.
13227         * tests/test-memmem.c (main): Duplicate tests.
13228         * tests/test-strcasestr.c (main): Likewise.
13229         * tests/test-c-strcasestr.c (main): Likewise.
13230
13231 2011-02-25  Jim Meyering  <meyering@redhat.com>
13232
13233         maint.mk: detect missing-NL-at-EOF, too
13234         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13235         it also detects when a file lacks a newline at EOF.
13236         (require_exactly_one_NL_at_EOF_): Renamed from
13237         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13238         since people may well have .x-sc_... file names tied to the
13239         existing name.  Suggested by Eric Blake.
13240
13241 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13242
13243         dirname: move m4/dos.m4 functionality into lib/dosname.h
13244
13245         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13246         extracts symbols from it, puts them into config.h; but it's much
13247         easier to use the symbols directly.  filename.h already does this,
13248         but it disagrees with dos.m4 in some respects.  This patch
13249         introduces a different include file dosname.h that packages up
13250         dos.m4, and then later we can work on merging filename.h and
13251         dosname.h.  Applications that need only the easy-to-configure
13252         symbols should consider including dosname.h rather than dirname.h.
13253         * NEWS: Mention incompatible changes.
13254         * m4/dos.m4: Remove.
13255         * lib/dosname.h, modules/dosname: New files.
13256         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13257         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13258         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13259         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13260         Include dosname.h, not dirname.h.
13261         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13262         Include dosname.h, for definitions of symbols like ISSLASH
13263         that used to be in config.h.
13264         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13265         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13266         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13267         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13268         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13269         * modules/rmdir (Files): Likewise.
13270         * modules/stat (Files): Likewise.
13271         * modules/unlink (Files): Likewise.
13272         * modules/dirname-lgpl (Depends-on): Add dosname.
13273         * modules/lstat (Depends-on): Likewise.
13274         * modules/openat (Depends-on): Likewise.
13275         * modules/rmdir (Depends-on): Likewise.
13276         * modules/savewd (Depends-on): Likewise.
13277         * modules/stat (Depends-on): Likewise.
13278         * modules/unlink (Depends-on): Likewise.
13279         * modules/openat (Depends-on): Remove dirname-lgpl.
13280         * modules/savewd (Depends-on): Likewise.
13281         * tests/test-dirname.c: Do not use removed symbols like
13282         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13283         the remaining symbols, e.g., ISSLASH ('\\').
13284
13285 2011-02-25  Eric Blake  <eblake@redhat.com>
13286
13287         strstr: revert patches that introduced bug and pessimization
13288         * lib/str-two-way.h: Add another reference.
13289         (two_way_short_needle, two_way_long_needle): Revert changes from
13290         2011-02-24; they pessimize search speed.
13291         (critical_factorization): Partially revert changes from
13292         2010-06-22; they violate the requirement that the left half of the
13293         needle be smaller than the period of the needle.
13294
13295 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13296
13297         filenamecat: remove unnecessary dependency on dirname-lgpl
13298         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13299         is no direct dependency, just an indirect one via filenamecat-lgpl.
13300
13301         remove: remove unnecessary use of m4/dos.m4
13302         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13303         * modules/remove (FILES): Remove m4/dos.m4.
13304
13305         * lib/openat-proc.c: Don't include dirname.h; not needed.
13306
13307         backupfile: remove unnecessary use of m4/dos.m4
13308         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13309         of its symbols are used by the backupfile code.  backupfile.c does
13310         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13311         for the rare case of programs that want all their backup file
13312         names to live within 8+3 limits, and dos.m4 doesn't address that.
13313         * modules/backupfile (Files): Remove m4/dos.m4.
13314
13315 2011-02-24  Jim Meyering  <meyering@redhat.com>
13316
13317         strstr: fix a bug whereby strstr would mistakenly return NULL
13318         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13319         in period calculation.
13320         (two_way_long_needle): Likewise.
13321         The original problem was reported by Mike Stump in
13322         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13323         Ralf Wildenhues provided the short needle and haystack.
13324         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13325         Add a more involved test to trigger the bug in two_way_long_needle.
13326
13327 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13328
13329         gnulib-tool: remove use of bold display in help screen
13330         * gnulib-tool (func_usage): Do not use bold display anymore in the
13331         help screen.  That was just meant to be a temporary emphasis for a
13332         backward-incompatible change.
13333
13334 2011-02-23  Bruno Haible  <bruno@clisp.org>
13335
13336         Fix misindentation of preprocessor directives.
13337         * lib/argp-namefrob.h: Reindent preprocessor directives.
13338         * lib/getopt_int.h (struct _getopt_data): Likewise.
13339         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13340         * lib/vasnprintf.c (decode_long_double): Likewise.
13341         * tests/test-argmatch.c: Insert blank lines, for clarity.
13342         * tests/test-exclude.c: Likewise.
13343
13344 2011-02-22  Bruno Haible  <bruno@clisp.org>
13345
13346         ioctl: Fix for MacOS X in 64-bit mode.
13347         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13348         value.
13349         Suggested by Eric Blake.
13350         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13351
13352 2011-02-22  Jim Meyering  <meyering@redhat.com>
13353
13354         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13355         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13356         in lib/.
13357
13358 2011-02-22  Eric Blake  <eblake@redhat.com>
13359
13360         maint: avoid any CDPATH issue
13361         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13362
13363         maint: adjust cpp indentation for my modules, as well
13364         * Makefile (sc_cpp_indent_check): Add my name.
13365         * lib/fbufmode.c: Filter through cppi.
13366         * lib/fpurge.c: Likewise.
13367         * lib/freadable.c: Likewise.
13368         * lib/freading.c: Likewise.
13369         * lib/fwritable.c: Likewise.
13370         * lib/fwriting.c: Likewise.
13371         * lib/sigaction.c: Likewise.
13372
13373 2011-02-22  Jim Meyering  <meyering@redhat.com>
13374
13375         maint: adjust cpp indentation to reflect nesting depth
13376         I.e., in a block of code that begins with an unnested "#if",
13377         put one space between the "#" in column 1 and following token.
13378         For example,
13379         -#include <sys/vfs.h>
13380         +# include <sys/vfs.h>
13381         Do this only in .c files that are part of a module I maintain.
13382         * lib/linkat.c: Filter through cppi.
13383         * lib/nanosleep.c: Likewise.
13384         * lib/openat.c: Likewise.
13385         * lib/openat-die.c: Likewise.
13386         * lib/dup3.c: Likewise.
13387         * lib/fchownat.c: Likewise.
13388         * lib/flock.c: Likewise.
13389         * lib/fsync.c: Likewise.
13390         * lib/fts.c: Likewise.
13391         * lib/getpass.c: Likewise.
13392         * lib/gettimeofday.c: Likewise.
13393         * lib/userspec.c: Likewise.
13394         * Makefile (sc_cpp_indent_check): New rule, to check this.
13395
13396 2011-02-22  Bruno Haible  <bruno@clisp.org>
13397
13398         New module 'wctomb'.
13399         * lib/stdlib.in.h (wctomb): New declaration.
13400         * lib/wctomb.c: New file.
13401         * lib/wctomb-impl.h: New file.
13402         * m4/wctomb.m4: New file.
13403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13404         REPLACE_WCTOMB.
13405         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13406         REPLACE_WCTOMB.
13407         * modules/wctomb: New file.
13408         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13409         * doc/posix-functions/wctomb.texi: Mention the new module.
13410         * modules/wctob (Depends-on): Add wctomb.
13411
13412 2011-02-22  Bruno Haible  <bruno@clisp.org>
13413
13414         New module 'mbtowc'.
13415         * lib/stdlib.in.h (mbtowc): New declaration.
13416         * lib/mbtowc.c: New file.
13417         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13418         * m4/mbtowc.m4: New file.
13419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13420         REPLACE_MBTOWC.
13421         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13422         REPLACE_MBTOWC.
13423         * modules/mbtowc: New file.
13424         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13425         * doc/posix-functions/mbtowc.texi: Mention the new module.
13426         * modules/btowc (Depends-on): Add mbtowc.
13427
13428 2011-02-22  Bruno Haible  <bruno@clisp.org>
13429
13430         wcrtomb: Add more tests for native Windows platforms.
13431         * tests/test-wcrtomb-w32-1.sh: New file.
13432         * tests/test-wcrtomb-w32-2.sh: New file.
13433         * tests/test-wcrtomb-w32-3.sh: New file.
13434         * tests/test-wcrtomb-w32-4.sh: New file.
13435         * tests/test-wcrtomb-w32-5.sh: New file.
13436         * tests/test-wcrtomb-w32.c: New file.
13437         * modules/wcrtomb-tests (Files): Add them.
13438         (Makefile.am): Arrange to run these tests.
13439         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13440         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13441
13442 2011-02-20  Bruno Haible  <bruno@clisp.org>
13443
13444         wcrtomb: Enhance test.
13445         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13446
13447 2011-02-20  Bruno Haible  <bruno@clisp.org>
13448
13449         mbrtowc: Tiny optimization.
13450         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13451
13452 2011-02-20  Jim Meyering  <meyering@redhat.com>
13453
13454         test-exclude.c: remove unmatched #endif
13455         * tests/test-exclude.c: Remove stray #endif, left over from
13456         the change of a week ago.
13457
13458 2011-02-19  Jim Meyering  <meyering@redhat.com>
13459
13460         git-version-gen: skip "-dirty" check when appropriate
13461         * build-aux/git-version-gen: Don't run any git commands when the
13462         version string comes from .tarball-version.  Prior to this, we
13463         would run git update-index --refresh even from a just-unpacked
13464         tarball directory, and that could affect a .git/ directory in a
13465         parent of the build directory.  Reported by Mike Frysinger.
13466
13467 2011-02-19  Bruno Haible  <bruno@clisp.org>
13468
13469         unictype/property-byname: Reduce the size of the 'data' segment.
13470         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13471
13472 2011-02-19  Bruno Haible  <bruno@clisp.org>
13473
13474         unictype/scripts: Reduce the size of the 'data' segment.
13475         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13476         '%pic'.
13477         * lib/unictype/scripts_byname.gperf: Regenerated.
13478
13479 2011-02-19  Bruno Haible  <bruno@clisp.org>
13480
13481         stdint: Update documentation.
13482         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13483
13484 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13485
13486         stdint: omit redundant check for wchar.h
13487         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13488         always tests whether wchar.h exists, so remove the now-redundant test.
13489
13490 2011-02-18  Bruno Haible  <bruno@clisp.org>
13491
13492         stdint: Cut dependency to module 'wchar'.
13493         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13494         include the necessary prerequisites.
13495         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13496         * modules/stdint (Depends-on): Remove wchar.
13497         (Makefile.am): Substitute HAVE_WCHAR_H.
13498         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13499
13500 2011-02-18  Eric Blake  <eblake@redhat.com>
13501
13502         longlong: skip, rather than fail, on cross-compilation
13503         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13504         when cross-compiling; regression from 2011-02-16.
13505
13506 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13507
13508         * NEWS: Mention 2011-02-08 change to stdlib.
13509
13510 2011-02-17  Bruno Haible  <bruno@clisp.org>
13511
13512         getloadavg: Add comments about platforms.
13513         * m4/getloadavg.m4: Add comment.
13514         * lib/getloadavg.c: Likewise.
13515
13516 2011-02-17  Bruno Haible  <bruno@clisp.org>
13517
13518         getloadavg: Fix link error on Solaris 2.6.
13519         * modules/getloadavg (Link): New section.
13520         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13521         linking test-getloadavg.
13522         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13523         getloadavg.
13524
13525 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13526
13527         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13528         It was 'int', but this doesn't match the IRIX 6.5 manual.
13529         Suggested by Bruno Haible in
13530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13531
13532 2011-02-17  Bruno Haible  <bruno@clisp.org>
13533
13534         havelib: Fix comments.
13535         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13536         change.
13537
13538 2011-02-17  Bruno Haible  <bruno@clisp.org>
13539
13540         havelib: Update config.rpath.
13541         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13542
13543 2011-02-17  Bruno Haible  <bruno@clisp.org>
13544
13545         getloadavg test: Add some plausibility checks.
13546         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13547         is improbable.
13548
13549 2011-02-16  Eric Blake  <eblake@redhat.com>
13550
13551         maintainer-makefile: make syntax-check a no-op from tarballs
13552         * top/maint.mk (no-vc-detected): New rule.
13553         (local-checks-available): Use it to avoid hanging if someone tries
13554         'make syntax-check' from a tarball.  Also append to any non-syntax
13555         checks already defined in cfg.mk.
13556
13557 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13558
13559         longlong: tune, particularly for common case of c99
13560
13561         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13562         or running anything if c99, or if unsigned long long int does not
13563         work.  In either case, we know the answer without further tests.
13564         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13565         it at most once, and use its results for both long long int and
13566         unsigned long long int.  This is more likely to be efficient in
13567         the common case where the program wants to check for both long
13568         long int and unsigned long long int.
13569         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13570         since the answer is already known.
13571
13572 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13573
13574         getloadavg: set errno
13575         * lib/getloadavg.c: Set errno when returning -1.  If no other
13576         error number looks appropriate, set it to ENOSYS if the getloadavg
13577         looks like it can't possibly ever work, ENOTSUP otherwise.
13578         Suggested by Bruno Haible in
13579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13580
13581         getloadavg: trim unused parts and speed up 'configure'
13582         * NEWS: Document this.
13583         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13584         always compiled if getloadavg is absent.
13585         Move test code to ...
13586         * tests/test-getloadavg.c: New file, containing previous
13587         contents of test from lib/getloadavg.c.  It also contains
13588         suggestions by Bruno Haible in
13589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13590         * modules/getloadavg-tests: New file.
13591         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13592         Do tests in the same order as they're needed for getloadavg.c.
13593         Omit setgid-related tests that generate symbols KMEM_GROUP,
13594         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13595         Do only the tests that are needed to see whether the system has
13596         getloadavg, moving the other tests into ...
13597         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13598         NLIST_NAME_UNION; nobody should be using it.  Do not define
13599         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13600         relevant, as the user of this module shouldn't care how getloadavg
13601         is implemented.
13602
13603         getloadavg: omit unused var
13604         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13605
13606 2011-02-15  Jim Meyering  <meyering@redhat.com>
13607
13608         doc: update users.txt
13609         * users.txt: Update iwhd's URL.
13610
13611 2011-02-13  Bruno Haible  <bruno@clisp.org>
13612
13613         Consistent macro naming for macros that use GCC __attribute__.
13614         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13615         _ATTRIBUTE_NONNULL_.
13616         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13617         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13618         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13619         ATTRIBUTE_DEPRECATED.
13620         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13621         ATTRIBUTE_NORETURN.
13622         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13623         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13624         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13625         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13626         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13627         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13628         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13629         ATTRIBUTE_SENTINEL.
13630         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13631         ATTRIBUTE_RETURN_CHECK.
13632         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13633         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13634         ATTRIBUTE_NORETURN.
13635         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13636         Reported by Paul Eggert.
13637
13638 2011-02-13  Bruno Haible  <bruno@clisp.org>
13639
13640         Don't interfere with a program's definition of __attribute__.
13641         * lib/argp.h (__attribute__): Remove definition.
13642         (_GL_ATTRIBUTE_FORMAT): New macro.
13643         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13644         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13645         (_GL_ATTRIBUTE_FORMAT): New macro.
13646         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13647         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13648         GCC 3 or newer.
13649         * lib/error.h (__attribute__): Remove definition.
13650         (_GL_ATTRIBUTE_FORMAT): New macro.
13651         (error, error_at_line): Use it.
13652         * lib/hash.h (__attribute__): Remove definition.
13653         (ATTRIBUTE_WUR): Update definition. Define always.
13654         * lib/openat.h (__attribute__): Remove definition.
13655         (ATTRIBUTE_NORETURN): Update definition. Define always.
13656         * lib/sigpipe-die.h (__attribute__): Remove definition.
13657         (ATTRIBUTE_NORETURN): Update definition. Define always.
13658         * lib/vasnprintf.h (__attribute__): Remove definition.
13659         (_GL_ATTRIBUTE_FORMAT): New macro.
13660         (asnprintf, vasnprintf): Use it.
13661         * lib/xalloc.h (__attribute__): Remove definition.
13662         (ATTRIBUTE_NORETURN): Update definition. Define always.
13663         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13664         * lib/xmemdup0.h (__attribute__): Remove definition.
13665         (ATTRIBUTE_NORETURN): Update definition. Define always.
13666         * lib/xprintf.h (__attribute__): Remove definition.
13667         (_GL_ATTRIBUTE_FORMAT): New macro.
13668         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13669         * lib/xstrtol.h (__attribute__): Remove definition.
13670         (ATTRIBUTE_NORETURN): Update definition. Define always.
13671         * lib/xvasprintf.h (__attribute__): Remove definition.
13672         (_GL_ATTRIBUTE_FORMAT): New macro.
13673         (xasprintf, xvasprintf): Use it.
13674         * tests/test-argmatch.c (__attribute__): Remove definition.
13675         (ATTRIBUTE_NORETURN): Update definition. Define always.
13676         * tests/test-exclude.c (__attribute__): Remove definition.
13677         (ATTRIBUTE_NORETURN): Update definition. Define always.
13678         Reported by Paul Eggert.
13679
13680 2011-02-13  Bruno Haible  <bruno@clisp.org>
13681
13682         mbrtowc: Add more tests for native Windows platforms.
13683         * tests/test-mbrtowc-w32-1.sh: New file.
13684         * tests/test-mbrtowc-w32-2.sh: New file.
13685         * tests/test-mbrtowc-w32-3.sh: New file.
13686         * tests/test-mbrtowc-w32-4.sh: New file.
13687         * tests/test-mbrtowc-w32-5.sh: New file.
13688         * tests/test-mbrtowc-w32.c: New file.
13689         * modules/mbrtowc-tests (Files): Add them.
13690         (Makefile.am): Arrange to run these tests.
13691         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13692         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13693
13694 2011-02-13  Bruno Haible  <bruno@clisp.org>
13695
13696         mbrtowc: Work around native Windows bug.
13697         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13698         guess when no suitable locale for testing was found.
13699         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13700
13701 2011-02-13  Bruno Haible  <bruno@clisp.org>
13702
13703         mbsinit: Work around mingw bug.
13704         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13705         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13706         Windows.
13707         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13708
13709 2011-02-13  Bruno Haible  <bruno@clisp.org>
13710
13711         mbsinit: Don't crash for a NULL argument.
13712         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13713         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13714
13715 2011-02-13  Bruno Haible  <bruno@clisp.org>
13716
13717         Don't interfere with a program's definition of __attribute__.
13718         * lib/stdio.in.h (__attribute__): Remove definition.
13719         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13720         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13721         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13722         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13723         * lib/string.in.h (__attribute__): Remove definition.
13724         Reported by Paul Eggert.
13725
13726 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13727
13728         stdlib: don't get in the way of non-GCC __attribute__
13729         See thread starting at
13730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13731         Revert previous stdlib change, installing the following instead:
13732         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13733         to get in the way of a non-GCC compiler that supports __attribute__.
13734         (_GL_ATTRIBUTE_RETURN): New macro.
13735         (_Exit): Use it instead of __attribute__.
13736
13737 2011-02-12  Bruno Haible  <bruno@clisp.org>
13738
13739         quotearg test: Avoid test failure on mingw.
13740         * tests/test-quotearg.sh: Convert the locale identifier from native
13741         Windows syntax to Unix syntax.
13742
13743 2011-02-12  Bruno Haible  <bruno@clisp.org>
13744
13745         setlocale: Prefer gnulib's override over libintl's override.
13746         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13747         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13748         GNULIB_defined_setlocale is set.
13749
13750 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13751
13752         stdlib: support non-GCC __attribute__
13753
13754         Fix a serious and tricky problem encountered when attempting to
13755         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13756         5.5, but it crashed due to memory corruption on Solaris 10 with
13757         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13758         bits that are otherwise zero.  This tagging is optional inside
13759         Emacs but is preferred and is used when __attribute__ ((__aligned
13760         (8))) works, as it does with both recent-enough GCC and with Sun C
13761         5.11.  However, Sun C 5.11 is not GCC and does not #define
13762         __GNUC__ and __GNUC_MINOR__.
13763
13764         When I added the getloadavg module to Emacs, it brought in
13765         stdlib.in.h, which contained this fragment:
13766
13767            #ifndef __attribute__
13768            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13769            #  define __attribute__(Spec)   /* empty */
13770            # endif
13771            #endif
13772
13773         When files that include <stdlib.h> were compiled with Sun C 5.11,
13774         the above code disabled __attribute__ ((__aligned (8))), which
13775         caused variables to not be properly aligned, which eventually led
13776         to the pointer corruption mentioned above.  (This was a bit hard
13777         to diagnose, unfortunately.)
13778
13779         Several "#define __attribute__(X) /* empty */" code snippets need
13780         to be eradicated from Gnulib to work with non-GCC compilers that
13781         support __attribute__.  The Autoconf way to do this is to test for
13782         each kind of attribute that we want support for, and selectively
13783         enable that in source code.
13784
13785         Fix this problem just for stdlib.h, by adding a test for the
13786         __noreturn__ attribute, and change stdlib.in.h to use that test
13787         when needed.  This technique can be easily generalized to the
13788         other *.in.h files and attributes, and a similar technique can be
13789         used for *.h and *.c files.  This patch is enough to solve the
13790         problem for Emacs + getloadavg, and I thought I'd publish it for
13791         feedback before undertaking further, similar fixes in other
13792         modules.
13793
13794         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13795         because it's not needed for stdlib.h.  It merely substitutes the
13796         value directly into stdlib.h.  We may well need to #define it, or
13797         similar symbols, for other modules, but it's nice to also have an
13798         option to not #define it for applications like Emacs that do not
13799         need it.
13800
13801         * lib/stdlib.in.h (__attribute__): Do not #define.
13802         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13803         be defined only if the _Exit module is also used.
13804         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13806         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13807         platforms.
13808         * modules/_Exit (Files): Add m4/attribute.m4.
13809         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13810         * m4/attribute.m4: New file.
13811
13812 2011-02-12  Bruno Haible  <bruno@clisp.org>
13813
13814         wcsrtombs: Work around bug on native Windows.
13815         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13816         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13817         instead of len.
13818         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13819
13820 2011-02-12  Bruno Haible  <bruno@clisp.org>
13821
13822         mbsrtowcs: Work around bug on native Windows.
13823         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13824         against mingw bug.
13825         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13826
13827 2011-02-12  Bruno Haible  <bruno@clisp.org>
13828
13829         Avoid setlocale bugs in tests.
13830         * modules/btowc (Dependencies): Add setlocale.
13831         * modules/c-strcase (Dependencies): Likewise.
13832         * modules/mbmemcasecmp (Dependencies): Likewise.
13833         * modules/mbmemcasecoll (Dependencies): Likewise.
13834         * modules/mbrtowc (Dependencies): Likewise.
13835         * modules/mbscasecmp (Dependencies): Likewise.
13836         * modules/mbscasestr (Dependencies): Likewise.
13837         * modules/mbschr (Dependencies): Likewise.
13838         * modules/mbscspn (Dependencies): Likewise.
13839         * modules/mbsinit (Dependencies): Likewise.
13840         * modules/mbsncasecmp (Dependencies): Likewise.
13841         * modules/mbsnrtowcs (Dependencies): Likewise.
13842         * modules/mbspbrk (Dependencies): Likewise.
13843         * modules/mbspcasecmp (Dependencies): Likewise.
13844         * modules/mbsrchr (Dependencies): Likewise.
13845         * modules/mbsrtowcs (Dependencies): Likewise.
13846         * modules/mbsspn (Dependencies): Likewise.
13847         * modules/mbsstr (Dependencies): Likewise.
13848         * modules/nl_langinfo (Dependencies): Likewise.
13849         * modules/quotearg (Dependencies): Likewise.
13850         * modules/unicase/locale-language (Dependencies): Likewise.
13851         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13852         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13853         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13854         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13855         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13856         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13857         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13858         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13859         * modules/vasnprintf-posix (Dependencies): Likewise.
13860         * modules/wcrtomb (Dependencies): Likewise.
13861         * modules/wcsnrtombs (Dependencies): Likewise.
13862         * modules/wcsrtombs (Dependencies): Likewise.
13863
13864 2011-02-12  Bruno Haible  <bruno@clisp.org>
13865
13866         setlocale: Workaround native Windows bug.
13867         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13868         succeeds but sets LC_CTYPE to "C", report a failure.
13869         * tests/test-setlocale2.sh: New file.
13870         * tests/test-setlocale2.c: New file.
13871         * modules/setlocale-tests (Files): Add the new files.
13872         (Makefile.am): Enable test-setlocale2.sh test.
13873         * doc/posix-functions/setlocale.texi: Mention workaround.
13874
13875 2011-02-11  Bruno Haible  <bruno@clisp.org>
13876
13877         Tests for module 'setlocale'.
13878         * modules/setlocale-tests: New file.
13879         * tests/test-setlocale1.sh: New file.
13880         * tests/test-setlocale1.c: New file.
13881
13882         New module 'setlocale'.
13883         * lib/locale.in.h (setlocale): New declaration.
13884         * lib/setlocale.c: New file, based on
13885         gettext/gettext-runtime/intl/setlocale.c.
13886         * m4/setlocale.m4: New file.
13887         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13888         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13889         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13890         REPLACE_SETLOCALE.
13891         * modules/setlocale: New file.
13892         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13893         * doc/posix-functions/setlocale.texi: Mention the new module.
13894
13895 2011-02-11  Bruno Haible  <bruno@clisp.org>
13896
13897         Prepare for locale dependent tests on mingw.
13898         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13899         because it has the wrong locale encoding.
13900         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13901         French_France.1252 instead of "fr".
13902         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13903         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13904         because it has the wrong locale encoding.
13905         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13906         native Windows, try Turkish_Turkey.65001.
13907         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13908         Chinese_China.54936.
13909
13910         Prepare for locale dependent tests on mingw.
13911         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13912         differently.
13913         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13914         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13915         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13916         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13917
13918 2011-02-11  Eric Blake  <eblake@redhat.com>
13919
13920         strptime: avoid compiler warnings
13921         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13922         compiler warnings about dead code.
13923         Reported by Daniel P. Berrange.
13924
13925 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13926
13927         doc: update users.txt
13928         * users.txt: Add rcs.
13929
13930 2011-02-10  John W. Eaton  <jwe@gnu.org>
13931
13932         doc: update users.txt
13933         * users.txt: Add octave.
13934
13935 2011-02-10  Jim Meyering  <meyering@redhat.com>
13936
13937         doc: update users.txt
13938         * users.txt: Add iwhd.
13939
13940 2011-02-09  Bruno Haible  <bruno@clisp.org>
13941
13942         gnulib-tool: Make copyright notice adjustment more robust.
13943         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13944         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13945         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13946         License".
13947         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13948
13949 2011-02-06  Bruno Haible  <bruno@clisp.org>
13950
13951         New module 'towctrans'.
13952         * modules/towctrans: New file.
13953         * lib/wctype.in.h (towctrans): New declaration.
13954         * lib/towctrans.c: New file.
13955         * lib/towctrans-impl.h: New file.
13956         * m4/towctrans.m4: New file.
13957         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13958         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13959         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13960         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13961         * doc/posix-functions/towctrans.texi: Mention the new module.
13962
13963 2011-02-06  Bruno Haible  <bruno@clisp.org>
13964
13965         New module 'wctrans'.
13966         * modules/wctrans: New file.
13967         * lib/wctype.in.h (wctrans): New declaration.
13968         * lib/wctrans.c: New file.
13969         * lib/wctrans-impl.h: New file.
13970         * m4/wctrans.m4: New file.
13971         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13972         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13973         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13974         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13975         * doc/posix-functions/wctrans.texi: Mention the new module.
13976
13977 2011-02-06  Bruno Haible  <bruno@clisp.org>
13978
13979         New module 'iswctype'.
13980         * modules/iswctype: New file.
13981         * lib/wctype.in.h (iswctype): New declaration.
13982         * lib/iswctype.c: New file.
13983         * lib/iswctype-impl.h: New file.
13984         * m4/iswctype.m4: New file.
13985         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13986         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13987         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13988         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13989         * doc/posix-functions/iswctype.texi: Mention the new module and the
13990         HP-UX 11.00 problem.
13991
13992 2011-02-06  Bruno Haible  <bruno@clisp.org>
13993
13994         New module 'wctype'.
13995         * modules/wctype: Change to represent the wctype() substitute.
13996         * lib/wctype.in.h (wctype): New declaration.
13997         * lib/wctype.c: New file.
13998         * lib/wctype-impl.h: New file.
13999         * m4/wctype.m4: New file.
14000         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14001         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14002         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14003         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14004         * doc/posix-functions/wctype.texi: Mention the new module and the
14005         HP-UX 11.00 problem.
14006
14007 2011-02-06  Bruno Haible  <bruno@clisp.org>
14008
14009         wctype-h: Ensure wctype_t and wctrans_t are defined.
14010         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14011         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14012         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14013         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14014         HAVE_WCTRANS_T.
14015         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14016
14017 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14018
14019         flock: fix license typo
14020
14021         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14022         omitted.
14023
14024 2011-02-08  Bruno Haible  <bruno@clisp.org>
14025
14026         Split large sed scripts, for HP-UX sed.
14027         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14028         to avoid HP-UX limit of 99 commands, in the near future.
14029         * modules/stdlib (Makefile.am): Likewise.
14030         * modules/unistd (Makefile.am): Likewise.
14031         * modules/wchar (Makefile.am): Likewise.
14032         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14033         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14034         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14035
14036 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14037             Bruno Haible  <bruno@clisp.org>
14038
14039         stdlib: improve random_r modularization
14040         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14041         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14042         you also need the random_r module to get this material right.
14043         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14044         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14045         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14046
14047 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14048
14049         stdlib: don't depend on stdint
14050         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14051         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14052         be independent of whether stdint.h is needed.
14053         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14054         here, instead of ...
14055         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14056         struct random_data should be using the random_r module, not just
14057         the stdlib module (which wouldn't make sense: what package needs
14058         just struct random_data without also needing random_r?).
14059         * modules/stdlib (Depends-on): Remove stdint.
14060
14061         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14062         See the thread rooted at
14063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14064         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14065         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14066         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14067         __VMS)); previously it was always included (via fcntl--.h).
14068         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14069         hand; this is good enough for load averages.  Also, do not use
14070         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14071         flags directly if available and don't bother otherwise.  (Packages
14072         that need the extra reliability should use the modules that define
14073         these flags on older platforms that lack them.)
14074         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14075         fcntl-safer.
14076
14077 2011-02-08  Jim Meyering  <meyering@redhat.com>
14078
14079         di-set.h, ino-map.h: add multiple-inclusion guard
14080         Technically, the guard is required only for ino-map.h, due to its
14081         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14082         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14083         * lib/ino-map.h: Likewise.
14084
14085 2011-02-06  Bruno Haible  <bruno@clisp.org>
14086
14087         iswblank: Ensure declaration on glibc systems.
14088         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14089         * modules/iswblank (Dependencies): Add 'extensions'.
14090         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14091
14092 2011-02-06  Bruno Haible  <bruno@clisp.org>
14093
14094         New module 'iswblank'.
14095         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14096         * modules/iswblank: New file.
14097         * modules/wctype-h (Files): Remove lib/iswblank.c.
14098         (Makefile.am): Substitute GNULIB_ISWBLANK.
14099         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14100         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14101         (gl_WCTYPE_H_DEFAULTS): New macro.
14102         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14103         * modules/iswblank-tests: New file.
14104         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14105         * tests/test-wctype-h.c (main): Remove iswblank tests.
14106         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14107         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14108         of 'wctype-h'.
14109         * NEWS: Mention the change.
14110         * modules/mbchar (Depends-on): Add iswblank.
14111
14112 2011-02-08  Bruno Haible  <bruno@clisp.org>
14113
14114         di-set tests: Refactor.
14115         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14116         unnecessary includes.
14117         (ASSERT): Remove macro.
14118         (main): Make C90 compliant by avoiding variable declaration after
14119         statement.
14120         * modules/di-set-tests (Files): Add tests/macros.h.
14121
14122 2011-02-08  Bruno Haible  <bruno@clisp.org>
14123
14124         ino-map tests: Refactor.
14125         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14126         unnecessary includes.
14127         (ASSERT): Remove macro.
14128         (main): Make C90 compliant by avoiding variable declaration after
14129         statement.
14130         * modules/ino-map-tests (Files): Add tests/macros.h.
14131
14132 2011-02-08  Jim Meyering  <meyering@redhat.com>
14133
14134         di-set: add "const" to a cast
14135         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14136         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14137
14138 2011-02-06  Bruno Haible  <bruno@clisp.org>
14139
14140         Rename module 'wctype' to 'wctype-h'.
14141         * modules/wctype-h: Renamed from modules/wctype.
14142         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14143         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14144         (Files, Depends-on, Makefile.am): Update.
14145         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14146         (Files, Makefile.am): Update.
14147         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14148         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14149         * doc/posix-headers/wctype.texi: Update.
14150         * doc/posix-functions/iswalnum.texi: Update.
14151         * doc/posix-functions/iswalpha.texi: Update.
14152         * doc/posix-functions/iswblank.texi: Update.
14153         * doc/posix-functions/iswcntrl.texi: Update.
14154         * doc/posix-functions/iswdigit.texi: Update.
14155         * doc/posix-functions/iswgraph.texi: Update.
14156         * doc/posix-functions/iswlower.texi: Update.
14157         * doc/posix-functions/iswprint.texi: Update.
14158         * doc/posix-functions/iswpunct.texi: Update.
14159         * doc/posix-functions/iswspace.texi: Update.
14160         * doc/posix-functions/iswupper.texi: Update.
14161         * doc/posix-functions/iswxdigit.texi: Update.
14162         * doc/posix-functions/towlower.texi: Update.
14163         * doc/posix-functions/towupper.texi: Update.
14164         * NEWS: Mention the change.
14165         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14166         * modules/mbchar (Dependencies): Likewise.
14167         * modules/mbswidth (Dependencies): Likewise.
14168         * modules/quotearg (Dependencies): Likewise.
14169         * modules/regex (Dependencies): Likewise.
14170         * modules/wcscasecmp (Dependencies): Likewise.
14171         * modules/wcsncasecmp (Dependencies): Likewise.
14172         * modules/wcwidth (Dependencies): Likewise.
14173
14174 2011-02-06  Bruno Haible  <bruno@clisp.org>
14175
14176         New module 'wcswidth'.
14177         * modules/wcswidth: New file.
14178         * lib/wchar.in.h (wcswidth): New declaration.
14179         * lib/wcswidth.c: New file.
14180         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14181         * m4/wcswidth.m4: New file.
14182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14184         REPLACE_WCSWIDTH.
14185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14186         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14187         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14188         * doc/posix-functions/wcswidth.texi: Mention the new module.
14189
14190 2011-02-06  Bruno Haible  <bruno@clisp.org>
14191
14192         New module 'wcstok'.
14193         * modules/wcstok: New file.
14194         * lib/wchar.in.h (wcstok): New declaration.
14195         * lib/wcstok.c: New file.
14196         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14197         * m4/wcstok.m4: New file.
14198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14201         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14202         * doc/posix-functions/wcstok.texi: Mention the new module.
14203
14204 2011-02-06  Bruno Haible  <bruno@clisp.org>
14205
14206         New module 'wcsstr'.
14207         * modules/wcsstr: New file.
14208         * lib/wchar.in.h (wcsstr): New declaration.
14209         * lib/wcsstr.c: New file.
14210         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14211         * m4/wcsstr.m4: New file.
14212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14214         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14215         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14216         * doc/posix-functions/wcsstr.texi: Mention the new module.
14217
14218 2011-02-06  Bruno Haible  <bruno@clisp.org>
14219
14220         New module 'wcspbrk'.
14221         * modules/wcspbrk: New file.
14222         * lib/wchar.in.h (wcspbrk): New declaration.
14223         * lib/wcspbrk.c: New file.
14224         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14225         * m4/wcspbrk.m4: New file.
14226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14228         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14229         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14230         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14231
14232 2011-02-06  Bruno Haible  <bruno@clisp.org>
14233
14234         New module 'wcsspn'.
14235         * modules/wcsspn: New file.
14236         * lib/wchar.in.h (wcsspn): New declaration.
14237         * lib/wcsspn.c: New file.
14238         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14239         * m4/wcsspn.m4: New file.
14240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14243         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14244         * doc/posix-functions/wcsspn.texi: Mention the new module.
14245
14246 2011-02-06  Bruno Haible  <bruno@clisp.org>
14247
14248         New module 'wcscspn'.
14249         * modules/wcscspn: New file.
14250         * lib/wchar.in.h (wcscspn): New declaration.
14251         * lib/wcscspn.c: New file.
14252         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14253         * m4/wcscspn.m4: New file.
14254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14256         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14257         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14258         * doc/posix-functions/wcscspn.texi: Mention the new module.
14259
14260 2011-02-06  Bruno Haible  <bruno@clisp.org>
14261
14262         New module 'wcsrchr'.
14263         * modules/wcsrchr: New file.
14264         * lib/wchar.in.h (wcsrchr): New declaration.
14265         * lib/wcsrchr.c: New file.
14266         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14267         * m4/wcsrchr.m4: New file.
14268         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14269         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14270         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14271         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14272         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14273
14274 2011-02-06  Bruno Haible  <bruno@clisp.org>
14275
14276         New module 'wcschr'.
14277         * modules/wcschr: New file.
14278         * lib/wchar.in.h (wcschr): New declaration.
14279         * lib/wcschr.c: New file.
14280         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14281         * m4/wcschr.m4: New file.
14282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14285         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14286         * doc/posix-functions/wcschr.texi: Mention the new module.
14287
14288 2011-02-06  Bruno Haible  <bruno@clisp.org>
14289
14290         New module 'wcsdup'.
14291         * modules/wcsdup: New file.
14292         * lib/wchar.in.h (wcsdup): New declaration.
14293         * lib/wcsdup.c: New file.
14294         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14295         * m4/wcsdup.m4: New file.
14296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14298         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14299         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14300         * doc/posix-functions/wcsdup.texi: Mention the new module.
14301
14302 2011-02-06  Bruno Haible  <bruno@clisp.org>
14303
14304         New module 'wcsxfrm'.
14305         * modules/wcsxfrm: New file.
14306         * lib/wchar.in.h (wcsxfrm): New declaration.
14307         * lib/wcsxfrm.c: New file.
14308         * lib/wcsxfrm-impl.h: New file.
14309         * m4/wcsxfrm.m4: New file.
14310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14312         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14313         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14314         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14315
14316 2011-02-06  Bruno Haible  <bruno@clisp.org>
14317
14318         New module 'wcscoll'.
14319         * modules/wcscoll: New file.
14320         * lib/wchar.in.h (wcscoll): New declaration.
14321         * lib/wcscoll.c: New file.
14322         * lib/wcscoll-impl.h: New file.
14323         * m4/wcscoll.m4: New file.
14324         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14325         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14326         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14327         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14328         * doc/posix-functions/wcscoll.texi: Mention the new module.
14329
14330 2011-02-06  Bruno Haible  <bruno@clisp.org>
14331
14332         New module 'wcsncasecmp'.
14333         * modules/wcsncasecmp: New file.
14334         * lib/wchar.in.h (wcsncasecmp): New declaration.
14335         * lib/wcsncasecmp.c: New file.
14336         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14337         * m4/wcsncasecmp.m4: New file.
14338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14340         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14341         HAVE_WCSNCASECMP.
14342         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14343         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14344
14345 2011-02-06  Bruno Haible  <bruno@clisp.org>
14346
14347         New module 'wcscasecmp'.
14348         * modules/wcscasecmp: New file.
14349         * lib/wchar.in.h (wcscasecmp): New declaration.
14350         * lib/wcscasecmp.c: New file.
14351         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14352         * m4/wcscasecmp.m4: New file.
14353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14355         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14356         HAVE_WCSCASECMP.
14357         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14358         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14359
14360 2011-02-05  Bruno Haible  <bruno@clisp.org>
14361
14362         New module 'wcsncmp'.
14363         * modules/wcsncmp: New file.
14364         * lib/wchar.in.h (wcsncmp): New declaration.
14365         * lib/wcsncmp.c: New file.
14366         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14367         * m4/wcsncmp.m4: New file.
14368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14371         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14372         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14373
14374 2011-02-05  Bruno Haible  <bruno@clisp.org>
14375
14376         New module 'wcscmp'.
14377         * modules/wcscmp: New file.
14378         * lib/wchar.in.h (wcscmp): New declaration.
14379         * lib/wcscmp.c: New file.
14380         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14381         * m4/wcscmp.m4: New file.
14382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14385         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14386         * doc/posix-functions/wcscmp.texi: Mention the new module.
14387
14388 2011-02-05  Bruno Haible  <bruno@clisp.org>
14389
14390         New module 'wcsncat'.
14391         * modules/wcsncat: New file.
14392         * lib/wchar.in.h (wcsncat): New declaration.
14393         * lib/wcsncat.c: New file.
14394         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14395         * m4/wcsncat.m4: New file.
14396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14399         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14400         * doc/posix-functions/wcsncat.texi: Mention the new module.
14401
14402 2011-02-05  Bruno Haible  <bruno@clisp.org>
14403
14404         New module 'wcscat'.
14405         * modules/wcscat: New file.
14406         * lib/wchar.in.h (wcscat): New declaration.
14407         * lib/wcscat.c: New file.
14408         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14409         * m4/wcscat.m4: New file.
14410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14413         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14414         * doc/posix-functions/wcscat.texi: Mention the new module.
14415
14416 2011-02-05  Bruno Haible  <bruno@clisp.org>
14417
14418         New module 'wcpncpy'.
14419         * modules/wcpncpy: New file.
14420         * lib/wchar.in.h (wcpncpy): New declaration.
14421         * lib/wcpncpy.c: New file.
14422         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14423         * m4/wcpncpy.m4: New file.
14424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14426         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14427         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14428         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14429
14430 2011-02-05  Bruno Haible  <bruno@clisp.org>
14431
14432         New module 'wcsncpy'.
14433         * modules/wcsncpy: New file.
14434         * lib/wchar.in.h (wcsncpy): New declaration.
14435         * lib/wcsncpy.c: New file.
14436         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14437         * m4/wcsncpy.m4: New file.
14438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14441         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14442         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14443
14444 2011-02-05  Bruno Haible  <bruno@clisp.org>
14445
14446         New module 'wcpcpy'.
14447         * modules/wcpcpy: New file.
14448         * lib/wchar.in.h (wcpcpy): New declaration.
14449         * lib/wcpcpy.c: New file.
14450         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14451         * m4/wcpcpy.m4: New file.
14452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14454         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14455         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14456         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14457
14458 2011-02-05  Bruno Haible  <bruno@clisp.org>
14459
14460         New module 'wcscpy'.
14461         * modules/wcscpy: New file.
14462         * lib/wchar.in.h (wcscpy): New declaration.
14463         * lib/wcscpy.c: New file.
14464         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14465         * m4/wcscpy.m4: New file.
14466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14469         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14470         * doc/posix-functions/wcscpy.texi: Mention the new module.
14471
14472 2011-02-05  Bruno Haible  <bruno@clisp.org>
14473
14474         New module 'wcsnlen'.
14475         * modules/wcsnlen: New file.
14476         * lib/wchar.in.h (wcsnlen): New declaration.
14477         * lib/wcsnlen.c: New file.
14478         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14479         * m4/wcsnlen.m4: New file.
14480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14483         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14484         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14485
14486 2011-02-05  Bruno Haible  <bruno@clisp.org>
14487
14488         New module 'wcslen'.
14489         * modules/wcslen: New file.
14490         * lib/wchar.in.h (wcslen): New declaration.
14491         * lib/wcslen.c: New file.
14492         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14493         * m4/wcslen.m4: New file.
14494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14497         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14498         * doc/posix-functions/wcslen.texi: Mention the new module.
14499
14500 2011-02-05  Bruno Haible  <bruno@clisp.org>
14501
14502         New module 'wmemset'.
14503         * modules/wmemset: New file.
14504         * lib/wchar.in.h (wmemset): New declaration.
14505         * lib/wmemset.c: New file.
14506         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14507         * m4/wmemset.m4: New file.
14508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14510         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14511         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14512         * doc/posix-functions/wmemset.texi: Mention the new module.
14513
14514 2011-02-05  Bruno Haible  <bruno@clisp.org>
14515
14516         New module 'wmemmove'.
14517         * modules/wmemmove: New file.
14518         * lib/wchar.in.h (wmemmove): New declaration.
14519         * lib/wmemmove.c: New file.
14520         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14521         * m4/wmemmove.m4: New file.
14522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14524         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14525         HAVE_WMEMMOVE.
14526         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14527         * doc/posix-functions/wmemmove.texi: Mention the new module.
14528
14529 2011-02-05  Bruno Haible  <bruno@clisp.org>
14530
14531         New module 'wmemcpy'.
14532         * modules/wmemcpy: New file.
14533         * lib/wchar.in.h (wmemcpy): New declaration.
14534         * lib/wmemcpy.c: New file.
14535         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14536         * m4/wmemcpy.m4: New file.
14537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14539         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14540         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14541         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14542
14543 2011-02-05  Bruno Haible  <bruno@clisp.org>
14544
14545         New module 'wmemcmp'.
14546         * modules/wmemcmp: New file.
14547         * lib/wchar.in.h (wmemcmp): New declaration.
14548         * lib/wmemcmp.c: New file.
14549         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14550         * m4/wmemcmp.m4: New file.
14551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14553         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14554         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14555         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14556
14557 2011-02-07  Jim Meyering  <meyering@redhat.com>
14558
14559         di-set, ino-map: new modules, from coreutils
14560         * lib/di-set.c: New file.
14561         * lib/di-set.h: Likewise.
14562         * lib/ino-map.c: Likewise.
14563         * lib/ino-map.h: Likewise.
14564         * modules/di-set: Likewise.
14565         * modules/di-set-tests: Likewise.
14566         * modules/ino-map: Likewise.
14567         * modules/ino-map-tests: Likewise.
14568         * tests/test-di-set.c: Likewise.
14569         * tests/test-ino-map.c: Likewise.
14570
14571 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14572
14573         getloadavg: merge minor changes from Emacs
14574
14575         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14576         (getloadavg): Use memset, not bzero.
14577
14578         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14579         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14580         clash (bug#86).
14581
14582 2010-11-14  Bruno Haible  <bruno@clisp.org>
14583
14584         Allow multiple gnulib generated replacements to coexist.
14585         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14586         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14587         * lib/langinfo.in.h (nl_item): Likewise.
14588         * lib/math.in.h (_NaN, NAN): Likewise.
14589         * lib/netdb.in.h (struct addrinfo): Likewise.
14590         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14591         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14592         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14593         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14594         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14595         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14596         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14597         pthread_mutexattr_init, pthread_mutexattr_settype,
14598         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14599         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14600         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14601         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14602         * lib/sched.in.h (struct sched_param): Likewise.
14603         * lib/se-selinux.in.h (security_class_t, security_context_t,
14604         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14605         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14606         lsetfilecon, fsetfilecon, security_check_context,
14607         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14608         Likewise.
14609         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14610         Likewise.
14611         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14612         _gl_function_taking_int_returning_void_t, union sigval,
14613         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14614         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14615         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14616         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14617         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14618         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14619         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14620         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14621         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14622         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14623         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14624         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14625         socklen_t, rpl_fd_isset): Likewise.
14626         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14627         * lib/sys_time.in.h (struct timeval): Likewise.
14628         * lib/sys_times.in.h (struct tms): Likewise.
14629         * lib/sys_utsname.in.h (struct utsname):
14630         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14631         * lib/unistd.in.h (getpagesize): Likewise.
14632         * lib/wchar.in.h (mbstate_t): Likewise.
14633         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14634         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14635         towlower, towupper): Likewise.
14636         Reported by Sam Steingold <sds@gnu.org>.
14637
14638 2011-02-05  Eric Blake  <eblake@redhat.com>
14639
14640         unsetenv: work around Haiku issues
14641         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14642         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14643
14644 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14645
14646         libposix: avoid calling error() within libposix
14647         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14648         is defined.
14649
14650 2011-02-05  Eric Blake  <eblake@redhat.com>
14651
14652         strerror_r-posix: port to cygwin
14653         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14654         implementation.
14655         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14656         * tests/test-strerror_r.c (main): Fix test.
14657         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14658         issue.
14659
14660 2011-02-05  Bruno Haible  <bruno@clisp.org>
14661
14662         New module 'wmemchr'.
14663         * modules/wmemchr: New file.
14664         * lib/wchar.in.h (wmemchr): New declaration.
14665         * lib/wmemchr.c: New file.
14666         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14667         * m4/wmemchr.m4: New file.
14668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14670         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14671         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14672         * doc/posix-functions/wmemchr.texi: Mention the new module.
14673
14674 2011-02-04  Eric Blake  <eblake@redhat.com>
14675
14676         fdopendir: detect FreeBSD bug
14677         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14678         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14679
14680 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14681
14682         stdbool: do not define HAVE_STDBOOL_H
14683         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14684         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14685         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14686         imported from the latest Autoconf git.  It was motivated by Emacs,
14687         which uses gnulib but does not need HAVE_STDBOOL_H.
14688
14689 2011-02-04  Bruno Haible  <bruno@clisp.org>
14690
14691         wcsnrtombs: Prepare for new module wwcsnrtombs.
14692         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14693         * lib/wcsnrtombs.c: Include it.
14694         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14695
14696         wcsrtombs: Prepare for new module wwcsrtombs.
14697         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14698         * lib/wcsrtombs.c: Include it.
14699         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14700
14701         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14702         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14703         * lib/mbsnrtowcs.c: Include it.
14704         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14705
14706         mbsrtowcs: Prepare for new module mbsrtowwcs.
14707         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14708         * lib/mbsrtowcs.c: Include it.
14709         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14710
14711 2011-02-04  Bruno Haible  <bruno@clisp.org>
14712
14713         vasnprintf: Reduce use of malloc for small format strings.
14714         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14715         (arguments): Add room for the first 7 arguments.
14716         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14717         (char_directives, u8_directives, u16_directives, u32_directives): Add
14718         room for the first 7 directives.
14719         * lib/printf-parse.c: Include <string.h>.
14720         (PRINTF_PARSE): Change memory handling code so that it uses the first
14721         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14722         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14723         Reported by Pádraig Brady <P@draigbrady.com>.
14724
14725 2011-01-31  Eric Blake  <eblake@redhat.com>
14726
14727         dup2: work around Haiku bug
14728         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14729         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14730         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14731         * tests/test-dup2.c (main): Enhance test.
14732
14733 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14734
14735         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14736         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14737         declared by eglibc 2.11.2.
14738         * lib/stdio.in.h: Likewise.
14739
14740 2011-01-31  Eric Blake  <eblake@redhat.com>
14741
14742         ignore-value: add missing test dependency
14743         * tests/test-ignore-value.c: Revert previous change; stdio.h
14744         provides off_t.
14745         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14746
14747 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14748
14749         mktime: clarify long_int width checking
14750         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14751         the top level, to make it clearer that the assumption about
14752         long_int width is being checked.  See
14753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14754
14755 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14756
14757         ignore-value: Fix self-test.
14758         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14759
14760 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14761
14762         TYPE_MAXIMUM: avoid theoretically undefined behavior
14763         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14764         negative number, which the C Standard says has undefined behavior.
14765         In practice this is not a problem, but might as well do it by the book.
14766         Reported by Rich Felker and Eric Blake; see
14767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14768         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14769         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14770         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14771         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14772         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14773         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14774
14775         mktime: #undef mktime before #defining it
14776         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14777
14778         mktime: systematically normalize tm_isdst comparisons
14779         * lib/mktime.c (isdst_differ): New function.
14780         (__mktime_internal): Use it systematically for all isdst comparisons.
14781         This completes the fix for libc BZ #6723, and removes the need for
14782         normalizing tm_isdst.  See
14783         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14784         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14785
14786         mktime: fix some integer overflow issues and sidestep the rest
14787
14788         This was prompted by a bug report by Benjamin Lindner for MinGW
14789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14790         His bug is due to signed integer overflow (0 - INT_MIN), and I
14791         I scanned through mktime.c looking for other integer overflow
14792         problems, fixing all the bugs I found.
14793
14794         Although the C Standard says the resulting code is still not safe
14795         in the presence of integer overflow, in practice it should be good
14796         enough for all real-world two's-complement implementations, except
14797         for debugging environments that deliberately trap on integer
14798         overflow (e.g., gcc -ftrapv).
14799
14800         * lib/mktime.c (WRAPV): New macro.
14801         (SHR): Also check that long_int and time_t shift right in the
14802         usual way, before using the fast-but-unportable method.
14803         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14804         used.  The code already assumed two's complement, so there's
14805         no need to test for alternatives.  All uses removed.
14806         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14807         the C standard.  Problem reported by Rich Felker in
14808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14809         (twos_complement_arithmetic): Also check long_int and time_t.
14810         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14811         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14812         (__mktime_internal): Avoid integer overflow with unary subtraction
14813         in two instances where -1 - X is an adequate replacement for -X,
14814         since the calculations are approximate.
14815
14816 2011-01-29  Eric Blake  <eblake@redhat.com>
14817
14818         mktime: avoid infinite loop
14819         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14820         type; behavior is still undefined but portable to all known targets.
14821         Reported by Rich Felker.
14822
14823 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14824
14825         rename, unlink, same-inode: Relicense.
14826         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14827         * modules/unlink (License): Likewise.
14828         * modules/same-inode (License): Likewise.
14829
14830 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14831
14832         mktime: avoid problems on NetBSD 5 / i386
14833         * lib/mktime.c (long_int): New type.  This works around a problem
14834         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14835         but time_t is 64 bits, and where I expect the existing code is
14836         wrong in some cases.
14837         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14838         (ydhms_diff): Bring back the compile-time check for wide-enough
14839         year and yday.
14840
14841         mktime: fix misspelling in comment
14842         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14843         This merges all recent glibc changes of importance.
14844
14845 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14846
14847         move-if-change: cope with concurrent mv of identical file.
14848         * build-aux/move-if-change (CMPPROG): Accept environment
14849         variable as an override for `cmp'.
14850         (usage): Document CMPPROG.
14851         Adjust comparison to drop stdout.  Cope with failure of mv if
14852         the target file exists and is identical to the source, for
14853         parallel builds.
14854         Report from H.J. Lu against binutils in PR binutils/12283.
14855
14856 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14857
14858         * users.txt: Mention sharutils.
14859
14860 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14861
14862         * users.txt: Mention OATH Toolkit.
14863
14864 2011-01-27  Bruno Haible  <bruno@clisp.org>
14865
14866         Prepare for supporting FreeBSD 10.
14867         * build-aux/config.libpath: Remove handling of freebsd1*.
14868
14869 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14870
14871         Prepare for supporting FreeBSD 10.
14872         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14873         match FreeBSD 10.0.
14874
14875 2011-01-27  Bruno Haible  <bruno@clisp.org>
14876
14877         vma-iter, get-rusage-as: Add OpenBSD support.
14878         * modules/vma-iter (configure.ac): Test for mquery.
14879         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14880         * lib/vma-iter.c: Include <sys/mman.h>.
14881         (vma_iterate): Add an implementation based on mquery().
14882         * lib/resource-ext.h (get_rusage_as): Update comments.
14883         * lib/get-rusage-as.c: Likewise.
14884         * lib/get-rusage-data.c: Likewise.
14885
14886 2011-01-26  Karl Berry  <karl@gnu.org>
14887
14888         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14889         variables to make it easier to override the makeinfo program used.
14890
14891 2011-01-26  Eric Blake  <eblake@redhat.com>
14892
14893         fcntl: work around Haiku F_DUPFD bugs
14894         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14895         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14896         cloexec bit on duplication.
14897         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14898
14899 2011-01-26  Bruno Haible  <bruno@clisp.org>
14900
14901         Enable memory leak tests on AIX.
14902         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14903         * tests/test-fprintf-posix3.c (main): Likewise.
14904
14905 2011-01-26  Bruno Haible  <bruno@clisp.org>
14906
14907         Tests for module 'get-rusage-data'.
14908         * modules/get-rusage-data-tests: New file.
14909         * tests/test-get-rusage-data.c: New file.
14910
14911         New module 'get-rusage-data'.
14912         * lib/resource-ext.h (get_rusage_data): New declaration.
14913         * lib/get-rusage-data.c: New file.
14914         * modules/get-rusage-data: New file.
14915
14916 2011-01-25  Bruno Haible  <bruno@clisp.org>
14917
14918         get-rusage-as: Allow for easier testing.
14919         * lib/resource-ext.h (get_rusage_as): Add comment.
14920         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14921         (main): New function for interactive testing.
14922
14923 2011-01-25  Bruno Haible  <bruno@clisp.org>
14924
14925         vma-iter: Treat Haiku like BeOS.
14926         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14927         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14928
14929 2011-01-25  Eric Blake  <eblake@redhat.com>
14930
14931         c-stack: fix regression on cygwin when libsigsegv is present
14932         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14933
14934 2011-01-24  Bruno Haible  <bruno@clisp.org>
14935
14936         vma-iter: Avoid empty intervals.
14937         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14938         on an empty interval.
14939
14940 2011-01-24  Jim Meyering  <meyering@redhat.com>
14941
14942         u64: remove unnecessary #include
14943         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14944
14945 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14946
14947         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14948         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14949
14950 2011-01-23  Bruno Haible  <bruno@clisp.org>
14951
14952         New module 'vma-iter'.
14953         * lib/vma-iter.h: New file.
14954         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14955         * modules/vma-iter: New file.
14956         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14957         for get_rusage_as_via_iterator.
14958         (vma_iterate_callback): New function.
14959         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14960         * modules/get-rusage-as (Depends-on): Add vma-iter.
14961
14962 2011-01-23  Bruno Haible  <bruno@clisp.org>
14963
14964         uninorm: Tweak includes.
14965         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14966         Reported by Jim Meyering.
14967
14968 2011-01-23  Bruno Haible  <bruno@clisp.org>
14969
14970         get-rusage-as: Improve on NetBSD.
14971         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14972         /proc, like on FreeBSD.
14973
14974 2011-01-23  Jim Meyering  <meyering@redhat.com>
14975
14976         xreadlink.h: remove unnecessary #include
14977         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14978
14979         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14980         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14981
14982 2011-01-23  Bruno Haible  <bruno@clisp.org>
14983
14984         get-rusage-as: Fix bug.
14985         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14986         original limit when aborting the first loop.
14987
14988 2011-01-23  Bruno Haible  <bruno@clisp.org>
14989
14990         wctype: Ensure valid C syntax.
14991         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14992         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14993
14994 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14995
14996         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14997         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14998         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14999         as they are needed only for configure's test case.
15000         This removes two unnecessary symbols from config.h.
15001
15002         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15003         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15005         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15006         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15007         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15008         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15009         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15010         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15011         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15012         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15013         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15014         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15015         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15016         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15017         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15018         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15019         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15020
15021 2011-01-21  Eric Blake  <eblake@redhat.com>
15022
15023         maintainer-makefile: work with older git for submodule check
15024         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15025         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15026         Reported by Matthias Bolte.
15027
15028         bootstrap: minor portability fixes
15029         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15030         (usage): Omit leading capital and trailing . on help phrases, per
15031         GNU Coding Standards.
15032         (check_versions, top level): Prefix messages with script name.
15033
15034 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15035
15036         bootstrap: support --no-git option
15037         * build-aux/bootstrap: Add --no-git option, to be used when
15038         --gnulib-srcdir points to the exact desired checkout.
15039
15040 2011-01-21  Eric Blake  <eblake@redhat.com>
15041
15042         strerror_r-posix: work with glibc 2.13
15043         * lib/strerror_r.c (strerror_r): Fix return type.
15044
15045 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15046             Bruno Haible  <bruno@clisp.org>
15047
15048         uN_strstr: New unit tests.
15049         * modules/unistr/u8-strstr-tests: New file.
15050         * modules/unistr/u16-strstr-tests: New file.
15051         * modules/unistr/u32-strstr-tests: New file.
15052         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15053         * tests/unistr/test-u8-strstr.c: New file.
15054         * tests/unistr/test-u16-strstr.c: New file.
15055         * tests/unistr/test-u32-strstr.c: New file.
15056
15057 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15058             Bruno Haible  <bruno@clisp.org>
15059
15060         Make uN_strstr functions O(n) worst-case.
15061         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15062         16-bit and 32-bit unit cases, use the unibyte algorithm from
15063         lib/mbsstr.c.
15064         * lib/unistr/u8-strstr.c: Include <string.h>.
15065         (UNIT_IS_UINT8_T): New macro.
15066         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15067         (U_STRLEN, U_STRNLEN): New macros.
15068         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15069         (U_STRLEN, U_STRNLEN): New macros.
15070         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15071         (configure.ac): Update required libunistring version.
15072         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15073         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15074         malloca.
15075         (configure.ac): Update required libunistring version.
15076         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15077         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15078         malloca.
15079         (configure.ac): Update required libunistring version.
15080
15081 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15082             Bruno Haible  <bruno@clisp.org>
15083
15084         Prepare for faster uN_strstr functions.
15085         * lib/str-kmp.h: Support definable UNITs.
15086         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15087         needle_len argument.
15088         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15089         * lib/mbscasestr.c (mbscasestr): Likewise.
15090
15091 2011-01-21  Pádraig Brady <P@draigBrady.com>
15092
15093         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15094         * tests/test-malloca.c (main): Unset the environment variable
15095         to greatly speed up the test.
15096         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15097         * modules/malloca-tests: Depend on unsetenv.
15098
15099 2011-01-21  Pádraig Brady <P@draigBrady.com>
15100
15101         ignore-value: remove stdint dependency
15102         * lib/ignore-value.h: Remove <stdint.h>
15103         * modules/ignore-value: Remove stdint dependency.
15104
15105 2011-01-21  Jim Meyering  <meyering@redhat.com>
15106
15107         maint.mk: adjust variable name to be consistent with other gl_ vars
15108         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15109         to be lower case.
15110
15111 2011-01-20  Jim Meyering  <meyering@redhat.com>
15112
15113         maint.mk: make "check" depend on public-submodule-commit by default
15114         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15115
15116 2011-01-20  Bruno Haible  <bruno@clisp.org>
15117
15118         mbfile, mbiter: Complete change from 2008-12-21.
15119         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15120         * m4/mbiter.m4 (gl_MBITER): Likewise.
15121
15122 2011-01-20  Jim Meyering  <meyering@redhat.com>
15123
15124         init.sh: insert space between each function name and "()"
15125         * tests/init.sh: Make it a little easier to see that a function's
15126         name is "warn_", and not "warn" when looking at the first part of
15127         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15128
15129 2011-01-20  Jim Meyering  <meyering@redhat.com>
15130
15131         mountlist: clean up code formatting
15132         * lib/mountlist.c (read_file_system_list): Split a long line,
15133         correct bracing style, use NULL in place of "(struct statfs *)0",
15134         don't parenthesize return value, add spaces around "=" and after
15135         ";-in-for-stmt".
15136
15137 2011-01-14  Markus Duft <mduft@gentoo.org>
15138
15139         mountlist: add support for Interix
15140         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15141         Apply statvfs to all entries of /dev/fs.
15142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15143         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15144
15145 2011-01-20  Jim Meyering  <meyering@redhat.com>
15146
15147         maint.mk: improve the public-submodule-commit rule
15148         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15149         to suppress printing of its commands... unless V=1.
15150         Add git submodule's --quiet option to suppress printing of e.g.,
15151         "Entering gnulib" output.
15152         "cd" into $(srcdir) before running git submodule.
15153
15154 2011-01-20  Bruno Haible  <bruno@clisp.org>
15155
15156         include_next: Fix bug introduced on 2011-01-18.
15157         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15158         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15159         ac_cv_header_... variable if the second argument is not 'check'.
15160         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15161         gl_NEXT_HEADERS_INTERNAL.
15162
15163 2011-01-20  Bruno Haible  <bruno@clisp.org>
15164
15165         Allow the user to avoid the GNULIB_TEST_* macros.
15166         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15167         Suggested by Paul Eggert.
15168
15169 2011-01-14  Jim Meyering  <meyering@redhat.com>
15170
15171         bootstrap: avoid failure when there is no .gitmodules file
15172         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15173         has been assigned to, even when its value is the empty string.
15174         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15175         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15176         Reported by John W. Eaton <jwe@gnu.org>.
15177
15178 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15179
15180         assume <ctype.h>, ..., <time.h> exist
15181         For years gnulib has been assuming the existence of the headers
15182         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15183         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15184         them, since they don't appear to be needed.
15185         * README (Portability guidelines): Document this.
15186         * lib/flock.c: Assume <fcntl.h> exists.
15187         * lib/regex_internal.h: Assume <locale.h> exists.
15188         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15189         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15190         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15191         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15192         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15193         * m4/regex.m4 (gl_REGEX): Likewise.
15194         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15195         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15196         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15197         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15198         * tests/test-argp.c: Likewise.
15199         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15200
15201         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15202         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15203         AA_APPLE_UNIVERSAL_BUILD.  See
15204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15205         * NEWS: Document this.
15206
15207 2011-01-19  Eric Blake  <eblake@redhat.com>
15208
15209         c-stack: assume stack overflow if SA_SIGINFO unsupported
15210         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15211         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15212         sigaction will work.
15213         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15214         behavior match Linux.
15215         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15216
15217         stdbool-tests: accomodate Haiku
15218         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15219
15220         binary-io: fix O_TEXT on Haiku
15221         * modules/binary-io (Depends-on): Add fcntl-h.
15222         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15223         than blindly undefining O_TEXT.
15224         Reported by Scott McCreary.
15225
15226 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15227
15228         include_next: do not check for standard headers like stddef.h
15229
15230         I found this problem when modifying Emacs to use gnulib.
15231         I noticed that it added HAVE_STDDEF_H to config.h, even though
15232         gnulib always assumes <stddef.h> exists as per README and this
15233         symbol is unnecessary.
15234         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15235         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15236         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15237         faster for headers like stddef.h that are known to exist.
15238         (gl_CHECK_NEXT_HEADERS): Use it.
15239         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15240         rather than gl_CHECK_NEXT_HEADERS.
15241         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15242         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15243
15244 2011-01-18  Eric Blake  <eblake@redhat.com>
15245
15246         ansi-c++-opt: skip C++ dependency style if C++ is unused
15247         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15248         tests when we know C++ compilation is not desired.
15249         Reported by Scott McCreary.
15250
15251 2011-01-18  Bruno Haible  <bruno@clisp.org>
15252
15253         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15254         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15255         (main): Perform test also when getrlimit and setrlimit don't exist or
15256         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15257         limiting the address space size using setrlimit, compare the address
15258         space size before and after the the test.
15259         * tests/test-dprintf-posix2.c: Likewise.
15260         * tests/test-fprintf-posix3.sh: Update skip messages.
15261         * tests/test-dprintf-posix2.sh: Likewise.
15262         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15263         * modules/dprintf-posix-tests (Depends-on): Likewise.
15264         Reported by Bruce Korb <bkorb@gnu.org> and
15265         Gary V. Vaughan <gary@gnu.org>.
15266
15267 2011-01-18  Bruno Haible  <bruno@clisp.org>
15268
15269         get-rusage-as: Improvement for Cygwin.
15270         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15271         areas that are merely reserved.
15272
15273 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15274
15275         strftime: remove dependencies on multibyte modules
15276
15277         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15278         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15279         only if __osf__ is defined, and I suspect OSF doesn't need these
15280         other modules.  If my guess is wrong, we'll need to come up with a
15281         variant of strftime that doesn't need the multibyte modules.
15282
15283         I discovered this problem when attempting modify Emacs to use the
15284         strftime module.  With the previous gnulib, this caused Emacs to
15285         need 31 new files, ranging from lib/config.charset to
15286         m4/wint_t.m4.  This was overkill and I expect would be offputting
15287         to the Emacs maintainers.  After this change, only 6 new files are
15288         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15289         stdbool.m4, and tm_gmtoff.m4.
15290
15291         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15292         Suggested by Bruno Haible in
15293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15294         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15295         and do not check for wchar.h.
15296         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15297         (Depends-on): Remove mbrlen, mbsinit, wchar.
15298
15299 2011-01-18  Bruno Haible  <bruno@clisp.org>
15300
15301         Tests for module 'get-rusage-as'.
15302         * modules/get-rusage-as-tests: New file.
15303         * tests/test-get-rusage-as.c: New file.
15304
15305         New module 'get-rusage-as'.
15306         * modules/get-rusage-as: New file.
15307         * lib/resource-ext.h: New file.
15308         * lib/get-rusage-as.c: New file.
15309
15310 2011-01-17  Eric Blake  <eblake@redhat.com>
15311
15312         sigaction: relax license from LGPLv3+ to LGPLv2+
15313         * modules/sigaction (License): Relax to LGPLv2+.
15314
15315 2011-01-14  Bruno Haible  <bruno@clisp.org>
15316
15317         filemode: Make function declarations usable in C++ mode.
15318         * lib/filemode.h: Enclose function declarations in extern "C" block.
15319         Reported by John W. Eaton <jwe@gnu.org>.
15320
15321 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15322
15323         save-cwd: no longer include "xgetcwd.h"
15324         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15325         This avoids a compilation failure in projects that use save-cwd
15326         without also using the xgetcwd module.
15327
15328 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15329
15330         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15331         This is so that a program like Emacs, which needs only dtoastr,
15332         does not have to bother with distributing and compiling ftoastr
15333         and ldtoastr.
15334         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15335         * modules/dtoastr, modules/ldtoastr: New files.
15336         * modules/ftoastr: Now works just for 'float'.
15337         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15338         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15339         dtoastr.c, ldtoastr.c.
15340
15341 2011-01-11  Jim Meyering  <meyering@redhat.com>
15342
15343         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15344         There is no need to work around the lack of the fchdir function,
15345         since gnulib can now provide a replacement when required.
15346         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15347         * modules/save-cwd (Depends-on): Add fchdir.
15348
15349 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15350
15351         openat, save-cwd: avoid xmalloc
15352
15353         This removes a direct (but undocumented) dependency of openat on
15354         xalloc, along with an indirect dependency via save-cwd.  It also
15355         removes a dependency of save-cwd on xgetcwd, and thereby
15356         indirectly on xalloc.  This change causes the openat substitute
15357         to fall back on save_cwd when memory is tight, and for save_cwd to
15358         fail instead of dying when memory is tight, but that's good enough.
15359         Problem and initial idea for fix reported by Bastien Roucaries in
15360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15361
15362         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15363         xalloc.h (for xmalloc).
15364         (openat_proc_name): Use malloc, not xmalloc.
15365         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15366         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15367
15368         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15369         This avoids heap allocation for file names whose lengths are in
15370         the range 512..1023, with the upper bound increasing to at most
15371         4031 depending on the platform's PATH_MAX.  (We do not want
15372         pathmax.h here as it might supply a non-constant PATH_MAX.)
15373         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15374         Perhaps they should be moved to malloca.h?
15375         (OPENAT_BUFFER_SIZE): Use them.
15376
15377 2011-01-10  Bruno Haible  <bruno@clisp.org>
15378
15379         doc: Update users.txt.
15380         * users.txt: Add recutils.
15381
15382 2011-01-09  Karl Berry  <karl@gnu.org>
15383
15384         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15385
15386         * doc/configmake.texi: New file.
15387         * doc/gnulib.texi: Include it.
15388         * modules/configmake: Move documentation from here.
15389
15390 2011-01-09  Bruno Haible  <bruno@clisp.org>
15391
15392         Update to Unicode 6.0.0.
15393         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15394         (get_lbp): Update for Unicode 6.0.0.
15395         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15396         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15397         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15398         U+11001, U+11038..U+11046. Remove U+06DE.
15399         (uc_width): Fix bounds of planes.
15400         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15401         lib/uniwidth/width.c.
15402         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15403         trailing whitespace removed.
15404         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15405         without comments, but with the original copyright notice.
15406         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15407         * lib/unicase/ignorable.h: Likewise.
15408         * lib/unicase/tocasefold.h: Likewise.
15409         * lib/unicase/tolower.h: Likewise.
15410         * lib/unicase/totitle.h: Likewise.
15411         * lib/unicase/toupper.h: Likewise.
15412         * lib/unictype/bidi_of.h: Likewise.
15413         * lib/unictype/blocks.h: Likewise.
15414         * lib/unictype/categ_C.h: Likewise.
15415         * lib/unictype/categ_Cn.h: Likewise.
15416         * lib/unictype/categ_L.h: Likewise.
15417         * lib/unictype/categ_Ll.h: Likewise.
15418         * lib/unictype/categ_Lm.h: Likewise.
15419         * lib/unictype/categ_Lo.h: Likewise.
15420         * lib/unictype/categ_Lu.h: Likewise.
15421         * lib/unictype/categ_M.h: Likewise.
15422         * lib/unictype/categ_Mc.h: Likewise.
15423         * lib/unictype/categ_Me.h: Likewise.
15424         * lib/unictype/categ_Mn.h: Likewise.
15425         * lib/unictype/categ_N.h: Likewise.
15426         * lib/unictype/categ_Nd.h: Likewise.
15427         * lib/unictype/categ_No.h: Likewise.
15428         * lib/unictype/categ_P.h: Likewise.
15429         * lib/unictype/categ_Po.h: Likewise.
15430         * lib/unictype/categ_S.h: Likewise.
15431         * lib/unictype/categ_Sc.h: Likewise.
15432         * lib/unictype/categ_Sk.h: Likewise.
15433         * lib/unictype/categ_Sm.h: Likewise.
15434         * lib/unictype/categ_So.h: Likewise.
15435         * lib/unictype/categ_of.h: Likewise.
15436         * lib/unictype/combining.h: Likewise.
15437         * lib/unictype/ctype_alnum.h: Likewise.
15438         * lib/unictype/ctype_alpha.h: Likewise.
15439         * lib/unictype/ctype_graph.h: Likewise.
15440         * lib/unictype/ctype_lower.h: Likewise.
15441         * lib/unictype/ctype_print.h: Likewise.
15442         * lib/unictype/ctype_punct.h: Likewise.
15443         * lib/unictype/ctype_upper.h: Likewise.
15444         * lib/unictype/decdigit.h: Likewise.
15445         * lib/unictype/digit.h: Likewise.
15446         * lib/unictype/numeric.h: Likewise.
15447         * lib/unictype/pr_alphabetic.h: Likewise.
15448         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15449         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15450         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15451         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15452         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15453         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15454         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15455         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15456         * lib/unictype/pr_case_ignorable.h: Likewise.
15457         * lib/unictype/pr_cased.h: Likewise.
15458         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15459         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15460         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15461         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15462         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15463         * lib/unictype/pr_combining.h: Likewise.
15464         * lib/unictype/pr_composite.h: Likewise.
15465         * lib/unictype/pr_currency_symbol.h: Likewise.
15466         * lib/unictype/pr_decimal_digit.h: Likewise.
15467         * lib/unictype/pr_deprecated.h: Likewise.
15468         * lib/unictype/pr_format_control.h: Likewise.
15469         * lib/unictype/pr_grapheme_base.h: Likewise.
15470         * lib/unictype/pr_grapheme_extend.h: Likewise.
15471         * lib/unictype/pr_grapheme_link.h: Likewise.
15472         * lib/unictype/pr_id_continue.h: Likewise.
15473         * lib/unictype/pr_id_start.h: Likewise.
15474         * lib/unictype/pr_ideographic.h: Likewise.
15475         * lib/unictype/pr_lowercase.h: Likewise.
15476         * lib/unictype/pr_math.h: Likewise.
15477         * lib/unictype/pr_numeric.h: Likewise.
15478         * lib/unictype/pr_other_alphabetic.h: Likewise.
15479         * lib/unictype/pr_other_id_continue.h: Likewise.
15480         * lib/unictype/pr_other_math.h: Likewise.
15481         * lib/unictype/pr_punctuation.h: Likewise.
15482         * lib/unictype/pr_sentence_terminal.h: Likewise.
15483         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15484         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15485         * lib/unictype/pr_unified_ideograph.h: Likewise.
15486         * lib/unictype/pr_uppercase.h: Likewise.
15487         * lib/unictype/pr_xid_continue.h: Likewise.
15488         * lib/unictype/pr_xid_start.h: Likewise.
15489         * lib/unictype/scripts.h: Likewise.
15490         * lib/unictype/scripts_byname.gperf: Likewise.
15491         * lib/unictype/sy_java_ident.h: Likewise.
15492         * lib/unigbrk/gbrkprop.h: Likewise.
15493         * lib/unilbrk/lbrkprop1.h: Likewise.
15494         * lib/unilbrk/lbrkprop2.h: Likewise.
15495         * lib/uninorm/decomposition-table2.h: Likewise.
15496         * lib/uniwbrk/wbrkprop.h: Likewise.
15497         * tests/unicase/test-cased.c: Likewise.
15498         * tests/unicase/test-ignorable.c: Likewise.
15499         * tests/unicase/test-uc_tolower.c: Likewise.
15500         * tests/unicase/test-uc_totitle.c: Likewise.
15501         * tests/unicase/test-uc_toupper.c: Likewise.
15502         * tests/unictype/test-categ_C.c: Likewise.
15503         * tests/unictype/test-categ_Cn.c: Likewise.
15504         * tests/unictype/test-categ_L.c: Likewise.
15505         * tests/unictype/test-categ_Ll.c: Likewise.
15506         * tests/unictype/test-categ_Lm.c: Likewise.
15507         * tests/unictype/test-categ_Lo.c: Likewise.
15508         * tests/unictype/test-categ_Lu.c: Likewise.
15509         * tests/unictype/test-categ_M.c: Likewise.
15510         * tests/unictype/test-categ_Mc.c: Likewise.
15511         * tests/unictype/test-categ_Me.c: Likewise.
15512         * tests/unictype/test-categ_Mn.c: Likewise.
15513         * tests/unictype/test-categ_N.c: Likewise.
15514         * tests/unictype/test-categ_Nd.c: Likewise.
15515         * tests/unictype/test-categ_No.c: Likewise.
15516         * tests/unictype/test-categ_P.c: Likewise.
15517         * tests/unictype/test-categ_Po.c: Likewise.
15518         * tests/unictype/test-categ_S.c: Likewise.
15519         * tests/unictype/test-categ_Sc.c: Likewise.
15520         * tests/unictype/test-categ_Sk.c: Likewise.
15521         * tests/unictype/test-categ_Sm.c: Likewise.
15522         * tests/unictype/test-categ_So.c: Likewise.
15523         * tests/unictype/test-ctype_alnum.c: Likewise.
15524         * tests/unictype/test-ctype_alpha.c: Likewise.
15525         * tests/unictype/test-ctype_graph.c: Likewise.
15526         * tests/unictype/test-ctype_lower.c: Likewise.
15527         * tests/unictype/test-ctype_print.c: Likewise.
15528         * tests/unictype/test-ctype_punct.c: Likewise.
15529         * tests/unictype/test-ctype_upper.c: Likewise.
15530         * tests/unictype/test-decdigit.h: Likewise.
15531         * tests/unictype/test-digit.h: Likewise.
15532         * tests/unictype/test-numeric.h: Likewise.
15533         * tests/unictype/test-pr_alphabetic.c: Likewise.
15534         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15535         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15536         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15537         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15538         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15539         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15540         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15541         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15542         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15543         * tests/unictype/test-pr_cased.c: Likewise.
15544         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15545         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15546         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15547         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15548         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15549         * tests/unictype/test-pr_combining.c: Likewise.
15550         * tests/unictype/test-pr_composite.c: Likewise.
15551         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15552         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15553         * tests/unictype/test-pr_deprecated.c: Likewise.
15554         * tests/unictype/test-pr_format_control.c: Likewise.
15555         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15556         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15557         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15558         * tests/unictype/test-pr_id_continue.c: Likewise.
15559         * tests/unictype/test-pr_id_start.c: Likewise.
15560         * tests/unictype/test-pr_ideographic.c: Likewise.
15561         * tests/unictype/test-pr_lowercase.c: Likewise.
15562         * tests/unictype/test-pr_math.c: Likewise.
15563         * tests/unictype/test-pr_numeric.c: Likewise.
15564         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15565         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15566         * tests/unictype/test-pr_other_math.c: Likewise.
15567         * tests/unictype/test-pr_punctuation.c: Likewise.
15568         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15569         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15570         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15571         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15572         * tests/unictype/test-pr_uppercase.c: Likewise.
15573         * tests/unictype/test-pr_xid_continue.c: Likewise.
15574         * tests/unictype/test-pr_xid_start.c: Likewise.
15575         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15576         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15577         changes.
15578         * lib/unictype/categ_Cc.h: Likewise.
15579         * lib/unictype/categ_Cf.h: Likewise.
15580         * lib/unictype/categ_Co.h: Likewise.
15581         * lib/unictype/categ_Cs.h: Likewise.
15582         * lib/unictype/categ_Lt.h: Likewise.
15583         * lib/unictype/categ_Nl.h: Likewise.
15584         * lib/unictype/categ_Pc.h: Likewise.
15585         * lib/unictype/categ_Pd.h: Likewise.
15586         * lib/unictype/categ_Pe.h: Likewise.
15587         * lib/unictype/categ_Pf.h: Likewise.
15588         * lib/unictype/categ_Pi.h: Likewise.
15589         * lib/unictype/categ_Ps.h: Likewise.
15590         * lib/unictype/categ_Z.h: Likewise.
15591         * lib/unictype/categ_Zl.h: Likewise.
15592         * lib/unictype/categ_Zp.h: Likewise.
15593         * lib/unictype/categ_Zs.h: Likewise.
15594         * lib/unictype/ctype_blank.h: Likewise.
15595         * lib/unictype/ctype_cntrl.h: Likewise.
15596         * lib/unictype/ctype_digit.h: Likewise.
15597         * lib/unictype/ctype_space.h: Likewise.
15598         * lib/unictype/ctype_xdigit.h: Likewise.
15599         * lib/unictype/mirror.h: Likewise.
15600         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15601         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15602         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15603         * lib/unictype/pr_bidi_control.h: Likewise.
15604         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15605         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15606         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15607         * lib/unictype/pr_bidi_pdf.h: Likewise.
15608         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15609         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15610         * lib/unictype/pr_dash.h: Likewise.
15611         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15612         * lib/unictype/pr_diacritic.h: Likewise.
15613         * lib/unictype/pr_extender.h: Likewise.
15614         * lib/unictype/pr_hex_digit.h: Likewise.
15615         * lib/unictype/pr_hyphen.h: Likewise.
15616         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15617         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15618         * lib/unictype/pr_ignorable_control.h: Likewise.
15619         * lib/unictype/pr_iso_control.h: Likewise.
15620         * lib/unictype/pr_join_control.h: Likewise.
15621         * lib/unictype/pr_left_of_pair.h: Likewise.
15622         * lib/unictype/pr_line_separator.h: Likewise.
15623         * lib/unictype/pr_logical_order_exception.h: Likewise.
15624         * lib/unictype/pr_non_break.h: Likewise.
15625         * lib/unictype/pr_not_a_character.h: Likewise.
15626         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15627         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15628         * lib/unictype/pr_other_id_start.h: Likewise.
15629         * lib/unictype/pr_other_lowercase.h: Likewise.
15630         * lib/unictype/pr_other_uppercase.h: Likewise.
15631         * lib/unictype/pr_paired_punctuation.h: Likewise.
15632         * lib/unictype/pr_paragraph_separator.h: Likewise.
15633         * lib/unictype/pr_pattern_syntax.h: Likewise.
15634         * lib/unictype/pr_pattern_white_space.h: Likewise.
15635         * lib/unictype/pr_private_use.h: Likewise.
15636         * lib/unictype/pr_quotation_mark.h: Likewise.
15637         * lib/unictype/pr_radical.h: Likewise.
15638         * lib/unictype/pr_soft_dotted.h: Likewise.
15639         * lib/unictype/pr_space.h: Likewise.
15640         * lib/unictype/pr_titlecase.h: Likewise.
15641         * lib/unictype/pr_variation_selector.h: Likewise.
15642         * lib/unictype/pr_white_space.h: Likewise.
15643         * lib/unictype/pr_zero_width.h: Likewise.
15644         * lib/unictype/sy_c_ident.h: Likewise.
15645         * lib/unictype/sy_c_whitespace.h: Likewise.
15646         * lib/unictype/sy_java_whitespace.h: Likewise.
15647         * lib/uninorm/composition-table.gperf: Likewise.
15648         * lib/uninorm/decomposition-table1.h: Likewise.
15649         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15650         LB8.
15651         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15652         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15653         * modules/unictype/*: Bump version number of expected libunistring
15654         version.
15655
15656 2011-01-09  Bruno Haible  <bruno@clisp.org>
15657
15658         Update to Unicode 5.2.0.
15659         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15660         trailing whitespace removed.
15661
15662 2011-01-09  Bruno Haible  <bruno@clisp.org>
15663
15664         New Unicode character properties, from Unicode 5.2.0.
15665         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15666         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15667         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15668         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15669         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15670         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15671         uc_is_property_cased, uc_is_property_case_ignorable,
15672         uc_is_property_changes_when_lowercased,
15673         uc_is_property_changes_when_uppercased,
15674         uc_is_property_changes_when_titlecased,
15675         uc_is_property_changes_when_casefolded,
15676         uc_is_property_changes_when_casemapped): New declarations.
15677         * lib/unictype/pr_byname.gperf: Add the new properties.
15678         * modules/unictype/property-byname (Depends-on): Depend on the new
15679         properties modules.
15680         * modules/unictype/property-all (Depends-on): Likewise.
15681         * MODULES.html.sh (Unicode string functions): Add
15682         unictype/property-case-ignorable, unictype/property-cased,
15683         unictype/property-changes-when-casefolded,
15684         unictype/property-changes-when-casemapped,
15685         unictype/property-changes-when-lowercased,
15686         unictype/property-changes-when-titlecased,
15687         unictype/property-changes-when-uppercased.
15688
15689         New module 'unictype/property-changes-when-casemapped'.
15690         * modules/unictype/property-changes-when-casemapped: New file.
15691         * lib/unictype/pr_changes_when_casemapped.c: New file.
15692         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15693         generated by gen-uni-tables.
15694         * modules/unictype/property-changes-when-casemapped-tests: New file.
15695         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15696         automatically generated by gen-uni-tables.
15697
15698         New module 'unictype/property-changes-when-casefolded'.
15699         * modules/unictype/property-changes-when-casefolded: New file.
15700         * lib/unictype/pr_changes_when_casefolded.c: New file.
15701         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15702         generated by gen-uni-tables.
15703         * modules/unictype/property-changes-when-casefolded-tests: New file.
15704         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15705         automatically generated by gen-uni-tables.
15706
15707         New module 'unictype/property-changes-when-titlecased'.
15708         * modules/unictype/property-changes-when-titlecased: New file.
15709         * lib/unictype/pr_changes_when_titlecased.c: New file.
15710         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15711         generated by gen-uni-tables.
15712         * modules/unictype/property-changes-when-titlecased-tests: New file.
15713         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15714         automatically generated by gen-uni-tables.
15715
15716         New module 'unictype/property-changes-when-uppercased'.
15717         * modules/unictype/property-changes-when-uppercased: New file.
15718         * lib/unictype/pr_changes_when_uppercased.c: New file.
15719         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15720         generated by gen-uni-tables.
15721         * modules/unictype/property-changes-when-uppercased-tests: New file.
15722         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15723         automatically generated by gen-uni-tables.
15724
15725         New module 'unictype/property-changes-when-lowercased'.
15726         * modules/unictype/property-changes-when-lowercased: New file.
15727         * lib/unictype/pr_changes_when_lowercased.c: New file.
15728         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15729         generated by gen-uni-tables.
15730         * modules/unictype/property-changes-when-lowercased-tests: New file.
15731         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15732         automatically generated by gen-uni-tables.
15733
15734         New module 'unictype/property-case-ignorable'.
15735         * modules/unictype/property-case-ignorable: New file.
15736         * lib/unictype/pr_case_ignorable.c: New file.
15737         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15738         by gen-uni-tables.
15739         * modules/unictype/property-case-ignorable-tests: New file.
15740         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15741         generated by gen-uni-tables.
15742
15743         New module 'unictype/property-cased'.
15744         * modules/unictype/property-cased: New file.
15745         * lib/unictype/pr_cased.c: New file.
15746         * lib/unictype/pr_cased.h: New file, automatically generated by
15747         gen-uni-tables.
15748         * modules/unictype/property-cased-tests: New file.
15749         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15750         gen-uni-tables.
15751
15752 2011-01-09  Bruno Haible  <bruno@clisp.org>
15753
15754         Update to Unicode 5.2.0.
15755         * lib/gen-uni-tables.c (output_predicate, output_category,
15756         output_combclass, output_bidi_category, output_decimal_digit_test,
15757         output_decimal_digit, output_digit_test, output_digit,
15758         output_numeric_test, output_numeric, output_mirror, output_scripts,
15759         output_scripts_byname, output_blocks, output_ident_category): Fix
15760         comment header.
15761         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15762         get_wbp.
15763         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15764         items.
15765         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15766         Changes_When_Lowercased, Changes_When_Uppercased,
15767         Changes_When_Titlecased, Changes_When_Casefolded,
15768         Changes_When_Casemapped.
15769         (is_property_alphabetic, is_property_default_ignorable_code_point):
15770         Update for Unicode 5.2.0.
15771         (is_property_cased, is_property_case_ignorable,
15772         is_property_changes_when_lowercased,
15773         is_property_changes_when_uppercased,
15774         is_property_changes_when_titlecased,
15775         is_property_changes_when_casefolded,
15776         is_property_changes_when_casemapped): New functions.
15777         (output_properties): Output also the properties cased, case_ignorable,
15778         changes_when_lowercased, changes_when_uppercased,
15779         changes_when_titlecased, changes_when_casefolded,
15780         changes_when_casemapped.
15781         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15782         Unicode TR#11 revision 17 -> 19.
15783         (LBP_CP): New enumeration value.
15784         (LBP_*): Adjust values accordingly.
15785         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15786         TR#14 revision 22 -> 24.
15787         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15788         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15789         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15790         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15791         is_WBP_MIDLETTER.
15792         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15793         the code1 and code2 of each composition rule.
15794         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15795         * lib/unicase/ignorable.h: Likewise.
15796         * lib/unicase/tocasefold.h: Likewise.
15797         * lib/unicase/tolower.h: Likewise.
15798         * lib/unicase/totitle.h: Likewise.
15799         * lib/unicase/toupper.h: Likewise.
15800         * lib/unictype/bidi_of.h: Likewise.
15801         * lib/unictype/blocks.h: Likewise.
15802         * lib/unictype/categ_C.h: Likewise.
15803         * lib/unictype/categ_Cf.h: Likewise.
15804         * lib/unictype/categ_Cn.h: Likewise.
15805         * lib/unictype/categ_L.h: Likewise.
15806         * lib/unictype/categ_Ll.h: Likewise.
15807         * lib/unictype/categ_Lm.h: Likewise.
15808         * lib/unictype/categ_Lo.h: Likewise.
15809         * lib/unictype/categ_Lu.h: Likewise.
15810         * lib/unictype/categ_M.h: Likewise.
15811         * lib/unictype/categ_Mc.h: Likewise.
15812         * lib/unictype/categ_Mn.h: Likewise.
15813         * lib/unictype/categ_N.h: Likewise.
15814         * lib/unictype/categ_Nd.h: Likewise.
15815         * lib/unictype/categ_Nl.h: Likewise.
15816         * lib/unictype/categ_No.h: Likewise.
15817         * lib/unictype/categ_P.h: Likewise.
15818         * lib/unictype/categ_Pd.h: Likewise.
15819         * lib/unictype/categ_Po.h: Likewise.
15820         * lib/unictype/categ_S.h: Likewise.
15821         * lib/unictype/categ_Sc.h: Likewise.
15822         * lib/unictype/categ_So.h: Likewise.
15823         * lib/unictype/categ_of.h: Likewise.
15824         * lib/unictype/combining.h: Likewise.
15825         * lib/unictype/ctype_alnum.h: Likewise.
15826         * lib/unictype/ctype_alpha.h: Likewise.
15827         * lib/unictype/ctype_graph.h: Likewise.
15828         * lib/unictype/ctype_lower.h: Likewise.
15829         * lib/unictype/ctype_print.h: Likewise.
15830         * lib/unictype/ctype_punct.h: Likewise.
15831         * lib/unictype/ctype_upper.h: Likewise.
15832         * lib/unictype/decdigit.h: Likewise.
15833         * lib/unictype/digit.h: Likewise.
15834         * lib/unictype/numeric.h: Likewise.
15835         * lib/unictype/pr_alphabetic.h: Likewise.
15836         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15837         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15838         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15839         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15840         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15841         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15842         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15843         * lib/unictype/pr_combining.h: Likewise.
15844         * lib/unictype/pr_composite.h: Likewise.
15845         * lib/unictype/pr_currency_symbol.h: Likewise.
15846         * lib/unictype/pr_dash.h: Likewise.
15847         * lib/unictype/pr_decimal_digit.h: Likewise.
15848         * lib/unictype/pr_deprecated.h: Likewise.
15849         * lib/unictype/pr_diacritic.h: Likewise.
15850         * lib/unictype/pr_extender.h: Likewise.
15851         * lib/unictype/pr_grapheme_base.h: Likewise.
15852         * lib/unictype/pr_grapheme_extend.h: Likewise.
15853         * lib/unictype/pr_grapheme_link.h: Likewise.
15854         * lib/unictype/pr_id_continue.h: Likewise.
15855         * lib/unictype/pr_id_start.h: Likewise.
15856         * lib/unictype/pr_ideographic.h: Likewise.
15857         * lib/unictype/pr_ignorable_control.h: Likewise.
15858         * lib/unictype/pr_logical_order_exception.h: Likewise.
15859         * lib/unictype/pr_lowercase.h: Likewise.
15860         * lib/unictype/pr_numeric.h: Likewise.
15861         * lib/unictype/pr_other_alphabetic.h: Likewise.
15862         * lib/unictype/pr_punctuation.h: Likewise.
15863         * lib/unictype/pr_sentence_terminal.h: Likewise.
15864         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15865         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15866         * lib/unictype/pr_unified_ideograph.h: Likewise.
15867         * lib/unictype/pr_uppercase.h: Likewise.
15868         * lib/unictype/pr_xid_continue.h: Likewise.
15869         * lib/unictype/pr_xid_start.h: Likewise.
15870         * lib/unictype/pr_zero_width.h: Likewise.
15871         * lib/unictype/scripts.h: Likewise.
15872         * lib/unictype/scripts_byname.gperf: Likewise.
15873         * lib/unictype/sy_java_ident.h: Likewise.
15874         * lib/unigbrk/gbrkprop.h: Likewise.
15875         * lib/unilbrk/lbrkprop1.h: Likewise.
15876         * lib/unilbrk/lbrkprop2.h: Likewise.
15877         * lib/unilbrk/lbrktables.h: Likewise.
15878         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15879         LBP_CP. Implement rule LB30.
15880         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15881         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15882         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15883         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15884         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15885         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15886         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15887         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15888         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15889         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15890         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15891         bits instead of 16 bits in the code1 and code2 of each composition
15892         rule.
15893         (uc_composition): Update for Unicode 5.2.0.
15894         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15895         * lib/uninorm/decomposition-table2.h: Likewise.
15896         * lib/uniwbrk/wbrkprop.h: Likewise.
15897         * tests/unicase/test-cased.c: Likewise.
15898         * tests/unicase/test-ignorable.c: Likewise.
15899         * tests/unicase/test-uc_tolower.c: Likewise.
15900         * tests/unicase/test-uc_totitle.c: Likewise.
15901         * tests/unicase/test-uc_toupper.c: Likewise.
15902         * tests/unictype/test-categ_C.c: Likewise.
15903         * tests/unictype/test-categ_Cf.c: Likewise.
15904         * tests/unictype/test-categ_Cn.c: Likewise.
15905         * tests/unictype/test-categ_L.c: Likewise.
15906         * tests/unictype/test-categ_Ll.c: Likewise.
15907         * tests/unictype/test-categ_Lm.c: Likewise.
15908         * tests/unictype/test-categ_Lo.c: Likewise.
15909         * tests/unictype/test-categ_Lu.c: Likewise.
15910         * tests/unictype/test-categ_M.c: Likewise.
15911         * tests/unictype/test-categ_Mc.c: Likewise.
15912         * tests/unictype/test-categ_Mn.c: Likewise.
15913         * tests/unictype/test-categ_N.c: Likewise.
15914         * tests/unictype/test-categ_Nd.c: Likewise.
15915         * tests/unictype/test-categ_Nl.c: Likewise.
15916         * tests/unictype/test-categ_No.c: Likewise.
15917         * tests/unictype/test-categ_P.c: Likewise.
15918         * tests/unictype/test-categ_Pd.c: Likewise.
15919         * tests/unictype/test-categ_Po.c: Likewise.
15920         * tests/unictype/test-categ_S.c: Likewise.
15921         * tests/unictype/test-categ_Sc.c: Likewise.
15922         * tests/unictype/test-categ_So.c: Likewise.
15923         * tests/unictype/test-ctype_alnum.c: Likewise.
15924         * tests/unictype/test-ctype_alpha.c: Likewise.
15925         * tests/unictype/test-ctype_graph.c: Likewise.
15926         * tests/unictype/test-ctype_lower.c: Likewise.
15927         * tests/unictype/test-ctype_print.c: Likewise.
15928         * tests/unictype/test-ctype_punct.c: Likewise.
15929         * tests/unictype/test-ctype_upper.c: Likewise.
15930         * tests/unictype/test-decdigit.h: Likewise.
15931         * tests/unictype/test-digit.h: Likewise.
15932         * tests/unictype/test-numeric.h: Likewise.
15933         * tests/unictype/test-pr_alphabetic.c: Likewise.
15934         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15935         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15936         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15937         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15938         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15939         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15940         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15941         * tests/unictype/test-pr_combining.c: Likewise.
15942         * tests/unictype/test-pr_composite.c: Likewise.
15943         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15944         * tests/unictype/test-pr_dash.c: Likewise.
15945         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15946         * tests/unictype/test-pr_deprecated.c: Likewise.
15947         * tests/unictype/test-pr_diacritic.c: Likewise.
15948         * tests/unictype/test-pr_extender.c: Likewise.
15949         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15950         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15951         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15952         * tests/unictype/test-pr_id_continue.c: Likewise.
15953         * tests/unictype/test-pr_id_start.c: Likewise.
15954         * tests/unictype/test-pr_ideographic.c: Likewise.
15955         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15956         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15957         * tests/unictype/test-pr_lowercase.c: Likewise.
15958         * tests/unictype/test-pr_numeric.c: Likewise.
15959         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15960         * tests/unictype/test-pr_punctuation.c: Likewise.
15961         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15962         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15963         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15964         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15965         * tests/unictype/test-pr_uppercase.c: Likewise.
15966         * tests/unictype/test-pr_xid_continue.c: Likewise.
15967         * tests/unictype/test-pr_xid_start.c: Likewise.
15968         * tests/unictype/test-pr_zero_width.c: Likewise.
15969         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15970         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15971         changed behaviour: line breaking is now disallowed between a letter
15972         or '=' and '('.
15973         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15974         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15975         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15976         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15977         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15978         lib/uniwidth/width.c.
15979         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15980         without comments, but with the original copyright notice.
15981         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15982         changes.
15983         * lib/unictype/categ_Cc.h: Likewise.
15984         * lib/unictype/categ_Co.h: Likewise.
15985         * lib/unictype/categ_Cs.h: Likewise.
15986         * lib/unictype/categ_Lt.h: Likewise.
15987         * lib/unictype/categ_Me.h: Likewise.
15988         * lib/unictype/categ_Pc.h: Likewise.
15989         * lib/unictype/categ_Pe.h: Likewise.
15990         * lib/unictype/categ_Pf.h: Likewise.
15991         * lib/unictype/categ_Pi.h: Likewise.
15992         * lib/unictype/categ_Ps.h: Likewise.
15993         * lib/unictype/categ_Sk.h: Likewise.
15994         * lib/unictype/categ_Sm.h: Likewise.
15995         * lib/unictype/categ_Z.h: Likewise.
15996         * lib/unictype/categ_Zl.h: Likewise.
15997         * lib/unictype/categ_Zp.h: Likewise.
15998         * lib/unictype/categ_Zs.h: Likewise.
15999         * lib/unictype/ctype_blank.h: Likewise.
16000         * lib/unictype/ctype_cntrl.h: Likewise.
16001         * lib/unictype/ctype_digit.h: Likewise.
16002         * lib/unictype/ctype_space.h: Likewise.
16003         * lib/unictype/ctype_xdigit.h: Likewise.
16004         * lib/unictype/mirror.h: Likewise.
16005         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16006         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16007         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16008         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16009         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16010         * lib/unictype/pr_bidi_control.h: Likewise.
16011         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16012         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16013         * lib/unictype/pr_bidi_pdf.h: Likewise.
16014         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16015         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16016         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16017         * lib/unictype/pr_format_control.h: Likewise.
16018         * lib/unictype/pr_hex_digit.h: Likewise.
16019         * lib/unictype/pr_hyphen.h: Likewise.
16020         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16021         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16022         * lib/unictype/pr_iso_control.h: Likewise.
16023         * lib/unictype/pr_join_control.h: Likewise.
16024         * lib/unictype/pr_left_of_pair.h: Likewise.
16025         * lib/unictype/pr_line_separator.h: Likewise.
16026         * lib/unictype/pr_math.h: Likewise.
16027         * lib/unictype/pr_non_break.h: Likewise.
16028         * lib/unictype/pr_not_a_character.h: Likewise.
16029         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16030         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16031         * lib/unictype/pr_other_id_continue.h: Likewise.
16032         * lib/unictype/pr_other_id_start.h: Likewise.
16033         * lib/unictype/pr_other_lowercase.h: Likewise.
16034         * lib/unictype/pr_other_math.h: Likewise.
16035         * lib/unictype/pr_other_uppercase.h: Likewise.
16036         * lib/unictype/pr_paired_punctuation.h: Likewise.
16037         * lib/unictype/pr_paragraph_separator.h: Likewise.
16038         * lib/unictype/pr_pattern_syntax.h: Likewise.
16039         * lib/unictype/pr_pattern_white_space.h: Likewise.
16040         * lib/unictype/pr_private_use.h: Likewise.
16041         * lib/unictype/pr_quotation_mark.h: Likewise.
16042         * lib/unictype/pr_radical.h: Likewise.
16043         * lib/unictype/pr_soft_dotted.h: Likewise.
16044         * lib/unictype/pr_space.h: Likewise.
16045         * lib/unictype/pr_titlecase.h: Likewise.
16046         * lib/unictype/pr_variation_selector.h: Likewise.
16047         * lib/unictype/pr_white_space.h: Likewise.
16048         * lib/unictype/sy_c_ident.h: Likewise.
16049         * lib/unictype/sy_c_whitespace.h: Likewise.
16050         * lib/unictype/sy_java_whitespace.h: Likewise.
16051         * modules/uni*/*: Bump version number of expected libunistring version.
16052         Reported by Simon Josefsson.
16053
16054 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16055
16056         useless-if-before-free: fix typo in --help and make the internal,
16057         automatic version date update process work once again.
16058         --help output contained a NUL character instead of the
16059         backslash-zero that was intended.  Also, the "must lie within
16060         the first 8 lines" line is on line 9, and hence not getting
16061         automatically updated.
16062         * build-aux/useless-if-before-free: Fix the former by adding a
16063         backslash, and the latter by condensing the three lines of what-it-does
16064         to a single line, leaving one line of slack for the future.
16065
16066 2011-01-09  Bruno Haible  <bruno@clisp.org>
16067
16068         uniwidth/width: Fix width of U+1D173..U+1D17A.
16069         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16070         symbolic_width, output_width_property_test): New functions.
16071         (main): Invoke output_nonspacing_property, output_width_property_test.
16072         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16073         U+1D173..U+1D17A.
16074         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16075         1.
16076         * modules/uniwidth/*: Bump version number of expected libunistring
16077         version.
16078         * modules/unilbrk/*: Likewise.
16079
16080 2011-01-08  Bruno Haible  <bruno@clisp.org>
16081
16082         uninorm tests: Preserve copyright of Unicode data file.
16083         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16084         Mention modifications.
16085
16086 2011-01-08  Bruno Haible  <bruno@clisp.org>
16087
16088         gen-uni-tables: Prepare for Unicode 5.2.0.
16089         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16090         (debug_output_lbp, output_lbp): Update.
16091
16092 2011-01-08  Bruno Haible  <bruno@clisp.org>
16093
16094         unilbrk: Clarify gen-uni-tables.c code.
16095         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16096         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16097         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16098
16099 2011-01-07  Bruno Haible  <bruno@clisp.org>
16100
16101         strtod: Restore errno when successfully parsing Infinity or NaN.
16102         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16103         restore the original errno.
16104
16105 2011-01-07  Bruno Haible  <bruno@clisp.org>
16106
16107         remove test: Avoid failure on HP-UX 11.
16108         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16109
16110 2011-01-07  Bruno Haible  <bruno@clisp.org>
16111
16112         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16113         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16114         error code.
16115
16116 2011-01-07  Pádraig Brady <P@draigBrady.com>
16117
16118         ignore-value: fixup comments, and add Eric Blake
16119         as an author since he rewrote the macros.
16120         * lib/ignore-value.h (ignore_value):  State that
16121         we now support aggregates.  Also specify exactly
16122         when the GCC warn_unused_result feature was added.
16123
16124 2011-01-06  Eric Blake  <eblake@redhat.com>
16125
16126         ignore-value: support aggregate types
16127         * lib/ignore-value.h (ignore_value): Provide separate gcc
16128         definition.
16129         * modules/ignore-value-tests: New test module.
16130         * tests/test-ignore-value.c: New test.
16131
16132         maint.mk: improve sc_prohibit_strcmp regex
16133         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16134         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16135         definition of STRNEQ.
16136
16137         signal: work around Haiku issue with SIGBUS
16138         * lib/siglist.h: Add comment.
16139         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16140         strsignal's favoring of SIGSEGV.
16141         * tests/test-signal.c (main): Avoid test failure.
16142         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16143         Reported by Scott McCreary.
16144
16145         maint.mk: add pre-release check to ensure submodule commits are public
16146         * top/maint.mk (public-submodule-commit): New rule.
16147         (submodule-checks): New variable.
16148         (alpha beta stable): Depend on the variable.
16149
16150 2011-01-05  Pádraig Brady <P@draigBrady.com>
16151         and Jim Meyering  <meyering@redhat.com>
16152
16153         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16154         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16155         (ATTRIBUTE_DEPRECATED): Define.
16156         (_ignore_case): New function.
16157         (ignore_value): New macro, to replace the old function.
16158         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16159         * modules/ignore-value (Depends-on): Add stdint.
16160
16161 2011-01-04  Eric Blake  <eblake@redhat.com>
16162
16163         doc: regenerate INSTALL
16164         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16165         @firstparagraphindent support, now that autoconf dropped it.
16166         (INSTALL_PRELUDE): Reinstate old macro.
16167         * doc/install.texi: Resync from autoconf.
16168         * doc/INSTALL: Reflect recent autoconf update.
16169         * doc/INSTALL.ISO: Likewise.
16170         * doc/INSTALL.UTF-8: Likewise.
16171         Reported by Karl Berry.
16172
16173 2011-01-04  Bruce Korb  <address@hidden>
16174
16175         git-version-gen: avoid a sub-shell
16176         * build-aux/git-version-gen: Redirect stderr in `...` via
16177         "exec 2>...", rather than via an added sub-shell.
16178
16179 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16180
16181         git-version-gen: use (...) rather than sh -c '...'
16182         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16183         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16184
16185 2011-01-03  Jim Meyering  <meyering@redhat.com>
16186
16187         git-version-gen: convert leading TABs to spaces
16188         * build-aux/git-version-gen: Expand leading TABs.
16189
16190         git-version-gen: handle failed "git rev-list"
16191         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16192         from git and proceeding as if it had succeeded but printed no SHA1
16193         checksums, suppress the diagnostic and handle the failure.
16194         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16195
16196         git-version-gen: include command name in one more diagnostic
16197         * build-aux/git-version-gen: When the required .tarball-version file
16198         was missing or unreadable, you might see the diagnostic from "cat",
16199         but no trace of the name of the invoking script.  Now, you still see
16200         the diagnostic from cat, but also get one from "git-version-gen: ".
16201         Inspired by a patch from Bruce Korb.
16202
16203         update-copyright: adjust test to match changed code
16204         * tests/test-update-copyright.sh: Change test's expected output
16205         to match new actual output.
16206
16207 2011-01-02  Bruno Haible  <bruno@clisp.org>
16208
16209         getlogin_r: Avoid test failure on HP-UX 11.
16210         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16211         ERANGE when the second argument is zero.
16212         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16213         portability problem.
16214
16215 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16216
16217         * build-aux/update-copyright: doc Simon's changes
16218
16219 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16220
16221         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16222         environment variable.
16223
16224 2011-01-02  Bruno Haible  <bruno@clisp.org>
16225
16226         unigbrk: Avoid gcc warnings.
16227         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16228         unused variable.
16229         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16230         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16231         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16232         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16233         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16234         Change type of first argument to 'const char *'.
16235         (main): Remove unused variable.
16236         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16237         type of first argument to 'const char *'.
16238         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16239         Likewise.
16240         (main): Change type of variable 's'.
16241         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16242         to 'int'.
16243
16244 2011-01-02  Bruno Haible  <bruno@clisp.org>
16245
16246         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16247         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16248         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16249         bug.
16250         * lib/pwrite.c: Undo 2010-12-31 patch.
16251         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16252
16253 2011-01-02  Bruno Haible  <bruno@clisp.org>
16254
16255         pread: Fix test whether it works.
16256         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16257
16258 2011-01-02  Bruno Haible  <bruno@clisp.org>
16259
16260         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16261         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16262         ends in "6". Don't require a specific month name. Try also the locale
16263         names found on HP-UX 11 and Solaris 7.
16264
16265 2011-01-02  Bruno Haible  <bruno@clisp.org>
16266
16267         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16268         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16269         C linkage.
16270         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16271
16272 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16273
16274         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16275         for consistency, since the "cluster" term is not used elsewhere.
16276         * lib/unigbrk.in.h: Update name.
16277         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16278         * lib/unigbrk/u16-grapheme-next.c: Update name.
16279         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16280         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16281         * lib/unigbrk/u32-grapheme-next.c: Update name.
16282         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16283         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16284         * lib/unigbrk/u8-grapheme-next.c: Update name.
16285         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16286         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16287         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16288         Suggested by Bruno Haible.
16289
16290 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16291
16292         Remove module 'u8-grapheme-len' as too redundant with
16293         'u8-grapheme-next'.
16294         * modules/unigbrk/u8-grapheme-len: Delete file.
16295         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16296         * lib/unigbrk.in.h: Remove prototype for deleted function.
16297         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16298         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16299
16300         Remove module 'u16-grapheme-len' as too redundant with
16301         'u16-grapheme-next'.
16302         * modules/unigbrk/u16-grapheme-len: Delete file.
16303         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16304         * lib/unigbrk.in.h: Remove prototype for deleted function.
16305         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16306         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16307
16308         Remove module 'u32-grapheme-len' as too redundant with
16309         'u32-grapheme-next'.
16310         * modules/unigbrk/u32-grapheme-len: Delete file.
16311         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16312         * lib/unigbrk.in.h: Remove prototype for deleted function.
16313         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16314         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16315
16316         Suggested by Bruno Haible.
16317
16318 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16319
16320         * unigbrk.in.h: Fix typo: "ben" => "been".
16321         Reported by Bruno Haible.
16322
16323 2011-01-01  Jim Meyering  <meyering@redhat.com>
16324
16325         maint: update almost all copyright ranges to include 2011
16326         Run the new "make update-copyright" rule.
16327
16328 2011-01-01  Jim Meyering  <meyering@redhat.com>
16329
16330         maint: update-copyright: exempt doc/INSTALL*
16331         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16332         since they are generated.  Suggested by Bruno Haible.
16333
16334 2011-01-01  Jim Meyering  <meyering@redhat.com>
16335
16336         maint: refine the update-copyright rule
16337         * Makefile (update-copyright): Also exclude any file that includes
16338         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16339         code that merely generates the comment.
16340
16341 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16342
16343         New module 'u8-grapheme-len'.
16344         * modules/unigbrk/u8-grapheme-len: New file.
16345         * modules/unigbrk/u8-grapheme-len-tests: New file.
16346         * lib/unigbrk.in.h: Add prototype for new function.
16347         * lib/unigbrk/u8-grapheme-len.c: New file.
16348         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16349
16350         New module 'u16-grapheme-len'.
16351         * modules/unigbrk/u16-grapheme-len: New file.
16352         * modules/unigbrk/u16-grapheme-len-tests: New file.
16353         * lib/unigbrk.in.h: Add prototype for new function.
16354         * lib/unigbrk/u16-grapheme-len.c: New file.
16355         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16356
16357         New module 'u32-grapheme-len'.
16358         * modules/unigbrk/u32-grapheme-len: New file.
16359         * modules/unigbrk/u32-grapheme-len-tests: New file.
16360         * lib/unigbrk.in.h: Add prototype for new function.
16361         * lib/unigbrk/u32-grapheme-len.c: New file.
16362         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16363
16364         New module 'u8-grapheme-next'.
16365         * modules/unigbrk/u8-grapheme-next: New file.
16366         * modules/unigbrk/u8-grapheme-next-tests: New file.
16367         * lib/unigbrk.in.h: Add prototype for new function.
16368         * lib/unigbrk/u8-grapheme-next.c: New file.
16369         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16370
16371         New module 'u16-grapheme-next'.
16372         * modules/unigbrk/u16-grapheme-next: New file.
16373         * modules/unigbrk/u16-grapheme-next-tests: New file.
16374         * lib/unigbrk.in.h: Add prototype for new function.
16375         * lib/unigbrk/u16-grapheme-next.c: New file.
16376         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16377
16378         New module 'u32-grapheme-next'.
16379         * modules/unigbrk/u32-grapheme-next: New file.
16380         * modules/unigbrk/u32-grapheme-next-tests: New file.
16381         * lib/unigbrk.in.h: Add prototype for new function.
16382         * lib/unigbrk/u32-grapheme-next.c: New file.
16383         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16384
16385         New module 'u8-grapheme-prev'.
16386         * modules/unigbrk/u8-grapheme-prev: New file.
16387         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16388         * lib/unigbrk.in.h: Add prototype for new function.
16389         * lib/unigbrk/u8-grapheme-prev.c: New file.
16390         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16391
16392         New module 'u16-grapheme-prev'.
16393         * modules/unigbrk/u16-grapheme-prev: New file.
16394         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16395         * lib/unigbrk.in.h: Add prototype for new function.
16396         * lib/unigbrk/u16-grapheme-prev.c: New file.
16397         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16398
16399         New module 'u32-grapheme-prev'.
16400         * modules/unigbrk/u32-grapheme-prev: New file.
16401         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16402         * lib/unigbrk.in.h: Add prototype for new function.
16403         * lib/unigbrk/u32-grapheme-prev.c: New file.
16404         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16405
16406         New module 'u8-grapheme-breaks'.
16407         * modules/unigbrk/u8-grapheme-breaks: New file.
16408         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16409         * lib/unigbrk.in.h: Add prototype for new function.
16410         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16411         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16412
16413         New module 'u16-grapheme-breaks'.
16414         * modules/unigbrk/u16-grapheme-breaks: New file.
16415         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16416         * lib/unigbrk.in.h: Add prototype for new function.
16417         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16418         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16419
16420         New module 'u32-grapheme-breaks'.
16421         * modules/unigbrk/u32-grapheme-breaks: New file.
16422         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16423         * lib/unigbrk.in.h: Add prototype for new function.
16424         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16425         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16426
16427         New module 'ulc-grapheme-breaks'.
16428         * modules/unigbrk/ulc-grapheme-breaks: New file.
16429         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16430         * m4/locale-ar.m4: New file.
16431         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16432         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16433         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16434
16435 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16436
16437         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16438         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16439         modified how this file was generated before I initially submitted
16440         the module, but failed to regenerate it.  This meant that several
16441         of the level2 entries were wrong.
16442         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16443         Remove the division-by-2 that is folded into the table now that
16444         gbrkprop.h has been regenerated properly.  Now -1 entries are
16445         handled correctly.
16446
16447         New module 'unigbrk/uc-gbrk-prop-tests'.
16448         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16449         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16450         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16451         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16452
16453 2011-01-01  Bruno Haible  <bruno@clisp.org>
16454
16455         Avoid use of hexadecimal escapes.
16456         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16457         instead of hexadecimal escapes.
16458
16459 2011-01-01  Jim Meyering  <meyering@redhat.com>
16460
16461         maint: new rule to update copyright year ranges
16462         * Makefile (update-copyright): New rule.
16463
16464         maint: indent with TABs in Makefile
16465         * Makefile: Expand leading sequences of spaces to TABs
16466
16467         version-etc: update the copyright year it reports
16468         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16469
16470 2010-12-31  Bruno Haible  <bruno@clisp.org>
16471
16472         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16473         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16474         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16475         zero.
16476
16477 2010-12-31  Bruno Haible  <bruno@clisp.org>
16478
16479         pwrite: Work around HP-UX 11.11 bug.
16480         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16481         works and set REPLACE_PWRITE if not.
16482         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16483         function.
16484         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16485
16486 2010-12-31  Bruno Haible  <bruno@clisp.org>
16487
16488         pread: Work around HP-UX 11 bugs.
16489         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16490         and set REPLACE_PREAD if not.
16491         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16492
16493 2010-12-31  Eric Blake  <eblake@redhat.com>
16494
16495         nl_langinfo: fix YESEXPR on Irix 6.5
16496         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16497         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16498         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16499         it.
16500
16501 2010-12-31  Bruno Haible  <bruno@clisp.org>
16502
16503         iconv: Document HP-UX 11 bug.
16504         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16505
16506 2010-12-31  Bruno Haible  <bruno@clisp.org>
16507
16508         ldexpl: Fix link error on HP-UX 11.
16509         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16510         LDEXPL_LIBM, using $ISNANL_LIBM.
16511
16512 2010-12-31  Eric Blake  <eblake@redhat.com>
16513
16514         ftello: avoid compilation failure with SunStudio c89
16515         * lib/ftello.c (ftello): Use lseek, not llseek.
16516
16517         tests: avoid failing coreutils tests on cygwin
16518         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16519         (create_exe_shims_): Return 0 when skipping.
16520
16521 2010-12-31  Bruno Haible  <bruno@clisp.org>
16522
16523         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16524         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16525
16526 2010-12-31  Bruno Haible  <bruno@clisp.org>
16527
16528         waitpid: Fix link error in C++ mode.
16529         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16530
16531 2010-12-31  Bruno Haible  <bruno@clisp.org>
16532
16533         isnan: Use GCC built-ins when possible.
16534         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16535         __builtin_isnan.
16536         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16537         (isnan): Define using GCC built-ins for GCC >= 4.0.
16538
16539 2010-12-31  Bruno Haible  <bruno@clisp.org>
16540
16541         isnand: Fix mistake.
16542         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16543         __builtin_isnand.
16544
16545 2010-12-31  Bruno Haible  <bruno@clisp.org>
16546
16547         open: Avoid C++ error on HP-UX 11.
16548         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16549
16550 2010-12-31  Bruno Haible  <bruno@clisp.org>
16551
16552         time_r: Add missing declarations on HP-UX 11.
16553         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16554         instead of HAVE_LOCALTIME_R.
16555         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16556         HAVE_LOCALTIME_R always.
16557         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16558         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16559         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16560         HAVE_LOCALTIME_R.
16561         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16562         * doc/posix-functions/localtime_r.texi: Likewise.
16563
16564 2010-12-29  Eric Blake  <eblake@redhat.com>
16565
16566         mountlist: tweak previous commit
16567         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16568         Reported by Paul Eggert.
16569
16570         mountlist: fix local drive detection on cygwin
16571         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16572         that works for cygwin.
16573
16574 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16575
16576         ftoastr, snprintf: ftoastr + snprintf module
16577         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16578         since the snprintf module now should be good enough here.
16579         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16580         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16581         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16582         GNULIB_SNPRINTF only for the test directory, and the latter
16583         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16584         seems to suffice by itself.
16585
16586 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16587
16588         alloca: one step towards thread-safety
16589         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16590         need for a static variable.  All callers changed.  This does not
16591         make the alloca replacement thread-safe, but it's one step.
16592
16593         tests: minor indenting change
16594         * tests/init.sh: Sync from coreutils housekeeping patch
16595         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16596         to keep lines within 80 columns.
16597
16598 2010-12-28  Jim Meyering  <meyering@redhat.com>
16599
16600         regex: don't infloop on persistent failing calloc
16601         * lib/regexec.c (build_trtable): Return failure indication upon
16602         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16603         In glibc, this was fixed for version 2.13:
16604         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16605
16606 2010-12-28  Bruno Haible  <bruno@clisp.org>
16607             Paul Eggert <eggert@cs.ucla.edu>
16608
16609         linkat: Make implementation robust against system behaviour variations.
16610         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16611         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16612         way, and to -2 if it needs a generic runtime test.
16613         * lib/linkat.c (solaris_optimized_link_immediate,
16614         solaris_optimized_link_follow): New functions.
16615         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16616         (check_same_link): Use it.
16617
16618 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16619
16620         New module 'unigbrk/base'.
16621         * modules/unigbrk/base: New file.
16622         * lib/unigbrk.in.h: New file.
16623
16624         New module 'unigbrk/uc-gbrk-prop'.
16625         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16626         * modules/unigbrk/uc-gbrk-prop: New file.
16627         * lib/unigbrk/gbrkprop.h: New file.
16628         * lib/unigbrk/uc-gbrk-prop.c: New file.
16629
16630         New module 'unigbrk/uc-is-grapheme-break'.
16631         * modules/unigbrk/uc-is-grapheme-break: New file.
16632         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16633         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16634         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16635         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16636         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16637
16638         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16639
16640 2010-12-27  Bruno Haible  <bruno@clisp.org>
16641
16642         linkat test: Avoid failure on Solaris 11 2010-11.
16643         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16644
16645 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16646
16647         utimens: work around glibc rounding bug on more platforms
16648         * lib/utimens.c (fdutimens): Work around rounding bug even if
16649         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16650         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16651
16652 2010-12-27  Bruno Haible  <bruno@clisp.org>
16653
16654         select tests: Improve comments.
16655         * tests/test-select.c (do_select): Add comments.
16656
16657 2010-12-27  Bruno Haible  <bruno@clisp.org>
16658
16659         select tests: Safer way of handling timeout.
16660         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16661         at every invocation.
16662
16663 2010-12-27  Bruno Haible  <bruno@clisp.org>
16664
16665         select tests: Use 'bool' where appropriate.
16666         * tests/test-select.c (connect_to_socket): Change argument type to
16667         'bool'.
16668
16669 2010-12-27  Bruno Haible  <bruno@clisp.org>
16670
16671         select tests: Use existing modules.
16672         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16673         (configure.ac): Don't test for unistd.h.
16674         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16675         declared in <unistd.h>.
16676
16677 2010-12-27  Bruno Haible  <bruno@clisp.org>
16678
16679         mbrtowc: Work around a Solaris 7 bug.
16680         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16681         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16682         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16683         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16684         MBRTOWC_NULL_ARG1_BUG.
16685         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16686         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16687         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16688         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16689
16690 2010-12-27  Jim Meyering  <meyering@redhat.com>
16691
16692         read-file.c: tweak syntax
16693         * lib/read-file.c (fread_file): Remove space after "*" in function
16694         definitions.
16695
16696 2010-12-27  Bruno Haible  <bruno@clisp.org>
16697
16698         times test: Avoid gcc warnings on OSF/1.
16699         * tests/test-times.c (main): Cast printf arguments from clock_t to
16700         'long int'.
16701
16702 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16703
16704         utimens: work around glibc rounding bug on older Linux kernels
16705         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16706         on Linux with a glibc whose utimes might not work, then work
16707         around a longstanding glibc bug involving rounding rather than
16708         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16709         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16710
16711 2010-12-26  Bruno Haible  <bruno@clisp.org>
16712
16713         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16714         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16715         _GL_CXXALIAS_SYS.
16716         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16717
16718 2010-12-26  Bruno Haible  <bruno@clisp.org>
16719
16720         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16721         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16722         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16723         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16724         looking for the declaration.
16725         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16726         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16727         problem.
16728         * doc/posix-functions/inet_pton.texi: Likewise.
16729
16730 2010-12-26  Bruno Haible  <bruno@clisp.org>
16731
16732         arpa_inet: Use the common idioms with C++ support.
16733         * lib/arpa_inet.in.h: Include c++defs.h.
16734         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16735         support.
16736         * modules/arpa_inet (Depends-on): Add c++defs.
16737         (Makefile.am): Substitute the contents of c++defs.h.
16738         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16739         * modules/arpa_inet-c++-tests: New file.
16740         * tests/test-arpa_inet-c++.cc: New file.
16741
16742 2010-12-25  Bruno Haible  <bruno@clisp.org>
16743
16744         Fix more C++ link errors on Solaris 8.
16745         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16746         $(LIB_EACCESS).
16747         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16748         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16749         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16750         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16751         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16752
16753 2010-12-25  Bruno Haible  <bruno@clisp.org>
16754
16755         printf-posix: Fix link error when a non-GCC compiler is used.
16756         * lib/stdio.in.h (printf): When not using GCC, override printf
16757         correctly.
16758         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16759
16760 2010-12-25  Bruno Haible  <bruno@clisp.org>
16761
16762         strerror_r-posix: Update doc.
16763         * doc/posix-functions/strerror_r.texi: Update doc about the return
16764         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16765
16766 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16767
16768         utimens: simplify the logic of the previous change
16769         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16770         This should not affect whether the test succeeds or fails.
16771
16772         utimens: configure better on hosts with NFS clock skew
16773         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16774         uses the clock of the local host.  It might use the clock of the
16775         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16776         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16777
16778 2010-12-25  Bruno Haible  <bruno@clisp.org>
16779
16780         ptsname test: Avoid failure on Solaris.
16781         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16782         open a pseudo-terminal; don't use BSD-style ptys.
16783         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16784
16785 2010-12-25  Bruno Haible  <bruno@clisp.org>
16786
16787         ptsname: Avoid ERANGE failure on some systems.
16788         * lib/ptsname.c (buffer): Increase size.
16789
16790 2010-12-25  Bruno Haible  <bruno@clisp.org>
16791
16792         rename, renameat: Avoid test failures at NFS mounted locations.
16793         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16794         so that subsequent mkdir calls succeed.
16795
16796 2010-12-25  Bruno Haible  <bruno@clisp.org>
16797
16798         iswblank: Fix C++ link error on Solaris 8.
16799         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16800         _GL_FUNCDECL_SYS.
16801
16802 2010-12-25  Bruno Haible  <bruno@clisp.org>
16803
16804         unistd: Fix C++ link error on Solaris 8.
16805         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16806
16807 2010-12-25  Bruno Haible  <bruno@clisp.org>
16808
16809         readlink doc: Mention an old glibc bug.
16810         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16811
16812 2010-12-25  Bruno Haible  <bruno@clisp.org>
16813
16814         fcntl-h: Fix for use of C++ on glibc systems.
16815         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16816         also on glibc systems in C++ mode.
16817         Reported by Gary V. Vaughan <gary@gnu.org>.
16818
16819 2010-12-25  Bruno Haible  <bruno@clisp.org>
16820
16821         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16822         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16823
16824 2010-12-25  Bruno Haible  <bruno@clisp.org>
16825
16826         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16827         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16828         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16829         test whether truncl works according to ISO C 99 with IEC 60559.
16830         * m4/truncl-ieee.m4: New file.
16831         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16832         m4/signbit.m4.
16833         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16834
16835 2010-12-25  Bruno Haible  <bruno@clisp.org>
16836
16837         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16838         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16839         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16840         test whether ceill works according to ISO C 99 with IEC 60559.
16841         * m4/ceill-ieee.m4: New file.
16842         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16843         m4/signbit.m4.
16844         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16845
16846 2010-12-25  Bruno Haible  <bruno@clisp.org>
16847
16848         Ensure all prerequisites of <wchar.h> are included.
16849         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16850         before <wchar.h>.
16851         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16852         gl_MBRLEN_NUL_RETVAL): Likewise.
16853         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16854         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16855         AC_FUNC_MBRTOWC): Likewise.
16856         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16857         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16858         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16859         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16860         Likewise.
16861         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16862         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16863         (gl_WCHAR_H): Improve comments.
16864         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16865
16866 2010-12-25  Bruno Haible  <bruno@clisp.org>
16867
16868         strtok_r: Fix C syntax error in autoconf macro.
16869         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16870         characters in test program.
16871
16872 2010-12-24  Bruno Haible  <bruno@clisp.org>
16873
16874         ceil, trunc, round: Fix gcc warnings.
16875         * lib/ceil.c (MIN): Undefine before redefining.
16876         * lib/trunc.c (MIN): Likewise.
16877         * lib/round.c (MIN): Likewise.
16878         Include <math.h> first.
16879
16880 2010-12-24  Bruno Haible  <bruno@clisp.org>
16881
16882         select tests: Avoid failures on OSF/1 5.1.
16883         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16884         failure of closing the last socket; it may fail with ECONNRESET.
16885
16886 2010-12-24  Eric Blake  <eblake@redhat.com>
16887
16888         stdint: avoid HP-UX 10.20 preprocessor bug
16889         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16890         than #if.
16891         * tests/test-floor2.c (main): Likewise.
16892         Reported by Peter O'Gorman.
16893
16894         pipe: make obsoletion transition easier
16895         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16896         * modules/pipe (Files): Include revived file.
16897         (Include): Drop reference, to mirror getdate's behavior.
16898
16899 2010-12-24  Bruno Haible  <bruno@clisp.org>
16900
16901         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16902         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16903         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16904         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16905
16906 2010-12-24  Bruno Haible  <bruno@clisp.org>
16907
16908         gethostname: Ensure declaration on NonStop Kernel.
16909         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16910         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16911
16912 2010-12-24  Bruno Haible  <bruno@clisp.org>
16913
16914         sys_select: Ensure all necessary types on NonStop Kernel.
16915         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16916         include <sys/time.h>.
16917         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16918         NonStop Kernel.
16919         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16920
16921 2010-12-24  Bruno Haible  <bruno@clisp.org>
16922
16923         sys_select: Remove unneeded include.
16924         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16925         have <sys/select.h>.
16926
16927 2010-12-24  Bruno Haible  <bruno@clisp.org>
16928
16929         gethostname: Provide a fallback for HOST_NAME_MAX.
16930         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16931         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16932         instead.
16933         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16934
16935 2010-12-24  Bruno Haible  <bruno@clisp.org>
16936
16937         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16938         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16939         (SA_RESTART): Likewise.
16940         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16941
16942 2010-12-24  Bruno Haible  <bruno@clisp.org>
16943
16944         signal: Define NSIG.
16945         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16946         * tests/test-signal.c (nsig): New variable.
16947         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16948
16949 2010-12-24  Bruno Haible  <bruno@clisp.org>
16950
16951         rename, renameat: Avoid test failures on OSF/1 5.1.
16952         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16953         alternative error codes.
16954         * tests/test-renameat.c (main): Likewise.
16955
16956 2010-12-24  Bruno Haible  <bruno@clisp.org>
16957
16958         *printf: Detect large precisions bug on Solaris 10/SPARC.
16959         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16960         by Paul Eggert.
16961         * tests/test-snprintf-posix.h (test_function): Add this test code here
16962         too.
16963         * tests/test-sprintf-posix.h (test_function): Likewise.
16964         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16965         * tests/test-vasprintf-posix.c (test_function): Likewise.
16966         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16967         around by gnulib.
16968         * doc/posix-functions/printf.texi: Likewise.
16969         * doc/posix-functions/snprintf.texi: Likewise.
16970         * doc/posix-functions/sprintf.texi: Likewise.
16971         * doc/posix-functions/vfprintf.texi: Likewise.
16972         * doc/posix-functions/vprintf.texi: Likewise.
16973         * doc/posix-functions/vsnprintf.texi: Likewise.
16974         * doc/posix-functions/vsprintf.texi: Likewise.
16975         * doc/posix-functions/dprintf.texi: Undo last commit.
16976         * doc/posix-functions/vdprintf.texi: Likewise.
16977
16978 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16979
16980         tests: port test-fdutimensat.c to Solaris 8
16981         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16982         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16983         On Solaris 8, it fails with errno == ENOSYS, because there is no
16984         futimens (so it can't use the fd), and there is no lutimens (so it
16985         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16986
16987         vsnprintf: make more consistent with snprintf; doc fixes
16988
16989         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16990         the byte count return problem was promoted from the snprintf-posix
16991         to the snprintf module.
16992         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16993         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16994         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16995         * tests/test-snprintf.c (main): Check the byte count returned.
16996         * tests/test-vsnprintf.c (main): Likewise.
16997
16998 2010-12-23  Eric Blake  <eblake@redhat.com>
16999
17000         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17001         * modules/sigpipe (License): Relax license.
17002
17003 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17004
17005         doc: document Solaris printf bug with large float precisions
17006         * doc/posix-functions/dprintf.texi (dprintf):
17007         * doc/posix-functions/fprintf.texi (fprintf):
17008         * doc/posix-functions/printf.texi (printf):
17009         * doc/posix-functions/snprintf.texi (snprintf):
17010         * doc/posix-functions/sprintf.texi (sprintf):
17011         * doc/posix-functions/vdprintf.texi (vdprintf):
17012         * doc/posix-functions/vfprintf.texi (vfprintf):
17013         * doc/posix-functions/vprintf.texi (vprintf):
17014         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17015         * doc/posix-functions/vsprintf.texi (vsprintf):
17016         Mention that these functions mishandle large floating point
17017         precisions on Solaris 10.  The same bug is also present in Solaris
17018         8, and I assume earlier.  This causes "cd gnulib-tests; make
17019         check" to fail on Solaris 8 (and I assume, later) when building
17020         the latest coreutils, in test-vasprintf-posix's call to
17021         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17022         the wide flavors (e.g., wprintf) so this patch just updates the
17023         documentation for the narrow ones.
17024
17025         test-posixtm.c: add two tests
17026         * tests/test-posixtm.c: Add two tests, to highlight the
17027         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17028         around this bug; this is merely to document it.
17029
17030 2010-12-22  Bruno Haible  <bruno@clisp.org>
17031
17032         getlogin_r: Work around portability problem on OSF/1.
17033         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17034         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17035         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17036         test for a truncated result.
17037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17038         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17039         * modules/getlogin_r (Depends-on): Add memchr.
17040         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17041
17042 2010-12-22  Bruno Haible  <bruno@clisp.org>
17043
17044         ptsname: Avoid test failure on OSF/1 5.1.
17045         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17046         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17047         (same_slave): New function.
17048         (main): Use it to compare ptsname's result with the expected file name.
17049
17050 2010-12-22  Bruno Haible  <bruno@clisp.org>
17051
17052         Port extended stdio modules to HP NonStop Kernel.
17053         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17054         macros.
17055         * lib/fbufmode.c: Update comments.
17056         * lib/fflush.c: Likewise.
17057         * lib/fpurge.c: Likewise.
17058         * lib/freadable.c: Likewise.
17059         * lib/freadahead.c: Likewise.
17060         * lib/freading.c: Likewise.
17061         * lib/freadptr.c: Likewise.
17062         * lib/freadseek.c: Likewise.
17063         * lib/fseeko.c: Likewise.
17064         * lib/fseterr.c: Likewise.
17065         * lib/fwritable.c: Likewise.
17066         * lib/fwriting.c: Likewise.
17067         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17068
17069 2010-12-22  Bruno Haible  <bruno@clisp.org>
17070
17071         ttyname_r: Work around bug on OSF/1 5.1.
17072         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17073         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17074         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17075         present.
17076         * lib/ttyname_r.c (ttyname_r): Update comments.
17077
17078 2010-12-22  Bruno Haible  <bruno@clisp.org>
17079
17080         round: Implement result sign according to IEEE 754.
17081         * lib/round.c (MIN, MINUS_ZERO): New macros.
17082         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17083         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17084         * tests/test-round-ieee.c (main): Likewise.
17085         * tests/test-roundl-ieee.c (main): Likewise.
17086
17087         trunc: Implement result sign according to IEEE 754.
17088         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17089         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17090         * tests/test-trunc2.c: Include minus-zero.h.
17091         (MINUS_ZERO): New macro.
17092         (trunc_reference): Keep in sync with lib/trunc.c.
17093         * tests/test-truncf2.c: Include minus-zero.h.
17094         (MINUS_ZERO): New macro.
17095         (truncf_reference): Keep in sync with lib/trunc.c.
17096         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17097         * tests/test-trunc-ieee.c (main): Likewise.
17098         * tests/test-truncl-ieee.c (main): Likewise.
17099
17100         ceil: Implement result sign according to IEEE 754.
17101         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17102         (FUNC): Return -0.0 for -1 < x < 0.
17103         * tests/test-ceil2.c: Include minus-zero.h.
17104         (MINUS_ZERO): New macro.
17105         (ceil_reference): Keep in sync with lib/ceil.c.
17106         * tests/test-ceilf2.c: Include minus-zero.h.
17107         (MINUS_ZERO): New macro.
17108         (ceilf_reference): Keep in sync with lib/ceil.c.
17109         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17110         * tests/test-ceil-ieee.c (main): Likewise.
17111         * tests/test-ceill-ieee.c (main): Likewise.
17112
17113         floor: Implement result sign according to IEEE 754.
17114         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17115         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17116         * tests/test-floorf2.c (floorf_reference): Likewise.
17117         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17118         * tests/test-floor-ieee.c (main): Likewise.
17119         * tests/test-floorl-ieee.c (main): Likewise.
17120
17121 2010-12-22  Bruno Haible  <bruno@clisp.org>
17122
17123         getaddrinfo: Update doc.
17124         * doc/posix-functions/gai_strerror.texi: Return type is also different
17125         on AIX and HP-UX.
17126
17127 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17128
17129         getaddrinfo, inet_ntop: Update doc for Solaris.
17130         * doc/posix-functions/gai_strerror.texi: Return type is also an
17131         issue on Solaris 9 and earlier.
17132         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17133         on Solaris 10 and earlier.
17134
17135 2010-12-21  Bruno Haible  <bruno@clisp.org>
17136
17137         New module 'roundl-ieee'.
17138         * modules/roundl-ieee: New file.
17139         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17140         test whether roundl works according to ISO C 99 with IEC 60559.
17141         * m4/roundl-ieee.m4: New file.
17142         * modules/roundl-ieee-tests: New file.
17143         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17144         * tests/test-roundl.c (main): Remove signbit tests.
17145         * modules/roundl-tests (Depends-on): Remove signbit.
17146         * doc/posix-functions/roundl.texi: Mention the new module.
17147
17148 2010-12-21  Bruno Haible  <bruno@clisp.org>
17149
17150         New module 'truncl-ieee'.
17151         * modules/truncl-ieee: New file.
17152         * modules/truncl-ieee-tests: New file.
17153         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17154         * tests/test-truncl.c (main): Remove signbit tests.
17155         * modules/truncl-tests (Depends-on): Remove signbit.
17156         * doc/posix-functions/truncl.texi: Mention the new module.
17157
17158 2010-12-21  Bruno Haible  <bruno@clisp.org>
17159
17160         New module 'ceill-ieee'.
17161         * modules/ceill-ieee: New file.
17162         * modules/ceill-ieee-tests: New file.
17163         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17164         * tests/test-ceill.c (main): Remove signbit tests.
17165         * modules/ceill-tests (Depends-on): Remove signbit.
17166         * doc/posix-functions/ceill.texi: Mention the new module.
17167
17168 2010-12-21  Bruno Haible  <bruno@clisp.org>
17169
17170         New module 'floorl-ieee'.
17171         * modules/floorl-ieee: New file.
17172         * modules/floorl-ieee-tests: New file.
17173         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17174         * tests/test-floorl.c (main): Remove signbit tests.
17175         * modules/floorl-tests (Depends-on): Remove signbit.
17176         * doc/posix-functions/floorl.texi: Mention the new module.
17177
17178 2010-12-21  Bruno Haible  <bruno@clisp.org>
17179
17180         New module 'round-ieee'.
17181         * modules/round-ieee: New file.
17182         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17183         whether round works according to ISO C 99 with IEC 60559.
17184         * m4/round-ieee.m4: New file.
17185         * modules/round-ieee-tests: New file.
17186         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17187         * tests/test-round1.c (main): Remove signbit tests.
17188         * modules/round-tests (Depends-on): Remove 'signbit'.
17189         * doc/posix-functions/round.texi: Mention the new module.
17190
17191 2010-12-21  Bruno Haible  <bruno@clisp.org>
17192
17193         New module 'trunc-ieee'.
17194         * modules/trunc-ieee: New file.
17195         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17196         whether trunc works according to ISO C 99 with IEC 60559.
17197         * m4/trunc-ieee.m4: New file.
17198         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17200         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17201         * modules/trunc-ieee-tests: New file.
17202         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17203         * tests/test-trunc1.c (main): Remove signbit tests.
17204         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17205         * doc/posix-functions/trunc.texi: Mention the new module.
17206
17207 2010-12-21  Bruno Haible  <bruno@clisp.org>
17208
17209         New module 'ceil-ieee'.
17210         * modules/ceil-ieee: New file.
17211         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17212         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17213         ISO C 99 with IEC 60559.
17214         * m4/ceil-ieee.m4: New file.
17215         * modules/ceil (Files): Add lib/ceil.c.
17216         (Depends-on): Add 'float'.
17217         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17218         * lib/math.in.h (ceil): New declaration.
17219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17220         REPLACE_CEIL.
17221         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17222         * modules/ceil-ieee-tests: New file.
17223         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17224         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17225         * doc/posix-functions/ceil.texi: Mention the new module.
17226
17227 2010-12-21  Bruno Haible  <bruno@clisp.org>
17228
17229         New module 'floor-ieee'.
17230         * modules/floor-ieee: New file.
17231         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17232         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17233         ISO C 99 with IEC 60559.
17234         * m4/floor-ieee.m4: New file.
17235         * modules/floor (Files): Add lib/floor.c.
17236         (Depends-on): Add 'float'.
17237         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17238         * lib/math.in.h (floor): New declaration.
17239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17240         REPLACE_FLOOR.
17241         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17242         * modules/floor-ieee-tests: New file.
17243         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17244         * tests/test-math-c++.cc: Check the signature of 'floor'.
17245         * doc/posix-functions/floor.texi: Mention the new module.
17246
17247 2010-12-21  Bruno Haible  <bruno@clisp.org>
17248
17249         New module 'roundf-ieee'.
17250         * modules/roundf-ieee: New file.
17251         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17252         test whether roundf works according to ISO C 99 with IEC 60559.
17253         * m4/roundf-ieee.m4: New file.
17254         * modules/roundf-ieee-tests: New file.
17255         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17256         * tests/test-roundf1.c (main): Remove signbit tests.
17257         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17258         * doc/posix-functions/roundf.texi: Mention the new module.
17259
17260 2010-12-21  Bruno Haible  <bruno@clisp.org>
17261
17262         New module 'truncf-ieee'.
17263         * modules/truncf-ieee: New file.
17264         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17265         test whether truncf works according to ISO C 99 with IEC 60559.
17266         * m4/truncf-ieee.m4: New file.
17267         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17269         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17270         * modules/truncf-ieee-tests: New file.
17271         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17272         * tests/test-truncf1.c (main): Remove signbit tests.
17273         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17274         * doc/posix-functions/truncf.texi: Mention the new module.
17275
17276 2010-12-21  Bruno Haible  <bruno@clisp.org>
17277
17278         New module 'ceilf-ieee'.
17279         * modules/ceilf-ieee: New file.
17280         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17281         test whether ceilf works according to ISO C 99 with IEC 60559.
17282         * m4/ceilf-ieee.m4: New file.
17283         * modules/ceilf-ieee-tests: New file.
17284         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17285         * tests/test-ceilf1.c (main): Remove signbit tests.
17286         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17287         * doc/posix-functions/ceilf.texi: Mention the new module.
17288
17289 2010-12-21  Bruno Haible  <bruno@clisp.org>
17290
17291         New module 'floorf-ieee'.
17292         * modules/floorf-ieee: New file.
17293         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17294         test whether floorf works according to ISO C 99 with IEC 60559.
17295         * m4/floorf-ieee.m4: New file.
17296         * modules/floorf-ieee-tests: New file.
17297         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17298         * tests/test-floorf1.c (main): Remove signbit tests.
17299         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17300         * doc/posix-functions/floorf.texi: Mention the new module.
17301
17302 2010-12-21  Bruno Haible  <bruno@clisp.org>
17303
17304         Support for minus zero in autoconf macros.
17305         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17306         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17307         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17308         * tests/minus-zero.h: Update comments.
17309
17310 2010-12-21  Bruno Haible  <bruno@clisp.org>
17311
17312         Tests for module 'ceil'.
17313         * modules/ceil-tests: New file.
17314         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17315         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17316
17317 2010-12-21  Bruno Haible  <bruno@clisp.org>
17318
17319         Tests for module 'floor'.
17320         * modules/floor-tests: New file.
17321         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17322         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17323
17324 2010-12-21  Bruno Haible  <bruno@clisp.org>
17325
17326         math: Fix indentation.
17327         * lib/math.in.h (floorf): Fix indentation.
17328
17329 2010-12-21  Bruno Haible  <bruno@clisp.org>
17330
17331         Fix cross-compilation guesses on Solaris.
17332         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17333         not match "solaris2.10".
17334         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17335         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17336         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17337
17338 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17339
17340         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17341         This fixes a problem observed with the latest coreutils snapshot
17342         that caused a test to fail on Solaris 8.  src/csplit.c's call
17343         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17344         earlier, instead of returning the number of bytes that would have
17345         been generated; this causes csplit to incorrectly report memory
17346         exhaustion.
17347         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17348         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17349         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17350         comments to match.
17351         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17352         Fix typo in matching older versions of Solaris: "solaris2.10"
17353         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17354         only for guessing while cross-compiling.
17355         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17356
17357 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17358
17359         ftoastr: fix comment again
17360         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17361         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17362         Also, simplify example a bit by using flags = 0.
17363
17364 2010-12-20  Bruno Haible  <bruno@clisp.org>
17365
17366         round*, trunc*: Update documentation regarding glibc.
17367         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17368         * doc/posix-functions/round.texi: Likewise.
17369         * doc/posix-functions/roundl.texi: Likewise.
17370         * doc/posix-functions/truncf.texi: Likewise.
17371         * doc/posix-functions/trunc.texi: Likewise.
17372         * doc/posix-functions/truncl.texi: Likewise.
17373
17374 2010-12-20  Bruno Haible  <bruno@clisp.org>
17375
17376         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17377         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17378         * doc/posix-functions/round.texi: Likewise.
17379         * doc/posix-functions/roundl.texi: Likewise.
17380
17381 2010-12-20  Bruno Haible  <bruno@clisp.org>
17382
17383         ttyname_r: Add missing declaration on HP-UX 11.
17384         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17385         HAVE_TTYNAME_R.
17386         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17387         declared. Set HAVE_TTYNAME_R always.
17388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17389         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17390         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17391         HAVE_TTYNAME_R.
17392         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17393
17394 2010-12-20  Bruno Haible  <bruno@clisp.org>
17395
17396         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17397         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17398         * doc/posix-functions/getlogin_r.texi: Likewise.
17399         * tests/test-getlogin.c: Include <errno.h>.
17400         (main): Avoid test failure on HP-UX 11.11.
17401         * tests/test-getlogin_r.c (main): Likewise.
17402
17403 2010-12-20  Bruno Haible  <bruno@clisp.org>
17404
17405         getlogin_r: Add missing declaration on HP-UX 11.
17406         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17407         declared also when it exists as a function.
17408         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17409
17410 2010-12-20  Bruno Haible  <bruno@clisp.org>
17411
17412         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17413         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17414         through wcrtomb.
17415
17416 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17417
17418         ftoastr: fix comment
17419         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17420         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17421
17422 2010-12-19  Bruno Haible  <bruno@clisp.org>
17423
17424         isnan: Ensure it is a macro.
17425         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17426         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17427         Solaris.
17428
17429 2010-12-19  Bruno Haible  <bruno@clisp.org>
17430
17431         ldexpl test: Fix link error on OSF/1 5.1.
17432         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17433
17434 2010-12-19  Bruno Haible  <bruno@clisp.org>
17435
17436         wctype: Make it work in C++ mode on OSF/1 5.1.
17437         * lib/wctype.in.h (iswblank): Declare but not define here.
17438         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17439         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17440         * modules/wctype (Files): Add lib/iswblank.c.
17441
17442 2010-12-19  Bruno Haible  <bruno@clisp.org>
17443
17444         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17445         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17446         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17447
17448 2010-12-19  Bruno Haible  <bruno@clisp.org>
17449
17450         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17451         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17452         _POSIX_PII_SOCKET.
17453         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17454         * doc/posix-functions/recvfrom.texi: Likewise.
17455         * doc/posix-functions/send.texi: Likewise.
17456         * doc/posix-functions/sendto.texi: Likewise.
17457
17458 2010-12-19  Bruno Haible  <bruno@clisp.org>
17459
17460         tcgetsid: Add missing declaration on OSF/1 5.1.
17461         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17462         HAVE_TCGETSID.
17463         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17464         Don't set HAVE_TCGETSID.
17465         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17466         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17467         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17468         HAVE_TCGETSID.
17469         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17470
17471 2010-12-19  Bruno Haible  <bruno@clisp.org>
17472
17473         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17474         * lib/stdio.in.h: During the include_next statement, let recursive
17475         includes of this file include only the system header file.
17476
17477 2010-12-19  Bruno Haible  <bruno@clisp.org>
17478
17479         iconv_open: Fix regression from 2010-12-04.
17480         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17481         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17482
17483 2010-12-19  Bruno Haible  <bruno@clisp.org>
17484
17485         stdbool test: Avoid a gcc warning.
17486         * tests/test-stdbool.c (main): Fail if e1 is false.
17487         Reported by Jim Meyering.
17488
17489 2010-12-19  Jim Meyering  <meyering@redhat.com>
17490
17491         setenv: restore to working order
17492         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17493         mistakenly removed.
17494         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17495         HAVE_SETENV.
17496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17497         HAVE_SETENV.
17498
17499 2010-12-19  Bruno Haible  <bruno@clisp.org>
17500
17501         Document some different function declarations on OSF/1 5.1.
17502         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17503         * doc/posix-functions/inet_ntop.texi: Likewise.
17504         * doc/posix-functions/gethostname.texi: Likewise.
17505         * lib/unistd.in.h (gethostname): Update comment.
17506
17507 2010-12-19  Bruno Haible  <bruno@clisp.org>
17508
17509         doc: Mention vasprintf-posix module.
17510         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17511         the 'vasprintf-posix' module.
17512         * doc/glibc-functions/vasprintf.texi: Likewise.
17513
17514 2010-12-19  Bruno Haible  <bruno@clisp.org>
17515
17516         unsetenv: Add missing declaration on OSF/1 5.1.
17517         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17518         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17519         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17521         not HAVE_UNSETENV.
17522         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17523         HAVE_UNSETENV.
17524         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17525
17526 2010-12-19  Bruno Haible  <bruno@clisp.org>
17527
17528         setenv: Add missing declaration on OSF/1 5.1.
17529         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17530         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17531         declared. Don't set HAVE_SETENV.
17532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17533         not HAVE_SETENV.
17534         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17535         HAVE_SETENV.
17536         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17537
17538 2010-12-19  Bruno Haible  <bruno@clisp.org>
17539
17540         nl_langinfo tests: Avoid gcc warning.
17541         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17542
17543 2010-12-19  Bruno Haible  <bruno@clisp.org>
17544
17545         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17546         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17547         _GL_CXXALIAS_SYS.
17548
17549 2010-12-19  Bruno Haible  <bruno@clisp.org>
17550
17551         stdbool: Relax test.
17552         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17553         address to 'bool' work in static initializer, for compilers other than
17554         GCC.
17555
17556 2010-12-19  Bruno Haible  <bruno@clisp.org>
17557
17558         ftello: Add missing declaration on OSF/1 5.1.
17559         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17560         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17562         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17563         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17564
17565 2010-12-19  Bruno Haible  <bruno@clisp.org>
17566
17567         fseeko: Add missing declaration on OSF/1 5.1.
17568         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17569         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17571         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17572         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17573
17574 2010-12-19  Bruno Haible  <bruno@clisp.org>
17575
17576         fchdir: Add missing declaration on OSF/1 5.1.
17577         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17580         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17581         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17582
17583 2010-12-19  Bruno Haible  <bruno@clisp.org>
17584
17585         relocatable-prog-wrapper: Separate from relocatable-prog.
17586         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17587         uninstall-relocwrapper rule here.
17588         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17589         Reported by Ian Beckwith <ianb@erislabs.net>.
17590
17591 2010-12-19  Bruno Haible  <bruno@clisp.org>
17592
17593         unistr/u8-mbsnlen: Add missing dependency.
17594         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17595         Reported by Ian Beckwith <ianb@erislabs.net>.
17596
17597 2010-12-19  Bruno Haible  <bruno@clisp.org>
17598
17599         iconv: Make it possible again to use this module without 'iconv-h'.
17600         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17601         if it is not defined.
17602         Reported by Ian Beckwith <ianb@erislabs.net>.
17603
17604 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17605
17606         acl: port to Solaris 8 when copying from tmpfs to ufs
17607         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17608         error number.  Problem observed on Solaris 8 with latest
17609         coreutils, with "mv A B", where A is on a tmpfs file system and B
17610         is on a ufs file system.  This caused coreutils' mv/part-symlink
17611         test to fail.
17612
17613         tests: set fail=0 at start
17614         * tests/init.sh (setup_): Move fail=0 initialization here ...
17615         (mktempd_): ... from here, so that tests can rely on fail being
17616         set to 0 initially.  This fixes a problem in coreutils; see:
17617         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17618
17619 2010-12-18  Bruno Haible  <bruno@clisp.org>
17620
17621         memmem-simple: Stylistic changes.
17622         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17623         Fix preprocessor directive indentation.
17624
17625 2010-12-15  Pádraig Brady <P@draigBrady.com>
17626
17627         memmem, memmem-simple: reorganize and expand empty needle check
17628         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17629         functional checks to memmem-simple so that one has a fully functional
17630         memmem by using just this module.
17631         Restrict the performance only check to the memmem module.
17632         Also expand the empty needle check to ensure the correct
17633         pointer is returned, not just a non NULL pointer.
17634         * doc/glibc-functions/memmem.texi: Rearrange the portability
17635         documentation to correlate with the rearranged checks.
17636         Clarify exactly how the memmem and memmem-simple modules
17637         relate to each other.
17638
17639 2010-12-15  Pádraig Brady <P@draigBrady.com>
17640             Bruno Haible  <bruno@clisp.org>
17641
17642         Improve cross-compilation guesses for uClibc.
17643         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17644         that uClibc does not have the glibc bug.
17645         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17646         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17647
17648 2010-12-14  Eric Blake  <eblake@redhat.com>
17649
17650         configmake: provide fallbacks for oldest supported autotools
17651         * m4/configmake.m4: New file.
17652         * modules/configmake (Files): Ship it.
17653         (configure.ac): Use it to guarantee fallbacks.
17654
17655 2010-12-13  Pádraig Brady <P@draigBrady.com>
17656
17657         read-file: Improve handling of large files
17658         * lib/read-file.c (fread_file): Minimize realloc()s
17659         for regular files, and better manage sizes around SIZE_MAX.
17660
17661 2010-12-13  Eric Blake  <eblake@redhat.com>
17662
17663         cloexec, fcntl: relax license
17664         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17665         consent from all contributors.
17666         * modules/fcntl (License): Likewise.
17667
17668 2010-12-10  Bruno Haible  <bruno@clisp.org>
17669
17670         Tests for module 'pipe-posix'.
17671         * modules/pipe-posix-tests: New file.
17672         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17673
17674 2010-12-10  Bruno Haible  <bruno@clisp.org>
17675
17676         pipe-posix: Make it work in C++ mode.
17677         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17678         (pipe): Use common idiom, not a macro definition.
17679         * lib/pipe.c: New file.
17680         * m4/pipe.m4: New file.
17681         * modules/pipe-posix (Description): Enhance.
17682         (Files): Add lib/pipe.c, m4/pipe.m4.
17683         (configure.ac): Invoke gl_FUNC_PIPE.
17684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17685         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17686         * tests/test-unistd-c++.cc: Check the signature of pipe.
17687
17688 2010-12-10  Bruno Haible  <bruno@clisp.org>
17689
17690         Rename module 'pipe' to 'spawn-pipe'.
17691         * modules/spawn-pipe: New file, renamed from modules/pipe.
17692         (Files, configure.ac, Makefile.am): Update.
17693         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17694         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17695         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17696         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17697         "spawn-pipe.h" instead of "pipe.h".
17698         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17699         to gl_SPAWN_PIPE.
17700         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17701         (Files, Makefile.am): Update.
17702         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17703         Update.
17704         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17705         Include "spawn-pipe.h" instead of "pipe.h".
17706         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17707         * lib/javacomp.c: Likewise.
17708         * lib/javaversion.c: Likewise.
17709         * lib/pipe-filter-gi.c: Likewise.
17710         * lib/pipe-filter-ii.c: Likewise.
17711         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17712         * modules/javacomp (Depends-on): Likewise.
17713         * modules/javaversion (Depends-on): Likewise.
17714         * modules/pipe-filter-gi (Depends-on): Likewise.
17715         * modules/pipe-filter-ii (Depends-on): Likewise.
17716         * MODULES.html.sh (Executing programs): Update.
17717         * NEWS: Mention the change.
17718
17719 2010-12-10  Eric Blake  <eblake@redhat.com>
17720
17721         pipe-posix: new module
17722         * modules/pipe-posix: New file.
17723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17724         (gl_UNISTD_H): Check for declaration.
17725         * modules/unistd (Makefile.am): Substitute it.
17726         * lib/unistd.in.h (pipe): Provide it for mingw.
17727         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17728         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17729
17730 2010-12-07  Bruno Haible  <bruno@clisp.org>
17731
17732         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17733         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17734         u8_strcmp_gnu.
17735         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17736
17737 2010-12-06  Bruno Haible  <bruno@clisp.org>
17738
17739         Update internal documentation.
17740         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17741
17742 2010-12-04  Bruno Haible  <bruno@clisp.org>
17743
17744         Put more information about failed tests into the test return codes.
17745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17746         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17747         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17748         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17750         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17751         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17752         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17753         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17755         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17756         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17757         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17758         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17759         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17760         returns a bit mask.
17761         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17762         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17763         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17764         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17765         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17766         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17769         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17771         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17772         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17773         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17774         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17775         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17776         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17777         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17778         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17779         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17780         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17781         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17782         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17783         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17784         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17785         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17786         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17787         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17788         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17789         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17790         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17791         gl_PRINTF_PRECISION): Likewise.
17792         * m4/regex.m4 (gl_REGEX): Likewise.
17793         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17794         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17795         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17796         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17799         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17800         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17801         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17802         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17803         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17804         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17805         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17806         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17807         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17808         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17809         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17810         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17812         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17813         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17814         enumerated value.
17815         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17816
17817 2010-12-04  Bruno Haible  <bruno@clisp.org>
17818
17819         Update for Solaris 11 2010-11.
17820         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17821         Express, released in November 2010.
17822
17823 2010-12-04  Bruno Haible  <bruno@clisp.org>
17824
17825         nproc: Relax license.
17826         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17827         and Paul Eggert.
17828         Requested by Ludovic Courtès <ludo@gnu.org>.
17829
17830 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17831
17832         utimecmp: fine-grained src to nearby coarse-grained dest
17833
17834         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17835         and the source is on a file system with higher-resolution time
17836         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17837         not work, and the time stamps are close together, the algorithm to
17838         determine the exact resolution from the read-back mtime was buggy:
17839         it had a "!=" where it should have had an "==".  This bug has been
17840         in the code ever since it was introduced to gnulib.
17841         Problem reported by Dan Jacobson in
17842         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17843
17844 2010-11-30  Bruno Haible  <bruno@clisp.org>
17845
17846         strerror_r-posix: Fix autoconf test.
17847         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17848
17849 2010-11-28  Bruno Haible  <bruno@clisp.org>
17850             Paul Eggert  <eggert@cs.ucla.edu>
17851
17852         Tests for module 'getdomainname'.
17853         * modules/getdomainname-tests: New file.
17854         * tests/test-getdomainname.c: New file, based on
17855         tests/test-gethostname.c.
17856
17857 2010-11-28  Bruno Haible  <bruno@clisp.org>
17858             Paul Eggert  <eggert@cs.ucla.edu>
17859
17860         getdomainname: Use the system function when possible.
17861         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17862         (getdomainname): Replace if needed. Provide the declaration if it is
17863         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17864         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17865         (getdomainname): When the system has getdomainname, call the system
17866         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17867         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17868         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17869         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17870         the function if its second argument is of type 'int' or if it is found
17871         in libnsl.
17872         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17873         <sys/systeminfo.h> and sysinfo().
17874         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17876         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17877         HAVE_GETDOMAINNAME.
17878         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17879         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17880         * doc/glibc-functions/getdomainname.texi: Document the problems with
17881         the getdomainname declaration.
17882
17883 2010-11-28  Bruno Haible  <bruno@clisp.org>
17884
17885         sys_socket: Ensure ss_family field on AIX.
17886         * lib/sys_socket.in.h (ss_family): New macro definition.
17887         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17888         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17889         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17890         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17891         * modules/sys_socket (Makefile.am): Substitute
17892         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17893         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17894
17895 2010-11-27  Bruno Haible  <bruno@clisp.org>
17896
17897         readline: Improve configure output.
17898         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17899         "checking for readline..." result understandable.
17900
17901 2010-11-27  Bruno Haible  <bruno@clisp.org>
17902
17903         *printf-posix: Detect a bug on Solaris 10/x86.
17904         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17905         for floating-point output.
17906         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17907         directive.
17908         * tests/test-snprintf-posix.h (test_function): Likewise.
17909         * tests/test-sprintf-posix.h (test_function): Likewise.
17910         * tests/test-vasprintf-posix.c (test_function): Likewise.
17911         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17912         * doc/posix-functions/printf.texi: Likewise.
17913         * doc/posix-functions/snprintf.texi: Likewise.
17914         * doc/posix-functions/sprintf.texi: Likewise.
17915         * doc/posix-functions/vfprintf.texi: Likewise.
17916         * doc/posix-functions/vprintf.texi: Likewise.
17917         * doc/posix-functions/vsnprintf.texi: Likewise.
17918         * doc/posix-functions/vsprintf.texi: Likewise.
17919         * doc/glibc-functions/obstack_printf.texi: Likewise.
17920         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17921
17922 2010-11-27  Bruno Haible  <bruno@clisp.org>
17923
17924         Fix link error when module libunistring-optional is in use.
17925         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17926         * modules/striconveha-tests (Makefile.am): Likewise.
17927
17928 2010-11-27  Bruno Haible  <bruno@clisp.org>
17929
17930         regex: Mention link dependencies.
17931         * modules/regex (Link): New section.
17932         * modules/rpmatch (Link): Likewise.
17933         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17934
17935 2010-11-27  Bruno Haible  <bruno@clisp.org>
17936
17937         ftoastr: Fix compilation error on Solaris.
17938         * lib/ftoastr.c: Include <config.h>.
17939
17940 2010-11-27  Bruno Haible  <bruno@clisp.org>
17941
17942         getloadavg: Update documentation.
17943         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17944
17945 2010-11-27  Bruno Haible  <bruno@clisp.org>
17946
17947         sys_socket: Fix test whether the functions are declared.
17948         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17949         not <sys/select.h>.
17950
17951 2010-11-27  Bruno Haible  <bruno@clisp.org>
17952
17953         getpass: Make sure to get system declaration on some platforms.
17954         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17955         gl_USE_SYSTEM_EXTENSIONS.
17956         * modules/getpass (Depends-on): Add extensions.
17957
17958 2010-11-26  Bruno Haible  <bruno@clisp.org>
17959
17960         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17961         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17962         'iconv' module is present.
17963         (ICONV_CONST): New macro.
17964         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17965         ICONV_CONST.
17966         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17967         set ICONV_CONST.
17968         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17969         here.
17970         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17971         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17972         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17973         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17974         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17975         present.
17976
17977 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17978
17979         ftoastr: comment fix
17980         * lib/ftoastr.c: "little" -> "little or no" in comment
17981
17982 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17983
17984         stdint: port to GCC 4.3 + OSX + Octave
17985         On this platform, stdint.h is buggy and defines int64_t to long
17986         long int.  The replacement defined it to long int, causing
17987         problems with C++ style name mangling.  Instead, trust the system
17988         definition if INT64_MAX is defined, and likewise for the unsigned
17989         variant.   Problem reported by Jarno Rajahalme in
17990         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17991         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17992         and don't mess with int64_t and INT64_MAX in this case.
17993         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17994
17995 2010-11-24  Bruno Haible  <bruno@clisp.org>
17996
17997         doc: Corrections regarding MacOS X 10.4 and 10.5.
17998         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17999         MacOS X.
18000         Reported by Simon Josefsson.
18001
18002 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18003
18004         Uninstall ".bin" files installed by relocwrapper.
18005         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18006         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18007         unless it is already there.
18008
18009 2010-11-21  Bruno Haible  <bruno@clisp.org>
18010
18011         Update for NetBSD 5.0.
18012         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18013         NetBSD; the test fails on NetBSD 5.0.
18014         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18015         about NetBSD.
18016
18017 2010-11-21  Bruno Haible  <bruno@clisp.org>
18018
18019         Update for HP-UX 11.23 and HP-UX 11.31.
18020         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18021         HP-UX.
18022
18023 2010-11-21  Bruno Haible  <bruno@clisp.org>
18024
18025         Update for MacOS X 10.5.
18026         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18027         MacOS X; the test fails on MacOS X 10.5.8.
18028         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18029         about MacOS X.
18030
18031 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18032
18033         bootstrap: add bootstrap_sync option.
18034         See discussion at
18035         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18037         * build-aux/bootstrap: Accept --bootstrap-sync to update
18038         bootstrap if it is not identical to the local gnulib's
18039         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18040         enable this by default.  Accept --no-bootstrap-sync to disable
18041         it.
18042
18043 2010-11-20  Bruno Haible  <bruno@clisp.org>
18044
18045         Ensure that <features.h> is included before __GLIBC__ is tested.
18046         * lib/printf-parse.h: Include <features.h>.
18047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18048         Reported by Mike Frysinger <vapier@gentoo.org>.
18049
18050         Ensure that <features.h> is included before __GLIBC__ is tested.
18051         * lib/wchar.in.h: Include <features.h>.
18052         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18053         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18054         Reported by Mike Frysinger <vapier@gentoo.org>.
18055
18056         Ensure that <features.h> is included before __GLIBC__ is tested.
18057         * lib/arpa_inet.in.h: Include <features.h>.
18058         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18059         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18060         Reported by Mike Frysinger <vapier@gentoo.org>.
18061
18062         Ensure that <features.h> is included before __GLIBC__ is tested.
18063         * build-aux/link-warning.h: Include <features.h>.
18064         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18065         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18066         Reported by Mike Frysinger <vapier@gentoo.org>.
18067
18068         Ensure that <features.h> is included before __GLIBC__ is tested.
18069         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18070         Reported by Mike Frysinger <vapier@gentoo.org>.
18071
18072 2010-11-20  Bruno Haible  <bruno@clisp.org>
18073
18074         memmem: Fix autoconf test.
18075         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18076
18077 2010-11-20  Bruno Haible  <bruno@clisp.org>
18078
18079         Port to uClibc.
18080         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18081         * lib/fcntl.in.h: Likewise.
18082         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18083         * lib/mbrtowc.c (mbrtowc): Likewise.
18084         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18085         * lib/strerror_r.c: Likewise.
18086         * lib/unistr/u8-strnlen.c: Likewise.
18087         * lib/vasnprintf.c (decimal_point_char): Likewise.
18088         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18089         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18090         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18091         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18092         * tests/test-sigaction.c (handler, main): Likewise.
18093         * lib/freading.h: Treat uClibc like a non-glibc platform.
18094         * lib/freading.c: Likewise.
18095         * lib/gettext.h: Likewise.
18096         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18097         Likewise.
18098         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18099         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18100         * lib/propername.c (proper_name_utf8): Likewise.
18101         * lib/spawn.in.h: Likewise.
18102         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18103         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18104         mem_cd_iconveh_internal): Likewise.
18105         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18106         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18107         strstr, strcasestr): Likewise.
18108         * lib/unicodeio.c (unicode_to_mb): Likewise.
18109         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18110         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18111         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18112         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18113         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18114         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18115         * lib/unistr/u8-stpncpy.c: Likewise.
18116         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18117         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18119         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18120         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18121         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18122         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18125         Likewise.
18126         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18127         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18128         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18130         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18131         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18132         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18133         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18134         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18135         * tests/test-striconveha.c (main): Likewise.
18136         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18137         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18138         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18139         * doc/posix-functions/getline.texi: Likewise.
18140         Reported by Mike Frysinger <vapier@gentoo.org>.
18141
18142 2010-11-20  Bruno Haible  <bruno@clisp.org>
18143
18144         nproc: Fix condition.
18145         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18146         HAVE_PTHREAD_AFFINITY_NP.
18147
18148 2010-11-20  Bruno Haible  <bruno@clisp.org>
18149
18150         Fix a comment.
18151         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18152
18153 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18154
18155         ftoastr: don't assume snprintf
18156         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18157         Implement a subset of snprintf here, by using sprintf safely.
18158         * modules/ftoastr (Depends-on): Remove snprintf.
18159
18160 2010-11-19  Jim Meyering  <meyering@redhat.com>
18161
18162         test-rename.h: fix compilation failure
18163         * tests/test-rename.h (test_rename): Add omitted "}".
18164
18165 2010-11-17  Jim Meyering  <meyering@redhat.com>
18166
18167         maint.mk: add a URL discussing the no-@acronym policy
18168         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18169
18170 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18171
18172         ftoastr: depend on snprintf, improve comments
18173         * lib/ftoastr.c: Also mention Loitsch's draft.
18174         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18175         needed in the current implementation, but it might simplify
18176         speeding up the code later.
18177         * modules/ftoastr: Depend on snprintf; this improves portability.
18178         Suggested by Bruno Haible in the same email.
18179
18180         ftoastr: port to hosts lacking strtof and strtold
18181         Problem reported by Bruno Haible in
18182         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18183         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18184         environment and strtold (and presumably strtof) are not available.
18185         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18186         (configure.ac): Require gl_C99_STRTOLD.
18187
18188 2010-11-18  Bruno Haible  <bruno@clisp.org>
18189
18190         c-strtold: Avoid link error on AIX 7.
18191         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18192         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18193         (gl_C_STRTOLD): Test whether strtold_l exists.
18194         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18195
18196 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18197
18198         intprops: new macro INT_BITS_STRLEN_BOUND
18199         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18200         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18201         not exposed.  Also, it uses a slightly tighter bound than before;
18202         though this makes no practical difference, we might as well be as
18203         tight as we easily can.
18204
18205         ftoastr: new module, for lossless conversion of floats to short strings
18206         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18207         * modules/ftoastr: New files.
18208
18209 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18210
18211         bootstrap: port to Solaris sed
18212         * build-aux/bootstrap (get_version): Port to Solaris sed.
18213         See Ralf Wildenhues's note in
18214         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18215
18216 2010-11-14  Jim Meyering  <meyering@redhat.com>
18217
18218         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18219         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18220         and move definition closer to sole use.
18221
18222 2010-11-13  Jim Meyering  <meyering@redhat.com>
18223
18224         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18225         Now we require at least autoconf-2.59, which means the work-around
18226         is no longer needed.
18227         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18228         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18229         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18230         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18231         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18232
18233 2010-11-13  Bruno Haible  <bruno@clisp.org>
18234
18235         rename, renameat: Avoid test failures at NFS mounted locations.
18236         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18237         functions.
18238         (test_rename): Use assert_nonexistent.
18239         * tests/test-rename.c: Include <dirent.h>.
18240         * tests/test-renameat.c: Likewise.
18241         Reported by Gary V. Vaughan <gary@gnu.org>.
18242
18243         rename, renameat: Document Linux bug with NFS
18244         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18245         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18246         * doc/posix-functions/renameat.texi: Likewise.
18247         Suggested by Eric Blake.
18248
18249 2010-11-13  Bruno Haible  <bruno@clisp.org>
18250
18251         rename test: Add comments.
18252         * tests/test-rename.h (test_rename): Add structure and comments.
18253
18254 2010-11-13  Eric Blake  <eblake@redhat.com>
18255
18256         maintainer-makefile: cover a few more files
18257         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18258         scripts generated within C files, for libvirt.
18259
18260 2010-11-13  Bruno Haible  <bruno@clisp.org>
18261
18262         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18263         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18264         character, return the number of bytes that belong together, not always
18265         1.
18266         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18267         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18268         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18269         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18270         number of bytes of an invalid character.
18271         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18272         (main): Invoke it.
18273         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18274         results.
18275         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18276         malformed byte sequences.
18277         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18278         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18279         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18280         Reported by Ben Pfaff and Paolo Bonzini.
18281
18282 2010-11-13  Bruno Haible  <bruno@clisp.org>
18283
18284         openat: Work around glibc bug with fchownat() and empty file names.
18285         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18286         (gl_FUNC_FCHOWNAT): Invoke it.
18287         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18288         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18289         Reported by Gary V. Vaughan <gary@gnu.org>.
18290
18291 2010-11-13  Bruno Haible  <bruno@clisp.org>
18292
18293         openat: Ensure autoconf macro ordering.
18294         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18295         gl_USE_SYSTEM_EXTENSIONS.
18296         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18297
18298 2010-11-13  Bruno Haible  <bruno@clisp.org>
18299
18300         Update comments.
18301         * lib/unistr/u8-check.c: Update file name in comments.
18302         * lib/unistr/u8-mblen.c: Likewise.
18303         * lib/unistr/u8-prev.c: Likewise.
18304         * lib/unistr/u8-strmblen.c: Likewise.
18305         * lib/unistr/u8-strmbtouc.c: Likewise.
18306
18307 2010-11-13  Jim Meyering  <meyering@redhat.com>
18308
18309         tests: avoid test failure on Solaris 10 due to lack of PATH export
18310         * tests/test-update-copyright.sh: Don't forget to export PATH.
18311
18312         init.sh: ensure that IFS is defined, just in case...
18313         * tests/init.sh (setup_): Ensure that IFS is defined,
18314         so that saving and restoring it works as expected.  This
18315         appears to be useful at least for an old version of dash
18316         from a long time ago (RH 6).  See here for details:
18317         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18318
18319         maint.mk: tighten "test a == b" check
18320         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18321         test to files that contain something like #!/bin/sh.
18322         Without this, coreutils would get two false positives in
18323         the comments of C source files.
18324
18325 2010-11-12  Eric Blake  <eblake@redhat.com>
18326
18327         bootstrap: fix typo in previous attempt
18328         * build-aux/bootstrap (buildreq): Correct the grouping.
18329         Reported by Paul Eggert.
18330
18331         maintainer-makefile: prohibit test x == x
18332         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18333         Based on a report by Matthias Bolte.
18334
18335         bootstrap: allow FreeBSD gzip
18336         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18337         which has no '.' and goes to stderr.
18338         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18339         Reported by Matthias Bolte.
18340
18341         maintainer-makefile: check for i18n setup
18342         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18343         will likely work.
18344
18345 2010-11-12  Bruno Haible  <bruno@clisp.org>
18346
18347         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18348         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18349         * lib/nanosleep.c (nanosleep): Likewise.
18350
18351 2010-11-11  Bruno Haible  <bruno@clisp.org>
18352
18353         fcntl-h: Fix for use of C++ on glibc systems.
18354         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18355         also on glibc systems in C++ mode.
18356         Reported by Gary V. Vaughan <gary@gnu.org>.
18357
18358 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18359
18360         mknod: avoid false failure with dash
18361         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18362
18363 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18364
18365         unlink: Fix "is it should" typo in diagnostic.
18366         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18367         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18368
18369 2010-11-11  Bruno Haible  <bruno@clisp.org>
18370
18371         Tests for module 'strerror_r-posix'.
18372         * modules/strerror_r-posix-tests: New file.
18373         * tests/test-strerror_r.c: New file.
18374         * tests/test-string-c++.cc: Check the signature of strerror_r.
18375
18376         New module 'strerror_r-posix'.
18377         * lib/string.in.h (strerror_r): New declaration.
18378         * lib/strerror_r.c: New file.
18379         * m4/strerror_r.m4: New file.
18380         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18381         of strerror_r.
18382         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18383         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18384         * modules/strerror_r-posix: New file.
18385         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18386         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18387         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18388         portability problems.
18389
18390 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18391
18392         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18393         line is also considered for output. Quoted function name in shell
18394         command, so temporary files for functions like MyClass::operator()
18395         are removed correctly without errors.
18396
18397 2010-11-09  Bruno Haible  <bruno@clisp.org>
18398
18399         * doc/posix-functions/strerror.texi: List more failing platforms.
18400
18401         * doc/posix-functions/strerror.texi: Add a comment.
18402
18403 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18404
18405         fdopendir: fix bug on MacOS X when low on file descriptors
18406
18407         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18408         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18409         All callers changed.
18410         (fdopendir): Invoke save_cwd at the top level, not after using
18411         multiple dup() calls to use up file descriptors.  Then retry
18412         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18413         less than the maximum number of open file descriptors, because
18414         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18415         on Mac OS X 10.6.4 for tar 1.24
18416         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18417         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18418         and for tar 1.25
18419         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18420
18421 2010-11-07  Bruno Haible  <bruno@clisp.org>
18422
18423         vasnprintf: Support I flag on glibc systems.
18424         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18425         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18426         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18427         snprintf function.
18428         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18429         glibc systems.
18430         * tests/test-vasnprintf-posix3.c: New file.
18431         * modules/vasnprintf-posix-tests (Files): Add it.
18432         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18433
18434 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18435
18436         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18437         * MODULES.html.sh: For compiler warnings, use name
18438         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18439
18440 2010-11-05  Eric Blake  <eblake@redhat.com>
18441
18442         ceil, floor: avoid spurious failure with icc
18443         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18444         [denormals-as-zero] when optimizing without -mieee-fp option.
18445         * tests/test-floorf2.c (floorf_reference): Likewise.
18446         * tests/test-ceilf1.c (dummy): New function.
18447         (main): Use it to outsmart icc's optimization.
18448         * tests/test-floorf1.c (dummy, main): Likewise.
18449
18450         tests: require working signbit
18451         * modules/ceilf-tests (Depends-on): Add signbit.
18452         * modules/ceill-tests (Depends-on): Likewise.
18453         * modules/floorf-tests (Depends-on): Likewise.
18454         * modules/floorl-tests (Depends-on): Likewise.
18455         * modules/round-tests (Depends-on): Likewise.
18456         * modules/roundf-tests (Depends-on): Likewise.
18457         * modules/roundl-tests (Depends-on): Likewise.
18458         * modules/trunc-tests (Depends-on): Likewise.
18459         * modules/truncf-tests (Depends-on): Likewise.
18460         * modules/truncl-tests (Depends-on): Likewise.
18461
18462         strtod: work around icc bug
18463         * lib/strtod.c (minus_zero): Define to working value.
18464         (strtod): Use it to avoid icc bug.
18465
18466         copysign: enhance tests
18467         * modules/copysign-tests (Files): Add minus-zero.h.
18468         * tests/test-copysign.c (main): Also test zeros.
18469
18470 2010-11-04  Eric Blake  <eblake@redhat.com>
18471
18472         ceil, floor, round, trunc: enhance tests of -0
18473         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18474         * tests/test-ceill.c (main): Likewise.
18475         * tests/test-floorf1.c (main): Likewise.
18476         * tests/test-floorl.c (main): Likewise.
18477         * tests/test-round1.c (main): Likewise.
18478         * tests/test-roundf1.c (main): Likewise.
18479         * tests/test-roundl.c (main): Likewise.
18480         * tests/test-trunc1.c (main): Likewise.
18481         * tests/test-truncf1.c (main): Likewise.
18482         * tests/test-truncl.c (main): Likewise.
18483
18484 2010-11-04  Eric Blake  <eblake@redhat.com>
18485
18486         frexp, tests: work around ICC bug with -zero
18487         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18488         works with more compilers.
18489         * tests/minus-zero.h: New file.
18490         * modules/ceilf-tests (Files): Include it.
18491         * modules/ceill-tests (Files): Likewise.
18492         * modules/floorf-tests (Files): Likewise.
18493         * modules/floorl-tests (Files): Likewise.
18494         * modules/frexp-nolibm-tests (Files): Likewise.
18495         * modules/frexp-tests (Files): Likewise.
18496         * modules/frexpl-nolibm-tests (Files): Likewise.
18497         * modules/frexpl-tests (Files): Likewise.
18498         * modules/isnan-tests (Files): Likewise.
18499         * modules/isnand-nolibm-tests (Files): Likewise.
18500         * modules/isnand-tests (Files): Likewise.
18501         * modules/isnanf-nolibm-tests (Files): Likewise.
18502         * modules/isnanf-tests (Files): Likewise.
18503         * modules/isnanl-nolibm-tests (Files): Likewise.
18504         * modules/isnanl-tests (Files): Likewise.
18505         * modules/round-tests (Files): Likewise.
18506         * modules/roundf-tests (Files): Likewise.
18507         * modules/roundl-tests (Files): Likewise.
18508         * modules/ldexpl-tests (Files): Likewise.
18509         * modules/signbit-tests (Files): Likewise.
18510         * modules/snprintf-posix-tests (Files): Likewise.
18511         * modules/sprintf-posix-tests (Files): Likewise.
18512         * modules/strtod-tests (Files): Likewise.
18513         * modules/trunc-tests (Files): Likewise.
18514         * modules/truncf-tests (Files): Likewise.
18515         * modules/truncl-tests (Files): Likewise.
18516         * modules/vsnprintf-posix-tests (Files): Likewise.
18517         * modules/vsprintf-posix-tests (Files): Likewise.
18518         * modules/vasnprintf-posix-tests (Files): Likewise.
18519         * modules/vasprintf-posix-tests (Files): Likewise.
18520         * tests/test-ceilf1.c (main): Use it.
18521         * tests/test-ceill.c (main): Likewise.
18522         * tests/test-floorf1.c (main): Likewise.
18523         * tests/test-floorl.c (main): Likewise.
18524         * tests/test-frexp.c (main): Likewise.
18525         * tests/test-frexpl.c (main): Likewise.
18526         * tests/test-isnan.c (main): Likewise.
18527         * tests/test-isnand.h (main): Likewise.
18528         * tests/test-isnanf.h (main): Likewise.
18529         * tests/test-isnanl.h (main): Likewise.
18530         * tests/test-ldexpl.c (main): Likewise.
18531         * tests/test-round.c (main): Likewise.
18532         * tests/test-roundf.c (main): Likewise.
18533         * tests/test-roundl.c (main): Likewise.
18534         * tests/test-signbit.c (test_signbitf, test_signbitd)
18535         (test_signbitl): Likewise.
18536         * tests/test-snprintf-posix.h (test_function): Likewise.
18537         * tests/test-sprintf-posix.h (test_function): Likewise.
18538         * tests/test-strtod.c (main): Likewise.
18539         * tests/test-trunc1.c (main): Likewise.
18540         * tests/test-truncf1.c (main): Likewise.
18541         * tests/test-truncl.c (main): Likewise.
18542
18543         isnanl: work around icc bug
18544         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18545
18546 2010-11-03  Eric Blake  <eblake@redhat.com>
18547
18548         tests: fix compiler warnings
18549         * tests/test-getopt.h (test_getopt): Fix condition.
18550         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18551         * tests/test-pipe2.c (main): Likewise.
18552         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18553
18554         utimens: fix broken m4 test
18555         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18556
18557 2010-10-28  Bruno Haible  <bruno@clisp.org>
18558
18559         posix_spawn*, getdtablesize: Relax license.
18560         * modules/posix_spawn (License): Change to LGPLv2+.
18561         * modules/posix_spawnp (License): Likewise.
18562         * modules/posix_spawn-internal (License): Likewise.
18563         * modules/posix_spawnattr_init (License): Likewise.
18564         * modules/posix_spawnattr_getflags (License): Likewise.
18565         * modules/posix_spawnattr_setflags (License): Likewise.
18566         * modules/posix_spawnattr_getpgroup (License): Likewise.
18567         * modules/posix_spawnattr_setpgroup (License): Likewise.
18568         * modules/posix_spawnattr_getschedparam (License): Likewise.
18569         * modules/posix_spawnattr_setschedparam (License): Likewise.
18570         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18571         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18572         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18573         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18574         * modules/posix_spawnattr_getsigmask (License): Likewise.
18575         * modules/posix_spawnattr_setsigmask (License): Likewise.
18576         * modules/posix_spawnattr_destroy (License): Likewise.
18577         * modules/posix_spawn_file_actions_init (License): Likewise.
18578         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18579         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18580         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18581         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18582         * modules/getdtablesize (License): Likewise.
18583         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18584
18585 2010-10-26  Bruno Haible  <bruno@clisp.org>
18586
18587         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18588         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18589         Cygwin and mingw.
18590         Suggested by Eric Blake.
18591
18592 2010-10-26  Bruno Haible  <bruno@clisp.org>
18593
18594         stdio: Work around compilation error due to renameat() on Solaris 10.
18595         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18596         * lib/renameat.c: Don't include <unistd.h> here.
18597         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18598         Reported by Paul Eggert and Eric Blake.
18599
18600 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18601
18602         renameat: port to Solaris 10, which declares renameat in unistd.h
18603
18604         * lib/renameat.c: Include unistd.h before stdio.h, because
18605         Solaris 10 declares renameat in unistd.h.  Problem encountered
18606         when building GNU tar 1.24 on Solaris 10.
18607
18608 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18609
18610         fdopendir: fix C89 compilation
18611         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18612         compilers.
18613
18614 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18615
18616         inttostr: simplify by removing unnecessary redundancy
18617         * lib/anytostr.c: Don't include verify.h.
18618         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18619         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18620         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18621         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18622         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18623         Likewise.
18624         * modules/inttostr (Depends-on): Remove 'verify'.
18625
18626 2010-10-23  Bruno Haible  <bruno@clisp.org>
18627
18628         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18629         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18630         Reported by Eric Blake.
18631
18632 2010-10-23  Bruno Haible  <bruno@clisp.org>
18633
18634         Tests: Fix LOCALE_JA on MirBSD 10.
18635         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18636         to an UTF-8 locale.
18637         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18638         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18639         Reported by Eric Blake.
18640
18641 2010-10-21  Bruno Haible  <bruno@clisp.org>
18642
18643         nl_langinfo test: Avoid test failure on NetBSD 5.
18644         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18645         Reported by Eric Blake.
18646
18647 2010-10-21  Eric Blake  <eblake@redhat.com>
18648
18649         c-stack: work around libsigsegv 2.8 bug
18650         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18651         overflow on at least PowerPC64.
18652
18653 2010-10-17  Bruno Haible  <bruno@clisp.org>
18654
18655         userspec: Drop redundant file.
18656         * modules/userspec (Files): Remove lib/inttostr.h.
18657
18658 2010-10-17  Bruno Haible  <bruno@clisp.org>
18659
18660         nl_langinfo tests: Silence some warnings.
18661         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18662         Reported by Jim Meyering.
18663
18664 2010-10-17  Bruno Haible  <bruno@clisp.org>
18665
18666         Make use of GCC's attribute __alloc_size__.
18667         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18668         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18669         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18670         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18671         __alloc_size__.
18672         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18673         Suggested by Jim Meyering.
18674
18675 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18676
18677         bootstrap: anchor .gitignore entries.
18678         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18679         with...
18680         (insert_vc_ignore): ... this new function, which prepends `/' to
18681         all .gitignore entries before passing them to
18682         insert_sorted_if_absent.
18683
18684 2010-10-16  Bruno Haible  <bruno@clisp.org>
18685
18686         nextafter: Fix configure check.
18687         * modules/nextafter (configure.ac): Correct expected prototype.
18688
18689 2010-10-16  Bruno Haible  <bruno@clisp.org>
18690
18691         termios: Update documentation.
18692         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18693
18694 2010-10-16  Bruno Haible  <bruno@clisp.org>
18695
18696         tests: Make them compile with TinyCC.
18697         * tests/test-strstr.c (main): Remove parentheses around array
18698         initializer.
18699
18700 2010-10-15  Eric Blake  <eblake@redhat.com>
18701
18702         ignore-value: make header idempotent
18703         * lib/ignore-value.h: Add double-inclusion guards.
18704         Reported by Stefan Berger.
18705
18706 2010-10-15  Jim Meyering  <meyering@redhat.com>
18707
18708         GNUmakefile: handle "stable" target, not "major"
18709         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18710         lists in maint.mk and announce-gen.  Without this, "make stable"
18711         would fail to ensure that $(VERSION) is up to date.
18712
18713 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18714
18715         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18716         & co.
18717
18718 2010-10-14  Bruno Haible  <bruno@clisp.org>
18719
18720         vasnprintf: Don't set errno to 0.
18721         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18722         block that sets it to 0.
18723         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18724
18725 2010-10-14  Bruno Haible  <bruno@clisp.org>
18726
18727         socketlib: Fix.
18728         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18729         gl_PREREQ_SYS_H_WINSOCK2.
18730         Reported by Ian Beckwith <ianb@erislabs.net>.
18731
18732 2010-10-13  Jim Meyering  <meyering@redhat.com>
18733
18734         test-select-stdin.c: avoid warn_unused_result warnings
18735         * tests/test-select-stdin.c: Include "macros.h".
18736         ASSERT that read and fflush succeed.
18737
18738 2010-10-13  Jim Meyering  <meyering@redhat.com>
18739
18740         git-version-gen: do require git-VC'd files in cwd
18741         * build-aux/git-version-gen: Reject a git version string
18742         if there are no commits associated with the current directory.
18743         This avoids an unlikely false-positive (unrelated dir whose parent
18744         repository also contains a tag matching v*), as pointed out
18745         by Giuseppe Scrivano in
18746         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18747
18748 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18749
18750         argv-iter: omit nonconforming declaration
18751         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18752         enum arg_iter_err declaration, which doesn't conform to C99.
18753         Solaris 10 cc warns about this.
18754
18755 2010-10-13  Eric Blake  <eblake@redhat.com>
18756
18757         termios: fix compilation on mingw
18758         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18759         (gl_TERMIOS_H): Adjust it on mingw.
18760         * modules/termios (Makefile.am): Substitute new key.
18761         * lib/termios.in.h (includes): Make include_next conditional.
18762         * doc/posix-headers/termios.texi (termios.h): Update
18763         documentation.
18764         Reported by Daniel P. Berrange.
18765
18766 2010-10-13  Jim Meyering  <meyering@redhat.com>
18767
18768         git-version-gen: don't require that .git/ be in the current dir
18769         * build-aux/git-version-gen: Adjust this script so that it works
18770         when run from any working directory beneath the top-level .git/-
18771         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18772         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18773
18774         test-select: avoid warn_unused_result warnings
18775         * tests/test-select.c: Include "macros.h".
18776         ASSERT that each call to read, write, and pipe succeeds.
18777         While not technically required, also check each "close".
18778         * modules/select-tests (Files): Add tests/macros.h.
18779
18780         test-symlinkat: remove declaration of unused local
18781         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18782
18783         test-inttostr: avoid shadowing warnings
18784         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18785         and use malloc rather than the stack for the same reason as
18786         mentioned in the comment justifying the other allocation.
18787
18788 2010-10-11  Bruno Haible  <bruno@clisp.org>
18789
18790         stdlib: Allow multiple gnulib generated replacements to coexist.
18791         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18792         Reported by Sam Steingold <sds@gnu.org>.
18793
18794 2010-10-11  Jim Meyering  <meyering@redhat.com>
18795
18796         fix a documentation typo
18797         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18798
18799 2010-10-11  Eric Blake  <eblake@redhat.com>
18800
18801         futimens: work around Solaris 11 bug
18802         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18803         * tests/test-futimens.h (test_futimens): Enhance, rather than
18804         weaken test.
18805         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18806
18807 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18808
18809         Indentation.
18810         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18811         higher-level operators more to the left.
18812
18813 2010-10-11  Jim Meyering  <meyering@redhat.com>
18814
18815         test-futimens: avoid unwarranted test failure on Solaris 5.11
18816         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18817         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18818         because it tries to dereference the NULL name argument.
18819
18820 2010-10-11  Bruno Haible  <bruno@clisp.org>
18821
18822         Indentation.
18823         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18824         indentation.
18825
18826 2010-10-11  Jim Meyering  <meyering@redhat.com>
18827
18828         spawn.in.h: make indentation consistent with parentheses
18829         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18830         Make indentation consistent with parentheses.
18831
18832 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18833
18834         Fix mismatched parens in previous commit
18835         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18836         parens.
18837
18838 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18839
18840         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18841
18842         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18843         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18844         * lib/malloca.c: Include "verify.h".
18845         (verify1): Remove, replacing with a verify call.
18846         * lib/relocwrapper.c (verify1): Likewise.
18847         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18848         Likewise.
18849         * modules/malloca (Depends-on): Add 'verify'.
18850         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18851         * modules/vasnprintf (Depends-on): Add 'verify'.
18852         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18853         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18854         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18855         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18856         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18857         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18858         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18859
18860         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18861
18862         Formerly the style was sometimes 2*X - 1, because the C standard
18863         was wrongly thought to disallow ?: in integral constant expressions.
18864         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18865         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18866         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18867         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18868         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18869         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18870         verify that time_t cannot be floating.
18871
18872 2010-10-08  Eric Blake  <eblake@redhat.com>
18873
18874         time: enforce recent POSIX ruling that time_t is integral
18875         * lib/time.in.h (__time_t_must_be_integral): Detect any
18876         problematic systems, allowing the rest of gnulib to assume POSIX.
18877
18878 2010-10-08  Jim Meyering  <meyering@redhat.com>
18879
18880         fdopendir: fix a bug on systems lacking openat and /proc support
18881         OpenBSD 4.7 is one such system.  The most noticeable effect was
18882         failure of any application making nontrivial use of fts: rm, du,
18883         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18884           ./rm: traversal failed: `a': Bad file descriptor
18885         Debugging that, you see that even though FD 6 was closed just
18886         prior to the opendir call in fd_clone_opendir, its resulting
18887         dir->dd_fd was 8, rather than the expected value of 6:
18888
18889         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18890         93                close (fd);
18891         (gdb) n
18892         94                dir = fd_clone_opendir (dupfd);
18893         (gdb) n
18894         95                saved_errno = errno;
18895         (gdb) p dir->dd_fd
18896         $11 = 8
18897
18898         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18899         The problem is that on OpenBSD, fd_clone_opendir has to resort
18900         to using the old-style save/restore CWD mechanism, due to its
18901         lack of openat/proc support, and *that* would steal the FD (6)
18902         that opendir was supposed to use.
18903
18904         The fix is to squirrel away the desired FD so that save_cwd uses a
18905         different one, and then free the dest FD right before calling opendir.
18906         That guarantees opendir will use the required file descriptor.
18907
18908         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18909
18910 2010-10-08  Bruno Haible  <bruno@clisp.org>
18911
18912         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18913         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18914
18915 2010-10-08  Bruno Haible  <bruno@clisp.org>
18916
18917         nanosleep: Make replacement POSIX compliant.
18918         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18919         is out of range.
18920         Reported by Jim Meyering.
18921
18922 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18923
18924         bootstrap: add hook for altering gnulib.mk, for Bison
18925         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18926         the Bison bootstrapping process can rewrite file names and variables
18927         in this file before later parts of 'bootstrap' use the file.
18928         Bison wants to include lib/gnulib.mk from the top-level makefile,
18929         so it needs the file names in this file to be relative to the top
18930         level, not relative to lib; plus it needs variable names to be
18931         rewritten.
18932         (slurp): Use the new function.
18933
18934         bootstrap: reformat for readability
18935         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18936
18937 2010-10-08  Eric Blake  <eblake@redhat.com>
18938
18939         docs: update cygwin progress
18940         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18941         1.7.7.
18942         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18943         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18944         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18945         * doc/posix-functions/carg.texi (carg): Likewise.
18946         * doc/posix-functions/cargf.texi (cargf): Likewise.
18947         * doc/posix-functions/casin.texi (casin): Likewise.
18948         * doc/posix-functions/casinf.texi (casinf): Likewise.
18949         * doc/posix-functions/casinh.texi (casinh): Likewise.
18950         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18951         * doc/posix-functions/catan.texi (catan): Likewise.
18952         * doc/posix-functions/catanf.texi (catanf): Likewise.
18953         * doc/posix-functions/catanh.texi (catanh): Likewise.
18954         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18955         * doc/posix-functions/ccos.texi (ccos): Likewise.
18956         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18957         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18958         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18959         * doc/posix-functions/cexp.texi (cexp): Likewise.
18960         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18961         * doc/posix-functions/cimag.texi (cimag): Likewise.
18962         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18963         * doc/posix-functions/clog.texi (clog): Likewise.
18964         * doc/posix-functions/clogf.texi (clogf): Likewise.
18965         * doc/posix-functions/conj.texi (conj): Likewise.
18966         * doc/posix-functions/conjf.texi (conjf): Likewise.
18967         * doc/posix-functions/cpow.texi (cpow): Likewise.
18968         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18969         * doc/posix-functions/cproj.texi (cproj): Likewise.
18970         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18971         * doc/posix-functions/creal.texi (creal): Likewise.
18972         * doc/posix-functions/crealf.texi (crealf): Likewise.
18973         * doc/posix-functions/csin.texi (csin): Likewise.
18974         * doc/posix-functions/csinf.texi (csinf): Likewise.
18975         * doc/posix-functions/csinh.texi (csinh): Likewise.
18976         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18977         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18978         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18979         * doc/posix-functions/ctan.texi (ctan): Likewise.
18980         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18981         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18982         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18983         * doc/posix-headers/complex.texi (complex.h): Likewise.
18984
18985 2010-10-07  Jim Meyering  <meyering@redhat.com>
18986
18987         parse-datetime: avoid compilation failure on OpenBSD 4.7
18988         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18989         This works around a compilation failure on OpenBSD 4.7:
18990         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18991
18992 2010-10-07  Eric Blake  <eblake@redhat.com>
18993
18994         docs: update cygwin progress
18995         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18996         1.7.6.
18997         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18998         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18999         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19000         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19001         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19002         Likewise.
19003         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19004         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19005         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19006         Likewise.
19007         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19008         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19009         Likewise.
19010         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19011         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19012         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19013         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19014         Likewise.
19015         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19016         Likewise.
19017         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19018
19019         docs: update parse-datetime history
19020         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19021         documentation of this function's history and alternatives.
19022
19023         cygwin: use more robust version check
19024         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19025         exclude an eventual cygwin 1.9.1.
19026         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19027         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19028         (gl_FUNC_STRCASESTR): Likewise.
19029         Reported by Bruno Haible.
19030
19031 2010-10-06  Bruno Haible  <bruno@clisp.org>
19032
19033         string, sys_select: Avoid #including large headers unless necessary.
19034         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19035         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19036         OSF/1, BeOS, Haiku.
19037         Reported by Jim Meyering.
19038
19039 2010-10-05  Eric Blake  <eblake@redhat.com>
19040
19041         memmem, strstr, strcasestr: fix bug with long periodic needle
19042         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19043         periodic needle having false positive.
19044         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19045         and cygwin 1.7.7.
19046         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19048         (gl_FUNC_STRCASESTR): Likewise.
19049         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19050         * tests/test-memmem.c (main): Expose the bug.
19051         * tests/test-strcasestr.c (main): Likewise.
19052         * tests/test-strstr.c (main): Likewise.
19053         * tests/test-c-strcasestr.c (main): Likewise.
19054         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19055         * doc/posix-functions/strstr.texi (strstr): Likewise.
19056         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19057         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19058
19059 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19060
19061         parse-datetime: do some more renaming
19062         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19063         parse_datetime, not get_date.  Mention the renaming.
19064         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19065         in comments.
19066         * m4/bison.m4: Likewise.
19067
19068 2010-10-05  Eric Blake  <eblake@redhat.com>
19069
19070         parse-datetime: better name than get_date
19071         * NEWS: Reword the deprecation notice.
19072         * modules/get_date: Rename to modules/parse-datetime.
19073         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19074         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19075         * lib/get_date.y: Rename to lib/parse-datetime.y.
19076         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19077         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19078         * doc/getdate.texi: Provide fallback wrapper.
19079         * lib/getdate.h: Move guts, and wrap...
19080         * lib/parse-datetime.h: ...new file.
19081         * lib/parse-datetime.y (get_date): Rename...
19082         (parse_datetime): ...to this.
19083         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19084         (gl_PARSE_DATETIME): ...to this.
19085         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19086         documentation.
19087         * modules/getdate (Files): Provide fallback docs and header.
19088         (Notice, Depends-on): Update references.
19089         * tests/test-parse-datetime.c: Likewise.
19090         * DEPENDENCIES: Likewise.
19091         * MODULES.html.sh (Date and time <time.h>): Likewise.
19092         * doc/parse-datetime.texi (Date input formats)
19093         (Authors of parse_datetime): Likewise.
19094         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19095         (Include): Likewise.
19096         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19097         * gnulib-tool: Likewise.
19098         * m4/bison.m4 (gl_BISON): Likewise.
19099         Suggested by Bruno Haible.
19100
19101 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19102
19103         more ports to Solaris tr, which needs [] around ranges
19104         * gnulib-tool: Solaris tr needs [] around ranges.
19105         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19106         * tests/test-pipe-filter-gi1.c (main): Likewise.
19107         * tests/test-pipe-filter-ii1.c (main): Likewise.
19108
19109 2010-10-05  Eric Blake  <eblake@redhat.com>
19110
19111         bootstrap: fix Solaris regression
19112         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19113         around ranges.
19114         Reported by Pádraig Brady.
19115
19116         bootstrap: work with pkg-config
19117         * build-aux/bootstrap (check_versions): Also transliterate - in
19118         prerequisite name.
19119         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19120         prerequisites that were already found, to avoid confusion.
19121         Reported by Justin Clift.
19122
19123         faccessat: remove unused wrappers
19124         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19125         presence of these wrappers dragged in -lgen on Solaris.
19126         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19127
19128 2010-10-05  Jim Meyering  <meyering@redhat.com>
19129
19130         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19131         * Makefile (sc_pragma_columns): New syntax-check rule.
19132
19133 2010-10-04  Bruno Haible  <bruno@clisp.org>
19134
19135         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19136         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19137         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19138         Reported by Bruce Korb and Eric Blake.
19139
19140 2010-10-04  Bruno Haible  <bruno@clisp.org>
19141
19142         threadlib: Make option --with-libpth-prefix work.
19143         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19144         use $LIBPTH, not just -lpth.
19145
19146 2010-10-04  Bruno Haible  <bruno@clisp.org>
19147
19148         Avoid line length limitation from HP NonStop system header files.
19149         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19150         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19151         * lib/ctype.in.h: Likewise.
19152         * lib/dirent.in.h: Likewise.
19153         * lib/errno.in.h: Likewise.
19154         * lib/fcntl.in.h: Likewise.
19155         * lib/float.in.h: Likewise.
19156         * lib/getopt.in.h: Likewise.
19157         * lib/iconv.in.h: Likewise.
19158         * lib/inttypes.in.h: Likewise.
19159         * lib/langinfo.in.h: Likewise.
19160         * lib/locale.in.h: Likewise.
19161         * lib/math.in.h: Likewise.
19162         * lib/netdb.in.h: Likewise.
19163         * lib/netinet_in.in.h: Likewise.
19164         * lib/poll.in.h: Likewise.
19165         * lib/pthread.in.h: Likewise.
19166         * lib/pty.in.h: Likewise.
19167         * lib/sched.in.h: Likewise.
19168         * lib/se-selinux.in.h: Likewise.
19169         * lib/search.in.h: Likewise.
19170         * lib/signal.in.h: Likewise.
19171         * lib/spawn.in.h: Likewise.
19172         * lib/stdarg.in.h: Likewise.
19173         * lib/stddef.in.h: Likewise.
19174         * lib/stdint.in.h: Likewise.
19175         * lib/stdio.in.h: Likewise.
19176         * lib/stdlib.in.h: Likewise.
19177         * lib/string.in.h: Likewise.
19178         * lib/strings.in.h: Likewise.
19179         * lib/sys_file.in.h: Likewise.
19180         * lib/sys_ioctl.in.h: Likewise.
19181         * lib/sys_select.in.h: Likewise.
19182         * lib/sys_socket.in.h: Likewise.
19183         * lib/sys_stat.in.h: Likewise.
19184         * lib/sys_time.in.h: Likewise.
19185         * lib/sys_times.in.h: Likewise.
19186         * lib/sys_utsname.in.h: Likewise.
19187         * lib/sys_wait.in.h: Likewise.
19188         * lib/sysexits.in.h: Likewise.
19189         * lib/termios.in.h: Likewise.
19190         * lib/time.in.h: Likewise.
19191         * lib/unistd.in.h: Likewise.
19192         * lib/wchar.in.h: Likewise.
19193         * lib/wctype.in.h: Likewise.
19194         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19195         * modules/ctype (Makefile.am): Likewise.
19196         * modules/dirent (Makefile.am): Likewise.
19197         * modules/errno (Makefile.am): Likewise.
19198         * modules/fcntl-h (Makefile.am): Likewise.
19199         * modules/float (Makefile.am): Likewise.
19200         * modules/getopt-posix (Makefile.am): Likewise.
19201         * modules/iconv-h (Makefile.am): Likewise.
19202         * modules/inttypes (Makefile.am): Likewise.
19203         * modules/langinfo (Makefile.am): Likewise.
19204         * modules/locale (Makefile.am): Likewise.
19205         * modules/math (Makefile.am): Likewise.
19206         * modules/netdb (Makefile.am): Likewise.
19207         * modules/netinet_in (Makefile.am): Likewise.
19208         * modules/poll-h (Makefile.am): Likewise.
19209         * modules/pthread (Makefile.am): Likewise.
19210         * modules/pty (Makefile.am): Likewise.
19211         * modules/sched (Makefile.am): Likewise.
19212         * modules/search (Makefile.am): Likewise.
19213         * modules/selinux-h (Makefile.am): Likewise.
19214         * modules/signal (Makefile.am): Likewise.
19215         * modules/spawn (Makefile.am): Likewise.
19216         * modules/stdarg (Makefile.am): Likewise.
19217         * modules/stddef (Makefile.am): Likewise.
19218         * modules/stdint (Makefile.am): Likewise.
19219         * modules/stdio (Makefile.am): Likewise.
19220         * modules/stdlib (Makefile.am): Likewise.
19221         * modules/string (Makefile.am): Likewise.
19222         * modules/strings (Makefile.am): Likewise.
19223         * modules/sys_file (Makefile.am): Likewise.
19224         * modules/sys_ioctl (Makefile.am): Likewise.
19225         * modules/sys_select (Makefile.am): Likewise.
19226         * modules/sys_socket (Makefile.am): Likewise.
19227         * modules/sys_stat (Makefile.am): Likewise.
19228         * modules/sys_time (Makefile.am): Likewise.
19229         * modules/sys_times (Makefile.am): Likewise.
19230         * modules/sys_utsname (Makefile.am): Likewise.
19231         * modules/sys_wait (Makefile.am): Likewise.
19232         * modules/sysexits (Makefile.am): Likewise.
19233         * modules/termios (Makefile.am): Likewise.
19234         * modules/time (Makefile.am): Likewise.
19235         * modules/unistd (Makefile.am): Likewise.
19236         * modules/wchar (Makefile.am): Likewise.
19237         * modules/wctype (Makefile.am): Likewise.
19238
19239 2010-10-04  Bruno Haible  <bruno@clisp.org>
19240
19241         read-file tests: Avoid a test failure on NonStop Kernel.
19242         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19243         a regular file.
19244         Reported by Joachim Schmitz <schmitz@hp.com>.
19245
19246 2010-10-03  Bruno Haible  <bruno@clisp.org>
19247
19248         gnulib-tool: Fixes for --create-testdir with --libtool.
19249         * gnulib-tool (func_get_automake_snippet): Don't augment
19250         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19251         an executable.
19252         (func_create_testdir): Handle module 'alloca' like func_import.
19253         Reported by Bruce Korb <bruce.korb@gmail.com>.
19254
19255 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19256
19257         Avoid some lines longer than 80 characters.
19258         * lib/stdint.in.h: Break long comment lines.
19259         * lib/math.in.h: Likewise.
19260         (_GL_NUM_UINT_WORDS): New macro, for readability.
19261         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19262         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19263         * lib/stdlib.in.h: Likewise.
19264         * lib/spawn.in.h: Likewise.
19265         * lib/sys_socket.in.h: Update an URL.
19266         * lib/sys_stat.in.h: Break long line.
19267
19268 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19269
19270         Improve pmccabe2html.
19271         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19272         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19273         when the sources change. Remove the line in the HTML about "Used
19274         ranges" (which implied that there might be other unused ranges),
19275         rename "Resume" to "Summary" (easier to understand for more users).
19276         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19277         styles, and some unnecessary blank lines.
19278
19279 2010-10-03  Bruno Haible  <bruno@clisp.org>
19280             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19281
19282         acl: Add support for ACLs on NonStop Kernel.
19283         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19284         Check whether the function aclsort() exists.
19285         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19286         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19287         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19288         (acl_nontrivial [HAVE_ACLSORT]: New function.
19289         (file_has_acl): Implement for NonStop Kernel.
19290         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19291         (qset_acl): Implement for NonStop Kernel.
19292         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19293         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19294         (main): Implement for NonStop Kernel.
19295         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19296         Kernel. Handle this flavor.
19297         * tests/test-set-mode-acl.sh: Likewise.
19298         * tests/test-copy-acl.sh: Likewise.
19299         * tests/test-copy-file.sh: Likewise.
19300
19301 2010-10-03  Bruno Haible  <bruno@clisp.org>
19302
19303         Info about ACLs on NonStop Kernel.
19304         * doc/acl-resources.txt: Add info about NonStop Kernel.
19305         References by Joachim Schmitz <schmitz@hp.com>.
19306
19307 2010-10-02  Bruno Haible  <bruno@clisp.org>
19308
19309         Define missing EDQUOT on NonStop Kernel.
19310         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19311         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19312         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19313         missing.
19314         * doc/posix-headers/errno.texi: Mention the NSK bug.
19315         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19316         Reported by Joachim Schmitz <schmitz@hp.com>.
19317
19318 2010-10-02  Bruno Haible  <bruno@clisp.org>
19319
19320         Update doc for POSIX:2008.
19321         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19322         Update URL of POSIX specification.
19323
19324 2010-10-02  Bruno Haible  <bruno@clisp.org>
19325
19326         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19327         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19328         from gnulib, not from Automake.
19329
19330 2010-10-02  Bruno Haible  <bruno@clisp.org>
19331
19332         New module 'system-posix'.
19333         * modules/system-posix: New file.
19334         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19335         module is present.
19336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19337         GNULIB_SYSTEM_POSIX.
19338         * modules/stdlib (Depends-on): Remove sys_wait.
19339         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19340         * doc/posix-functions/system.texi: Mention the new module.
19341         * doc/posix-headers/stdlib.texi: Likewise.
19342         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19343         define test_sys_wait_macros to a no-op.
19344         Reported by Sam Steingold <sds@gnu.org>.
19345
19346 2010-09-30  Bruno Haible  <bruno@clisp.org>
19347
19348         More renaming from 'getdate' to 'get_date'.
19349         * doc/get_date.texi: Renamed from doc/getdate.texi.
19350         * modules/get_date (Files): Update.
19351         * MODULES.html.sh (Date and time <time.h>): Update.
19352         * DEPENDENCIES: Update.
19353         * gnulib-tool: Update comment.
19354         * m4/bison.m4 (gl_BISON): Likewise.
19355         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19356
19357 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19358
19359         bootstrap: support ACLOCAL_FLAGS during aclocal
19360         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19361         can add additional -I dir for third-party .m4 files.
19362
19363 2010-09-30  Eric Blake  <eblake@redhat.com>
19364
19365         bootstrap: use glibtoolize on MacOS
19366         * build-aux/bootstrap (check_versions): Convert libtool into
19367         libtoolize.
19368         (tool search): Move libtool check earlier, and look for
19369         glibtoolize for MacOS.
19370         (gnulib_tool_options): Auto-add --libtool when appropriate.
19371         Reported by Justin Clift.
19372
19373         poll: fix typo that broke test on MacOS
19374         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19375         Reported by Justin Clift.
19376
19377         getdate: rename to get_date
19378         Note: getdate.h is not renamed, to minimize client impact.
19379         * modules/getdate: Mark obsolete.  Move old contents...
19380         * modules/get_date: ...to new module name.
19381         * modules/getdate-tests: Move...
19382         * modules/get_date-tests: ...here.
19383         * m4/getdate.m4: Move...
19384         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19385         * lib/getdate.y: Move...
19386         * lib/get_date.y: ...here.
19387         * tests/test-getdate.c: Move...
19388         * tests/test-get_date.c: ...here.
19389         * doc/posix-functions/getdate.texi (getdate): Update name.
19390         * NEWS: Mention the change.
19391
19392 2010-09-29  Bruno Haible  <bruno@clisp.org>
19393
19394         Separate the module 'waitpid' from the module 'sys_wait'.
19395         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19396         present.
19397         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19398         gl_MODULE_INDICATOR_FOR_TESTS.
19399         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19400         * modules/sys_wait (Depends-on): Remove waitpid.
19401         (Makefile.am): Substitute GNULIB_WAITPID.
19402         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19403         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19404         signature only if the 'waitpid' module is present.
19405         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19406         * NEWS: Mention the change.
19407         * modules/grantpt (Depends-on): Add waitpid.
19408         * modules/wait-process (Depends-on): Likewise.
19409
19410 2010-09-29  Bruno Haible  <bruno@clisp.org>
19411
19412         More tests for module 'sys_wait'.
19413         * modules/sys_wait-c++-tests: New file.
19414         * tests/test-sys_wait-c++.cc: New file.
19415         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19416         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19417
19418 2010-09-29  Bruno Haible  <bruno@clisp.org>
19419
19420         New module 'waitpid'.
19421         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19422         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19423         Don't include <process.h>.
19424         (waitpid): Declare only, using modern idiom.
19425         * m4/waitpid.m4: New file.
19426         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19427         * modules/waitpid: New file.
19428         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19429         (Makefile.am): Update.
19430         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19431
19432 2010-09-28  Bruno Haible  <bruno@clisp.org>
19433
19434         poll: Assume ANSI C.
19435         * lib/poll.c (poll): Use an ANSI C declaration.
19436
19437 2010-09-28  Bruno Haible  <bruno@clisp.org>
19438
19439         poll-h: Create poll.h on all platforms.
19440         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19441         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19442         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19443         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19444         (gl_REPLACE_POLL_H): Don't set POLL_H.
19445         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19446         * modules/poll-h (Depends-on): Add include_next.
19447         (Makefile.am): Create poll.h unconditionally. Substitute also
19448         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19449
19450 2010-09-28  Bruno Haible  <bruno@clisp.org>
19451
19452         Tests for module 'poll-h'.
19453         * modules/poll-h-c++-tests: New file.
19454         * tests/test-poll-h-c++.cc: New file.
19455
19456         Tests for module 'poll-h'.
19457         * modules/poll-h-tests: New file.
19458         * tests/test-poll-h.c: New file.
19459
19460 2010-09-28  Bruno Haible  <bruno@clisp.org>
19461
19462         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19463         * modules/poll-h (Depends-on): Add 'extensions'.
19464
19465 2010-09-28  Bruno Haible  <bruno@clisp.org>
19466
19467         New module 'poll-h'.
19468         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19469         (poll): Use modern idiom.
19470         * modules/poll-h: New file.
19471         * modules/poll (Files): Remove lib/poll.in.h.
19472         (Depends-on): Add poll-h.
19473         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19474         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19475         * m4/poll_h.m4: New file.
19476         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19477         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19478         and invoke gl_REPLACE_POLL_H.
19479         * lib/poll.c: Use common idiom.
19480         * tests/test-poll.c: Likewise.
19481         * doc/posix-headers/poll.texi: Mention the poll-h module.
19482         Suggested by Eric Blake.
19483
19484 2010-09-26  Bruno Haible  <bruno@clisp.org>
19485
19486         sys_wait: Implement WSTOPSIG.
19487         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19488         Reported by Simon Josefsson.
19489
19490 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19491
19492         stdlib, sys_wait: Avoid compilation error on mingw.
19493         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19494
19495 2010-09-26  Bruno Haible  <bruno@clisp.org>
19496
19497         stdlib tests: Avoid code duplication.
19498         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19499         * modules/sys_wait-tests (Files): Likewise.
19500         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19501         * tests/test-stdlib.c: Include test-sys_wait.h.
19502         (main): Invoke test_sys_wait_macros.
19503         * tests/test-sys_wait.c: Include test-sys_wait.h.
19504         (main): Invoke test_sys_wait_macros.
19505
19506 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19507
19508         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19509         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19510         sure Windows sockets are working before calling getaddrinfo.
19511         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19512         * doc/gnulib.texi (Windows sockets): Fix typo.
19513
19514 2010-09-25  Bruno Haible  <bruno@clisp.org>
19515
19516         Tests for module 'regex-quote'.
19517         * modules/regex-quote-tests: New file.
19518         * tests/test-regex-quote.c: New file.
19519
19520         New module 'regex-quote'.
19521         * lib/regex-quote.h: New file.
19522         * lib/regex-quote.c: New file.
19523         * modules/regex-quote: New file.
19524         Suggested by Reuben Thomas <rrt@sc3d.org>.
19525
19526 2010-09-24  Bruno Haible  <bruno@clisp.org>
19527
19528         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19529         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19530
19531 2010-09-23  Bruno Haible  <bruno@clisp.org>
19532
19533         setenv: Relax license.
19534         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19535         Blake.
19536         Requested by Eric Blake.
19537
19538 2010-09-22  Bruno Haible  <bruno@clisp.org>
19539
19540         termios: Relax license.
19541         * modules/termios (License): Change to LGPLv2+.
19542         Requested by Eric Blake.
19543
19544 2010-09-22  Bruno Haible  <bruno@clisp.org>
19545
19546         threadlib: Allow the package to change the default to 'no'.
19547         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19548         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19549         Reported by Paul Eggert.
19550
19551 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19552             Bruno Haible  <bruno@clisp.org>
19553
19554         Fix endless loop in mbmemcasecoll.
19555         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19556         byte.
19557         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19558
19559 2010-09-22  Bruno Haible  <bruno@clisp.org>
19560
19561         Tests for module 'memcoll'.
19562         * modules/memcoll-tests: New file.
19563         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19564
19565         memcoll, xmemcoll: Clarify size vs. length.
19566         * modules/memcoll.c (memcoll0): Clarify specification.
19567         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19568         passed to collate_error.
19569
19570 2010-09-22  Bruno Haible  <bruno@clisp.org>
19571
19572         Tests for module 'memcasecmp'.
19573         * modules/memcasecmp-tests: New file.
19574         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19575
19576 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19577
19578         * lib/pthread.in.h: Add split double-inclusion guard, and include
19579         system <pthread.h> if there is one.  Use @@-style as in other
19580         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19581         pthread.h doesn't.
19582         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19583         (pthread_mutexattr_settype, pthread_mutex_trylock):
19584         New static inline functions, if there's no system <pthread.h>.
19585         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19586         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19587         Approximate with mutexes if the system lacks spinlocks, as in
19588         MacOS.
19589         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19590         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19591         @@-style.  Check for spinlocks separately.
19592         (gl_PTHREAD_DEFAULTS): New macro.
19593         * modules/pthread: Redo to use a more typical style for in.h files.
19594
19595 2010-09-21  Eric Blake  <eblake@redhat.com>
19596
19597         net_if: enhance tests
19598         * tests/test-net_if.c (main): Move signature checks earlier.
19599         Print failures to stderr.
19600         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19601         Document the bug that we do not yet fix.
19602
19603 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19604
19605         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19606         about gnulib, not GSS.
19607
19608 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19609
19610         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19611         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19612         for Emacs.
19613         * build-aux/pmccabe2html: Make Makefile.am example code more
19614         cut-and-paste friendly.
19615
19616 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19617
19618         * tests/test-net_if.c: New file.
19619         * modules/net_if-tests: New file.
19620
19621 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19622
19623         pthread: add pthread_spin_destroy
19624         * lib/pthread.in.h (pthread_spin_destroy): New function.
19625
19626 2010-09-19  Bruno Haible  <bruno@clisp.org>
19627
19628         gnulib-tool: Fix --help output.
19629         * gnulib-tool (func_usage): Fix help message.
19630         Reported by Reuben Thomas <rrt@sc3d.org>.
19631
19632 2010-09-18  Jim Meyering  <meyering@redhat.com>
19633
19634         maint.mk: avoid unexpanded \n in two diagnostics
19635         * top/maint.mk (sc_prohibit_always_true_header_tests):
19636         Don't use a literal \n in a halt=... assignment.  It would not be
19637         expanded, and the two \n bytes would appear in the diagnostic output
19638         rather than the desired newline.  Use halt=$$(printf ... instead.
19639         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19640
19641 2010-09-18  Bruno Haible  <bruno@clisp.org>
19642
19643         netinet_in: Doc tweak.
19644         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19645         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19646
19647 2010-09-18  Jim Meyering  <meyering@redhat.com>
19648
19649         init.sh: correct an outdated comment
19650         * tests/init.sh (create_exe_shims_):  s/function/alias/
19651
19652         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19653         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19654         a file named "*.exe" is removed between the glob expansion and the
19655         processing of that oddly named file.
19656
19657 2010-09-17  Eric Blake  <eblake@redhat.com>
19658
19659         mirbsd: add some more support
19660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19661         in BSD family.
19662         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19663         devices as OpenBSD.
19664         * m4/host-os.m4 (mirbsd): Add MirBSD.
19665
19666         tests: fix unportable assumption on sys/wait.h
19667         * tests/test-sys_wait.c (main): Relax test.
19668         * tests/test-stdlib.c (main): Likewise.
19669
19670         init.sh: accomodate directory with no .exes
19671         * tests/init.sh: Accomodate directory containing only scripts.
19672
19673         tests: avoid compiler warning
19674         * tests/test-stdlib.c (main): Use the variable.
19675
19676         fdutimens, fdutimensat: update signature, again
19677         * lib/utimens.h (gl_futimens): Delete, and move signature...
19678         (fdutimens): ...here.
19679         (fdutimensat): Rearrange signature.
19680         (lutimensat): Rename variable for clarity.
19681         * lib/fdutimensat.c (fdutimensat): Update signature.
19682         * lib/utimens.c (fdutimens): Likewise.
19683         (gl_futimens): Delete.
19684         (utimens, lutimens): Update callers.
19685         * lib/futimens.c (futimens): Likewise.
19686         * tests/test-fdutimensat.c: Likewise.
19687         * tests/test-utimens.c: Likewise.
19688         * tests/test-futimens.h: Update comment.
19689         * NEWS: Mention this.
19690         Suggested by Paul Eggert.
19691
19692 2010-09-17  Bruno Haible  <bruno@clisp.org>
19693
19694         Take over the maintenance of some older macros from Autoconf.
19695         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19696         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19697         GNU Autoconf.
19698         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19699         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19700
19701 2010-09-17  Eric Blake  <eblake@redhat.com>
19702
19703         fdutimensat: drop atflag validation
19704         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19705         with valid fd, to close a race scenario where futimens is
19706         unsupported and FILE was replaced by a symlink.
19707         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19708         accordingly.
19709         Suggested by Paul Eggert.
19710
19711 2010-09-16  Bruno Haible  <bruno@clisp.org>
19712
19713         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19714         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19715
19716 2010-09-16  Bruno Haible  <bruno@clisp.org>
19717
19718         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19719         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19720         login_tty exists.
19721         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19722
19723 2010-09-16  Bruno Haible  <bruno@clisp.org>
19724
19725         login_tty: Make the replacement code work on BSD systems.
19726         * lib/login_tty.c: Include <sys/ioctl.h>.
19727         (login_tty): Use ioctl TIOCSCTTY when available.
19728         * modules/login_tty (Depends-on): Add sys_ioctl.
19729         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19730
19731 2010-09-16  Bruno Haible  <bruno@clisp.org>
19732
19733         login_tty: Stricter unit test.
19734         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19735         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19736         and tcgetsid() after login_tty.
19737         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19738
19739 2010-09-16  Bruno Haible  <bruno@clisp.org>
19740
19741         New module 'tcgetsid'.
19742         * lib/tcgetsid.c: New file.
19743         * m4/tcgetsid.m4: New file.
19744         * modules/tcgetsid: New file.
19745         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19746         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19747         GNULIB_TCGETSID, HAVE_TCGETSID.
19748         * lib/termios.in.h: Include <sys/types.h>.
19749         (tcgetsid): New declaration.
19750         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19751         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19752         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19753         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19754
19755 2010-09-16  Bruno Haible  <bruno@clisp.org>
19756
19757         Tests for module 'termios'.
19758         * modules/termios-c++-tests: New file.
19759         * modules/termios-tests: New file.
19760         * tests/test-termios-c++.cc: New file.
19761         * tests/test-termios.c: New file.
19762
19763         New module 'termios'.
19764         * modules/termios: New file.
19765         * lib/termios.in.h: New file.
19766         * m4/termios_h.m4: New file.
19767         * doc/posix-headers/termios.texi: Mention the new module.
19768
19769 2010-09-16  Eric Blake  <eblake@redhat.com>
19770
19771         fdutimensat: add an atflag parameter
19772         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19773         * lib/utimens.h (fdutimensat): Update prototype.
19774         * tests/test-fdutimensat.c: Adjust test to match.
19775         * NEWS: Document the change.
19776         Suggested by Paul Eggert.
19777
19778 2010-09-16  Bruno Haible  <bruno@clisp.org>
19779
19780         Fix typos in comments.
19781         * lib/striconveh.h: Fix typo in comment.
19782         * lib/login_tty.c (login_tty): Likewise.
19783
19784 2010-09-15  Bruno Haible  <bruno@clisp.org>
19785
19786         stdlib: clarify MirBSD WEXITSTATUS bug
19787         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19788         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19789
19790 2010-09-15  Eric Blake  <eblake@redhat.com>
19791
19792         stdlib: work around MirBSD WEXITSTATUS bug
19793         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19794         * modules/stdlib (Depends-on): Add sys_wait.
19795         * tests/test-sys_wait.c (main): Enhance test.
19796         * tests/test-stdlib.c (main): Likewise.
19797         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19798
19799         docs: mention MacOS issue with WEXITSTATUS(constant)
19800         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19801         issue.
19802         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19803
19804         strnlen: add tests
19805         * modules/strnlen-tests: New file.
19806         * tests/test-strnlen.c: Likewise.
19807
19808 2010-09-14  Bruno Haible  <bruno@clisp.org>
19809
19810         unistr/base: Avoid link errors when module 'libunistring' is also used.
19811         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19812         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19813         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19814         Declare also when HAVE_LIBUNISTRING is set.
19815         Reported by Pádraig Brady <P@draigbrady.com>.
19816
19817 2010-09-14  Eric Blake  <eblake@redhat.com>
19818
19819         test-rawmemchr: make more robust
19820         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19821         (Depends-on, configure.ac): Add needed prerequisites to use it.
19822         * modules/memchr-tests (Files, Depends-on, configure.ac):
19823         Likewise, to avoid implicit reliance on memchr module prereqs.
19824         * tests/test-memchr.c (main): Ensure proper masking.
19825         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19826         reads.
19827
19828         memchr: detect glibc Alpha bug
19829         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19830         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19831         Alpha.
19832         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19833         * tests/test-memchr.c (main): Enhance test.
19834         Reported by Nelson H. F. Beebe.
19835
19836 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19837
19838         fts, getcwd, glob: audit for dirfd returning -1
19839         * lib/fts.c (opendir): Remove #define; no longer used.
19840         (opendirat): New arg PDIR_FD.  All callers changed.
19841         (fts_build, _opendir2): Use new opendirat to avoid the need for
19842         dirfd, or for checking whether dirfd returns a negative value.
19843         Don't use opendir; always use openat followed by fdopendir.
19844         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19845         it.
19846         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19847         returns -1 here.
19848         * modules/fts (Depends-on): Remove dirfd.
19849         * modules/getcwd (Depends-on): Likewise.
19850
19851 2010-09-13  Eric Blake  <eblake@redhat.com>
19852
19853         float: fix broken MirBSD header
19854         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19855         * doc/posix-headers/float.texi (float.h): Document it.
19856
19857 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19858
19859         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19860         * lib/fts.c (opendirat): New arg extra_flags.
19861         (__opendir2): Use it to avoid following symlinks when opening
19862         a directory, if symlinks are not supposed to be followed.  See
19863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19864
19865         fdopendir: preserve argument fd before returning
19866         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19867         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19868         (fdopendir): Use them, arranging for FD to be open to the same
19869         directory that it was when it started.  (It might be temporarily
19870         closed while fdopendir is running, so this not thread- or
19871         signal-safe.)  Be careful to do the right thing even when file
19872         descriptors are scarce and dup fails with errno == EMFILE.  See
19873         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19874
19875 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19876
19877         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19878         * NEWS: Document change.
19879         * m4/regex.m4: Disable test for regoff_t size.
19880
19881 2010-09-13  Jim Meyering  <meyering@redhat.com>
19882
19883         fts: don't operate on an invalid file descriptor after failed dup
19884         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19885         negative file descriptor.
19886
19887 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19888
19889         savedir: add streamsavedir, deprecate fdsavedir
19890         * NEWS: Mention deprecation of fdsavedir.
19891         * lib/savedir.c (streamsavedir): New extern function, whose name
19892         ends in "savedir" to be consistent with the others.  This differs
19893         from savedirstream in that it doesn't close its argument.  The
19894         next version of GNU tar will use this instead of fdsavedir, to
19895         avoid some race conditions and conserve file descriptors.
19896         (savedirstream): Reimplement as a wrapper around streamsavedir.
19897         (fdsavedir): Add a comment deprecating this function.  As far as
19898         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19899         * lib/savedir.h (streamsavedir): New decl.
19900         (fdsavedir): Add a comment deprecating this.
19901
19902 2010-09-10  Bruno Haible  <bruno@clisp.org>
19903
19904         langinfo: Fix last commit.
19905         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19906         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19908
19909 2010-09-10  Bruno Haible  <bruno@clisp.org>
19910
19911         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19912         * lib/progreloc.c (O_EXEC): Define fallback.
19913
19914 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19915
19916         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19917         * NEWS: Document recent changes to fcntl-h.
19918         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19919         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19920         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19921         Similarly for O_SEARCH; this last was already true, but not documented.
19922         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19923         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19924         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19925         Likewise.
19926         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19927         is zero, not whether it is defined.
19928         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19929         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19930         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19931
19932 2010-09-10  Bruno Haible  <bruno@clisp.org>
19933
19934         langinfo, nl_langinfo: Fix for IRIX 5.3.
19935         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19936         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19937         HAVE_LANGINFO_YESEXPR.
19938         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19939         HAVE_LANGINFO_YESEXPR.
19940         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19941         HAVE_LANGINFO_T_FMT_AMPM is 0.
19942         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19943         HAVE_LANGINFO_YESEXPR is 0.
19944         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19945         NOEXPR.
19946         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19947         * doc/posix-functions/nl_langinfo.texi: Likewise.
19948         Reported by Eric Blake.
19949
19950 2010-09-10  Bruno Haible  <bruno@clisp.org>
19951
19952         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19953         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19954         on FreeBSD 8.0 and OpenBSD 4.6.
19955         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19956         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19957         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19958         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19959         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19960         ac_includes_default.
19961         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19962
19963 2010-09-09  Eric Blake  <eblake@redhat.com>
19964
19965         strsignal: work around NetBSD bug
19966         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19967         * lib/string.in.h (includes): Likewise.
19968         * doc/posix-functions/strsignal.texi (strsignal): Document the
19969         bug.
19970         Reported by Nelson H. F. Beebe.
19971
19972         gnulib-tool: work with NetBSD /bin/sh
19973         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19974         (func_get_description, func_get_comment, func_get_status)
19975         (func_get_notice, func_get_applicability, func_get_filelist)
19976         (func_get_dependencies, func_get_autoconf_early_snippet)
19977         (func_get_autoconf_snippet, func_get_automake_snippet)
19978         (func_get_include_directive, func_get_link_directive)
19979         (func_get_license, func_get_maintainer, func_import): Avoid
19980         shell syntax errors from parsing syntax extensions.
19981
19982 2010-09-09  Bruno Haible  <bruno@clisp.org>
19983
19984         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19985         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19986         a reliable way to determine whether the 'alias' command works.
19987
19988 2010-09-08  Jim Meyering  <meyering@redhat.com>
19989
19990         init.sh: penalize a set-x-impaired shell; don't disqualify it
19991         * tests/init.sh: Too many shells corrupt application stderr when
19992         you set -x, so we can't afford to disqualify them, since at least
19993         on Irix-6.5, that would disqualify all bourne shells.
19994         Instead, use a two-pass approach.
19995         On the first pass, try to find a shell that meets the stricter
19996         condition that set -x does not corrupt stderr.
19997         If no shell meets the stricter condition, retest each candidate
19998         shell, but without that extra condition.  Finally, when
19999         VERBOSE=yes is requested and set -x might cause trouble, simply
20000         issue a warning and refrain from enabling debug output.
20001
20002 2010-09-08  Eric Blake  <eblake@redhat.com>
20003
20004         unsetenv: fix OpenBSD bug
20005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20006         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20007         documentation.
20008         Reported by Jim Meyering.
20009
20010         strtod: work around IRIX 6.5 bug
20011         * lib/strtod.c (strtod): Reparse number on shorter string if
20012         exponent parse was invalid.
20013         * tests/test-strtod.c (main): Add check for "0x1p 2".
20014         Reported by Tom G. Christensen.
20015
20016         getopt: optimize previous patch
20017         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20018         empty variable.  Speed up awk script.
20019         Reported by Paolo Bonzini.
20020
20021 2010-09-08  Jim Meyering  <meyering@redhat.com>
20022
20023         test.sh: disqualify shells for which set -x corrupts stderr
20024         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20025         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20026         appear in stderr output.  For example, this command:
20027             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20028         prints "P=1" on those two systems:
20029
20030 2010-09-08  Bruno Haible  <bruno@clisp.org>
20031
20032         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20033         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20034         commands, because some shells ignore redirections when there is an
20035         error in the command lookup.
20036         Reported by Eric Blake.
20037
20038 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20039
20040         * lib/regex.h: Fix a mention of `regex_compile' (should be
20041         `re_compile_pattern').
20042         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20043         (re_set_registers): Correct name of parameter in comment.
20044
20045         * doc/regex.texi: Add documentation for missing syntax flags.
20046         Remove commented-out documentation of defunct syntax option
20047         RE_NO_EMPTY_ALTS.
20048         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20049         Add documentation of re_set_registers.
20050         Document trick to re-use a pattern buffer by setting fastmap manually.
20051         Update documentation of struct re_pattern_buffer per public members.
20052         Uncomment documentation of equivalence class operators and
20053         collating symbol operators, since they are now implemented,
20054         Explain leftmost-longest matching in relation to alternatives.
20055         Tidy documentation of substring matching.
20056         Remove POSIX documentation, which is done better in
20057         glibc, and refer the reader there. Keep BSD API documentation, as
20058         that is not readily available elsewhere.
20059
20060 2010-09-07  Eric Blake  <eblake@redhat.com>
20061
20062         getopt: handle POSIXLY_CORRECT set but not exported
20063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20064         export state of POSIXLY_CORRECT, due to bash set -o posix.
20065         Reported by Dustin J. Mitchell.
20066
20067 2010-09-05  Bruno Haible  <bruno@clisp.org>
20068
20069         gnulib-tool: Highlight the changed options.
20070         * gnulib-tool (func_usage): Display the --import, --add-import,
20071         --remove-import explanations in bold font.
20072
20073 2010-09-06  Karl Berry  <karl@gnu.org>
20074
20075         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20076
20077 2010-09-05  Bruno Haible  <bruno@clisp.org>
20078
20079         uniwidth/width: Update comment.
20080         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20081         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20082
20083 2010-09-05  Bruno Haible  <bruno@clisp.org>
20084
20085         isinf, isnan: Relax license.
20086         * modules/isinf (License): Change from GPL to LGPL, with consent from
20087         Ben Pfaff.
20088         * modules/isnan (License): Likewise.
20089         Requested by Ludovic Courtès.
20090
20091 2010-09-04  Bruno Haible  <bruno@clisp.org>
20092
20093         gnulib-tool: Help migration from --import to --add-import or --update.
20094         * gnulib-tool: Emit a verbose error message when --import is used
20095         without any module name.
20096
20097 2010-09-04  Bruno Haible  <bruno@clisp.org>
20098
20099         Update doc about gnulib-tool.
20100         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20101         'gnulib-tool --update' in more detail.
20102         Reported by Eric Blake.
20103
20104 2010-09-04  Bruno Haible  <bruno@clisp.org>
20105
20106         gnulib-tool: Change --import. New options --add/remove-import.
20107         * gnulib-tool: New options --add-import, --remove-import.
20108         (func_usage): Document them.
20109         (have_associative): Define always.
20110         (func_import): In import mode, don't merge the specified settings with
20111         the cached settings. Implement remove-import mode.
20112         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20113         Explain when to use them versus --import.
20114         (Simple update): Use --add-import instead of --import.
20115         * NEWS: Mention the change.
20116
20117 2010-09-04  Bruno Haible  <bruno@clisp.org>
20118
20119         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20120         separate gnulib.mk.
20121
20122 2010-09-04  Bruno Haible  <bruno@clisp.org>
20123
20124         gnulib-tool: Don't talk about CVS any more.
20125         * gnulib-tool (func_usage, func_import): Write "version control"
20126         instead of CVS.
20127
20128 2010-09-04  Jim Meyering  <meyering@redhat.com>
20129
20130         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20131         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20132         false positives (whose names may be ill-chosen) when searching
20133         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20134         would cause a false-positive.
20135
20136         avoid coreutils "make distcheck" failure
20137         Coreutils tests with an absolute build directory name that contains
20138         a space.  Not quoting this directory name caused a failure.
20139         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20140         * tests/test-vc-list-files-cvs.sh: Likewise.
20141
20142 2010-09-04  Bruno Haible  <bruno@clisp.org>
20143
20144         gnulib-tool: Avoid error when run in a package without Makefile.am.
20145         * gnulib-tool: When collecting the m4dirs in a package that does not
20146         have a Makefile.am, eliminate those directories that contain no
20147         gnulib-cache.m4. Fix expression that counts these directories.
20148
20149 2010-09-04  Bruno Haible  <bruno@clisp.org>
20150
20151         update-copyright test: Improve output when perl is missing or too old.
20152         * tests/test-update-copyright.sh: Move test of Perl version down after
20153         the test whether Perl exists. Provide an explanation relating Perl's
20154         error message to Automake's SKIP: message.
20155
20156 2010-09-04  Bruno Haible  <bruno@clisp.org>
20157
20158         Don't augment PATH in TESTS_ENVIRONMENT.
20159         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20160         set abs_aux_dir instead of augmenting PATH.
20161         * modules/vc-list-files-tests (Makefile.am): Likewise.
20162         * tests/test-update-copyright.sh: Augment PATH here.
20163         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20164         path_prepend_.
20165         * tests/test-vc-list-files-git.sh: Likewise.
20166
20167 2010-09-04  Jim Meyering  <meyering@redhat.com>
20168
20169         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20170         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20171
20172 2010-09-04  Bruno Haible  <bruno@clisp.org>
20173
20174         strdup: Fix compilation error in C++ mode.
20175         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20176         the macro.
20177
20178 2010-09-04  Bruno Haible  <bruno@clisp.org>
20179
20180         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20181         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20182         macro into a function.
20183         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20184
20185 2010-09-04  Bruno Haible  <bruno@clisp.org>
20186
20187         Set PATH_SEPARATOR the same way autoconf does.
20188         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20189         the value of PATH_SEPARATOR the same way autoconf-generated configure
20190         scripts do.
20191         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20192         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20193
20194 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20195
20196         Set PATH_SEPARATOR the same way autoconf does.
20197         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20198         the same way autoconf-generated configure scripts do.
20199         * posix-modules: Likewise.
20200
20201 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20202
20203         hash: fix safe_hasher const typo
20204         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20205         const; otherwise, there is a type error later.
20206
20207 2010-09-02  Jim Meyering  <meyering@redhat.com>
20208
20209         test-update-copyright.sh: require perl 5.8.0
20210         * tests/test-update-copyright.sh: Require 5.8.0,
20211         which Tom G. Christensen has confirmed is adequate,
20212         while 5.6.1 is not.
20213
20214 2010-09-02  Eric Blake  <eblake@redhat.com>
20215
20216         tests: init.sh improvements for re-exec'ing with zsh
20217         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20218         -vx through shell re-exec.
20219         Reported by Tom G. Christensen.
20220
20221         wctype: fix typo in previous commit
20222         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20223         Reported by Ludovic Courtès.
20224
20225 2010-09-02  Jim Meyering  <meyering@redhat.com>
20226
20227         test-update-copyright.sh: skip test if Perl is too old
20228         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20229         Reported by Tom G. Christensen.
20230
20231 2010-09-02  Bruno Haible  <bruno@clisp.org>
20232
20233         wctype: Avoid compilation error on IRIX 6.5.30.
20234         * lib/wctype.in.h (iswblank): Declare with a replacement if
20235         REPLACE_ISWBLANK is set.
20236         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20237         declared. Set REPLACE_ISWBLANK.
20238         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20239         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20240         * doc/posix-headers/wctype.texi: Likewise.
20241         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20242
20243 2010-09-01  Bruno Haible  <bruno@clisp.org>
20244
20245         New module 'socketlib'.
20246         * modules/socketlib: New file.
20247         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20248         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20249         * modules/sockets (Depends-on): Add socketlib.
20250         Suggested by Sam Steingold <sds@gnu.org>.
20251
20252 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20253
20254         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20255
20256         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20257         when one needs search access to a directory but not read access.
20258         On systems where it is available, it works in some cases where
20259         O_RDONLY does not, namely on directories that are searchable but
20260         not readable, and which need only to be searchable.  If O_SEARCH
20261         is not available, fall back to the traditional method of using
20262         O_RDONLY.
20263
20264         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20265         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20266         when opening a directory that needs only to be searchable.
20267         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20268         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20269         * lib/openat-proc.c (openat_proc_name): Likewise.
20270         * lib/openat.c (openat_needs_fchdir): Likewise.
20271         * lib/save-cwd.c (save_cwd): Likewise.
20272         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20273
20274 2010-08-28  Bruno Haible  <bruno@clisp.org>
20275
20276         New module 'host-cpu-c-abi'.
20277         * modules/host-cpu-c-abi: New file.
20278         * m4/host-cpu-c-abi.m4: New file, based on part of
20279         clisp/src/m4/general.m4.
20280         Requested by Sam Steingold <sds@gnu.org>.
20281
20282 2010-08-31  Eric Blake  <eblake@redhat.com>
20283         and Jim Meyering  <meyering@redhat.com>
20284
20285         hash: factor, and guard against misbehaving hasher function
20286         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20287         of table->hasher's return value.  Also protect against a hash value
20288         so large that adding it to table->bucket results in a NULL pointer.
20289         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20290         Use it in place of open-coded check-and-abort.
20291
20292 2010-08-30  Bruno Haible  <bruno@clisp.org>
20293
20294         hash: silence spurious clang warning
20295         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20296         Reported by Eric Blake.
20297
20298 2010-08-30  Eric Blake  <eblake@redhat.com>
20299
20300         strstr, memmem, strcasestr: avoid leaked shell message
20301         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20302         FreeBSD.
20303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20305
20306         tests: silence clang warning
20307         * tests/test-malloca.c (do_allocation): Avoid dead store.
20308
20309 2010-08-29  Bruno Haible  <bruno@clisp.org>
20310
20311         gettext: Fix recent mistake.
20312         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20313
20314 2010-08-29  Bruno Haible  <bruno@clisp.org>
20315
20316         selinux-h: Offer a --without-selinux option.
20317         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20318         --without-selinux was specified, skip all tests and define
20319         HAVE_SELINUX_SELINUX_H to 0.
20320         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20321         set LIB_SELINUX to empty.
20322         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20323         gl_LIBSELINUX. If --without-selinux was specified, replace
20324         selinux/context.h.
20325         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20326
20327 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20328             Bruno Haible  <bruno@clisp.org>
20329
20330         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20331         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20332         of HAVE_REALLOC.
20333         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20334         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20335         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20336         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20337
20338 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20339             Bruno Haible  <bruno@clisp.org>
20340
20341         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20342         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20343         HAVE_CALLOC.
20344         * lib/xmalloc.c: Update accordingly.
20345         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20346         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20347         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20348
20349 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20350             Bruno Haible  <bruno@clisp.org>
20351
20352         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20353         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20354         HAVE_MALLOC.
20355         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20356         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20357         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20358
20359 2010-08-29  Bruno Haible  <bruno@clisp.org>
20360
20361         Update modules list.
20362         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20363         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20364         (String handling <string.h>): Add astrxfrm.
20365         (File system functions): Add readlinkat.
20366
20367 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20368
20369         Tests for module 'realloc-gnu'.
20370         * modules/realloc-gnu-tests: New file.
20371         * tests/test-realloc-gnu.c: New file.
20372
20373         Tests for module 'calloc-gnu'.
20374         * modules/calloc-gnu-tests: New file.
20375         * tests/test-calloc-gnu.c: New file.
20376
20377         Tests for module 'malloc-gnu'.
20378         * modules/malloc-gnu-tests: New file.
20379         * tests/test-malloc-gnu.c: New file.
20380
20381 2010-08-28  Bruno Haible  <bruno@clisp.org>
20382
20383         Rename module 'realloc' -> 'realloc-gnu'.
20384         * modules/realloc-gnu: New file, copied from modules/realloc.
20385         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20386         obsolete.
20387         * modules/mgetgroups (Depends-on): Update.
20388         * doc/posix-functions/realloc.texi: Update.
20389         * NEWS: Mention the change.
20390
20391         Rename module 'calloc' -> 'calloc-gnu'.
20392         * modules/calloc-gnu: New file, copied from modules/calloc.
20393         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20394         obsolete.
20395         * doc/posix-functions/calloc.texi: Update.
20396         * NEWS: Mention the change.
20397
20398         Rename module 'malloc' -> 'malloc-gnu'.
20399         * modules/malloc-gnu: New file, copied from modules/malloc.
20400         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20401         obsolete.
20402         * modules/argp (Depends-on): Update.
20403         * modules/regex (Depends-on): Update.
20404         * doc/posix-functions/malloc.texi: Update.
20405         * NEWS: Mention the change.
20406
20407 2010-08-28  Eric Blake  <eblake@redhat.com>
20408
20409         pread, pwrite: add missing dependency
20410         * modules/pread (Depends-on): Add extensions.
20411         * modules/pwrite (Depends-on): Likewise.
20412
20413 2010-08-28  Bruno Haible  <bruno@clisp.org>
20414
20415         unistr/u*-strchr: Fix tests dependencies.
20416         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20417         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20418         Reported by Ian Beckwith <ianb@erislabs.net>.
20419
20420 2010-08-28  Bruno Haible  <bruno@clisp.org>
20421
20422         read-file: Don't occupy too much unused memory.
20423         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20424
20425 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20426             Eric Blake  <eblake@redhat.com>
20427             Bruno Haible  <bruno@clisp.org>
20428
20429         read-file: Avoid memory reallocations with regular files.
20430         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20431         (fread_file): With regular files, use the remaining length as the
20432         initial buffer size.  Check against overflow.
20433         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20434         sys_stat.
20435
20436 2010-08-28  Bruno Haible  <bruno@clisp.org>
20437
20438         ftello: Relax license.
20439         * modules/ftello (License): Relax to LGPLv2+.
20440         Reported by Eric Blake.
20441
20442 2010-08-28  Bruno Haible  <bruno@clisp.org>
20443
20444         Avoid relocwrapper link errors due to gnulib replacement functions.
20445         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20446         function.
20447         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20448
20449 2010-08-28  Bruno Haible  <bruno@clisp.org>
20450
20451         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20452         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20453         defined.
20454         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20455         Suggested by Eric Blake.
20456
20457 2010-08-28  Bruno Haible  <bruno@clisp.org>
20458
20459         sys_socket, netdb: Ensure socklen_t gets defined.
20460         * modules/sys_socket (Depends-on): Add socklen.
20461         * modules/netdb (Depends-on): Likewise.
20462         * modules/getaddrinfo (Depends-on): Remove socklen.
20463         * modules/getsockopt (Depends-on): Likewise.
20464         * modules/setsockopt (Depends-on): Likewise.
20465         * tests/test-sys_socket.c: Check that socklen_t is defined.
20466         * tests/test-netdb.c: Likewise.
20467         * m4/socklen.m4: Update comments.
20468         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20469
20470 2010-08-27  Eric Blake  <eblake@redhat.com>
20471
20472         login_tty: add missing dependency
20473         * modules/login_tty (Depends-on): Add pty.
20474
20475 2010-08-26  Eric Blake  <eblake@redhat.com>
20476
20477         lib-symbol-versions: fix m4 quoting
20478         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20479         format for AC_LINK_IFELSE.
20480
20481         glob: fix compile test
20482         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20483
20484         btowc: fix missing file
20485         * modules/btowc (Files): Also ship locale-fr.m4.
20486
20487         lseek: fix link test
20488         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20489         AC_LINK_IFELSE.
20490
20491         include_next: silence autoconf 2.68 warning
20492         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20493         AC_COMPILE_IFELSE as special.
20494         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20495         autoconf < 2.68.
20496
20497         acl: fix compilation test
20498         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20499         AC_COMPILE_IFELSE.
20500
20501 2010-08-26  Bruno Haible  <bruno@clisp.org>
20502
20503         Modernize AC_TRY_RUN invocations.
20504         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20505         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20506         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20507         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20508         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20509         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20510         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20511         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20512         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20513         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20514         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20515         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20516         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20517         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20518         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20519         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20520         gl_MBRLEN_NUL_RETVAL): Likewise.
20521         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20522         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20523         Likewise.
20524         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20525         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20526         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20527         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20528         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20529         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20530         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20531         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20532         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20533         Likewise.
20534         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20535         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20536         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20537         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20538         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20539         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20540         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20541         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20542         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20544
20545 2010-08-26  Bruno Haible  <bruno@clisp.org>
20546
20547         Modernize AC_TRY_LINK invocations.
20548         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20549         AC_TRY_LINK.
20550         * m4/argp.m4 (gl_ARGP): Likewise.
20551         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20552         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20553         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20554         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20555         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20556         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20557         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20558         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20559         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20560         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20561         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20562         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20563         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20564         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20565         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20566         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20567         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20568         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20569         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20570         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20571         Likewise.
20572         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20573         Likewise.
20574         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20575         Likewise.
20576         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20577         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20578         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20579         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20580         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20581         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20582         * m4/servent.m4 (gl_SERVENT): Likewise.
20583         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20584         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20585         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20586         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20587         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20588         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20589         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20590         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20591         * modules/tsearch-tests (configure.ac): Likewise.
20592
20593 2010-08-26  Bruno Haible  <bruno@clisp.org>
20594
20595         Modernize AC_TRY_COMPILE invocations.
20596         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20597         AC_TRY_COMPILE.
20598         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20599         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20600         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20601         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20602         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20603         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20604         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20605         * m4/lock.m4 (gl_LOCK): Likewise.
20606         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20607         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20608         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20609         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20610         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20611         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20612         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20613         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20614         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20615         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20616         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20617         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20618         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20619         extraneous semicolon.
20620
20621 2010-08-26  Jim Meyering  <meyering@redhat.com>
20622
20623         stat-time: relax license LGPL
20624         * modules/stat-time (License): Change from GPL to LGPL,
20625         with consent from all contributors, for use in libguile.
20626         Requested by Ludovic Courtès.
20627
20628 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20629
20630         poll: return immediately on POLLHUP.
20631         * lib/poll.c (poll): Always set timeout before wait_timeout is
20632         computed.
20633
20634 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20635
20636         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20637         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20638         rmdir ("dir/.//"), unlinkat.
20639
20640 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20641
20642         stdbool: avoid spurious failure with modern xlc
20643         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20644
20645 2010-08-24  Bruno Haible  <bruno@clisp.org>
20646
20647         getloadavg: simplify code
20648         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20649         gl_have_func. Update comments.
20650
20651 2010-08-24  Eric Blake  <eblake@redhat.com>
20652
20653         getloadavg: don't define SVR4 on cygwin
20654         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20655         only define SVR4 when -lkvm is required.
20656         Reported by Yaakov Selkowitz.
20657
20658 2010-08-24  Bruno Haible  <bruno@clisp.org>
20659
20660         priv-set: fix comment
20661         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20662
20663 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20664
20665         priv-set: fix comments
20666         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20667         to match code, as suggested by David Bartley in:
20668         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20669
20670 2010-08-23  Eric Blake  <eblake@redhat.com>
20671
20672         stdbool: avoid rejecting clang
20673         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20674         * tests/test-stdbool.c: Enable more tests if using the system
20675         <stdbool.h> instead of the gnulib replacement.
20676         (main): Move xlc bug test to a runtime test for all compilers.
20677         Reported by Anders Kaseorg.
20678
20679         argz: fix shell quoting issue
20680         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20681         Reported by Charles Wilson.
20682
20683 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20684             Erik Faye-Lund <kusmabite@gmail.com>
20685
20686         poll, select: handle ERROR_BROKEN_PIPE.
20687         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20688         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20689         * lib/select.c (win32_compute_revents): Do not mark a pipe
20690         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20691
20692 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20693
20694         fts: allow compilation with C++
20695         * lib/fts_.h: Specify extern "C" linkage with C++.
20696
20697 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20698
20699         Fix gnulib-tool sed script de-commentation for AIX sed.
20700         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20701         sed.
20702
20703 2010-08-17  Eric Blake  <eblake@redhat.com>
20704
20705         test-stddef: test for (some) offsetof bugs
20706         * tests/test-stddef.c: Enhance test to ensure correct type of
20707         offsetof.
20708         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20709         that we are not fixing at this time.
20710
20711 2010-08-15  Bruno Haible  <bruno@clisp.org>
20712
20713         stpncpy: Allow stpncpy to be defined as a macro.
20714         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20715         if it's already correctly declared.
20716         * lib/string.in.h (stpncpy): Undefine before redefining.
20717         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20718
20719 2010-08-14  Bruno Haible  <bruno@clisp.org>
20720
20721         Rename module 'memxfrm' to 'amemxfrm'.
20722         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20723         (amemxfrm): Renamed from memxfrm.
20724         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20725         (amemxfrm): Renamed from memxfrm.
20726         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20727         * NEWS: Mention the change.
20728         * MODULES.html.sh (String handling <string.h>): Update.
20729         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20730         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20731         * lib/unicase/u16-casexfrm.c: Likewise.
20732         * lib/unicase/u32-casexfrm.c: Likewise.
20733         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20734         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20735         * lib/uninorm/u16-normxfrm.c: Likewise.
20736         * lib/uninorm/u32-normxfrm.c: Likewise.
20737         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20738         memxfrm.
20739         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20740         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20741         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20742         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20743         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20744         Suggested by Paul Eggert.
20745
20746 2010-08-14  Bruno Haible  <bruno@clisp.org>
20747
20748         Tests for module 'astrxfrm'.
20749         * modules/astrxfrm-tests: New file.
20750         * tests/test-astrxfrm.c: New file.
20751
20752         New module 'astrxfrm'.
20753         * lib/astrxfrm.h: New file.
20754         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20755         * modules/astrxfrm: New file.
20756
20757 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20758
20759         regex: Tweak doc.
20760         * doc/regex.texi (Overview): Don't mention regex.c.
20761         (GNU Regular Expression Compiling): Likewise.
20762         (Match-end-of-line Operator): Mention 'not_eol'.
20763
20764 2010-08-14  Brian Gough  <bjg@gnu.org>
20765             Bruno Haible  <bruno@clisp.org>
20766
20767         git-merge-changelog: add doc relating to use with bzr and hg.
20768         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20769
20770 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20771
20772         pthread: fix pthread.h creation for srcdir != builddir
20773         * modules/pthread (Makefile.am): Fix the rule to work also in a
20774         non-srcdir build.
20775
20776 2010-08-13  Karl Berry  <karl@gnu.org>
20777
20778         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20779         * doc/posix-*/*: force line break before @url of POSIX
20780         specifications.
20781         Suggested by Werner Lemberg.
20782
20783 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20784
20785         strtod: fix const diagnostic
20786         * lib/strtod.c (strtod): Don't assign const char * to char *,
20787         as this elicits a warning from GCC when warnings are enabled.
20788
20789 2010-08-10  Pádraig Brady <P@draigbrady.com>
20790         and Eric Blake  <eblake@redhat.com>
20791
20792         copy-acl: ignore ENOTSUP on HP-UX
20793         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20794         so that it is available for HP-UX.
20795         * lib/copy-acl.c (qcopy_acl): Use it.
20796         Reported by Patrick M. Callahan.
20797
20798 2010-08-10  Eric Blake  <eblake@redhat.com>
20799
20800         open, chown: relax license
20801         * modules/open (License): Change to LGPLv2+, with consent by all
20802         authors, for use in augeas.
20803         * modules/chown (License): Likewise.
20804         * modules/lchown (Likewise): Likewise.
20805         Requested by Adam Stokes.
20806
20807 2010-08-09  Karl Berry  <karl@gnu.org>
20808
20809         * build-aux/ar-lib: new file, import from Automake.
20810         * config/srclist.txt: autocheck for updates.
20811
20812 2010-08-09  Eric Blake  <eblake@redhat.com>
20813
20814         readlinkat: adjust client modules
20815         * modules/areadlinkat (Depends-on): Use readlinkat, not
20816         symlinkat.
20817         * modules/areadlinkat-with-size (Depends-on): Likewise.
20818
20819         mknod: be more vocal about danger of running tests as root
20820         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20821         root, since that is just asking for problems.
20822         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20823
20824         readlinkat: split into its own module
20825         * modules/symlinkat: Split readlinkat...
20826         * modules/readlinkat: ...into separate module.
20827         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20828         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20829         * lib/symlinkat.c (readlinkat): Move...
20830         * lib/readlinkat.c: ...into new file.
20831         * modules/symlinkat-tests: Split readlinkat test...
20832         * modules/readlinkat-tests: ...into separate module.
20833         * tests/test-symlinkat.c: Split...
20834         * tests/test-readlinkat.c: ...into new file.
20835         * NEWS: Document the split.
20836         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20837         * lib/unistd.in.h (readlinkat): Likewise.
20838         Suggested by Bruno Haible.
20839
20840 2010-08-08  Bruno Haible  <bruno@clisp.org>
20841
20842         memxfrm: Speed up.
20843         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20844         that usually only one call to strxfrm is necessary for each string
20845         part.
20846         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20847
20848 2010-08-07  Karl Berry  <karl@gnu.org>
20849
20850         * doc/posix-headers/limits.texi,
20851         * doc/posix-functions/malloc.texi,
20852         * doc/posix-functions/strsignal.texi: missing @item.
20853         * doc/ld-version-script.texi: spurious leading i.
20854         * doc/regex.texi (Interval Operators): no commas inside @var.
20855
20856 2010-08-01  Bruno Haible  <bruno@clisp.org>
20857
20858         Integrate the regex documentation.
20859         * doc/gnulib.texi: Define 'cn' index.
20860         (Regular expressions): New a chapter that includes regex.texi and
20861         regexprops-generic.texi.
20862         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20863         syntax.
20864
20865         Whitespace cleanup.
20866         * doc/regex.texi: Remove trailing spaces.
20867
20868         Add regex documentation.
20869         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20870         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20871         Written by Kathy A. Hargreaves and Karl Berry.
20872
20873 2010-08-01  Bruno Haible  <bruno@clisp.org>
20874
20875         link: Update documentation.
20876         * doc/posix-functions/link.texi: Update regarding Solaris.
20877
20878 2010-07-31  Bruno Haible  <bruno@clisp.org>
20879
20880         Update modules list.
20881         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20882         (String handling <string.h>): Add memcmp2, memxfrm.
20883         (Container data structures): Add xlist, xsublist, xoset.
20884         (Core language properties): Add alignof, unused-parameter.
20885         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20886         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20887         (Unibyte characters <ctype.h>): New section.
20888         (String handling <string.h>): New section.
20889         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20890         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20891         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20892         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20893         tan, tanh, tanl, y0, y1, yn.
20894         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20895         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20896         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20897         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20898         unlockpt, vdprintf, vdprintf-posix.
20899         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20900         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20901         xconcat-filename.
20902         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20903         getdtablesize, pipe2, pipe2-safer.
20904         (Security): New section.
20905         (Networking functions): Add accept4.
20906         (Signal handling): Add sigpipe.
20907         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20908         mbmemcasecoll.
20909         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20910         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20911         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20912         pipe-filter-ii.
20913         (Misc): Add argp-version-etc, login_tty, parse-duration.
20914
20915 2010-07-31  Bruno Haible  <bruno@clisp.org>
20916
20917         Improve doc in MODULES.html.
20918         * modules/linkat (Description): Add the word "function".
20919         * modules/mkfifo (Description): Likewise.
20920         * modules/mknod (Description): Likewise.
20921         * modules/remove (Description): Likewise.
20922         * modules/renameat (Description): Likewise.
20923         * modules/stat (Description): Likewise.
20924         * modules/symlink (Description): Likewise.
20925         * modules/unlink (Description): Likewise.
20926
20927 2010-07-31  Bruno Haible  <bruno@clisp.org>
20928
20929         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20930         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20931         option --enable/disable-c++ instead of --enable/disable-cxx.
20932         * NEWS: Mention the change.
20933
20934 2010-07-31  Bruno Haible  <bruno@clisp.org>
20935
20936         readlink, areadlink: Relax test a bit.
20937         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20938         alternative to ENOTDIR.
20939         * tests/test-areadlink.h (test_areadlink): Likewise.
20940         Reported by Rainer Tammer.
20941
20942 2010-07-31  Bruno Haible  <bruno@clisp.org>
20943
20944         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20945         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20946         character, perform the search using U_STRCHR.
20947         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20948         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20949         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20950         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20951         Suggested by Paolo Bonzini.
20952
20953 2010-07-31  Bruno Haible  <bruno@clisp.org>
20954
20955         unistr/u*-strstr: Fix dependencies.
20956         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20957         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20958         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20959
20960 2010-07-31  Bruno Haible  <bruno@clisp.org>
20961
20962         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20963         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20964         the beginning of the loop.
20965         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20966         cases in 'switch' statement.
20967
20968         unistr/u8-strchr: Fix several bugs.
20969         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20970         the string. When not found, return NULL, not a pointer near the end.
20971
20972         More tests for unistr/u8-strchr.
20973         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20974         that the function does not read past the first occurrence of the byte
20975         being searched.
20976         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20977         * tests/unistr/test-u16-strchr.c (main): New function.
20978         * tests/unistr/test-u32-strchr.c (main): New function.
20979
20980 2010-07-31  Bruno Haible  <bruno@clisp.org>
20981
20982         posix-modules: Ignore backup files of documentation files.
20983         * posix-modules: grep only through files named *.texi.
20984
20985 2010-07-31  Bruno Haible  <bruno@clisp.org>
20986
20987         symlinkat: Fix documentation.
20988         * doc/posix-functions/readlinkat.texi: Fix module name.
20989
20990 2010-07-31  Bruno Haible  <bruno@clisp.org>
20991
20992         fchownat: Replace also when chown has the trailing slash bug.
20993         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20994         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20995         introduced on 2010-04-10.
20996         Reported by Rainer Tammer.
20997
20998 2010-07-31  Bruno Haible  <bruno@clisp.org>
20999
21000         linkat: Work around AIX 7.1 bug.
21001         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21002         whether linkat handles trailing slash correctly. If not, replace linkat
21003         and define LINKAT_TRAILING_SLASH_BUG.
21004         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21005         check whether (fd1,file1) points to a directory if file1 or file2 ends
21006         in a slash. Code taken from lib/link.c.
21007         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21008         Reported by Rainer Tammer.
21009
21010 2010-07-31  Bruno Haible  <bruno@clisp.org>
21011
21012         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21013         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21014         This disables an xlc optimization that was causing wrong test results.
21015         Reported by Rainer Tammer.
21016
21017 2010-07-31  Bruno Haible  <bruno@clisp.org>
21018
21019         iconv: Work around AIX 6.1..7.1 bug.
21020         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21021         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21022         cross-compiling, guess no on all versions of AIX.
21023         Reported by Rainer Tammer.
21024
21025 2010-07-31  Bruno Haible  <bruno@clisp.org>
21026
21027         readlink: Relax test a bit.
21028         * tests/test-readlink.h (test_readlink): Allow different errno value
21029         when readlink is called with a file name that ends in / and refers to
21030         a file.
21031         Suggested by Eric Blake.
21032         Reported by Rainer Tammer.
21033
21034 2010-07-31  Bruno Haible  <bruno@clisp.org>
21035
21036         copysign: Does not require -lm on glibc systems.
21037         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21038         gl_COMMON_DOUBLE_MATHFUNC.
21039         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21040
21041 2010-07-31  Bruno Haible  <bruno@clisp.org>
21042
21043         duplocale: Work around AIX 7.1 bug.
21044         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21045         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21046         * lib/duplocale.c (rpl_duplocale): Update comment.
21047         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21048         Reported by Rainer Tammer.
21049
21050 2010-07-30  Bruno Haible  <bruno@clisp.org>
21051
21052         dirfd: Avoid link error on AIX 7.1.
21053         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21054         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21055         exist, set REPLACE_DIRFD.
21056         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21057         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21058         * doc/posix-functions/dirfd.texi: Update.
21059         Reported by Rainer Tammer.
21060
21061 2010-07-30  Eric Blake  <eblake@redhat.com>
21062
21063         strtod: next round of AIX fixes
21064         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21065         exponent.
21066         * tests/test-strtod.c (main): Enhance tests.
21067         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21068         Reported by Rainer Tammer.
21069
21070         futimens: fix configure check
21071         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21072         Reported by Bruno Haible.
21073
21074 2010-07-30  Bruno Haible  <bruno@clisp.org>
21075
21076         getline: Update regarding AIX.
21077         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21078         Reported by Rainer Tammer.
21079
21080 2010-07-30  Bruno Haible  <bruno@clisp.org>
21081
21082         wcwidth: Drop replacement on AIX 7.
21083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21084         AIX 7.
21085         Reported by Rainer Tammer.
21086
21087 2010-07-30  Bruno Haible  <bruno@clisp.org>
21088
21089         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21090         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21091         a 'char *'.
21092         Reported by Rainer Tammer.
21093
21094 2010-07-30  Bruno Haible  <bruno@clisp.org>
21095
21096         unlink: Update regarding AIX.
21097         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21098         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21099         Reported by Rainer Tammer.
21100
21101 2010-07-30  Bruno Haible  <bruno@clisp.org>
21102
21103         symlink: Update regarding AIX.
21104         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21105         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21106         Reported by Rainer Tammer.
21107
21108 2010-07-30  Bruno Haible  <bruno@clisp.org>
21109
21110         strndup: Update regarding AIX.
21111         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21112         AIX 7.
21113         Reported by Rainer Tammer.
21114
21115 2010-07-30  Bruno Haible  <bruno@clisp.org>
21116
21117         stat: Update regarding AIX.
21118         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21119         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21120         Reported by Rainer Tammer.
21121
21122 2010-07-30  Bruno Haible  <bruno@clisp.org>
21123
21124         truncl: Fix autoconf test.
21125         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21126         whether truncl works.
21127         Reported by Rainer Tammer.
21128
21129 2010-07-30  Bruno Haible  <bruno@clisp.org>
21130
21131         round: Update regarding AIX.
21132         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21133         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21134         Reported by Rainer Tammer.
21135
21136 2010-07-30  Bruno Haible  <bruno@clisp.org>
21137
21138         rename: Update regarding AIX.
21139         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21140         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21141         Reported by Rainer Tammer.
21142
21143 2010-07-30  Bruno Haible  <bruno@clisp.org>
21144
21145         printf.m4: Update regarding AIX.
21146         * m4/printf.m4: Update comments regarding AIX.
21147         Reported by Rainer Tammer.
21148
21149 2010-07-30  Bruno Haible  <bruno@clisp.org>
21150
21151         iconv: Update regarding AIX.
21152         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21153         AIX 7.
21154         Reported by Rainer Tammer.
21155
21156 2010-07-30  Bruno Haible  <bruno@clisp.org>
21157
21158         getopt: Update regarding AIX.
21159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21160         no on AIX.
21161         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21162         Reported by Rainer Tammer.
21163
21164 2010-07-30  Bruno Haible  <bruno@clisp.org>
21165
21166         ldexpl; Update regarding AIX.
21167         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21168         on AIX 7.
21169         Reported by Rainer Tammer.
21170
21171 2010-07-30  Bruno Haible  <bruno@clisp.org>
21172
21173         frexpl: Update regarding AIX.
21174         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21175         on AIX 7.
21176         Reported by Rainer Tammer.
21177
21178 2010-07-30  Bruno Haible  <bruno@clisp.org>
21179
21180         open, fopen: Update regarding AIX.
21181         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21182         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21183         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21184         * doc/posix-functions/fopen.texi: Likewise.
21185         Reported by Rainer Tammer.
21186
21187 2010-07-30  Bruno Haible  <bruno@clisp.org>
21188
21189         chown: Update doc regarding AIX.
21190         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21191         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21192         Reported by Rainer Tammer.
21193
21194 2010-07-30  Eric Blake  <eblake@redhat.com>
21195
21196         strtod: fix bug in replacement function on AIX
21197         * lib/strtod.c (strtod): Special case broken "0x" parse in
21198         underlying strtod.
21199         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21200         * doc/posix-functions/strtod.texi (strtod): Likewise.
21201         Reported by Rainer Tammer.
21202
21203 2010-07-30  Bruno Haible  <bruno@clisp.org>
21204
21205         mbrlen: Fix cross-compilation guess for AIX.
21206         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21207         guess. Leftover from 2008-12-22.
21208
21209 2010-07-30  Bruno Haible  <bruno@clisp.org>
21210
21211         mbrtowc: Fix cross-compilation guess for AIX.
21212         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21213         guess. Leftover from 2008-12-21.
21214
21215 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21216
21217         init.sh: work around trap limitation of some shells
21218         * tests/init.sh (setup_): Move exit trap outside of shell function.
21219
21220 2010-07-29  Eric Blake  <eblake@redhat.com>
21221
21222         strtod: aid debugging
21223         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21224         understanding why strtod is rejected.
21225
21226 2010-07-28  Bruno Haible  <bruno@clisp.org>
21227
21228         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21229         * lib/unistr/u8-chr.c: Include <string.h>.
21230         * tests/unistr/test-u8-chr.c: Likewise.
21231         * tests/unistr/test-u16-chr.c: Likewise.
21232         * tests/unistr/test-u32-chr.c: Likewise.
21233         * tests/unistr/test-u8-strchr.c: Likewise.
21234         * tests/unistr/test-u16-strchr.c: Likewise.
21235         * tests/unistr/test-u32-strchr.c: Likewise.
21236         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21237         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21238         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21239         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21240
21241 2010-07-28  Bruno Haible  <bruno@clisp.org>
21242
21243         Use spaces for indentation, not tabs.
21244         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21245
21246 2010-07-27  Bruno Haible  <bruno@clisp.org>
21247
21248         mbspcasecmp: Fix function specification.
21249         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21250         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21251         Reported by Eric Blake <eblake@redhat.com>.
21252
21253 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21254
21255         timespec: use cast and not conditional, as truncation isn't possible
21256         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21257         instead of a conditional.  Comment about the situation in more detail.
21258         This undoes most of the 2009-10-29 patch.
21259
21260 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21261
21262         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21263         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21264         * lib/unistr/u8-strchr.c: Likewise.
21265         * modules/unistr/u8-chr: Depend on memchr.
21266
21267         unistr/u*-strchr: add tests
21268         * modules/unistr/u8-strchr-tests: New file.
21269         * modules/unistr/u16-strchr-tests: New file.
21270         * modules/unistr/u32-strchr-tests: New file.
21271         * tests/unistr/test-strchr.h: New file.
21272         * tests/unistr/test-u8-strchr.c: New file.
21273         * tests/unistr/test-u16-strchr.c: New file.
21274         * tests/unistr/test-u32-strchr.c: New file.
21275
21276         unistr/u*-chr: test multibyte sequences more
21277         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21278         test vector.
21279         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21280         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21281         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21282
21283         unistr/u*-chr: test multibyte sequences
21284         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21285
21286         unistr/u*-chr: prepare for multibyte tests
21287         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21288         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21289         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21290         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21291         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21292         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21293
21294 2010-07-18  Bruno Haible  <bruno@clisp.org>
21295
21296         unistr/u8-strchr: Optimize non-ASCII argument case.
21297         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21298         because the first byte often matches anyway.
21299         Reported by Pádraig Brady <P@draigbrady.com>.
21300
21301 2010-07-15  Karl Berry  <karl@gnu.org>
21302
21303         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21304
21305 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21306
21307         getcwd: on Solaris, work better if ancestors are inaccessible
21308         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21309         buffer and size, try again with a large buffer.  This works better
21310         on Solaris, since its getcwd succeeds even if the path to the root
21311         is inaccessible, and this is helpful in common cases such as .zfs
21312         hidden directories.  Problem reported by J Chapman Flack in
21313         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21314         Use system getcwd if it's declared, not merely if it's partly
21315         working; use the partly-working test only to avoid needless effort
21316         if the system getcwd fails.
21317         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21318         comment that was already obsolete and is now even more obsolete.
21319         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21320         now might call strdup.
21321
21322 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21323
21324         pthread: Add enough so that coreutils/src/sort.c compiles.
21325         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21326         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21327         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21328         Include <sys/types.h>, in case it defines pthread_t.
21329         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21330         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21331         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21332         (pthread_rwlockattr_t, pthread_spinlock_t):
21333         New typedefs, if HAVE_PTHREAD_T is not defined.
21334         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21335         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21336         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21337         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21338         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21339         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21340         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21341         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21342         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21343         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21344         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21345         New macros.
21346         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21347         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21348         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21349         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21350         (pthread_spin_unlock): New dummy functions.
21351         (pthread_create): Return EAGAIN; don't set errno.
21352         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21353         require AC_C_INLINE.
21354         * modules/pthread (Depends-on): Add sched, time.
21355         (pthread.h): Use AM_V_GEN.
21356
21357 2010-07-13  Bruno Haible  <bruno@clisp.org>
21358
21359         striconveh: Don't malloc memory if the result buffer is sufficient.
21360         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21361         buffer if its size is sufficient.
21362         Reported by Ludovic Courtès <ludo@gnu.org>.
21363
21364 2010-07-13  Bruno Haible  <bruno@clisp.org>
21365
21366         strtod: Add safety check.
21367         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21368
21369 2010-07-12  Bruno Haible  <bruno@clisp.org>
21370
21371         Unify tests that set gl_cv_func_ldexpl_no_libm.
21372         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21373         gl_FUNC_LDEXPL.
21374         (gl_FUNC_LDEXPL): Invoke it.
21375         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21376
21377 2010-07-12  Bruno Haible  <bruno@clisp.org>
21378
21379         Unify tests that set gl_cv_func_ldexp_no_libm.
21380         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21381         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21382         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21383         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21384         * modules/strtod (Files): Add m4/ldexp.m4.
21385
21386 2010-07-12  Bruno Haible  <bruno@clisp.org>
21387
21388         Unify tests that set gl_cv_func_frexpl_no_libm.
21389         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21390         gl_FUNC_FREXPL_NO_LIBM.
21391         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21392         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21393
21394 2010-07-12  Bruno Haible  <bruno@clisp.org>
21395
21396         Unify tests that set gl_cv_func_frexp_no_libm.
21397         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21398         gl_FUNC_FREXP_NO_LIBM.
21399         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21400         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21401
21402 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21403
21404         memcoll: clarify sizes versus lengths, document better, and tweak perf
21405         * lib/memcoll.c (strcoll_loop, memcoll0):
21406         Improve quality of descriptive comments.  Name variables
21407         consistently as to whether they are lengths (which do not include
21408         terminating null) versus sizes (which do).
21409         * lib/xmemcoll.c (xmemcoll0): Likewise.
21410         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21411         returned when s1size == 0; this is easier to compile and saves
21412         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21413
21414 2010-07-12  Bruno Haible  <bruno@clisp.org>
21415
21416         Tests for module '_Exit'.
21417         * modules/_Exit-tests: New file.
21418         * tests/test-_Exit.sh: New file.
21419         * tests/test-_Exit.c: New file.
21420
21421         New module '_Exit'.
21422         * lib/stdlib.in.h (__attribute__): New macro.
21423         (_Exit): New declaration.
21424         * lib/_Exit.c: New file.
21425         * m4/_Exit.m4: New file.
21426         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21427         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21428         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21429         * modules/_Exit: New file.
21430         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21431         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21432
21433 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21434
21435         strtod: make it more-accurate typically, and don't require libm
21436         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21437         Include limits.h.  Don't include string.h.
21438         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21439         (locale_isspace): New function, so that no casts are needed to
21440         check whether *s is a space.
21441         (ldexp): Provide an unused dummy if not available.
21442         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21443         (strtod): Use them.  This implementation prefers to use the
21444         underlying strtod if available, falling back on our own code
21445         only to fix known bugs.  This is more likely to produce an
21446         accurate result.  Also, it avoids the use of libm functions.
21447         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21448         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21449         was absent, but it caused a test failure with coreutils.
21450         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21451         with libm.
21452         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21453         * modules/strtod-tests (Makefile.am): Likewise.
21454
21455 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21456             Bruno Haible  <bruno@clisp.org>
21457
21458         unistr/u8-strchr: Optimize ASCII argument case.
21459         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21460
21461 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21462
21463         (x)memcoll: minor tweaks
21464         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21465         is after the type that it qualifies.
21466         (memcoll0): Likewise.
21467         * lib/memcoll.h (memcoll0): Likewise.
21468         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21469         * lib/xmemcoll.h (xmemcoll0): Likewise.
21470         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21471         differs from memcoll in that the NUL byte is part of the argument.
21472         Omit the abort-checks, as performance is a real issue here.  Plus,
21473         the checks were wrong anyway (an off-by-one error).  Omit local
21474         variable 'diff', as it's a bit clearer that way.
21475         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21476         no longer needed.
21477
21478 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21479
21480         (x)memcoll: speedup when input is known to be NUL delimited
21481         * lib/memcoll.c: Include stdlib.
21482         (memcoll0): New function.
21483         (strcoll_loop): New function, refactored for use in both memcoll
21484         and memcoll0.
21485         * lib/memcoll.h (memcoll0): Add prototype.
21486         * lib/xmemcoll.c (xmemcoll0): New function.
21487         (collate_error): New function, refactored for use in both xmemcoll
21488         and xmemcoll0.
21489         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21490         * m4/memcoll.m4: add inline invocation.
21491
21492 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21493
21494         * build-aux/bootstrap: Remove any local translations
21495         from the translation project synchronization directory,
21496         so that local only translations are not distributed.
21497
21498 2010-07-04  Bruno Haible  <bruno@clisp.org>
21499
21500         fsusage: Clarify which code applies to which platforms.
21501         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21502         platform.
21503         * lib/fsusage.c (get_fs_usage): Likewise.
21504
21505 2010-07-04  Bruno Haible  <bruno@clisp.org>
21506
21507         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21508         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21509         Reported by Martin Lambers <marlam@marlam.de>.
21510
21511 2010-07-04  Jim Meyering  <meyering@redhat.com>
21512
21513         hash: once again explicitly disallow insertion of NULL
21514         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21515         inserting a NULL pointer cannot work with these functions.
21516         Add a comment with details.
21517         This reverts part of the 2010-07-01 commit, 5bef1a35
21518         "hash: extend module to deal with non-pointer keys".
21519
21520 2010-07-01  Bruno Haible  <bruno@clisp.org>
21521
21522         stdbool: Update doc.
21523         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21524         Info from Christian Weisgerber <naddy@mips.inka.de>.
21525
21526 2010-07-01  Jim Meyering  <meyering@redhat.com>
21527
21528         hash: extend module to deal with non-pointer keys
21529         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21530         but that allows insertion of non-pointer entries.
21531         Do not disallow an ENTRY value of NULL.
21532         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21533         * lib/hash.h (hash_insert0): Declare.
21534
21535 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21536
21537         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21538         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21539         not present (i.e. with autoconf 2.59 and when using gettextize, not
21540         gnulib), require AC_GNU_SOURCE instead.
21541
21542 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21543
21544         idpriv-drop: Fix tests.
21545         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21546         not to the test-idpriv-droptemp program.
21547
21548 2010-06-29  Bruno Haible  <bruno@clisp.org>
21549
21550         string: Fix syntax error with g++ 2.96.
21551         * lib/string.in.h (__pure__): Remove definition.
21552         (_GL_ATTRIBUTE_PURE): New macro.
21553         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21554         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21555         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21556
21557 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21558
21559         unitypes: Fix bug introduced on 2010-05-18.
21560         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21561
21562 2010-06-22  Eric Blake  <eblake@redhat.com>
21563
21564         memmem: slight optimization
21565         * lib/str-two-way.h (critical_factorization): Update comments.
21566         Reduce work during factorization phase.
21567         Reported by Carlos Bueno <carlos@bueno.org>.
21568
21569 2010-06-21  Bruno Haible  <bruno@clisp.org>
21570
21571         Fix HAVE_CALLOC_POSIX misnomer.
21572         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21573         !HAVE_CALLOC_POSIX.
21574         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21575         HAVE_CALLOC_POSIX.
21576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21577         instead of HAVE_CALLOC_POSIX.
21578         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21579         HAVE_CALLOC_POSIX.
21580
21581         Use modern idiom for calloc() replacement.
21582         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21583         AC_FUNC_CALLOC.
21584         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21585         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21586         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21587         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21588         (gl_REPLACE_CALLOC): New macro.
21589
21590 2010-06-21  Bruno Haible  <bruno@clisp.org>
21591
21592         Fix HAVE_REALLOC_POSIX misnomer.
21593         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21594         !HAVE_REALLOC_POSIX.
21595         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21596         HAVE_REALLOC_POSIX.
21597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21598         instead of HAVE_REALLOC_POSIX.
21599         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21600         HAVE_REALLOC_POSIX.
21601
21602         Use modern idiom for realloc() replacement.
21603         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21604         AC_FUNC_REALLOC.
21605         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21606         Autoconf's AC_FUNC_REALLOC.
21607         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21608         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21609         (gl_REPLACE_REALLOC): New macro.
21610         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21611
21612 2010-06-21  Bruno Haible  <bruno@clisp.org>
21613
21614         Fix HAVE_MALLOC_POSIX misnomer.
21615         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21616         !HAVE_MALLOC_POSIX.
21617         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21618         HAVE_MALLOC_POSIX.
21619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21620         instead of HAVE_MALLOC_POSIX.
21621         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21622         HAVE_MALLOC_POSIX.
21623
21624         Use modern idiom for malloc() replacement.
21625         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21626         AC_FUNC_MALLOC.
21627         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21628         Autoconf's AC_FUNC_MALLOC.
21629         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21630         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21631         (gl_REPLACE_MALLOC): New macro.
21632         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21633
21634 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21635
21636         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21637         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21638         This macro takes 3 arguments, not 4.
21639
21640 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21641
21642         ipv6: fix detection under mingw
21643         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21644         in6_addr.
21645
21646 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21647
21648         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21649         that strtod() works when cross-compiling to a glibc version known
21650         to work.
21651
21652 2010-06-15  Bruno Haible  <bruno@clisp.org>
21653
21654         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21655
21656 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21657
21658         select: Correct timeout.
21659         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21660
21661 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21662
21663         git-version-gen: init shell var to avoid env var influence
21664         * build-aux/git-version-gen (v): Init shell var to empty.
21665
21666 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21667
21668         priv-set: Don't assume that priv.h exists merely because getppriv does.
21669         See Jan Andersen's bug report about AIX 5L in
21670         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21671         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21672         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21673         * lib/priv-set.h: Likewise.
21674         * tests/test-priv-set.c: Likewise.
21675
21676 2010-06-13  Bruno Haible  <bruno@clisp.org>
21677
21678         relocatable: Make it easier to test whether to install wrappers.
21679         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21680         RELOCATABLE_VIA_WRAPPER.
21681
21682 2010-06-13  Bruno Haible  <bruno@clisp.org>
21683
21684         gnulib-tool: Display specified modules and dependencies differently.
21685         * gnulib-tool (func_show_module_list): New function.
21686         (func_import, func_create_testdir): Invoke it.
21687         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21688
21689 2010-06-13  Bruno Haible  <bruno@clisp.org>
21690
21691         gnulib-tool: Align code of func_import and func_create_testdir.
21692         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21693         specified_modules.
21694
21695 2010-06-12  Jim Meyering  <meyering@redhat.com>
21696
21697         test-inttostr: avoid spurious failure on Solaris 9
21698         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21699         to accept "%ju".  Reported by Bruno Haible.
21700
21701 2010-06-11  Jim Meyering  <meyering@redhat.com>
21702
21703         test-sys_socket: mark variables as used more readably
21704         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21705         as "used" explicitly via (void) statement casts.  This is more
21706         readable than using them in an artificial return expression.
21707         Suggestion from Bruno Haible.
21708
21709 2010-06-11  Bruno Haible  <bruno@clisp.org>
21710
21711         Avoid some more warnings from "gcc -Wwrite-strings".
21712         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21713         to 'const char *'.
21714         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21715         * tests/test-c-strcasestr.c (main): Likewise.
21716         * tests/test-mbscasestr1.c (main): Likewise.
21717         * tests/test-mbscasestr2.c (main): Likewise.
21718         * tests/test-memmem.c (main): Likewise.
21719         * tests/test-strstr.c (main): Likewise.
21720         * tests/test-strcasestr.c (main): Likewise.
21721
21722 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21723
21724         init.sh: change framework_failure_ to fail with status 99, not 1
21725         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21726         automake's parallel-tests rule that this is an unexpected failure,
21727         even if the test is listed in XFAIL_TESTS.
21728
21729 2010-06-11  Jim Meyering  <meyering@redhat.com>
21730
21731         test-inttostr: avoid warnings about 4-6KB literal strings
21732         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21733         Include "macros.h", for its definition of ASSERT.
21734         (CK): s/assert/ASSERT/
21735         * modules/inttostr-tests (Files): Add macros.h.
21736
21737         init.sh: don't use $ME_ or skip_ before they are defined
21738         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21739         their first uses.  Also hoist their companions: warn_, fail_,
21740         framework_failure_, $stderr_fileno.  Prompted by a patch from
21741         Stefano Lattarini.
21742
21743         test-sys_socket: avoid set-but-not-used warnings from gcc
21744         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21745         avoid warning about set-but-not-used variables.
21746
21747         test-xvasprintf: avoid 'const' discard warnings
21748         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21749         "const" when assigning from literal strings.
21750         (test_xasprintf): Add "void" in function argument list to placate
21751         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21752
21753         tests: avoid compilation warnings in argmatch and exclude tests...
21754         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21755         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21756         Since it always exits, declare with the "noreturn" attribute.
21757         * tests/test-argmatch.c: Likewise.
21758
21759         tests: avoid 'const' discard warnings in mbsstr tests
21760         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21761         * tests/test-mbsstr2.c (main): Likewise.
21762
21763         test-verify: avoid warning from gcc's -Wmissing-declarations
21764         * tests/test-verify.c (function): Declare to be static.
21765
21766         test-inttostr.c: include <string.h> for use of strcmp
21767         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21768
21769         test-linkat: avoid failed assertion on "other" architectures
21770         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21771         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21772         sparc: https://bugs.launchpad.net/bugs/591968
21773
21774 2010-06-11  Jim Meyering  <meyering@redhat.com>
21775
21776         printf.m4: avoid autoconf's "Expanded Before Required" warning
21777         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21778         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21779         autoconf warning.
21780
21781 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21782
21783         Replacement header templates are now named with ".in", not "_".
21784         * doc/gnulib-intro.texi: Correct.
21785
21786 2010-06-10  Jim Meyering  <meyering@redhat.com>
21787
21788         inttostr-tests: depend on snprintf, not snprintf-posix
21789         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21790         snprintf-posix, to avoid this aclocal failure:
21791           missing file gnulib-tests/vasnprintf.c
21792           configure.ac:45: error: expected source file, required through \
21793           AC_LIBSOURCES, not found
21794
21795 2010-06-10  Jim Meyering  <meyering@redhat.com>
21796
21797         inttostr: add a new function, inttostr, and tests
21798         The namesake function was not available.  The existence of the
21799         template file, inttostr.c makes its addition nontrivial.
21800         * lib/anytostr.c: Rename from inttostr.c.
21801         (anytostr): Rename from inttostr.
21802         * lib/inttostr.c: New file.
21803         * modules/inttostr (Files): Add anytostr.c.
21804         (Makefile.am): Set lib_SOURCES instead of ...
21805         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21806         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21807         * lib/offtostr.c: Likewise.
21808         * lib/uinttostr.c: Likewise.
21809         * lib/umaxtostr.c: Likewise.
21810         * modules/inttostr-tests: New file.
21811         * tests/test-inttostr.c: New file.  Test these functions.
21812
21813 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21814             Bruno Haible  <bruno@clisp.org>
21815
21816         Add "Extending Gnulib" chapter to manual.
21817         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21818         chapter.
21819         (Extending Gnulib): New chapter.
21820         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21821         chapter.
21822
21823 2010-06-09  Bruno Haible  <bruno@clisp.org>
21824
21825         Avoid relocwrapper link errors due to gnulib replacement functions.
21826         * lib/areadlink.c: Use the system's malloc, realloc functions.
21827         (areadlink): Set errno to ENOMEM explicitly.
21828         * modules/areadlink (Depends-on): Remove malloc-posix.
21829         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21830
21831 2010-06-09  Bruno Haible  <bruno@clisp.org>
21832
21833         Avoid relocwrapper link errors due to gnulib replacement functions.
21834         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21835         * lib/malloca.c: Likewise.
21836         * lib/relocatable.c: Likewise.
21837         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21838         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21839         * lib/setenv.c: Use the system's malloc, realloc functions.
21840         * lib/strerror.c: Use the system's sprintf function.
21841         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21842
21843 2010-06-04  Bruno Haible  <bruno@clisp.org>
21844
21845         Prefer documented low-level autoconf macro names.
21846         * m4/lib-link.m4: Use m4_translit instead of translit.
21847         * m4/environ.m4: Likewise.
21848         * m4/mathfunc.m4: Likewise.
21849         * m4/onceonly.m4: Likewise.
21850         * m4/stdint.m4: Likewise.
21851         Suggested by Eric Blake.
21852
21853 2010-06-04  Martin Lambers  <marlam@marlam.de>
21854             Bruno Haible  <bruno@clisp.org>
21855
21856         havelib: Allow library names with '+' characters.
21857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21858         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21859
21860 2010-06-09  Bruno Haible  <bruno@clisp.org>
21861
21862         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21863         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21864         realloc failed.
21865
21866 2010-06-08  Peter Simons  <simons@cryp.to>
21867
21868         maint.mk: make the news-check rule more configurable
21869         * top/maint.mk (news-check-lines-spec): New variable.
21870         (news-check): Use "sed -n 1,10p" in place of "head".
21871
21872 2010-06-07  Jim Meyering  <meyering@redhat.com>
21873
21874         do-release-commit-and-tag: fix typo in --help
21875         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21876
21877         regex: avoid new dead-code warning with gcc-4.6.0
21878         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21879         if-block containing a while-loop.  It's been unused for at least
21880         5 years.
21881
21882 2010-06-05  Bruno Haible  <bruno@clisp.org>
21883
21884         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21885         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21886
21887 2010-06-04  Bruno Haible  <bruno@clisp.org>
21888
21889         Update to GNU gettext 0.18.1.
21890         * modules/gettext (configure.ac): Require gettext infrastructure from
21891         version 0.18.1.
21892
21893 2010-06-03  Bruno Haible  <bruno@clisp.org>
21894
21895         Don't use AC_LIBOBJ with file names in subdirectories.
21896         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21897         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21898         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21899         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21900         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21901         gl_LIBUNISTRING_LIBSOURCE.
21902         (Makefile.am): Augment lib_SOURCES here, conditionally.
21903         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21904
21905 2010-06-03  Bruno Haible  <bruno@clisp.org>
21906
21907         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21908         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21909         expansion does not end with a newline.
21910         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21911         unnecessary newline.
21912
21913 2010-06-03  Bruno Haible  <bruno@clisp.org>
21914
21915         Reduce dependencies.
21916         * tests/test-quotearg.h: New file, extracted from
21917         tests/test-quotearg.c.
21918         * tests/test-quotearg-simple.c: New file, extracted from
21919         tests/test-quotearg.c.
21920         * tests/test-quotearg.c: Don't include <ctype.h>.
21921         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21922         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21923         use_quote_double_quotes, use_quotearg_colon): Moved to
21924         tests/test-quotearg.h.
21925         (results_g, flag_results, custom_quotes, custom_results): Moved
21926         to tests/test-quotearg-simple.c.
21927         (main): Moved the part that does not depend on gettext to
21928         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21929         performed.
21930         * modules/quotearg-simple: New file.
21931         * modules/quotearg-simple-tests: New file.
21932         * modules/quotearg (Depends-on): Add quotearg-simple.
21933         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21934         (Files): Add tests/test-quotearg.h.
21935         Reported by Paolo Bonzini.
21936
21937 2010-06-03  Bruno Haible  <bruno@clisp.org>
21938
21939         Reduce dependencies.
21940         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21941
21942 2010-06-03  Bruno Haible  <bruno@clisp.org>
21943
21944         time: Undefine more broken macros.
21945         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21946         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21947         Reported by Eric Blake.
21948
21949 2010-06-03  Bruno Haible  <bruno@clisp.org>
21950
21951         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21952         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21953         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21954         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21955         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21956         Reported by Ludovic Courtès <ludo@gnu.org>.
21957
21958 2010-06-02  Eric Blake  <eblake@redhat.com>
21959
21960         time: work with mingw + pthreads-win32 library
21961         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21962         if timespec is defined only in pthread.h.
21963         * modules/time (Makefile.am): Substitute it.
21964         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21965         <pthread.h>, when needed.
21966         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21967         from the library.
21968
21969 2010-05-31  Bruno Haible  <bruno@clisp.org>
21970
21971         Avoid expanding two macros in the wrong order.
21972         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21973         gl_LIBUNISTRING if it is defined.
21974         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21975         autoconf >= 2.64.
21976         Reported by Ludovic Courtès <ludo@gnu.org>.
21977
21978 2010-05-27  Jim Meyering  <meyering@redhat.com>
21979
21980         maint.mk: also prohibit "#undef" of always-defined symbols
21981         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21982         Allow more than one space before the symbol name.
21983         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21984         the regexp uses alternation.
21985
21986 2010-05-26  Eric Blake  <eblake@redhat.com>
21987
21988         maint.mk: avoid echo -e
21989         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21990         Convert all uses of echo -* to printf.
21991         Reported by Matthias Bolte.
21992
21993 2010-05-25  Bruno Haible  <bruno@clisp.org>
21994
21995         Update to GNU gettext 0.18, part 2.
21996         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21997         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21998
21999 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22000
22001         Add missing include in test-pwrite.c.
22002         * tests/test-pwrite.c: Include string.h, for strcmp.
22003
22004 2010-05-24  Bruno Haible  <bruno@clisp.org>
22005
22006         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22007
22008 2010-05-24  Bruno Haible  <bruno@clisp.org>
22009
22010         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22011         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22012         iconveh_error argument.
22013         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22014         U_STRCONV_TO_LOCALE.
22015         * lib/unistr/u16-strcoll.c: Likewise.
22016         * lib/unistr/u32-strcoll.c: Likewise.
22017         * modules/unistr/u8-strcoll (Depends-on): Add
22018         uniconv/u8-strconv-to-enc, localcharset. Remove
22019         uniconv/u8-strconv-to-locale.
22020         (configure.ac): Bump version number.
22021         * modules/unistr/u16-strcoll (Depends-on): Add
22022         uniconv/u16-strconv-to-enc, localcharset. Remove
22023         uniconv/u16-strconv-to-locale.
22024         (configure.ac): Bump version number.
22025         * modules/unistr/u32-strcoll (Depends-on): Add
22026         uniconv/u32-strconv-to-enc, localcharset. Remove
22027         uniconv/u32-strconv-to-locale.
22028         (configure.ac): Bump version number.
22029
22030 2010-05-24  Bruno Haible  <bruno@clisp.org>
22031
22032         Avoid a test failure on NetBSD 5.0.
22033         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22034         an iconv() bug.
22035
22036 2010-05-24  Bruno Haible  <bruno@clisp.org>
22037
22038         Adjust #include directive style.
22039         * modules/regex (Includes): Recommend to write <regex.h>.
22040
22041 2010-05-24  Bruno Haible  <bruno@clisp.org>
22042
22043         regex: Don't require alloca.
22044         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22045         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22046         only inside if (0).
22047
22048 2010-05-23  Jim Meyering  <meyering@redhat.com>
22049
22050         test-renameat.c: include <sys/stat.h>
22051         * tests/test-renameat.c: Include <sys/stat.h>; required for
22052         definition of S_IS* macros.
22053
22054 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22055
22056         Update maintainer documentation for 'relocatable-prog' module.
22057         * doc/relocatable-maint.texi: Update.
22058         Comments by Bruno Haible.
22059
22060 2010-05-23  Bruno Haible  <bruno@clisp.org>
22061
22062         git-merge-changelog: Enable --split-merged-entry by default.
22063         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22064         (usage): Don't mention this option any more.
22065         Reported by Ralf Wildenhues.
22066
22067 2010-05-23  Jim Meyering  <meyering@redhat.com>
22068
22069         test-pwrite: do not leave behind a test file named "out"
22070         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22071         The trivial-looking use of init.sh is really necessary.
22072         It ensures that the temporary file, "out", is created in
22073         a temporary directory, and removed upon termination.
22074         * tests/test-pwrite.sh: Re-add file.
22075         * modules/pwrite-tests: Reference it.
22076
22077 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22078
22079         Fix output redirection buglet in init.sh.
22080         * tests/init.sh: Fix redirection of stderr.
22081
22082 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22083
22084         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22085
22086 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22087
22088         * modules/valgrind-tests: New file.
22089         * m4/valgrind-tests.m4: New file.
22090         * doc/valgrind-tests.texi: New file.
22091         * doc/gnulib.texi (Running self-tests under valgrind): New
22092         section.
22093
22094 2010-05-19  Bruno Haible  <bruno@clisp.org>
22095
22096         Clean up dead code in recent commit.
22097         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22098         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22099         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22100         Suggested by Paolo Bonzini.
22101
22102 2010-05-19  Bruno Haible  <bruno@clisp.org>
22103
22104         Avoid valgrind error reports from libunistring.
22105         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22106         * modules/libunistring (Files): Add it.
22107         * modules/libunistring-optional (Files): Likewise.
22108
22109 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22110             Bruno Haible  <bruno@clisp.org>
22111
22112         New module 'libunistring-optional'.
22113         * modules/libunistring-optional: New file.
22114         * m4/libunistring-base.m4: New file.
22115         * m4/libunistring-optional.m4: New file.
22116         * lib/unicase.in.h: Renamed from lib/unicase.h.
22117         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22118         * lib/unictype.in.h: Renamed from lib/unictype.h.
22119         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22120         * lib/uniname.in.h: Renamed from lib/uniname.h.
22121         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22122         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22123         * lib/unistr.in.h: Renamed from lib/unistr.h.
22124         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22125         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22126         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22127         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22128         gl_LIBUNISTRING. If the library was found, determine the installed
22129         version and set LIBUNISTRING_VERSION.
22130         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22131         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22132         handle a configuration option --with-included-libunistring.
22133         * modules/libunistring (Files): Add m4/absolute-header.m4.
22134         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22135         Add m4/libunistring-base.m4.
22136         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22137         (Makefile.am): Build unicase.h from unicase.in.h.
22138         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22139         Add m4/libunistring-base.m4.
22140         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22141         (Makefile.am): Build uniconv.h from uniconv.in.h.
22142         * modules/unictype/base (Files): Use unictype.in.h instead of
22143         unictype.h. Add m4/libunistring-base.m4.
22144         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22145         (Makefile.am): Build unictype.h from unictype.in.h.
22146         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22147         Add m4/libunistring-base.m4.
22148         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22149         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22150         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22151         Add m4/libunistring-base.m4.
22152         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22153         (Makefile.am): Build uniname.h from uniname.in.h.
22154         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22155         Add m4/libunistring-base.m4.
22156         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22157         (Makefile.am): Build uninorm.h from uninorm.in.h.
22158         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22159         unistdio.h. Add m4/libunistring-base.m4.
22160         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22161         (Makefile.am): Build unistdio.h from unistdio.in.h.
22162         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22163         Add m4/libunistring-base.m4.
22164         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22165         (Makefile.am): Build unistr.h from unistr.in.h.
22166         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22167         Add m4/libunistring-base.m4.
22168         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22169         (Makefile.am): Build unitypes.h from unitypes.in.h.
22170         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22171         Add m4/libunistring-base.m4.
22172         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22173         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22174         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22175         uniwidth.h. Add m4/libunistring-base.m4.
22176         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22177         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22178         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22179         instead of augmenting lib_SOURCES.
22180         * modules/unicase/empty-suffix-context: Likewise.
22181         * modules/unicase/locale-language: Likewise.
22182         * modules/unicase/tolower: Likewise.
22183         * modules/unicase/totitle: Likewise.
22184         * modules/unicase/toupper: Likewise.
22185         * modules/unicase/u8-casecmp: Likewise.
22186         * modules/unicase/u8-casecoll: Likewise.
22187         * modules/unicase/u8-casefold: Likewise.
22188         * modules/unicase/u8-casexfrm: Likewise.
22189         * modules/unicase/u8-ct-casefold: Likewise.
22190         * modules/unicase/u8-ct-tolower: Likewise.
22191         * modules/unicase/u8-ct-totitle: Likewise.
22192         * modules/unicase/u8-ct-toupper: Likewise.
22193         * modules/unicase/u8-is-cased: Likewise.
22194         * modules/unicase/u8-is-casefolded: Likewise.
22195         * modules/unicase/u8-is-lowercase: Likewise.
22196         * modules/unicase/u8-is-titlecase: Likewise.
22197         * modules/unicase/u8-is-uppercase: Likewise.
22198         * modules/unicase/u8-prefix-context: Likewise.
22199         * modules/unicase/u8-suffix-context: Likewise.
22200         * modules/unicase/u8-tolower: Likewise.
22201         * modules/unicase/u8-totitle: Likewise.
22202         * modules/unicase/u8-toupper: Likewise.
22203         * modules/unicase/u16-casecmp: Likewise.
22204         * modules/unicase/u16-casecoll: Likewise.
22205         * modules/unicase/u16-casefold: Likewise.
22206         * modules/unicase/u16-casexfrm: Likewise.
22207         * modules/unicase/u16-ct-casefold: Likewise.
22208         * modules/unicase/u16-ct-tolower: Likewise.
22209         * modules/unicase/u16-ct-totitle: Likewise.
22210         * modules/unicase/u16-ct-toupper: Likewise.
22211         * modules/unicase/u16-is-cased: Likewise.
22212         * modules/unicase/u16-is-casefolded: Likewise.
22213         * modules/unicase/u16-is-lowercase: Likewise.
22214         * modules/unicase/u16-is-titlecase: Likewise.
22215         * modules/unicase/u16-is-uppercase: Likewise.
22216         * modules/unicase/u16-prefix-context: Likewise.
22217         * modules/unicase/u16-suffix-context: Likewise.
22218         * modules/unicase/u16-tolower: Likewise.
22219         * modules/unicase/u16-totitle: Likewise.
22220         * modules/unicase/u16-toupper: Likewise.
22221         * modules/unicase/u32-casecmp: Likewise.
22222         * modules/unicase/u32-casecoll: Likewise.
22223         * modules/unicase/u32-casefold: Likewise.
22224         * modules/unicase/u32-casexfrm: Likewise.
22225         * modules/unicase/u32-ct-casefold: Likewise.
22226         * modules/unicase/u32-ct-tolower: Likewise.
22227         * modules/unicase/u32-ct-totitle: Likewise.
22228         * modules/unicase/u32-ct-toupper: Likewise.
22229         * modules/unicase/u32-is-cased: Likewise.
22230         * modules/unicase/u32-is-casefolded: Likewise.
22231         * modules/unicase/u32-is-lowercase: Likewise.
22232         * modules/unicase/u32-is-titlecase: Likewise.
22233         * modules/unicase/u32-is-uppercase: Likewise.
22234         * modules/unicase/u32-prefix-context: Likewise.
22235         * modules/unicase/u32-suffix-context: Likewise.
22236         * modules/unicase/u32-tolower: Likewise.
22237         * modules/unicase/u32-totitle: Likewise.
22238         * modules/unicase/u32-toupper: Likewise.
22239         * modules/unicase/ulc-casecmp: Likewise.
22240         * modules/unicase/ulc-casecoll: Likewise.
22241         * modules/unicase/ulc-casexfrm: Likewise.
22242         * modules/uniconv/u8-conv-from-enc: Likewise.
22243         * modules/uniconv/u8-conv-to-enc: Likewise.
22244         * modules/uniconv/u8-strconv-from-enc: Likewise.
22245         * modules/uniconv/u8-strconv-from-locale: Likewise.
22246         * modules/uniconv/u8-strconv-to-enc: Likewise.
22247         * modules/uniconv/u8-strconv-to-locale: Likewise.
22248         * modules/uniconv/u16-conv-from-enc: Likewise.
22249         * modules/uniconv/u16-conv-to-enc: Likewise.
22250         * modules/uniconv/u16-strconv-from-enc: Likewise.
22251         * modules/uniconv/u16-strconv-from-locale: Likewise.
22252         * modules/uniconv/u16-strconv-to-enc: Likewise.
22253         * modules/uniconv/u16-strconv-to-locale: Likewise.
22254         * modules/uniconv/u32-conv-from-enc: Likewise.
22255         * modules/uniconv/u32-conv-to-enc: Likewise.
22256         * modules/uniconv/u32-strconv-from-enc: Likewise.
22257         * modules/uniconv/u32-strconv-from-locale: Likewise.
22258         * modules/uniconv/u32-strconv-to-enc: Likewise.
22259         * modules/uniconv/u32-strconv-to-locale: Likewise.
22260         * modules/unictype/bidicategory-byname: Likewise.
22261         * modules/unictype/bidicategory-name: Likewise.
22262         * modules/unictype/bidicategory-of: Likewise.
22263         * modules/unictype/bidicategory-test: Likewise.
22264         * modules/unictype/block-list: Likewise.
22265         * modules/unictype/block-test: Likewise.
22266         * modules/unictype/category-C: Likewise.
22267         * modules/unictype/category-Cc: Likewise.
22268         * modules/unictype/category-Cf: Likewise.
22269         * modules/unictype/category-Cn: Likewise.
22270         * modules/unictype/category-Co: Likewise.
22271         * modules/unictype/category-Cs: Likewise.
22272         * modules/unictype/category-L: Likewise.
22273         * modules/unictype/category-Ll: Likewise.
22274         * modules/unictype/category-Lm: Likewise.
22275         * modules/unictype/category-Lo: Likewise.
22276         * modules/unictype/category-Lt: Likewise.
22277         * modules/unictype/category-Lu: Likewise.
22278         * modules/unictype/category-M: Likewise.
22279         * modules/unictype/category-Mc: Likewise.
22280         * modules/unictype/category-Me: Likewise.
22281         * modules/unictype/category-Mn: Likewise.
22282         * modules/unictype/category-N: Likewise.
22283         * modules/unictype/category-Nd: Likewise.
22284         * modules/unictype/category-Nl: Likewise.
22285         * modules/unictype/category-No: Likewise.
22286         * modules/unictype/category-P: Likewise.
22287         * modules/unictype/category-Pc: Likewise.
22288         * modules/unictype/category-Pd: Likewise.
22289         * modules/unictype/category-Pe: Likewise.
22290         * modules/unictype/category-Pf: Likewise.
22291         * modules/unictype/category-Pi: Likewise.
22292         * modules/unictype/category-Po: Likewise.
22293         * modules/unictype/category-Ps: Likewise.
22294         * modules/unictype/category-S: Likewise.
22295         * modules/unictype/category-Sc: Likewise.
22296         * modules/unictype/category-Sk: Likewise.
22297         * modules/unictype/category-Sm: Likewise.
22298         * modules/unictype/category-So: Likewise.
22299         * modules/unictype/category-Z: Likewise.
22300         * modules/unictype/category-Zl: Likewise.
22301         * modules/unictype/category-Zp: Likewise.
22302         * modules/unictype/category-Zs: Likewise.
22303         * modules/unictype/category-and: Likewise.
22304         * modules/unictype/category-and-not: Likewise.
22305         * modules/unictype/category-byname: Likewise.
22306         * modules/unictype/category-name: Likewise.
22307         * modules/unictype/category-none: Likewise.
22308         * modules/unictype/category-of: Likewise.
22309         * modules/unictype/category-or: Likewise.
22310         * modules/unictype/category-test: Likewise.
22311         * modules/unictype/combining-class: Likewise.
22312         * modules/unictype/ctype-alnum: Likewise.
22313         * modules/unictype/ctype-alpha: Likewise.
22314         * modules/unictype/ctype-blank: Likewise.
22315         * modules/unictype/ctype-cntrl: Likewise.
22316         * modules/unictype/ctype-digit: Likewise.
22317         * modules/unictype/ctype-graph: Likewise.
22318         * modules/unictype/ctype-lower: Likewise.
22319         * modules/unictype/ctype-print: Likewise.
22320         * modules/unictype/ctype-punct: Likewise.
22321         * modules/unictype/ctype-space: Likewise.
22322         * modules/unictype/ctype-upper: Likewise.
22323         * modules/unictype/ctype-xdigit: Likewise.
22324         * modules/unictype/decimal-digit: Likewise.
22325         * modules/unictype/digit: Likewise.
22326         * modules/unictype/mirror: Likewise.
22327         * modules/unictype/numeric: Likewise.
22328         * modules/unictype/property-alphabetic: Likewise.
22329         * modules/unictype/property-ascii-hex-digit: Likewise.
22330         * modules/unictype/property-bidi-arabic-digit: Likewise.
22331         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22332         * modules/unictype/property-bidi-block-separator: Likewise.
22333         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22334         * modules/unictype/property-bidi-common-separator: Likewise.
22335         * modules/unictype/property-bidi-control: Likewise.
22336         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22337         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22338         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22339         * modules/unictype/property-bidi-european-digit: Likewise.
22340         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22341         * modules/unictype/property-bidi-left-to-right: Likewise.
22342         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22343         * modules/unictype/property-bidi-other-neutral: Likewise.
22344         * modules/unictype/property-bidi-pdf: Likewise.
22345         * modules/unictype/property-bidi-segment-separator: Likewise.
22346         * modules/unictype/property-bidi-whitespace: Likewise.
22347         * modules/unictype/property-byname: Likewise.
22348         * modules/unictype/property-combining: Likewise.
22349         * modules/unictype/property-composite: Likewise.
22350         * modules/unictype/property-currency-symbol: Likewise.
22351         * modules/unictype/property-dash: Likewise.
22352         * modules/unictype/property-decimal-digit: Likewise.
22353         * modules/unictype/property-default-ignorable-code-point: Likewise.
22354         * modules/unictype/property-deprecated: Likewise.
22355         * modules/unictype/property-diacritic: Likewise.
22356         * modules/unictype/property-extender: Likewise.
22357         * modules/unictype/property-format-control: Likewise.
22358         * modules/unictype/property-grapheme-base: Likewise.
22359         * modules/unictype/property-grapheme-extend: Likewise.
22360         * modules/unictype/property-grapheme-link: Likewise.
22361         * modules/unictype/property-hex-digit: Likewise.
22362         * modules/unictype/property-hyphen: Likewise.
22363         * modules/unictype/property-id-continue: Likewise.
22364         * modules/unictype/property-id-start: Likewise.
22365         * modules/unictype/property-ideographic: Likewise.
22366         * modules/unictype/property-ids-binary-operator: Likewise.
22367         * modules/unictype/property-ids-trinary-operator: Likewise.
22368         * modules/unictype/property-ignorable-control: Likewise.
22369         * modules/unictype/property-iso-control: Likewise.
22370         * modules/unictype/property-join-control: Likewise.
22371         * modules/unictype/property-left-of-pair: Likewise.
22372         * modules/unictype/property-line-separator: Likewise.
22373         * modules/unictype/property-logical-order-exception: Likewise.
22374         * modules/unictype/property-lowercase: Likewise.
22375         * modules/unictype/property-math: Likewise.
22376         * modules/unictype/property-non-break: Likewise.
22377         * modules/unictype/property-not-a-character: Likewise.
22378         * modules/unictype/property-numeric: Likewise.
22379         * modules/unictype/property-other-alphabetic: Likewise.
22380         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22381         * modules/unictype/property-other-grapheme-extend: Likewise.
22382         * modules/unictype/property-other-id-continue: Likewise.
22383         * modules/unictype/property-other-id-start: Likewise.
22384         * modules/unictype/property-other-lowercase: Likewise.
22385         * modules/unictype/property-other-math: Likewise.
22386         * modules/unictype/property-other-uppercase: Likewise.
22387         * modules/unictype/property-paired-punctuation: Likewise.
22388         * modules/unictype/property-paragraph-separator: Likewise.
22389         * modules/unictype/property-pattern-syntax: Likewise.
22390         * modules/unictype/property-pattern-white-space: Likewise.
22391         * modules/unictype/property-private-use: Likewise.
22392         * modules/unictype/property-punctuation: Likewise.
22393         * modules/unictype/property-quotation-mark: Likewise.
22394         * modules/unictype/property-radical: Likewise.
22395         * modules/unictype/property-sentence-terminal: Likewise.
22396         * modules/unictype/property-soft-dotted: Likewise.
22397         * modules/unictype/property-space: Likewise.
22398         * modules/unictype/property-terminal-punctuation: Likewise.
22399         * modules/unictype/property-test: Likewise.
22400         * modules/unictype/property-titlecase: Likewise.
22401         * modules/unictype/property-unassigned-code-value: Likewise.
22402         * modules/unictype/property-unified-ideograph: Likewise.
22403         * modules/unictype/property-uppercase: Likewise.
22404         * modules/unictype/property-variation-selector: Likewise.
22405         * modules/unictype/property-white-space: Likewise.
22406         * modules/unictype/property-xid-continue: Likewise.
22407         * modules/unictype/property-xid-start: Likewise.
22408         * modules/unictype/property-zero-width: Likewise.
22409         * modules/unictype/scripts: Likewise.
22410         * modules/unictype/syntax-c-ident: Likewise.
22411         * modules/unictype/syntax-c-whitespace: Likewise.
22412         * modules/unictype/syntax-java-ident: Likewise.
22413         * modules/unictype/syntax-java-whitespace: Likewise.
22414         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22415         * modules/unilbrk/u8-width-linebreaks: Likewise.
22416         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22417         * modules/unilbrk/u16-width-linebreaks: Likewise.
22418         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22419         * modules/unilbrk/u32-width-linebreaks: Likewise.
22420         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22421         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22422         * modules/uniname/uniname: Likewise.
22423         * modules/uninorm/canonical-decomposition: Likewise.
22424         * modules/uninorm/composition: Likewise.
22425         * modules/uninorm/decomposing-form: Likewise.
22426         * modules/uninorm/decomposition: Likewise.
22427         * modules/uninorm/filter: Likewise.
22428         * modules/uninorm/nfc: Likewise.
22429         * modules/uninorm/nfd: Likewise.
22430         * modules/uninorm/nfkc: Likewise.
22431         * modules/uninorm/nfkd: Likewise.
22432         * modules/uninorm/u8-normalize: Likewise.
22433         * modules/uninorm/u8-normcmp: Likewise.
22434         * modules/uninorm/u8-normcoll: Likewise.
22435         * modules/uninorm/u8-normxfrm: Likewise.
22436         * modules/uninorm/u16-normalize: Likewise.
22437         * modules/uninorm/u16-normcmp: Likewise.
22438         * modules/uninorm/u16-normcoll: Likewise.
22439         * modules/uninorm/u16-normxfrm: Likewise.
22440         * modules/uninorm/u32-normalize: Likewise.
22441         * modules/uninorm/u32-normcmp: Likewise.
22442         * modules/uninorm/u32-normcoll: Likewise.
22443         * modules/uninorm/u32-normxfrm: Likewise.
22444         * modules/unistdio/u8-asnprintf: Likewise.
22445         * modules/unistdio/u8-asprintf: Likewise.
22446         * modules/unistdio/u8-snprintf: Likewise.
22447         * modules/unistdio/u8-sprintf: Likewise.
22448         * modules/unistdio/u8-u8-asnprintf: Likewise.
22449         * modules/unistdio/u8-u8-asprintf: Likewise.
22450         * modules/unistdio/u8-u8-snprintf: Likewise.
22451         * modules/unistdio/u8-u8-sprintf: Likewise.
22452         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22453         * modules/unistdio/u8-u8-vasprintf: Likewise.
22454         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22455         * modules/unistdio/u8-u8-vsprintf: Likewise.
22456         * modules/unistdio/u8-vasnprintf: Likewise.
22457         * modules/unistdio/u8-vasprintf: Likewise.
22458         * modules/unistdio/u8-vsnprintf: Likewise.
22459         * modules/unistdio/u8-vsprintf: Likewise.
22460         * modules/unistdio/u16-asnprintf: Likewise.
22461         * modules/unistdio/u16-asprintf: Likewise.
22462         * modules/unistdio/u16-snprintf: Likewise.
22463         * modules/unistdio/u16-sprintf: Likewise.
22464         * modules/unistdio/u16-u16-asnprintf: Likewise.
22465         * modules/unistdio/u16-u16-asprintf: Likewise.
22466         * modules/unistdio/u16-u16-snprintf: Likewise.
22467         * modules/unistdio/u16-u16-sprintf: Likewise.
22468         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22469         * modules/unistdio/u16-u16-vasprintf: Likewise.
22470         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22471         * modules/unistdio/u16-u16-vsprintf: Likewise.
22472         * modules/unistdio/u16-vasnprintf: Likewise.
22473         * modules/unistdio/u16-vasprintf: Likewise.
22474         * modules/unistdio/u16-vsnprintf: Likewise.
22475         * modules/unistdio/u16-vsprintf: Likewise.
22476         * modules/unistdio/u32-asnprintf: Likewise.
22477         * modules/unistdio/u32-asprintf: Likewise.
22478         * modules/unistdio/u32-snprintf: Likewise.
22479         * modules/unistdio/u32-sprintf: Likewise.
22480         * modules/unistdio/u32-u32-asnprintf: Likewise.
22481         * modules/unistdio/u32-u32-asprintf: Likewise.
22482         * modules/unistdio/u32-u32-snprintf: Likewise.
22483         * modules/unistdio/u32-u32-sprintf: Likewise.
22484         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22485         * modules/unistdio/u32-u32-vasprintf: Likewise.
22486         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22487         * modules/unistdio/u32-u32-vsprintf: Likewise.
22488         * modules/unistdio/u32-vasnprintf: Likewise.
22489         * modules/unistdio/u32-vasprintf: Likewise.
22490         * modules/unistdio/u32-vsnprintf: Likewise.
22491         * modules/unistdio/u32-vsprintf: Likewise.
22492         * modules/unistdio/ulc-asnprintf: Likewise.
22493         * modules/unistdio/ulc-asprintf: Likewise.
22494         * modules/unistdio/ulc-fprintf: Likewise.
22495         * modules/unistdio/ulc-snprintf: Likewise.
22496         * modules/unistdio/ulc-sprintf: Likewise.
22497         * modules/unistdio/ulc-vasnprintf: Likewise.
22498         * modules/unistdio/ulc-vasprintf: Likewise.
22499         * modules/unistdio/ulc-vfprintf: Likewise.
22500         * modules/unistdio/ulc-vsnprintf: Likewise.
22501         * modules/unistdio/ulc-vsprintf: Likewise.
22502         * modules/unistr/u8-check: Likewise.
22503         * modules/unistr/u8-chr: Likewise.
22504         * modules/unistr/u8-cmp: Likewise.
22505         * modules/unistr/u8-cmp2: Likewise.
22506         * modules/unistr/u8-cpy: Likewise.
22507         * modules/unistr/u8-cpy-alloc: Likewise.
22508         * modules/unistr/u8-endswith: Likewise.
22509         * modules/unistr/u8-mblen: Likewise.
22510         * modules/unistr/u8-mbsnlen: Likewise.
22511         * modules/unistr/u8-mbtouc: Likewise.
22512         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22513         * modules/unistr/u8-mbtoucr: Likewise.
22514         * modules/unistr/u8-move: Likewise.
22515         * modules/unistr/u8-next: Likewise.
22516         * modules/unistr/u8-prev: Likewise.
22517         * modules/unistr/u8-set: Likewise.
22518         * modules/unistr/u8-startswith: Likewise.
22519         * modules/unistr/u8-stpcpy: Likewise.
22520         * modules/unistr/u8-stpncpy: Likewise.
22521         * modules/unistr/u8-strcat: Likewise.
22522         * modules/unistr/u8-strchr: Likewise.
22523         * modules/unistr/u8-strcmp: Likewise.
22524         * modules/unistr/u8-strcoll: Likewise.
22525         * modules/unistr/u8-strcpy: Likewise.
22526         * modules/unistr/u8-strcspn: Likewise.
22527         * modules/unistr/u8-strdup: Likewise.
22528         * modules/unistr/u8-strlen: Likewise.
22529         * modules/unistr/u8-strmblen: Likewise.
22530         * modules/unistr/u8-strmbtouc: Likewise.
22531         * modules/unistr/u8-strncat: Likewise.
22532         * modules/unistr/u8-strncmp: Likewise.
22533         * modules/unistr/u8-strncpy: Likewise.
22534         * modules/unistr/u8-strnlen: Likewise.
22535         * modules/unistr/u8-strpbrk: Likewise.
22536         * modules/unistr/u8-strrchr: Likewise.
22537         * modules/unistr/u8-strspn: Likewise.
22538         * modules/unistr/u8-strstr: Likewise.
22539         * modules/unistr/u8-strtok: Likewise.
22540         * modules/unistr/u8-to-u16: Likewise.
22541         * modules/unistr/u8-to-u32: Likewise.
22542         * modules/unistr/u8-uctomb: Likewise.
22543         * modules/unistr/u16-check: Likewise.
22544         * modules/unistr/u16-chr: Likewise.
22545         * modules/unistr/u16-cmp: Likewise.
22546         * modules/unistr/u16-cmp2: Likewise.
22547         * modules/unistr/u16-cpy: Likewise.
22548         * modules/unistr/u16-cpy-alloc: Likewise.
22549         * modules/unistr/u16-endswith: Likewise.
22550         * modules/unistr/u16-mblen: Likewise.
22551         * modules/unistr/u16-mbsnlen: Likewise.
22552         * modules/unistr/u16-mbtouc: Likewise.
22553         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22554         * modules/unistr/u16-mbtoucr: Likewise.
22555         * modules/unistr/u16-move: Likewise.
22556         * modules/unistr/u16-next: Likewise.
22557         * modules/unistr/u16-prev: Likewise.
22558         * modules/unistr/u16-set: Likewise.
22559         * modules/unistr/u16-startswith: Likewise.
22560         * modules/unistr/u16-stpcpy: Likewise.
22561         * modules/unistr/u16-stpncpy: Likewise.
22562         * modules/unistr/u16-strcat: Likewise.
22563         * modules/unistr/u16-strchr: Likewise.
22564         * modules/unistr/u16-strcmp: Likewise.
22565         * modules/unistr/u16-strcoll: Likewise.
22566         * modules/unistr/u16-strcpy: Likewise.
22567         * modules/unistr/u16-strcspn: Likewise.
22568         * modules/unistr/u16-strdup: Likewise.
22569         * modules/unistr/u16-strlen: Likewise.
22570         * modules/unistr/u16-strmblen: Likewise.
22571         * modules/unistr/u16-strmbtouc: Likewise.
22572         * modules/unistr/u16-strncat: Likewise.
22573         * modules/unistr/u16-strncmp: Likewise.
22574         * modules/unistr/u16-strncpy: Likewise.
22575         * modules/unistr/u16-strnlen: Likewise.
22576         * modules/unistr/u16-strpbrk: Likewise.
22577         * modules/unistr/u16-strrchr: Likewise.
22578         * modules/unistr/u16-strspn: Likewise.
22579         * modules/unistr/u16-strstr: Likewise.
22580         * modules/unistr/u16-strtok: Likewise.
22581         * modules/unistr/u16-to-u32: Likewise.
22582         * modules/unistr/u16-to-u8: Likewise.
22583         * modules/unistr/u16-uctomb: Likewise.
22584         * modules/unistr/u32-check: Likewise.
22585         * modules/unistr/u32-chr: Likewise.
22586         * modules/unistr/u32-cmp: Likewise.
22587         * modules/unistr/u32-cmp2: Likewise.
22588         * modules/unistr/u32-cpy: Likewise.
22589         * modules/unistr/u32-cpy-alloc: Likewise.
22590         * modules/unistr/u32-endswith: Likewise.
22591         * modules/unistr/u32-mblen: Likewise.
22592         * modules/unistr/u32-mbsnlen: Likewise.
22593         * modules/unistr/u32-mbtouc: Likewise.
22594         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22595         * modules/unistr/u32-mbtoucr: Likewise.
22596         * modules/unistr/u32-move: Likewise.
22597         * modules/unistr/u32-next: Likewise.
22598         * modules/unistr/u32-prev: Likewise.
22599         * modules/unistr/u32-set: Likewise.
22600         * modules/unistr/u32-startswith: Likewise.
22601         * modules/unistr/u32-stpcpy: Likewise.
22602         * modules/unistr/u32-stpncpy: Likewise.
22603         * modules/unistr/u32-strcat: Likewise.
22604         * modules/unistr/u32-strchr: Likewise.
22605         * modules/unistr/u32-strcmp: Likewise.
22606         * modules/unistr/u32-strcoll: Likewise.
22607         * modules/unistr/u32-strcpy: Likewise.
22608         * modules/unistr/u32-strcspn: Likewise.
22609         * modules/unistr/u32-strdup: Likewise.
22610         * modules/unistr/u32-strlen: Likewise.
22611         * modules/unistr/u32-strmblen: Likewise.
22612         * modules/unistr/u32-strmbtouc: Likewise.
22613         * modules/unistr/u32-strncat: Likewise.
22614         * modules/unistr/u32-strncmp: Likewise.
22615         * modules/unistr/u32-strncpy: Likewise.
22616         * modules/unistr/u32-strnlen: Likewise.
22617         * modules/unistr/u32-strpbrk: Likewise.
22618         * modules/unistr/u32-strrchr: Likewise.
22619         * modules/unistr/u32-strspn: Likewise.
22620         * modules/unistr/u32-strstr: Likewise.
22621         * modules/unistr/u32-strtok: Likewise.
22622         * modules/unistr/u32-to-u16: Likewise.
22623         * modules/unistr/u32-to-u8: Likewise.
22624         * modules/unistr/u32-uctomb: Likewise.
22625         * modules/uniwbrk/u8-wordbreaks: Likewise.
22626         * modules/uniwbrk/u16-wordbreaks: Likewise.
22627         * modules/uniwbrk/u32-wordbreaks: Likewise.
22628         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22629         * modules/uniwbrk/wordbreak-property: Likewise.
22630         * modules/uniwidth/u8-strwidth: Likewise.
22631         * modules/uniwidth/u8-width: Likewise.
22632         * modules/uniwidth/u16-strwidth: Likewise.
22633         * modules/uniwidth/u16-width: Likewise.
22634         * modules/uniwidth/u32-strwidth: Likewise.
22635         * modules/uniwidth/u32-width: Likewise.
22636         * modules/uniwidth/width: Likewise.
22637         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22638         with $(LIBUNISTRING).
22639         * modules/unicase/ignorable-tests: Likewise.
22640         * modules/unicase/locale-language-tests: Likewise.
22641         * modules/unicase/tolower-tests: Likewise.
22642         * modules/unicase/totitle-tests: Likewise.
22643         * modules/unicase/toupper-tests: Likewise.
22644         * modules/unicase/u8-casecmp-tests: Likewise.
22645         * modules/unicase/u8-casecoll-tests: Likewise.
22646         * modules/unicase/u8-casefold-tests: Likewise.
22647         * modules/unicase/u8-is-cased-tests: Likewise.
22648         * modules/unicase/u8-is-casefolded-tests: Likewise.
22649         * modules/unicase/u8-is-lowercase-tests: Likewise.
22650         * modules/unicase/u8-is-titlecase-tests: Likewise.
22651         * modules/unicase/u8-is-uppercase-tests: Likewise.
22652         * modules/unicase/u8-tolower-tests: Likewise.
22653         * modules/unicase/u8-totitle-tests: Likewise.
22654         * modules/unicase/u8-toupper-tests: Likewise.
22655         * modules/unicase/u16-casecmp-tests: Likewise.
22656         * modules/unicase/u16-casecoll-tests: Likewise.
22657         * modules/unicase/u16-casefold-tests: Likewise.
22658         * modules/unicase/u16-is-cased-tests: Likewise.
22659         * modules/unicase/u16-is-casefolded-tests: Likewise.
22660         * modules/unicase/u16-is-lowercase-tests: Likewise.
22661         * modules/unicase/u16-is-titlecase-tests: Likewise.
22662         * modules/unicase/u16-is-uppercase-tests: Likewise.
22663         * modules/unicase/u16-tolower-tests: Likewise.
22664         * modules/unicase/u16-totitle-tests: Likewise.
22665         * modules/unicase/u16-toupper-tests: Likewise.
22666         * modules/unicase/u32-casecmp-tests: Likewise.
22667         * modules/unicase/u32-casecoll-tests: Likewise.
22668         * modules/unicase/u32-casefold-tests: Likewise.
22669         * modules/unicase/u32-is-cased-tests: Likewise.
22670         * modules/unicase/u32-is-casefolded-tests: Likewise.
22671         * modules/unicase/u32-is-lowercase-tests: Likewise.
22672         * modules/unicase/u32-is-titlecase-tests: Likewise.
22673         * modules/unicase/u32-is-uppercase-tests: Likewise.
22674         * modules/unicase/u32-tolower-tests: Likewise.
22675         * modules/unicase/u32-totitle-tests: Likewise.
22676         * modules/unicase/u32-toupper-tests: Likewise.
22677         * modules/unicase/ulc-casecmp-tests: Likewise.
22678         * modules/unicase/ulc-casecoll-tests: Likewise.
22679         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22680         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22681         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22682         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22683         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22684         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22685         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22686         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22687         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22688         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22689         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22690         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22691         * modules/unictype/bidicategory-byname-tests: Likewise.
22692         * modules/unictype/bidicategory-name-tests: Likewise.
22693         * modules/unictype/bidicategory-of-tests: Likewise.
22694         * modules/unictype/bidicategory-test-tests: Likewise.
22695         * modules/unictype/block-list-tests: Likewise.
22696         * modules/unictype/block-of-tests: Likewise.
22697         * modules/unictype/block-test-tests: Likewise.
22698         * modules/unictype/category-C-tests: Likewise.
22699         * modules/unictype/category-Cc-tests: Likewise.
22700         * modules/unictype/category-Cf-tests: Likewise.
22701         * modules/unictype/category-Cn-tests: Likewise.
22702         * modules/unictype/category-Co-tests: Likewise.
22703         * modules/unictype/category-Cs-tests: Likewise.
22704         * modules/unictype/category-L-tests: Likewise.
22705         * modules/unictype/category-Ll-tests: Likewise.
22706         * modules/unictype/category-Lm-tests: Likewise.
22707         * modules/unictype/category-Lo-tests: Likewise.
22708         * modules/unictype/category-Lt-tests: Likewise.
22709         * modules/unictype/category-Lu-tests: Likewise.
22710         * modules/unictype/category-M-tests: Likewise.
22711         * modules/unictype/category-Mc-tests: Likewise.
22712         * modules/unictype/category-Me-tests: Likewise.
22713         * modules/unictype/category-Mn-tests: Likewise.
22714         * modules/unictype/category-N-tests: Likewise.
22715         * modules/unictype/category-Nd-tests: Likewise.
22716         * modules/unictype/category-Nl-tests: Likewise.
22717         * modules/unictype/category-No-tests: Likewise.
22718         * modules/unictype/category-P-tests: Likewise.
22719         * modules/unictype/category-Pc-tests: Likewise.
22720         * modules/unictype/category-Pd-tests: Likewise.
22721         * modules/unictype/category-Pe-tests: Likewise.
22722         * modules/unictype/category-Pf-tests: Likewise.
22723         * modules/unictype/category-Pi-tests: Likewise.
22724         * modules/unictype/category-Po-tests: Likewise.
22725         * modules/unictype/category-Ps-tests: Likewise.
22726         * modules/unictype/category-S-tests: Likewise.
22727         * modules/unictype/category-Sc-tests: Likewise.
22728         * modules/unictype/category-Sk-tests: Likewise.
22729         * modules/unictype/category-Sm-tests: Likewise.
22730         * modules/unictype/category-So-tests: Likewise.
22731         * modules/unictype/category-Z-tests: Likewise.
22732         * modules/unictype/category-Zl-tests: Likewise.
22733         * modules/unictype/category-Zp-tests: Likewise.
22734         * modules/unictype/category-Zs-tests: Likewise.
22735         * modules/unictype/category-and-not-tests: Likewise.
22736         * modules/unictype/category-and-tests: Likewise.
22737         * modules/unictype/category-byname-tests: Likewise.
22738         * modules/unictype/category-name-tests: Likewise.
22739         * modules/unictype/category-none-tests: Likewise.
22740         * modules/unictype/category-of-tests: Likewise.
22741         * modules/unictype/category-or-tests: Likewise.
22742         * modules/unictype/category-test-withtable-tests: Likewise.
22743         * modules/unictype/combining-class-tests: Likewise.
22744         * modules/unictype/ctype-alnum-tests: Likewise.
22745         * modules/unictype/ctype-alpha-tests: Likewise.
22746         * modules/unictype/ctype-blank-tests: Likewise.
22747         * modules/unictype/ctype-cntrl-tests: Likewise.
22748         * modules/unictype/ctype-digit-tests: Likewise.
22749         * modules/unictype/ctype-graph-tests: Likewise.
22750         * modules/unictype/ctype-lower-tests: Likewise.
22751         * modules/unictype/ctype-print-tests: Likewise.
22752         * modules/unictype/ctype-punct-tests: Likewise.
22753         * modules/unictype/ctype-space-tests: Likewise.
22754         * modules/unictype/ctype-upper-tests: Likewise.
22755         * modules/unictype/ctype-xdigit-tests: Likewise.
22756         * modules/unictype/decimal-digit-tests: Likewise.
22757         * modules/unictype/digit-tests: Likewise.
22758         * modules/unictype/mirror-tests: Likewise.
22759         * modules/unictype/numeric-tests: Likewise.
22760         * modules/unictype/property-alphabetic-tests: Likewise.
22761         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22762         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22763         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22764         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22765         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22766         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22767         * modules/unictype/property-bidi-control-tests: Likewise.
22768         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22769         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22770         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22771         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22772         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22773         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22774         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22775         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22776         * modules/unictype/property-bidi-pdf-tests: Likewise.
22777         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22778         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22779         * modules/unictype/property-byname-tests: Likewise.
22780         * modules/unictype/property-combining-tests: Likewise.
22781         * modules/unictype/property-composite-tests: Likewise.
22782         * modules/unictype/property-currency-symbol-tests: Likewise.
22783         * modules/unictype/property-dash-tests: Likewise.
22784         * modules/unictype/property-decimal-digit-tests: Likewise.
22785         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22786         * modules/unictype/property-deprecated-tests: Likewise.
22787         * modules/unictype/property-diacritic-tests: Likewise.
22788         * modules/unictype/property-extender-tests: Likewise.
22789         * modules/unictype/property-format-control-tests: Likewise.
22790         * modules/unictype/property-grapheme-base-tests: Likewise.
22791         * modules/unictype/property-grapheme-extend-tests: Likewise.
22792         * modules/unictype/property-grapheme-link-tests: Likewise.
22793         * modules/unictype/property-hex-digit-tests: Likewise.
22794         * modules/unictype/property-hyphen-tests: Likewise.
22795         * modules/unictype/property-id-continue-tests: Likewise.
22796         * modules/unictype/property-id-start-tests: Likewise.
22797         * modules/unictype/property-ideographic-tests: Likewise.
22798         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22799         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22800         * modules/unictype/property-ignorable-control-tests: Likewise.
22801         * modules/unictype/property-iso-control-tests: Likewise.
22802         * modules/unictype/property-join-control-tests: Likewise.
22803         * modules/unictype/property-left-of-pair-tests: Likewise.
22804         * modules/unictype/property-line-separator-tests: Likewise.
22805         * modules/unictype/property-logical-order-exception-tests: Likewise.
22806         * modules/unictype/property-lowercase-tests: Likewise.
22807         * modules/unictype/property-math-tests: Likewise.
22808         * modules/unictype/property-non-break-tests: Likewise.
22809         * modules/unictype/property-not-a-character-tests: Likewise.
22810         * modules/unictype/property-numeric-tests: Likewise.
22811         * modules/unictype/property-other-alphabetic-tests: Likewise.
22812         * modules/unictype/property-other-default-ignorable-code-point-tests:
22813         Likewise.
22814         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22815         * modules/unictype/property-other-id-continue-tests: Likewise.
22816         * modules/unictype/property-other-id-start-tests: Likewise.
22817         * modules/unictype/property-other-lowercase-tests: Likewise.
22818         * modules/unictype/property-other-math-tests: Likewise.
22819         * modules/unictype/property-other-uppercase-tests: Likewise.
22820         * modules/unictype/property-paired-punctuation-tests: Likewise.
22821         * modules/unictype/property-paragraph-separator-tests: Likewise.
22822         * modules/unictype/property-pattern-syntax-tests: Likewise.
22823         * modules/unictype/property-pattern-white-space-tests: Likewise.
22824         * modules/unictype/property-private-use-tests: Likewise.
22825         * modules/unictype/property-punctuation-tests: Likewise.
22826         * modules/unictype/property-quotation-mark-tests: Likewise.
22827         * modules/unictype/property-radical-tests: Likewise.
22828         * modules/unictype/property-sentence-terminal-tests: Likewise.
22829         * modules/unictype/property-soft-dotted-tests: Likewise.
22830         * modules/unictype/property-space-tests: Likewise.
22831         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22832         * modules/unictype/property-test-tests: Likewise.
22833         * modules/unictype/property-titlecase-tests: Likewise.
22834         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22835         * modules/unictype/property-unified-ideograph-tests: Likewise.
22836         * modules/unictype/property-uppercase-tests: Likewise.
22837         * modules/unictype/property-variation-selector-tests: Likewise.
22838         * modules/unictype/property-white-space-tests: Likewise.
22839         * modules/unictype/property-xid-continue-tests: Likewise.
22840         * modules/unictype/property-xid-start-tests: Likewise.
22841         * modules/unictype/property-zero-width-tests: Likewise.
22842         * modules/unictype/scripts-tests: Likewise.
22843         * modules/unictype/syntax-c-ident-tests: Likewise.
22844         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22845         * modules/unictype/syntax-java-ident-tests: Likewise.
22846         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22847         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22848         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22849         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22850         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22851         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22852         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22853         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22854         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22855         * modules/uniname/uniname-tests: Likewise.
22856         * modules/uninorm/canonical-decomposition-tests: Likewise.
22857         * modules/uninorm/compat-decomposition-tests: Likewise.
22858         * modules/uninorm/composition-tests: Likewise.
22859         * modules/uninorm/decomposing-form-tests: Likewise.
22860         * modules/uninorm/decomposition-tests: Likewise.
22861         * modules/uninorm/filter-tests: Likewise.
22862         * modules/uninorm/nfc-tests: Likewise.
22863         * modules/uninorm/nfd-tests: Likewise.
22864         * modules/uninorm/nfkc-tests: Likewise.
22865         * modules/uninorm/nfkd-tests: Likewise.
22866         * modules/uninorm/u8-normcmp-tests: Likewise.
22867         * modules/uninorm/u8-normcoll-tests: Likewise.
22868         * modules/uninorm/u16-normcmp-tests: Likewise.
22869         * modules/uninorm/u16-normcoll-tests: Likewise.
22870         * modules/uninorm/u32-normcmp-tests: Likewise.
22871         * modules/uninorm/u32-normcoll-tests: Likewise.
22872         * modules/unistdio/u8-asnprintf-tests: Likewise.
22873         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22874         * modules/unistdio/u8-vasprintf-tests: Likewise.
22875         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22876         * modules/unistdio/u8-vsprintf-tests: Likewise.
22877         * modules/unistdio/u16-asnprintf-tests: Likewise.
22878         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22879         * modules/unistdio/u16-vasprintf-tests: Likewise.
22880         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22881         * modules/unistdio/u16-vsprintf-tests: Likewise.
22882         * modules/unistdio/u32-asnprintf-tests: Likewise.
22883         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22884         * modules/unistdio/u32-vasprintf-tests: Likewise.
22885         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22886         * modules/unistdio/u32-vsprintf-tests: Likewise.
22887         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22888         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22889         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22890         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22891         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22892         * modules/unistr/u8-check-tests: Likewise.
22893         * modules/unistr/u8-chr-tests: Likewise.
22894         * modules/unistr/u8-cmp-tests: Likewise.
22895         * modules/unistr/u8-cmp2-tests: Likewise.
22896         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22897         * modules/unistr/u8-cpy-tests: Likewise.
22898         * modules/unistr/u8-mblen-tests: Likewise.
22899         * modules/unistr/u8-mbsnlen-tests: Likewise.
22900         * modules/unistr/u8-mbtouc-tests: Likewise.
22901         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22902         * modules/unistr/u8-mbtoucr-tests: Likewise.
22903         * modules/unistr/u8-move-tests: Likewise.
22904         * modules/unistr/u8-next-tests: Likewise.
22905         * modules/unistr/u8-prev-tests: Likewise.
22906         * modules/unistr/u8-set-tests: Likewise.
22907         * modules/unistr/u8-stpcpy-tests: Likewise.
22908         * modules/unistr/u8-stpncpy-tests: Likewise.
22909         * modules/unistr/u8-strcat-tests: Likewise.
22910         * modules/unistr/u8-strcmp-tests: Likewise.
22911         * modules/unistr/u8-strcoll-tests: Likewise.
22912         * modules/unistr/u8-strcpy-tests: Likewise.
22913         * modules/unistr/u8-strdup-tests: Likewise.
22914         * modules/unistr/u8-strlen-tests: Likewise.
22915         * modules/unistr/u8-strmblen-tests: Likewise.
22916         * modules/unistr/u8-strmbtouc-tests: Likewise.
22917         * modules/unistr/u8-strncat-tests: Likewise.
22918         * modules/unistr/u8-strncmp-tests: Likewise.
22919         * modules/unistr/u8-strncpy-tests: Likewise.
22920         * modules/unistr/u8-strnlen-tests: Likewise.
22921         * modules/unistr/u8-to-u16-tests: Likewise.
22922         * modules/unistr/u8-to-u32-tests: Likewise.
22923         * modules/unistr/u8-uctomb-tests: Likewise.
22924         * modules/unistr/u16-check-tests: Likewise.
22925         * modules/unistr/u16-chr-tests: Likewise.
22926         * modules/unistr/u16-cmp-tests: Likewise.
22927         * modules/unistr/u16-cmp2-tests: Likewise.
22928         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22929         * modules/unistr/u16-cpy-tests: Likewise.
22930         * modules/unistr/u16-mblen-tests: Likewise.
22931         * modules/unistr/u16-mbsnlen-tests: Likewise.
22932         * modules/unistr/u16-mbtouc-tests: Likewise.
22933         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22934         * modules/unistr/u16-mbtoucr-tests: Likewise.
22935         * modules/unistr/u16-move-tests: Likewise.
22936         * modules/unistr/u16-next-tests: Likewise.
22937         * modules/unistr/u16-prev-tests: Likewise.
22938         * modules/unistr/u16-set-tests: Likewise.
22939         * modules/unistr/u16-stpcpy-tests: Likewise.
22940         * modules/unistr/u16-stpncpy-tests: Likewise.
22941         * modules/unistr/u16-strcat-tests: Likewise.
22942         * modules/unistr/u16-strcmp-tests: Likewise.
22943         * modules/unistr/u16-strcoll-tests: Likewise.
22944         * modules/unistr/u16-strcpy-tests: Likewise.
22945         * modules/unistr/u16-strdup-tests: Likewise.
22946         * modules/unistr/u16-strlen-tests: Likewise.
22947         * modules/unistr/u16-strmblen-tests: Likewise.
22948         * modules/unistr/u16-strmbtouc-tests: Likewise.
22949         * modules/unistr/u16-strncat-tests: Likewise.
22950         * modules/unistr/u16-strncmp-tests: Likewise.
22951         * modules/unistr/u16-strncpy-tests: Likewise.
22952         * modules/unistr/u16-strnlen-tests: Likewise.
22953         * modules/unistr/u16-to-u32-tests: Likewise.
22954         * modules/unistr/u16-to-u8-tests: Likewise.
22955         * modules/unistr/u16-uctomb-tests: Likewise.
22956         * modules/unistr/u32-check-tests: Likewise.
22957         * modules/unistr/u32-chr-tests: Likewise.
22958         * modules/unistr/u32-cmp-tests: Likewise.
22959         * modules/unistr/u32-cmp2-tests: Likewise.
22960         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22961         * modules/unistr/u32-cpy-tests: Likewise.
22962         * modules/unistr/u32-mblen-tests: Likewise.
22963         * modules/unistr/u32-mbsnlen-tests: Likewise.
22964         * modules/unistr/u32-mbtouc-tests: Likewise.
22965         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22966         * modules/unistr/u32-mbtoucr-tests: Likewise.
22967         * modules/unistr/u32-move-tests: Likewise.
22968         * modules/unistr/u32-next-tests: Likewise.
22969         * modules/unistr/u32-prev-tests: Likewise.
22970         * modules/unistr/u32-set-tests: Likewise.
22971         * modules/unistr/u32-stpcpy-tests: Likewise.
22972         * modules/unistr/u32-stpncpy-tests: Likewise.
22973         * modules/unistr/u32-strcat-tests: Likewise.
22974         * modules/unistr/u32-strcmp-tests: Likewise.
22975         * modules/unistr/u32-strcoll-tests: Likewise.
22976         * modules/unistr/u32-strcpy-tests: Likewise.
22977         * modules/unistr/u32-strdup-tests: Likewise.
22978         * modules/unistr/u32-strlen-tests: Likewise.
22979         * modules/unistr/u32-strmblen-tests: Likewise.
22980         * modules/unistr/u32-strmbtouc-tests: Likewise.
22981         * modules/unistr/u32-strncat-tests: Likewise.
22982         * modules/unistr/u32-strncmp-tests: Likewise.
22983         * modules/unistr/u32-strncpy-tests: Likewise.
22984         * modules/unistr/u32-strnlen-tests: Likewise.
22985         * modules/unistr/u32-to-u16-tests: Likewise.
22986         * modules/unistr/u32-to-u8-tests: Likewise.
22987         * modules/unistr/u32-uctomb-tests: Likewise.
22988         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22989         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22990         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22991         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22992         * modules/uniwidth/u8-strwidth-tests: Likewise.
22993         * modules/uniwidth/u8-width-tests: Likewise.
22994         * modules/uniwidth/u16-strwidth-tests: Likewise.
22995         * modules/uniwidth/u16-width-tests: Likewise.
22996         * modules/uniwidth/u32-strwidth-tests: Likewise.
22997         * modules/uniwidth/u32-width-tests: Likewise.
22998         * modules/uniwidth/width-tests: Likewise.
22999
23000 2010-05-18  Richard Jones  <rjones@redhat.com>
23001
23002         doc: users.txt: list hivex
23003         * users.txt: Add hivex.
23004
23005 2010-05-18  Richard Jones  <rjones@redhat.com>
23006
23007         doc: users.txt: list febootstrap
23008         * users.txt: Add febootstrap.
23009
23010 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23011
23012         bootstrap: fix an error when gnulib is not used as a git submodule
23013         * build-aux/bootstrap (gnulib_path): If its length is zero then
23014         assign "gnulib" to it.
23015         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23016
23017 2010-05-16  Bruno Haible  <bruno@clisp.org>
23018
23019         Avoid autoconf warnings about AM_ICONV.
23020         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23021         2.64.
23022
23023 2010-05-16  Bruno Haible  <bruno@clisp.org>
23024
23025         absolute-header: Make the macro usable in more situations.
23026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23027         from gl_ABSOLUTE_HEADER.
23028         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23029
23030 2010-05-16  James Youngman  <jay@gnu.org>
23031
23032         doc: update users.txt
23033         * users.txt: Add CSSC.
23034
23035 2010-05-16  Jim Meyering  <meyering@redhat.com>
23036
23037         init.sh: fix an error in the previous change; add more comments
23038         * tests/init.sh: Compare exit code in loop against 9, not 2.
23039         Patch by Bruno Haible.
23040         Make the two tests more similar by adding an empty "then" clause.
23041         Add comments.
23042
23043         init.sh: avoid unnecessary shell re-exec
23044         * tests/init.sh: Improve the re-exec-required check to first test the
23045         current shell.  If it passes the test, do not search for a shell that
23046         does pass, and do not re-exec.  This test is particularly contorted to
23047         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23048         of $(...) evokes a syntax error and causes immediate shell exit with
23049         status 2.  Bruno Haible reported that the re-exec made it impossible
23050         to single-step through any init.sh-using script.
23051
23052 2010-05-16  Bruno Haible  <bruno@clisp.org>
23053
23054         Fix collision between gnulib's and libintl's printf replacements.
23055         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23056         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23057         (printf): When using GNU C, map the __printf__ function to rpl_printf
23058         via __asm__. When not using GNU C, define rpl_printf instead of
23059         __printf__.
23060         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23061         commit.
23062         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23063         commit.
23064         * m4/asm-underscore.m4: New file.
23065         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23066         * modules/stdio (Files): Add m4/asm-underscore.m4.
23067         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23068         Reported by Ben Pfaff.
23069
23070 2010-05-16  Bruno Haible  <bruno@clisp.org>
23071
23072         verify: Avoid skipping the test on openSUSE 11.0.
23073         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23074
23075 2010-05-13  Bruno Haible  <bruno@clisp.org>
23076
23077         Avoid useless warnings from G++.
23078         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23079         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23080         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23081
23082 2010-05-11  Jim Meyering  <meyering@redhat.com>
23083
23084         maint.mk: tweak preceding change
23085         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23086         regexps tighter by anchoring at EOL, and make the new group "shy"
23087         for slightly decreased overhead.
23088
23089 2010-05-11  Eric Blake  <eblake@redhat.com>
23090
23091         maint.mk: gnulib doesn't guarantee NSIG
23092         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23093
23094 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23095
23096         test-pwrite.c: Remove unused variable declaration.
23097         * tests/test-pwrite.c (main): Remove read_buf declaration.
23098
23099         Remove useless test-pwrite.sh file.
23100         * tests/test-pwrite.sh: Delete file.
23101         * modules/pwrite-tests: Remove references.
23102         Reported by Bruno Haible.
23103
23104 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23105
23106         init.sh: fix a typo
23107         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23108
23109 2010-05-10  Jim Meyering  <meyering@redhat.com>
23110
23111         maint.mk: avoid using a temporary file in the always-defined-macros check
23112         * top/maint.mk (.re-defmac): Remove rule.
23113         (gl_trap_): Remove definition.
23114         (sc_prohibit_always-defined_macros): Rewrite not to create and
23115         depend on a temporary file.  Instead, depend on GNU grep's ability
23116         to read a list of regular expressions from stdin when given "-f -".
23117
23118 2010-05-09  Bruno Haible  <bruno@clisp.org>
23119
23120         Update to GNU gettext 0.18, part 1.
23121         * m4/gettext.m4: Update to GNU gettext 0.18.
23122         * m4/intl.m4: Likewise.
23123         * m4/po.m4: Likewise.
23124         * modules/gettext (Files): Add m4/fcntl-o.m4.
23125         (configure.ac): Require gettext infrastructure from version 0.18.
23126
23127 2010-05-09  Jim Meyering  <meyering@redhat.com>
23128
23129         init.sh: enable MALLOC_PERTURB_
23130         * tests/init.sh: Enable glibc's malloc-perturbing option.
23131
23132         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23133         With my recent change in init.sh from the two-line form:
23134             -#   : ${srcdir=.}
23135             -#   . "$srcdir/init.sh"; path_prepend_ .
23136             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23137         I noticed that using the one-line form would cause this test
23138         to fail with a false-positive, or to stop working altogether,
23139         depending on whether help-version changed or all the tests did.
23140         * top/maint.mk (_hv_regex): Remove this definition.
23141         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23142         (_hv_regex_strong): Use a stronger regex to check for conformance.
23143         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23144         Give a separate diagnostic for lack of conforming use.
23145
23146         maint.mk: prohibit definition of symbols defined by gnulib
23147         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23148         definition of symbols defined by gnulib.
23149
23150 2010-05-09  Bruno Haible  <bruno@clisp.org>
23151
23152         acl: Avoid test failure on Cygwin-hosted mingw.
23153         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23154
23155 2010-05-09  Bruno Haible  <bruno@clisp.org>
23156
23157         error: Use system's fcntl function.
23158         * lib/error.c (fcntl): Undefine.
23159
23160 2010-05-09  Jim Meyering  <meyering@redhat.com>
23161
23162         verify: adjust formatting to be more consistent
23163         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23164         argument-list '('s, and after one comma.
23165
23166 2010-05-09  Bruno Haible  <bruno@clisp.org>
23167
23168         error: More reliable output on mingw.
23169         * lib/error.c: Include <windows.h>.
23170         (is_open): New function.
23171         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23172         defined.
23173
23174 2010-05-09  Bruno Haible  <bruno@clisp.org>
23175
23176         vasnprintf: Fix syntax errors in libintl build on mingw.
23177         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23178         pad_ourselves and prec_ourselves after use.
23179
23180 2010-05-08  Bruno Haible  <bruno@clisp.org>
23181
23182         * lib/config.charset: Update comments for Cygwin 1.7.
23183         * lib/localcharset.c: Likewise.
23184
23185 2010-05-07  Jim Meyering  <meyering@redhat.com>
23186
23187         init.sh: improve comments
23188         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23189         . "${srcdir=.}/init.sh"; path_prepend_ .
23190         Add a note about path_prepend_ and the alternative of using
23191         TESTS_ENVIRONMENT.
23192
23193 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23194
23195         exclude: Unescape hashed patterns in wildcard mode.
23196         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23197         to the hash list.
23198         * tests/test-exclude8.sh: New test case.
23199         * modules/exclude-tests: Add new test.
23200
23201 2010-05-05  Eric Blake  <eblake@redhat.com>
23202
23203         verify: automate tests
23204         * modules/verify-tests: New module.
23205         * tests/test-verify.sh: New file.
23206         * tests/test-verify.c: Guard each negative test with a unique id.
23207         Also avoid warning about unused left hand of comma expressions.
23208
23209 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23210
23211         Further improvements to verify.h, suggested by Eric Blake.
23212         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23213         the GL_* versions, to avoid collision with OpenGL.
23214         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23215         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23216         than testing merely whether it's defined.
23217
23218         Modify verify.h to pacify gcc -Wredundant_decls.
23219         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23220         These use the prefix "GL_" since they're likely to be useful elsewhere.
23221         We may need to break them out into a different .h file.
23222         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23223         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23224         of verify_function__.
23225
23226 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23227
23228         Tests for module pwrite.
23229         * modules/pwrite-tests: New file.
23230         * tests/test-pwrite.sh: New file.
23231         * tests/test-pwrite.c: New file.
23232
23233         New module pwrite.
23234         * lib/unistd.in.h (pwrite): New declaration.
23235         * lib/pwrite.c: New file, from glibc with modifications.
23236         * m4/pwrite.m4: New file.
23237         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23238         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23239         REPLACE_PWRITE.
23240         * modules/pwrite: New file.
23241         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23242         REPLACE_PWRITE.
23243         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23244         * doc/posix-functions/pwrite.texi: Mention the new module.
23245
23246 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23247
23248         pread: Update documentation.
23249         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23250
23251 2010-05-04  Eric Blake  <eblake@redhat.com>
23252
23253         docs: update cygwin progress
23254         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23255         this bug.
23256         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23257         Added in cygwin 1.7.2.
23258         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23259         Likewise.
23260         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23261         Likewise.
23262         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23263         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23264         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23265         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23266         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23267         Mention nproc module.
23268         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23269         bug in cygwin 1.7.5 addition.
23270         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23271         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23272         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23273         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23274         1.7.5.
23275         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23276         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23277         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23278         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23279         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23280         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23281         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23282         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23283         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23284         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23285         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23286         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23287         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23288         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23289         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23290         Likewise.
23291         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23292         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23293         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23294         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23295         Likewise.
23296         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23297         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23298         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23299         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23300         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23301         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23302         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23303         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23304         Likewise.
23305         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23306         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23307         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23308         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23309         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23310         Likewise.
23311         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23312         Likewise.
23313         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23314         Likewise.
23315         * doc/glibc-functions/xdrrec_endofrecord.texi
23316         (xdrrec_endofrecord): Likewise.
23317         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23318         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23319         Likewise.
23320         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23321         Likewise.
23322
23323 2010-05-04  Jim Meyering  <meyering@redhat.com>
23324
23325         gendocs.sh: make its "-s FILE" option more useful
23326         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23327         $PACKAGE to reflect the probably-different basename of "FILE".
23328
23329 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23330
23331         bootstrap: don't ignore download_po_files failure
23332         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23333         failure.
23334
23335 2010-05-03  Jim Meyering  <meyering@redhat.com>
23336
23337         maint.mk: allow to pass options to gendocs.sh
23338         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23339         (gendocs_options_): New overridable variable.
23340
23341         gnu-web-doc-update: don't ignore configure or build failure
23342         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23343
23344         announce-gen: backslash-escape '@'s in --help output
23345         * build-aux/announce-gen: Fix syntax errors.
23346
23347         maint.mk, announce-gen: allow project-specific announcement mail headers
23348         * top/maint.mk (translation_project_): Define default.
23349         (announcement_Cc_, announcement_mail_headers_): Likewise.
23350         (announcement): Invoke announce-gen with new --mail-headers option.
23351         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23352
23353         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23354         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23355         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23356         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23357         line in the "err2" output file when running "make check" in verbose
23358         mode (i.e., with set -x enabled).
23359
23360 2010-05-03  Bruno Haible  <bruno@clisp.org>
23361
23362         wctob: Fix for weird platforms.
23363         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23364         argument value.
23365
23366 2010-05-03  Jim Meyering  <meyering@redhat.com>
23367
23368         maint.mk: prohibit unwarranted use of <strings.h>
23369         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23370         strings.h in a file that does not also use strcasecmp, strncasecmp,
23371         ffs or ffsll.
23372
23373         maint.mk: remove obsolete comments
23374         * top/maint.mk: Remove stale, commented-out rules.
23375
23376 2010-05-02  Bruno Haible  <bruno@clisp.org>
23377
23378         wcwidth: Declare also when it's aliased.
23379         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23380         macro.
23381
23382 2010-05-02  Bruno Haible  <bruno@clisp.org>
23383
23384         Fix regression from 2010-04-25.
23385         * gnulib-tool (func_modules_transitive_closure): Check the status of
23386         all modules, not only of the tests that are of the form foo-tests where
23387         foo is a module.
23388
23389 2010-05-02  Bruno Haible  <bruno@clisp.org>
23390
23391         wctob: Work around nasty Cygwin 1.7.2 bug.
23392         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23393         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23394
23395 2010-05-01  Bruno Haible  <bruno@clisp.org>
23396
23397         fpurge: Sharper test.
23398         * tests/test-fpurge.c (main): Add one more ftell check.
23399         * modules/fpurge-tests (Depends-on): Add ftell.
23400         Suggested by Eric Blake.
23401
23402 2010-05-01  Bruno Haible  <bruno@clisp.org>
23403
23404         ftello: Another test.
23405         * tests/test-ftello3.c: New file.
23406         * modules/ftello-tests (Files): Add it.
23407         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23408         MOSTLYCLEANFILES.
23409
23410         ftell: Another test.
23411         * tests/test-ftell3.c: New file.
23412         * modules/ftell-tests (Files): Add it.
23413         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23414         MOSTLYCLEANFILES.
23415
23416 2010-05-01  Bruno Haible  <bruno@clisp.org>
23417
23418         ftell, ftello: Work around Solaris bug.
23419         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23420         * lib/ftello.c: Include stdio-impl.h.
23421         (ftello): On Solaris, when _IOWRT is set, compute the result without
23422         looking at _IOREAD.
23423         * modules/ftello (Files): Add lib/stdio-impl.h.
23424         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23425         * doc/posix-functions/ftello.texi: Likewise.
23426         Reported by Eric Blake.
23427
23428 2010-05-01  Bruno Haible  <bruno@clisp.org>
23429
23430         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23431         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23432         the _IOWRT flag is also set.
23433
23434 2010-05-01  Bruno Haible  <bruno@clisp.org>
23435
23436         Fix doc about a HP-UX stdio bug.
23437         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23438         * doc/posix-functions/ftello.texi: Likewise.
23439
23440 2010-05-01  Bruno Haible  <bruno@clisp.org>
23441
23442         lseek test: Fix failure on Solaris.
23443         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23444         output.
23445
23446 2010-04-30  Jim Meyering  <meyering@redhat.com>
23447
23448         bootstrap: don't ignore failure to generate po*/Makevars
23449         * build-aux/bootstrap (with_gettext): Don't ignore failure
23450         to create po/Makevars or runtime-po/Makevars.
23451
23452 2010-04-29  Eric Blake  <eblake@redhat.com>
23453
23454         headers: relax license to LGPLv2+
23455         * modules/fcntl-h (License): Relax license.
23456         * modules/getopt-posix (License): Likewise.
23457         * modules/locale (License): Likewise.
23458         * modules/math (License): Likewise.
23459         * modules/pty (License): Likewise.
23460         * modules/sched (License): Likewise.
23461         * modules/search (License): Likewise.
23462         * modules/spawn (License): Likewise.
23463         * modules/stdarg (License): Likewise.
23464         * modules/sysexits (License): Likewise.
23465
23466 2010-04-29  Jim Meyering  <meyering@redhat.com>
23467
23468         inttypes: relax license to LGPLv2+
23469         * modules/inttypes (License): Relax license.
23470
23471 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23472
23473         * top/maint.mk (indent): Run twice to produce idempotent results.
23474
23475 2010-04-28  Bruno Haible  <bruno@clisp.org>
23476
23477         getdate: Generate getdate.c in the source directory.
23478         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23479         MOSTLYCLEANFILES.
23480         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23481
23482 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23483
23484         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23485         is not declared as a const *; avoid warnings in that case.
23486
23487 2010-04-28  Eric Blake  <eblake@redhat.com>
23488
23489         canonicalize-lgpl: avoid compiler warning
23490         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23491         declaration' / 'extraneous semicolon' warning with some compilers.
23492         Reported by Andreas Gruenbacher.
23493
23494 2010-04-28  Jim Meyering  <meyering@redhat.com>
23495
23496         init.sh: ensure a more reliable exit status when exiting via trap
23497         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23498         Inspired by patches from Dmitry V. Levin.
23499         Also trap on signal 3 (SIGQUIT).
23500
23501 2010-04-27  Bruno Haible  <bruno@clisp.org>
23502
23503         Update doc about utimes().
23504         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23505         'utimens' module.
23506         Reported by Andreas Gruenbacher <agruen@suse.de>.
23507
23508 2010-04-27  Eric Blake  <eblake@redhat.com>
23509
23510         full-read, full-write: relax license
23511         * modules/full-read (License): Drop to LGPLv2+.
23512         * modules/full-write (License): Likewise.
23513         * modules/safe-read (License): Likewise.
23514         * modules/safe-write (License): Likewise.
23515
23516         pthread: mention library for linking
23517         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23518
23519 2010-04-27  Jim Meyering  <meyering@redhat.com>
23520
23521         maint.mk: fix a bug introduced in last change
23522         * top/maint.mk (gl_assured_headers_): Now that all names are on
23523         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23524         is not anchored to end of word, it should be adequate.
23525
23526         maint.mk: avoid side-effect in latest syntax-check
23527         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23528         to run commands via $(shell...), and hence to incur cost only when
23529         the new rule is actually run.
23530
23531         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23532         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23533         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23534         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23535         (gl_assured_headers_, az_, AZ_): Define.
23536         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23537
23538 2010-04-26  Jim Meyering  <jim@meyering.net>
23539             Bruno Haible  <bruno@clisp.org>
23540
23541         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23542         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23543         Prompted by an exchange with Gilles Espinasse.
23544
23545 2010-04-26  Jim Meyering  <meyering@redhat.com>
23546
23547         git-version-gen: aesthetic tweak
23548         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23549         so that the command remains on a single line.
23550
23551 2010-04-26  Eric Blake  <eblake@redhat.com>
23552
23553         git-version-gen: allow use on EBCDIC hosts
23554         * build-aux/git-version-gen (dirty): Use literal rather than tying
23555         ourselves to ascii.
23556         Reported by Steve Goetze.
23557
23558 2010-04-25  Bruno Haible  <bruno@clisp.org>
23559
23560         netdb: Add support for GNULIB_POSIXCHECK.
23561         * lib/netdb.in.h: Include warn-on-use.h.
23562         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23563         functions are used when GNULIB_POSIXCHECK is defined and the
23564         getaddrinfo module is not in use.
23565         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23566         freeaddrinfo, gai_strerror, getnameinfo are declared.
23567         * modules/netdb (Depends-on): Add warn-on-use.
23568         (Makefile.am): Include warn-on-use.h in netdb.h.
23569
23570 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23571
23572         build: avoid "make check" failure without .git/ directory
23573         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23574         there is no .git/ directory.
23575
23576 2010-04-25  Bruno Haible  <bruno@clisp.org>
23577
23578         ptsname: Fix misuse of ttyname_r.
23579         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23580         of errno.
23581
23582 2010-04-25  Bruno Haible  <bruno@clisp.org>
23583
23584         ttyname_r: Make it work on Solaris 10.
23585         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23586         if the system function has the POSIX declaration. Test whether the
23587         function fails if the buffer is less than 128 bytes large.
23588         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23589         system's ttyname_r function. Provide a reasonably large buffer.
23590         * modules/ttyname_r (Depends-on): Add extensions.
23591         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23592
23593 2010-04-25  Bruno Haible  <bruno@clisp.org>
23594
23595         Use the 'extensions' module for some more functions on Solaris.
23596         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23597         module.
23598         * doc/posix-functions/ctime_r.texi: Likewise.
23599         * doc/posix-functions/getgrgid_r.texi: Likewise.
23600         * doc/posix-functions/getgrnam_r.texi: Likewise.
23601         * doc/posix-functions/getpwnam_r.texi: Likewise.
23602         * doc/posix-functions/getpwuid_r.texi: Likewise.
23603         * doc/posix-functions/readdir_r.texi: Likewise.
23604         * doc/posix-functions/sigwait.texi: Likewise.
23605         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23606         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23607
23608 2010-04-25  Bruno Haible  <bruno@clisp.org>
23609
23610         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23611         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23612         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23613         * lib/ttyname_r.c: Include <limits.h>.
23614         (ttyname_r): Define using the system's ttyname_r function, if it exists
23615         and not on Solaris.
23616         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23617         set.
23618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23619         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23620         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23621         Reported by Simon Josefsson.
23622
23623 2010-04-25  Bruno Haible  <bruno@clisp.org>
23624
23625         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23626         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23627         * doc/posix-functions/ctime_r.texi: Likewise.
23628         * doc/posix-functions/getgrgid_r.texi: Likewise.
23629         * doc/posix-functions/getgrnam_r.texi: Likewise.
23630         * doc/posix-functions/getlogin_r.texi: Likewise.
23631         * doc/posix-functions/getpwnam_r.texi: Likewise.
23632         * doc/posix-functions/getpwuid_r.texi: Likewise.
23633         * doc/posix-functions/readdir_r.texi: Likewise.
23634         * doc/posix-functions/sigwait.texi: Likewise.
23635         * doc/posix-functions/ttyname_r.texi: Likewise.
23636         Reported by Simon Josefsson.
23637
23638 2010-04-25  Bruno Haible  <bruno@clisp.org>
23639
23640         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23641         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23642         also to --create-testdir.
23643         (func_acceptable): Don't consider the status of *-tests modules here.
23644         (func_modules_transitive_closure): Consider it here, before including a
23645         test module.
23646         (func_import, func_create_testdir): Set inc_all_direct_tests,
23647         inc_all_indirect_tests.
23648         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23649         --create-testdir and --create-megatestdir.
23650
23651 2010-04-25  Bruno Haible  <bruno@clisp.org>
23652
23653         gnulib-tool: Add --without-*-tests options.
23654         * gnulib-tool (func_usage): Document the --without-*-tests options.
23655         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23656         excl_unportable_tests): New variables.
23657         Fail if they are specified with --import or --update.
23658         (func_acceptable): Respect the excl_*_tests variables.
23659         (func_import): Set the excl_*_tests variables to empty.
23660
23661 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23662             Bruno Haible  <bruno@clisp.org>
23663
23664         Work around a MacOS X 10.4 bug with openpty.
23665         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23666         * tests/test-openpty.c (main): Close the master side explicitly.
23667
23668 2010-04-25  Bruno Haible  <bruno@clisp.org>
23669
23670         strnlen: Fix a C++ test error on MacOS X and Solaris.
23671         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23672         the function is not declared.
23673         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23674         Simon Josefsson.
23675
23676 2010-04-24  Bruno Haible  <bruno@clisp.org>
23677
23678         Avoid a gcc warning.
23679         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23680         of correct type for %08lx directive.
23681         Reported by Eric Blake.
23682
23683 2010-04-24  Bruno Haible  <bruno@clisp.org>
23684
23685         vasnprintf: Correct errno value in case of out-of-memory.
23686         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23687         or sprintf. Use the errno value from SNPRINTF or sprintf.
23688         Reported by Ian Beckwith <ianb@erislabs.net>.
23689
23690 2010-04-24  Bruno Haible  <bruno@clisp.org>
23691
23692         ansi-c++-opt: Find correct compiler when cross-compiling.
23693         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23694         AC_CHECK_PROGS.
23695         Reported by Simon Josefsson.
23696
23697 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23698
23699         vc-list-files: Add support for subversion
23700         * build-aux/vc-list-files: Use "svn list" to generate the list of
23701         files controlled by subversion.
23702
23703 2010-04-23  Jim Meyering  <meyering@redhat.com>
23704
23705         vc-list-files tests: convert to use init.sh
23706         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23707         path_prepend_.
23708         Use Exit, not exit.
23709         Use skip_ rather than open coding it.
23710         Remove trap set-up and compare definitions.
23711         * tests/test-vc-list-files-git.sh: Likewise.
23712         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23713
23714 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23715
23716         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23717         backup files.
23718
23719 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23720
23721         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23722
23723 2010-04-20  Eric Blake  <eblake@redhat.com>
23724
23725         tests: be robust to ignored SIGPIPE
23726         * tests/test-select-in.sh: Consume all output.
23727         * tests/test-lseek.sh: Check correct exit status, while avoiding
23728         EPIPE.
23729
23730 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23731             Bruno Haible  <bruno@clisp.org>
23732
23733         visibility: Don't use -fvisibility if it leads to a warning.
23734         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23735         yes, don't pretend that visibility works if it leads to a warning.
23736         Reported by Mike Gran <spk121@yahoo.com>.
23737
23738 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23739
23740         * build-aux/bootstrap: Use "git -h" for testing for supported options
23741         instead of "git --help".  The short-form option only shows a summary,
23742         and doesn't layout the full man page.  Grep for the full option name
23743         in the summary, too.
23744
23745 2010-04-19  Bruno Haible  <bruno@clisp.org>
23746
23747         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23748         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23749         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23750         mention of RELOCATABLE_STRIP.
23751         Reported by Sylvain Beucler <beuc@beuc.net>.
23752
23753 2010-04-19  Bruno Haible  <bruno@clisp.org>
23754
23755         * lib/diffseq.h: Fix typo in comment.
23756         Reported by Eric Blake.
23757
23758 2010-04-19  Bruno Haible  <bruno@clisp.org>
23759
23760         ioctl: Move autoconf macro to a .m4 file.
23761         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23762         * modules/ioctl (Files): Add it.
23763         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23764         Reported by Ian Beckwith <ianb@erislabs.net>.
23765
23766 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23767             Bruno Haible  <bruno@clisp.org>
23768
23769         diffseq: Accommodate use-case with abstract arrays.
23770         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23771         is not defined.
23772         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23773         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23774
23775 2010-04-18  Bruno Haible  <bruno@clisp.org>
23776
23777         * doc/posix-headers/stdbool.texi: More precise wording.
23778
23779 2010-04-17  Jim Meyering  <meyering@redhat.com>
23780
23781         maint.mk: use gnu-style indentation in an embedded perl script
23782         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23783         Rename variable: s/two/last_two_bytes/
23784
23785 2010-04-16  Eric Blake  <eblake@redhat.com>
23786
23787         test-stdbool: skip test that fails with Solaris CC
23788         * tests/test-stdbool.c (f): Skip test that causes compilation
23789         error under buggy C++ compiler.
23790         * lib/stdbool.in.h: Document the limitation.
23791         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23792
23793         setenv: allow compilation with C++
23794         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23795         register keyword.
23796
23797         stdint: allow test to pass with C++
23798         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23799
23800         getopt: allow compilation with C++
23801         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23802         struct.
23803         * lib/getopt.c (_getopt_internal_r): Use correct type.
23804         Reported by Dagobert Michelson, via Joel E. Denny.
23805
23806 2010-04-16  Bruno Haible  <bruno@clisp.org>
23807
23808         Override netdb.h always.
23809         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23810         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23811         Reported by Ludovic Courtès <ludo@gnu.org>.
23812
23813 2010-04-15  Bruno Haible  <bruno@clisp.org>
23814
23815         openpty: Fix mistake from 2010-03-21.
23816         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23817         Reported by Simon Josefsson.
23818
23819 2010-04-15  Eric Blake  <eblake@redhat.com>
23820
23821         test-forkpty: fix expected signature
23822         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23823         Reported by Simon Josefsson.
23824
23825 2010-04-15  Jim Meyering  <meyering@redhat.com>
23826
23827         maint.mk: texinfo_suffix_re_: correct the default regexp
23828         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23829
23830         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23831         make it configurable via texinfo_suffix_re_.
23832
23833 2010-04-14  Eric Blake  <eblake@redhat.com>
23834
23835         strtok_r: relax license to LGPLv2+
23836         * modules/strtok_r (License): Relax license.
23837         Reported by Matthias Bolte.
23838
23839 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23840
23841         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23842         version 1.4.4 by default instead of requiring the libgcrypt
23843         version used during build.  This makes it possible to use the
23844         application with older but still binary compatible libgcrypt
23845         versions.
23846
23847 2010-04-13  Eric Blake  <eblake@redhat.com>
23848
23849         getopt-gnu: match recent glibc fixes and posix ruling
23850         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23851         '+' handling, when requesting extensions.
23852         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23853         'W;' handling.
23854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23855         * doc/posix-functions/getopt.texi (getopt): Document this.
23856         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23857         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23858         Likewise.
23859
23860         getopt: merge bug fixes from glibc
23861         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23862         diagnostics.  Honor '+:' correctly.  Reject ';'.
23863
23864         getopt-posix: detect MacOS bug
23865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23866         optind when missing a required argument.
23867         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23868         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23869         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23870         Likewise.
23871
23872         getopt-posix: avoid spurious failure on Solaris
23873         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23874         an indicator that setting optind=1 is sufficient for reset.
23875
23876         getopt-posix: avoid spurious failure on FreeBSD
23877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23878         in POSIX mode, since the m4 test uses it.
23879
23880         gnulib-tool: silence warning on BSD sh
23881         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23882
23883 2010-04-13  Jim Meyering  <meyering@redhat.com>
23884
23885         doc: users.txt: GNU patch now uses gnulib
23886         * users.txt: Add patch.
23887
23888 2010-04-12  Jim Meyering  <meyering@redhat.com>
23889
23890         maint.mk: generate more concise timing data for syntax-check rules
23891         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23892         " done" from each line that reports a syntax-check test duration.
23893
23894 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23895
23896         git-version-gen: use "git update-index..." rather than "git status"
23897         * build-aux/git-version-gen: Use git update-index --refresh, not
23898         "git status".  With some versions of git, "git status" would fail
23899         to update the index and result in an unwarranted "-dirty" suffix.
23900
23901 2010-04-11  Jim Meyering  <meyering@redhat.com>
23902
23903         openat: correct formatting (no semantic change)
23904         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23905         Suggested by Bruno Haible.
23906
23907 2010-04-11  Bruno Haible  <bruno@clisp.org>
23908
23909         Stricter declaration checking in testdirs.
23910         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23911         If for_tests is true, augment AM_CPPFLAGS to define
23912         GNULIB_STRICT_CHECKING.
23913         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23914         GNULIB_STRICT_CHECKING is defined, verify that the function is
23915         declared.
23916
23917 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23918             Bruno Haible  <bruno@clisp.org>
23919
23920         libunistring: Improve configure output.
23921         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23922         Don't say "consider installing GNU libunistring" when checking again
23923         with libiconv.
23924
23925 2010-04-11  Bruno Haible  <bruno@clisp.org>
23926
23927         libunistring: Correct value of $LTLIBUNISTRING.
23928         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23929         correct the value of $LTLIBUNISTRING.
23930
23931 2010-04-11  Bruno Haible  <bruno@clisp.org>
23932
23933         havelib: Add static libraries to LIBS in the right order.
23934         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23935         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23936
23937 2010-04-11  Bruno Haible  <bruno@clisp.org>
23938
23939         libunistring: Detect libunistring also when it depends on libiconv.
23940         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23941         the second AC_LIB_HAVE_LINKFLAGS invocation.
23942
23943 2010-04-11  James Youngman  <jay@gnu.org>
23944
23945         close-stream: declare local scalars to be "const"
23946         * lib/close-stream.c (close_stream): Make boolean variables const
23947         to document the fact that we set but do not change them.
23948
23949 2010-04-11  Bruno Haible  <bruno@clisp.org>
23950
23951         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23952
23953 2010-04-11  Jim Meyering  <meyering@redhat.com>
23954
23955         maint.mk: don't include dist-check.mk
23956         * top/maint.mk: Remove bogus include directive.
23957
23958         maint.mk: improve empty-line-at-EOF check
23959         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23960         solution, rather than tail+Perl-based one.  The latter would read
23961         a few kilobytes from the end of each file, and did not handle empty
23962         files properly.
23963
23964         maint.mk: print the elapsed time for each syntax-check rule
23965         * top/maint.mk (sc_m_rules_): Save start time in a file.
23966         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23967         (local-check): Interpose the .z rules
23968
23969 2010-04-11  Jim Meyering  <meyering@redhat.com>
23970
23971         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23972         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23973         empty file with one that ends in an empty line.
23974
23975 2010-04-10  Bruno Haible  <bruno@clisp.org>
23976
23977         mkdir: Make it work on mingw64.
23978         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23979         * lib/mkdir.c: Update comment.
23980         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
23981
23982 2010-04-10  Bruno Haible  <bruno@clisp.org>
23983
23984         Don't override improved macro from newer autoconf.
23985         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23986         autoconf >= 2.62.
23987         Reported by Joel E. Denny <jdenny@clemson.edu>.
23988
23989 2010-04-10  Jim Meyering  <meyering@redhat.com>
23990
23991         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23992         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23993
23994         maint.mk: correct a diagnostic
23995         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23996         in diagnostic; now use $prohibit.
23997
23998 2010-04-10  Bruno Haible  <address@hidden>
23999
24000         fchownat: Fix a C++ test error on Solaris 8.
24001         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24002         the function does not exist.
24003
24004 2010-04-10  Bruno Haible  <bruno@clisp.org>
24005
24006         vasnprintf: Add more tests.
24007         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24008         (test_function): Test converting an invalid wide string.
24009
24010         vasnprintf: Correct handling of unconvertible wide string arguments.
24011         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24012         VASNPRINTF.
24013         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24014         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24015         smaller than the expected maximum need for the directive. Set errno to
24016         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24017         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24019         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24020         * modules/vasnprintf (Files): Add m4/printf.m4.
24021         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24022
24023 2010-04-10  Bruno Haible  <bruno@clisp.org>
24024
24025         vasnprintf: Fix crash in %ls directive.
24026         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24027         string is passed as argument to %ls, with no precision and no width.
24028         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24029
24030 2010-04-10  Bruno Haible  <bruno@clisp.org>
24031
24032         vasnprintf: Fix multiple test failures on mingw.
24033         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24034         _snprintf, or snwprintf, not _snwprintf.
24035
24036 2010-04-10  Bruno Haible  <bruno@clisp.org>
24037
24038         write: Fix a C++ test error on mingw.
24039         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24040
24041 2010-04-10  Bruno Haible  <bruno@clisp.org>
24042
24043         vasnprintf test: Reduce code duplication.
24044         * tests/test-vasnprintf.c (test_function): New function, extracted from
24045         test_vasnprintf.
24046         (test_vasnprintf, test_asnprintf): Invoke it.
24047
24048 2010-04-10  Bruno Haible  <bruno@clisp.org>
24049
24050         strnlen: Fix warning in C++ mode on MacOS X.
24051         * lib/string.in.h (strnlen): Use the modern idiom.
24052         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24053         defining strnlen as a macro already in <config.h>.
24054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24055         REPLACE_STRNLEN.
24056         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24057         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24058
24059 2010-04-08  James Youngman  <jay@gnu.org>
24060
24061         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24062         the example.
24063
24064 2010-04-09  Jim Meyering  <meyering@redhat.com>
24065
24066         maint.mk: print better diagnostic when there is no $(_hv_file)
24067         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24068         announce that when $(_hv_file) (aka help-version) does not exist.
24069
24070         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24071         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24072         not try to interpret its random input bytes.  Jarno Rajahalme reported
24073         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24074         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24075         (mktempd_): Likewise, just in case.
24076
24077         ftruncate: add two years to projected module removal date: 2012
24078         * m4/ftruncate.m4: Adjust comments.
24079
24080         ftruncate: mark module as obsolete; even MinGW provides it, now
24081         * modules/ftruncate (Status): Obsolete.
24082         (Notice): Say that.
24083         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24084         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24085
24086 2010-04-08  Bruno Haible  <bruno@clisp.org>
24087
24088         Fix side effects from tests-related modules.
24089         * modules/dprintf-posix (Comment): New section.
24090         * modules/fprintf-posix (Comment): Likewise.
24091         * modules/obstack-printf-posix (Comment): Likewise.
24092         * modules/printf-posix (Comment): Likewise.
24093         * modules/snprintf-posix (Comment): Likewise.
24094         * modules/sprintf-posix (Comment): Likewise.
24095         * modules/vasnprintf-posix (Comment): Likewise.
24096         * modules/vasprintf-posix (Comment): Likewise.
24097         * modules/vdprintf-posix (Comment): Likewise.
24098         * modules/vfprintf-posix (Comment): Likewise.
24099         * modules/vprintf-posix (Comment): Likewise.
24100         * modules/vsnprintf-posix (Comment): Likewise.
24101         * modules/vsprintf-posix (Comment): Likewise.
24102         * modules/xprintf-posix (Comment): Likewise.
24103         * modules/xvasprintf-posix (Comment): Likewise.
24104         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24105         * modules/floorf-tests (Depends-on): Likewise.
24106         * modules/round-tests (Depends-on): Likewise.
24107         * modules/roundf-tests (Depends-on): Likewise.
24108         * modules/trunc-tests (Depends-on): Likewise.
24109         * modules/truncf-tests (Depends-on): Likewise.
24110         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24111         'fprintf-posix' module is not present.
24112         * tests/test-floorf2.c (check): Likewise.
24113         * tests/test-trunc2.c (check): Likewise.
24114         * tests/test-truncf2.c (check): Likewise.
24115         * tests/test-round2.c (equal): Likewise.
24116         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24117
24118 2010-04-07  Karl Berry  <karl@gnu.org>
24119
24120         * config/srclist.txt,
24121         * config/srclistvars.sh,
24122         * config/srclist-update: doc fixes.
24123
24124 2010-04-07  Jim Meyering  <meyering@redhat.com>
24125
24126         maint.mk: add a PATH crosschecking syntax-check rule
24127         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24128         Useful if you use a test like the one in help-version (coreutils,
24129         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24130         printed by prog --version.
24131
24132 2010-04-06  Bruno Haible  <bruno@clisp.org>
24133
24134         Fix link error on mingw.
24135         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24136         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24137
24138 2010-04-06  Bruno Haible  <bruno@clisp.org>
24139
24140         Assume rmdir exists.
24141         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24142
24143 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24144
24145         doc: update users.txt
24146         * users.txt: Add gcal.
24147
24148 2010-04-06  Jim Meyering  <meyering@redhat.com>
24149
24150         init.sh: simply unset TMPDIR rather than risking env -i
24151         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24152         although it probably works fine on all Unix-based systems, some
24153         systems (Cygwin?) cannot tolerate a totally cleared environment.
24154         Suggestion from Eric Blake.
24155
24156 2010-04-06  Jim Meyering  <meyering@redhat.com>
24157
24158         init.sh: portability fix: use env's POSIX-specified -i option not -u
24159         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24160         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24161
24162 2010-04-05  Bruno Haible  <bruno@clisp.org>
24163
24164         btowc: Work around Cygwin 1.7.2 bug.
24165         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24166         does not map NUL to 0.
24167         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24168
24169 2010-04-05  Bruno Haible  <bruno@clisp.org>
24170
24171         Make the multithread modules work on Cygwin 1.7.2.
24172         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24173         imported symbols can be declared weak, so that it returns "no" on
24174         Cygwin 1.7.2.
24175
24176 2010-04-05  Bruno Haible  <bruno@clisp.org>
24177
24178         Use the module 'strncat'.
24179         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24180
24181         Tests for module 'strncat'.
24182         * modules/strncat-tests: New file.
24183         * tests/test-strncat.c: New file.
24184
24185         New module 'strncat'.
24186         * lib/string.in.h (strncat): New declaration.
24187         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24188         * m4/strncat.m4: New file, based on m4/memchr.m4.
24189         * modules/strncat: New file.
24190         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24191         is declared.
24192         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24193         REPLACE_STRNCAT.
24194         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24195         REPLACE_STRNCAT.
24196         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24197         module.
24198         * tests/test-string-c++.cc: Check signature of strncat.
24199
24200 2010-04-05  Jim Meyering  <meyering@redhat.com>
24201
24202         xstrtoumax-tests: convert to use init.sh
24203         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24204         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24205         Use Exit, not exit.
24206         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24207
24208         xstrtoimax-tests: convert to use init.sh
24209         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24210         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24211         Use Exit, not exit.
24212         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24213
24214 2010-04-05  Bruno Haible  <bruno@clisp.org>
24215
24216         sys_socket: Avoid #define replacements in C++ mode.
24217         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24218         warning to the function if possible, rather than #defining the symbol
24219         to a dysfunctional alias.
24220
24221 2010-04-05  Bruno Haible  <bruno@clisp.org>
24222
24223         fseeko: Fix C++ test error on mingw.
24224         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24225         gl_FUNC_FSEEKO.
24226         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24227         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24228         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24229         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24230
24231 2010-04-05  Bruno Haible  <bruno@clisp.org>
24232
24233         duplocale: Improve test output.
24234         * tests/test-duplocale.c (main): Print reason for skipped test.
24235
24236 2010-04-05  Bruno Haible  <bruno@clisp.org>
24237
24238         Assume rmdir exists.
24239         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24240         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24241
24242 2010-04-05  Bruno Haible  <bruno@clisp.org>
24243
24244         Fix link error on Solaris 8 with cc.
24245         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24246
24247 2010-04-05  Bruno Haible  <bruno@clisp.org>
24248
24249         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24250         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24251
24252 2010-04-05  Bruno Haible  <bruno@clisp.org>
24253
24254         vasprintf: Update documentation.
24255         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24256
24257 2010-04-05  Bruno Haible  <bruno@clisp.org>
24258
24259         ptsname: Improve test.
24260         * tests/test-ptsname.c (main): Also try the various master names of BSD
24261         systems.
24262
24263 2010-04-05  Bruno Haible  <bruno@clisp.org>
24264
24265         memchr: Avoid a possible C++ test error.
24266         * lib/string.in.h (memchr): Provide declaration if function is missing.
24267         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24268         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24270         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24271
24272 2010-04-05  Bruno Haible  <bruno@clisp.org>
24273
24274         strtok_r: Improve idiom.
24275         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24276         AC_LIBOBJ is used.
24277
24278 2010-04-05  Bruno Haible  <bruno@clisp.org>
24279
24280         strdup: Improve idiom.
24281         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24282         AC_LIBOBJ is used.
24283         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24284         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24285         when AC_LIBOBJ is used.
24286
24287 2010-04-05  Bruno Haible  <bruno@clisp.org>
24288
24289         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24290         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24291         don't set REPLACE_MBSINIT to 1.
24292         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24293         don't set REPLACE_MBRTOWC to 1.
24294         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24295         exist, don't set REPLACE_MBSRTOWCS to 1.
24296         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24297         exist, don't set REPLACE_MBSNRTOWCS to 1.
24298         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24299         don't set REPLACE_WCRTOMB to 1.
24300         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24301         exist, don't set REPLACE_WCSRTOMBS to 1.
24302         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24303         exist, don't set REPLACE_WCSNRTOMBS to 1.
24304
24305 2010-04-05  Bruno Haible  <bruno@clisp.org>
24306
24307         ldexpl: Improve idiom.
24308         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24309         make sure to set HAVE_DECL_LDEXPL to 0.
24310
24311 2010-04-05  Jim Meyering  <meyering@redhat.com>
24312
24313         xstrtol-tests: convert to use init.sh
24314         * modules/xstrtol-tests (Files): Add tests/init.sh.
24315         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24316         Use Exit, not exit.
24317         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24318
24319         atexit-tests: convert to use init.sh
24320         * modules/atexit-tests (Files): Add tests/init.sh.
24321         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24322         Use Exit, not exit.
24323         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24324
24325         init.sh: fix typo
24326         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24327
24328         init.sh: make it easier for a test script to write to the tty, ...
24329         when using automake's parallel-tests mode.
24330         * tests/init.sh (stderr_fileno_): Define overridable variable.
24331         (warn_): New function, to use it.
24332         (fail_, skip_, framework_failure_): Use warn_.
24333
24334 2010-04-04  Bruno Haible  <bruno@clisp.org>
24335
24336         btowc: Avoid warning.
24337         * lib/btowc.c: Include <stdlib.h>.
24338         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24339
24340 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24341             Bruno Haible  <bruno@clisp.org>
24342
24343         wchar: Port to NetBSD 1.5.
24344         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24345         * lib/wctype.in.h (WEOF): Likewise.
24346
24347 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24348             Bruno Haible  <bruno@clisp.org>
24349
24350         Port extended stdio to NetBSD 1.5.
24351         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24352         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24353         older.
24354
24355 2010-04-04  Bruno Haible  <bruno@clisp.org>
24356
24357         string: Remove unused substitution.
24358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24359         HAVE_DECL_STRERROR.
24360         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24361
24362 2010-04-04  Bruno Haible  <bruno@clisp.org>
24363
24364         strtod: Avoid a possible C++ test error.
24365         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24366         set REPLACE_STRTOD.
24367
24368 2010-04-04  Bruno Haible  <bruno@clisp.org>
24369
24370         strerror: Update documentation.
24371         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24372
24373 2010-04-04  Bruno Haible  <bruno@clisp.org>
24374
24375         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24376         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24377         _GL_CXXALIAS_SYS_CAST.
24378
24379 2010-04-04  Bruno Haible  <bruno@clisp.org>
24380
24381         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24382         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24383         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24384         REPLACE_FREXPL to 1.
24385         * doc/posix-functions/frexpl.texi: Update documentation.
24386
24387 2010-04-04  Bruno Haible  <bruno@clisp.org>
24388
24389         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24390         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24391
24392 2010-04-04  Bruno Haible  <bruno@clisp.org>
24393
24394         Implement nanosleep for native Windows.
24395         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24396
24397 2010-04-04  Bruno Haible  <bruno@clisp.org>
24398
24399         math: Fix some C++ test errors on Solaris 8.
24400         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24401
24402 2010-04-04  Bruno Haible  <bruno@clisp.org>
24403
24404         math: Fix some C++ test errors on Cygwin.
24405         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24406         truncl): Provide declaration if the system does not have it.
24407         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24408         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24409         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24410         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24411         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24412         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24413         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24414         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24415         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24416         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24417         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24418         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24419         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24420         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24421         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24422         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24424         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24425         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24426         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24427         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24428         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24429
24430 2010-04-04  Bruno Haible  <bruno@clisp.org>
24431
24432         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24433         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24434         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24435         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24436         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24437         * m4/isinf.m4 (gl_ISINF): Likewise.
24438         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24439
24440 2010-04-04  Bruno Haible  <bruno@clisp.org>
24441
24442         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24443         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24444
24445 2010-04-04  Bruno Haible  <bruno@clisp.org>
24446
24447         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24448         * modules/tmpfile (configure.ac): Update.
24449
24450         tmpfile: Fix C++ test error on mingw.
24451         * lib/stdio.in.h (tmpfile): New declaration.
24452         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24453         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24454         * modules/tmpfile (Depends-on): Add stdio.
24455         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24456         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24457         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24458         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24459         REPLACE_TMPFILE.
24460         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24461
24462 2010-04-04  Bruno Haible  <bruno@clisp.org>
24463
24464         ioctl: Fix C++ test error on mingw.
24465         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24466         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24467         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24468
24469 2010-04-03  Bruno Haible  <bruno@clisp.org>
24470
24471         wcwidth: Fix C++ test error on mingw.
24472         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24474         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24475
24476 2010-04-03  Bruno Haible  <bruno@clisp.org>
24477
24478         nanosleep: Fix C++ test error on mingw.
24479         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24480         * lib/time.in.h (nanosleep): Use modern idiom.
24481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24482         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24483         REPLACE_NANOSLEEP to 1.
24484         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24485         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24486
24487 2010-04-03  Bruno Haible  <bruno@clisp.org>
24488
24489         strptime: Fix C++ test error on mingw.
24490         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24491         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24492         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24493         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24494         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24495         not REPLACE_STRPTIME.
24496         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24497         REPLACE_STRPTIME.
24498
24499 2010-04-03  Bruno Haible  <bruno@clisp.org>
24500
24501         timegm: Fix C++ test error on mingw.
24502         * lib/time.in.h (timegm): Use modern idiom.
24503         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24504         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24505         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24506         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24507
24508 2010-04-03  Bruno Haible  <bruno@clisp.org>
24509
24510         timegm: Assume declaration if function exists.
24511         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24512         if it exists. Don't clobber ac_cv_func_timegm.
24513
24514 2010-04-03  Bruno Haible  <bruno@clisp.org>
24515
24516         time_r: Fix C++ test error on mingw.
24517         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24518         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24519         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24520         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24521         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24522
24523 2010-04-03  Bruno Haible  <bruno@clisp.org>
24524
24525         time_r: Minor updates.
24526         * modules/time_r (Description): Mention the provided functions.
24527         * lib/time_r.c: Don't include <string.h>.
24528         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24529         * doc/posix-functions/localtime_r.texi: Likewise.
24530
24531 2010-04-03  Bruno Haible  <bruno@clisp.org>
24532
24533         time: Fix regression introduced on 2010-03-08.
24534         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24535         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24536
24537 2010-04-03  Jim Meyering  <meyering@redhat.com>
24538
24539         maint.mk: don't silently disable project-specific syntax-check rules
24540         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24541         that they need to convert their project-specific syntax-check rules
24542         to use the new _sc_search_regexp.
24543
24544 2010-04-03  Bruno Haible  <bruno@clisp.org>
24545
24546         fchdir: Fix regression introduced on 2010-03-08.
24547         * lib/unistd.in.h (fchdir): Fix declaration.
24548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24550         REPLACE_FCHDIR.
24551         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24552         REPLACE_FCHDIR.
24553
24554 2010-04-03  Bruno Haible  <bruno@clisp.org>
24555
24556         getpagesize: Fix C++ test error on mingw.
24557         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24558         system does not declare the function.
24559         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24560         declared.
24561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24562         HAVE_DECL_GETPAGESIZE.
24563         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24564
24565 2010-04-03  Bruno Haible  <bruno@clisp.org>
24566
24567         stdio: Make C++ tests work on mingw.
24568         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24569         does not declare the function.
24570
24571 2010-04-03  Bruno Haible  <bruno@clisp.org>
24572
24573         ftello: Fix C++ test error on mingw.
24574         * lib/stdio.in.h (ftello): Use modern idiom.
24575         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24576         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24577         is missing and that it needs to be replaced.
24578         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24580         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24581
24582 2010-04-03  Bruno Haible  <bruno@clisp.org>
24583
24584         fseeko: Fix C++ test error on mingw.
24585         * lib/stdio.in.h (fseeko): Use modern idiom.
24586         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24587         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24588         is missing and that it needs to be replaced.
24589         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24591         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24592
24593 2010-04-03  Bruno Haible  <bruno@clisp.org>
24594
24595         mkstemp: Fix C++ test error on mingw.
24596         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24598         function is missing and that it needs to be replaced.
24599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24600         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24601
24602 2010-04-03  Bruno Haible  <bruno@clisp.org>
24603
24604         stpncpy: Fix C++ test error on mingw.
24605         * lib/string.in.h (stpncpy): Use modern idiom.
24606         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24607         function is missing and that it needs to be replaced.
24608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24609         REPLACE_STPNCPY.
24610         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24611
24612 2010-04-03  Bruno Haible  <bruno@clisp.org>
24613
24614         sys_stat: Fix C++ test error on mingw.
24615         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24616         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24617
24618 2010-04-03  Bruno Haible  <bruno@clisp.org>
24619
24620         pty: Update doc.
24621         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24622
24623 2010-04-03  Bruno Haible  <bruno@clisp.org>
24624
24625         unistd: Fix C++ test error on mingw.
24626         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24627
24628 2010-04-03  Bruno Haible  <bruno@clisp.org>
24629
24630         Update doc regarding mingw.
24631         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24632         * doc/glibc-functions/login_tty.texi: Likewise.
24633         * doc/glibc-functions/forkpty.texi: Likewise.
24634
24635 2010-04-03  Bruno Haible  <bruno@clisp.org>
24636
24637         stdlib: Avoid compilation failure of c-strtold on mingw.
24638         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24639
24640 2010-04-03  Bruno Haible  <bruno@clisp.org>
24641
24642         locale: Make C++ tests work on Cygwin and mingw.
24643         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24644         cannot provide the function.
24645         Reported by Simon Josefsson.
24646
24647 2010-04-03  Bruno Haible  <bruno@clisp.org>
24648
24649         localename: Port to MacOS X 10.6.
24650         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24651         memory layout of the locales in MacOS X 10.6 as well.
24652         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24653
24654 2010-04-02  Bruno Haible  <bruno@clisp.org>
24655
24656         gnulib-tool: Ensure that long-running tests are executed last.
24657         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24658         running tests after the one for the other tests.
24659
24660 2010-04-02  Bruno Haible  <bruno@clisp.org>
24661
24662         gnulib-tool: Ensure the tests in the main directory are executed first.
24663         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24664         start with the current directory.
24665
24666 2010-04-02  Bruno Haible  <bruno@clisp.org>
24667
24668         Tests for module 'havelib', moved here from GNU gettext.
24669         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24670         modifications.
24671         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24672         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24673         with modifications.
24674         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24675         modifications.
24676         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24677         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24678         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24679         with modifications.
24680         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24681         with modifications.
24682         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24683         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24684         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24685         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24686         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24687         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24688         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24689         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24690         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24691         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24692         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24693         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24694         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24695         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24696         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24697         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24698         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24699         with modifications.
24700         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24701         with modifications.
24702         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24703         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24704         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24705         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24706         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24707         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24708         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24709         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24710         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24711         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24712         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24713         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24714         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24715         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24716         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24717         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24718         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24719         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24720         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24721         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24722         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24723         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24724         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24725         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24726         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24727         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24728         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24729         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24730         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24731         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24732         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24733         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24734         * tests/havelib/rpathx/rpathx.c: New file, from
24735         gettext/autoconf-lib-link.
24736         * tests/havelib/rpathx/Makefile.am: New file, from
24737         gettext/autoconf-lib-link.
24738         * tests/havelib/rpathx/configure.ac: New file, from
24739         gettext/autoconf-lib-link with modifications.
24740         * tests/havelib/rpathy/rpathy.c: New file, from
24741         gettext/autoconf-lib-link.
24742         * tests/havelib/rpathy/Makefile.am: New file, from
24743         gettext/autoconf-lib-link.
24744         * tests/havelib/rpathy/configure.ac: New file, from
24745         gettext/autoconf-lib-link with modifications.
24746         * tests/havelib/rpathz/rpathz.c: New file, from
24747         gettext/autoconf-lib-link.
24748         * tests/havelib/rpathz/Makefile.am: New file, from
24749         gettext/autoconf-lib-link.
24750         * tests/havelib/rpathz/configure.ac: New file, from
24751         gettext/autoconf-lib-link with modifications.
24752         * tests/havelib/rpathlx/usex.c: New file, from
24753         gettext/autoconf-lib-link.
24754         * tests/havelib/rpathlx/Makefile.am: New file, from
24755         gettext/autoconf-lib-link.
24756         * tests/havelib/rpathlx/configure.ac: New file, from
24757         gettext/autoconf-lib-link with modifications.
24758         * tests/havelib/rpathly/usey.c: New file, from
24759         gettext/autoconf-lib-link.
24760         * tests/havelib/rpathly/Makefile.am: New file, from
24761         gettext/autoconf-lib-link.
24762         * tests/havelib/rpathly/configure.ac: New file, from
24763         gettext/autoconf-lib-link with modifications.
24764         * tests/havelib/rpathlz/usez.c: New file, from
24765         gettext/autoconf-lib-link.
24766         * tests/havelib/rpathlz/Makefile.am: New file, from
24767         gettext/autoconf-lib-link.
24768         * tests/havelib/rpathlz/configure.ac: New file, from
24769         gettext/autoconf-lib-link with modifications.
24770         * tests/havelib/rpathlyx/usey.c: New file, from
24771         gettext/autoconf-lib-link.
24772         * tests/havelib/rpathlyx/Makefile.am: New file, from
24773         gettext/autoconf-lib-link.
24774         * tests/havelib/rpathlyx/configure.ac: New file, from
24775         gettext/autoconf-lib-link with modifications.
24776         * tests/havelib/rpathlzyx/usez.c: New file, from
24777         gettext/autoconf-lib-link.
24778         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24779         gettext/autoconf-lib-link.
24780         * tests/havelib/rpathlzyx/configure.ac: New file, from
24781         gettext/autoconf-lib-link with modifications.
24782         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24783         with modifications.
24784
24785 2010-04-02  Bruno Haible  <bruno@clisp.org>
24786
24787         gnulib-tool: Create distributed built sources also for the tests.
24788         * gnulib-tool (func_create_testdir): Also generate distributed built
24789         sources in the tests directory.
24790
24791 2010-04-02  Bruno Haible  <bruno@clisp.org>
24792
24793         gnulib-tool: Obey user's environment variables.
24794         * gnulib-tool (func_create_testdir): When creating built sources,
24795         respect the environment variables for autoconf, automake, etc. given by
24796         the user.
24797
24798 2010-04-02  Bruno Haible  <bruno@clisp.org>
24799
24800         gnulib-tool: Provide the value of --m4-base to modules.
24801         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24802         of gl_m4_base.
24803
24804 2010-04-02  Eric Blake  <eblake@redhat.com>
24805
24806         maint.mk: fix some fallout
24807         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24808         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24809
24810 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24811
24812         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24813         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24814         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24815         (sc_cast_of_x_alloc_return_value): Likewise.
24816         (sc_cast_of_alloca_return_value): Likewise.
24817         (sc_space_tab): Likewise.
24818         (sc_prohibit_atoi_atof): Likewise.
24819         (sc_prohibit_magic_number_exit): Likewise.
24820         (sc_error_exit_success): Likewise.
24821         (sc_file_system): Likewise.
24822         (sc_prohibit_have_config_h): Likewise.
24823         (sc_require_config_h): Likewise.
24824         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24825         (sc_obsolete_symbols): Likewise.
24826         (sc_changelog): Likewise.
24827         (sc_program_name): Likewise.
24828         (sc_the_the): Likewise.
24829         (sc_trailing_blank): Likewise.
24830         (sc_two_space_separator_in_usage): Likewise.
24831         (sc_useless_cpp_parens): Likewise.
24832         (sc_GPL_version): Likewise.
24833         (sc_GFDL_version): Likewise.
24834         (sc_texinfo_acronym): Likewise.
24835         (sc_prohibit_cvs_keyword): Likewise.
24836         (sc_prohibit_stat_st_blocks): Likewise.
24837         (sc_prohibit_S_IS_definition): Likewise.
24838         (sc_redundant_const): Likewise.
24839         (sc_makefile_TAB_only_indentation): Likewise.
24840         (sc_m4_quote_check): Likewise.
24841         (sc_makefile_path_separator_check): Likewise.
24842         (sc_copyright_check): Likewise.
24843         (sc_Wundef_boolean): Likewise.
24844         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24845
24846         maint.mk: match 0 or more whitespace-before-function-call '('
24847         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24848         that have zero or two-and-more spaces between the function name
24849         and the open parenthesis.
24850         (sc_error_message_warn_fatal): Likewise.
24851         (sc_error_message_uppercase): Likewise.
24852         (sc_error_message_period): Likewise.
24853
24854 2010-03-31  Eric Blake  <eblake@redhat.com>
24855
24856         maint.mk: check for [ as well as test
24857         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24858         Based on a libvirt report by Matthias Bolte.
24859
24860         gnumakefile: don't squelch _version output
24861         * top/GNUmakefile (_version): Create one-shot dependency rather
24862         than using $(shell) when version must be regenerated.
24863         (_autoreconf): Run verbosely, by default.
24864
24865         sys_time: avoid compiler warnings
24866         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24867         unconditional, fixing regression from 2010-03-29.
24868         Reported by Simon Josefsson.
24869
24870 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24871
24872         maint.mk: s/_header_without_use/_sc_header_without_use/
24873         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24874         (sc_prohibit_assert_without_use): Use the new name.
24875         (sc_prohibit_close_stream_without_use): Likewise.
24876         (sc_prohibit_getopt_without_use): Likewise.
24877         (sc_prohibit_quotearg_without_use): Likewise.
24878         (sc_prohibit_quote_without_use): Likewise.
24879         (sc_prohibit_long_options_without_use): Likewise.
24880         (sc_prohibit_inttostr_without_use): Likewise.
24881         (sc_prohibit_ignore_value_without_use): Likewise.
24882         (sc_prohibit_error_without_use): Likewise.
24883         (sc_prohibit_xalloc_without_use): Likewise.
24884         (sc_prohibit_hash_without_use): Likewise.
24885         (sc_prohibit_hash_pjw_without_use): Likewise.
24886         (sc_prohibit_safe_read_without_use): Likewise.
24887         (sc_prohibit_argmatch_without_use): Likewise.
24888         (sc_prohibit_canonicalize_without_use): Likewise.
24889         (sc_prohibit_root_dev_ino_without_use): Likewise.
24890         (sc_prohibit_openat_without_use): Likewise.
24891         (sc_prohibit_c_ctype_without_use): Likewise.
24892         (sc_prohibit_signal_without_use): Likewise.
24893         (sc_prohibit_intprops_without_use): Likewise.
24894
24895 2010-03-30  Eric Blake  <eblake@redhat.com>
24896
24897         maint: improve module indicators
24898         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24899         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24900         columns, and avoid extra macro expansion.
24901
24902         fdopendir: work around FreeBSD bug
24903         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24904         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24905         * modules/dirent (Makefile.am): Substitute it.
24906         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24907         declaration.
24908         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24909         fix.
24910         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24911
24912 2010-03-29  Bruno Haible  <bruno@clisp.org>
24913
24914         Emit #pragma system_header after the inclusion guard, not before.
24915         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24916         guard that spans the entire file, not before. This enables an
24917         optimization in GCC's preprocessor.
24918         * lib/ctype.in.h: Likewise.
24919         * lib/dirent.in.h: Likewise.
24920         * lib/errno.in.h: Likewise.
24921         * lib/float.in.h: Likewise.
24922         * lib/getopt.in.h: Likewise.
24923         * lib/iconv.in.h: Likewise.
24924         * lib/langinfo.in.h: Likewise.
24925         * lib/locale.in.h: Likewise.
24926         * lib/math.in.h: Likewise.
24927         * lib/netdb.in.h: Likewise.
24928         * lib/netinet_in.in.h: Likewise.
24929         * lib/pty.in.h: Likewise.
24930         * lib/sched.in.h: Likewise.
24931         * lib/se-selinux.in.h: Likewise.
24932         * lib/search.in.h: Likewise.
24933         * lib/spawn.in.h: Likewise.
24934         * lib/stdarg.in.h: Likewise.
24935         * lib/stdint.in.h: Likewise.
24936         * lib/string.in.h: Likewise.
24937         * lib/strings.in.h: Likewise.
24938         * lib/sys_file.in.h: Likewise.
24939         * lib/sys_ioctl.in.h: Likewise.
24940         * lib/sys_time.in.h: Likewise.
24941         * lib/sys_times.in.h: Likewise.
24942         * lib/sys_utsname.in.h: Likewise.
24943         * lib/sys_wait.in.h: Likewise.
24944         * lib/sysexits.in.h: Likewise.
24945         * lib/wctype.in.h: Likewise.
24946
24947 2010-03-28  James Youngman  <jay@gnu.org>
24948
24949         save-cwd: don't leak a file descriptor when the caller execs.
24950         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24951         saved file descriptor.
24952         * modules/save-cwd (Depends-on): Depend on cloexec.
24953
24954 2010-03-29  Bruno Haible  <bruno@clisp.org>
24955
24956         Remove vestiges of fts-lgpl module.
24957         * lib/fts_.h: Assume GNULIB_FTS is 1.
24958         * lib/fts.c: Likewise.
24959         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24960
24961 2010-03-28  Bruno Haible  <bruno@clisp.org>
24962
24963         Fix definition of tests witness macro.
24964         * gnulib-tool (func_import): Fix definition of witness macro.
24965
24966 2010-03-28  Bruno Haible  <bruno@clisp.org>
24967
24968         Fix ioctl's protoype on glibc systems.
24969         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24970         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24971         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24972         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24973         signature. If not, arrange to replace the ioctl function.
24974         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24975         REPLACE_IOCTL.
24976         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24977         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24978         Reported by Ludovic Courtès <ludo@gnu.org>.
24979
24980 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24981
24982         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24983         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24984         made it so grep -r --include=GLOB* ... did not work.
24985
24986 2010-03-26  Jim Meyering  <meyering@redhat.com>
24987             Eric Blake  <eblake@redhat.com>
24988
24989         maint.mk: prohibit use of test's -o and -a operators
24990         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24991
24992 2010-03-28  Bruno Haible  <bruno@clisp.org>
24993
24994         Remove unused GNULIB_XYZ macro definitions.
24995         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24996         invocation.
24997
24998 2010-03-28  Bruno Haible  <bruno@clisp.org>
24999
25000         Mark privileged tests modules.
25001         * modules/idpriv-drop-tests (Status): New section.
25002         * modules/idpriv-droptemp-tests (Status): New section.
25003
25004 2010-03-28  Bruno Haible  <bruno@clisp.org>
25005
25006         Split C++ tests into separate tests modules.
25007         * modules/dirent-c++-tests: New file, extracted from
25008         modules/dirent-tests.
25009         * modules/dirent-tests: Depend on it.
25010         * modules/fcntl-h-c++-tests: New file, extracted from
25011         modules/fcntl-h-tests.
25012         * modules/fcntl-h-tests: Depend on it.
25013         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25014         * modules/glob-tests: Depend on it.
25015         * modules/iconv-h-c++-tests: New file, extracted from
25016         modules/iconv-h-tests.
25017         * modules/iconv-h-tests: Depend on it.
25018         * modules/langinfo-c++-tests: New file, extracted from
25019         modules/langinfo-tests.
25020         * modules/langinfo-tests: Depend on it.
25021         * modules/locale-c++-tests: New file, extracted from
25022         modules/locale-tests.
25023         * modules/locale-tests: Depend on it.
25024         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25025         * modules/math-tests: Depend on it.
25026         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25027         * modules/pty-tests: Depend on it.
25028         * modules/search-c++-tests: New file, extracted from
25029         modules/search-tests.
25030         * modules/search-tests: Depend on it.
25031         * modules/signal-c++-tests: New file, extracted from
25032         modules/signal-tests.
25033         * modules/signal-tests: Depend on it.
25034         * modules/spawn-c++-tests: New file, extracted from
25035         modules/spawn-tests.
25036         * modules/spawn-tests: Depend on it.
25037         * modules/stdio-c++-tests: New file, extracted from
25038         modules/stdio-tests.
25039         * modules/stdio-tests: Depend on it.
25040         * modules/stdlib-c++-tests: New file, extracted from
25041         modules/stdlib-tests.
25042         * modules/stdlib-tests: Depend on it.
25043         * modules/string-c++-tests: New file, extracted from
25044         modules/string-tests.
25045         * modules/string-tests: Depend on it.
25046         * modules/sys_ioctl-c++-tests: New file, extracted from
25047         modules/sys_ioctl-tests.
25048         * modules/sys_ioctl-tests: Depend on it.
25049         * modules/sys_select-c++-tests: New file, extracted from
25050         modules/sys_select-tests.
25051         * modules/sys_select-tests: Depend on it.
25052         * modules/sys_socket-c++-tests: New file, extracted from
25053         modules/sys_socket-tests.
25054         * modules/sys_socket-tests: Depend on it.
25055         * modules/sys_stat-c++-tests: New file, extracted from
25056         modules/sys_stat-tests.
25057         * modules/sys_stat-tests: Depend on it.
25058         * modules/sys_time-c++-tests: New file, extracted from
25059         modules/sys_time-tests.
25060         * modules/sys_time-tests: Depend on it.
25061         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25062         * modules/time-tests: Depend on it.
25063         * modules/unistd-c++-tests: New file, extracted from
25064         modules/unistd-tests.
25065         * modules/unistd-tests: Depend on it.
25066         * modules/wchar-c++-tests: New file, extracted from
25067         modules/wchar-tests.
25068         * modules/wchar-tests: Depend on it.
25069         * modules/wctype-c++-tests: New file, extracted from
25070         modules/wctype-tests.
25071         * modules/wctype-tests: Depend on it.
25072         Reported by Simon Josefsson.
25073
25074 2010-03-28  Bruno Haible  <bruno@clisp.org>
25075
25076         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25077         * gnulib-tool (func_exists_module): New function, extracted from
25078         func_verify_module.
25079         (func_verify_module): Use it.
25080         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25081         'foo' only if 'foo' exists.
25082         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25083         module.
25084
25085 2010-03-28  Bruno Haible  <bruno@clisp.org>
25086
25087         gnulib-tool: Add support for special categories of tests.
25088         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25089         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25090         (func_usage): Document them.
25091         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25092         inc_unportable_tests, inc_all_tests): New variables.
25093         (func_acceptable): Consider these variables.
25094         (func_modules_transitive_closure): Make it work when the 'Status' field
25095         consists of multiple words.
25096         (func_import): Store and restore the values of inc_cxx_tests,
25097         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25098         inc_all_tests in gnulib-comp.m4.
25099         (func_create_testdir): Set inc_all_tests to true.
25100         * doc/gnulib.texi (Extra tests modules): New section.
25101         Suggested by Jim Meyering.
25102
25103 2010-03-28  Bruno Haible  <bruno@clisp.org>
25104
25105         ansi-c++-opt: Allow turning off the C++ build by default.
25106         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25107         gl_CXX_CHOICE_DEFAULT_NO is defined.
25108         Requested by Eric Blake.
25109
25110 2010-03-28  Bruno Haible  <bruno@clisp.org>
25111
25112         unistd: Avoid #define replacements in C++ mode.
25113         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25114         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25115         setsockopt, shutdown, select): In C++, attach a warning to the function
25116         if possible, rather than #defining the symbol to a dysfunctional alias.
25117         Reported by John W. Eaton <jwe@gnu.org>.
25118
25119 2010-03-28  Bruno Haible  <bruno@clisp.org>
25120
25121         Fix link errors on mingw.
25122         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25123         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25124         $(LIBSOCKET).
25125         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25126         $(LIBSOCKET).
25127
25128 2010-03-28  Bruno Haible  <bruno@clisp.org>
25129             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25130
25131         lib-ignore: Determine different options for different compilers.
25132         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25133         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25134         Add comments.
25135         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25136         * NEWS: Mention the change.
25137
25138 2010-03-27  Bruno Haible  <bruno@clisp.org>
25139
25140         Remove unused GNULIB_XYZ macro definitions.
25141         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25142         * modules/fseek (configure.ac): Likewise.
25143         * modules/ioctl (configure.ac): Likewise.
25144         * modules/open (configure.ac): Likewise.
25145         * modules/stdlib-safer (configure.ac): Likewise.
25146
25147 2010-03-27  Bruno Haible  <bruno@clisp.org>
25148
25149         Add a remark about certain modules.
25150         * modules/malloc (Comment): New section.
25151         * modules/realloc (Comment): Likewise.
25152         * modules/sigpipe (Comment): Likewise.
25153
25154 2010-03-27  Bruno Haible  <bruno@clisp.org>
25155
25156         Resolve conflict between the two kinds of module indicators.
25157         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25158         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25159         * modules/canonicalize (configure.ac): Invoke
25160         gl_MODULE_INDICATOR_FOR_TESTS.
25161         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25162         GNULIB_XYZ.
25163         * tests/test-dirent-c++.cc: Likewise.
25164         * tests/test-dirent-safer.c: Likewise.
25165         * tests/test-dup2.c: Likewise.
25166         * tests/test-fchdir.c: Likewise.
25167         * tests/test-fcntl-h-c++.cc: Likewise.
25168         * tests/test-getopt.c: Likewise.
25169         * tests/test-getopt.h: Likewise.
25170         * tests/test-langinfo-c++.cc: Likewise.
25171         * tests/test-locale-c++.cc: Likewise.
25172         * tests/test-math-c++.cc: Likewise.
25173         * tests/test-pty-c++.cc: Likewise.
25174         * tests/test-search-c++.cc: Likewise.
25175         * tests/test-signal-c++.cc: Likewise.
25176         * tests/test-spawn-c++.cc: Likewise.
25177         * tests/test-stdio-c++.cc: Likewise.
25178         * tests/test-stdlib-c++.cc: Likewise.
25179         * tests/test-string-c++.cc: Likewise.
25180         * tests/test-sys_ioctl-c++.cc: Likewise.
25181         * tests/test-sys_select-c++.cc: Likewise.
25182         * tests/test-sys_socket-c++.cc: Likewise.
25183         * tests/test-sys_stat-c++.cc: Likewise.
25184         * tests/test-sys_time-c++.cc: Likewise.
25185         * tests/test-time-c++.cc: Likewise.
25186         * tests/test-unistd-c++.cc: Likewise.
25187         * tests/test-wchar-c++.cc: Likewise.
25188         * tests/uninorm/test-u8-nfc.c: Likewise.
25189         * tests/uninorm/test-u8-nfd.c: Likewise.
25190         * tests/uninorm/test-u8-nfkc.c: Likewise.
25191         * tests/uninorm/test-u8-nfkd.c: Likewise.
25192         * tests/uninorm/test-u16-nfc.c: Likewise.
25193         * tests/uninorm/test-u16-nfd.c: Likewise.
25194         * tests/uninorm/test-u16-nfkc.c: Likewise.
25195         * tests/uninorm/test-u16-nfkd.c: Likewise.
25196         * tests/uninorm/test-u32-nfc.c: Likewise.
25197         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25198         * tests/uninorm/test-u32-nfd.c: Likewise.
25199         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25200         * tests/uninorm/test-u32-nfkc.c: Likewise.
25201         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25202         * tests/uninorm/test-u32-nfkd.c: Likewise.
25203         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25204         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25205
25206 2010-03-27  Bruno Haible  <bruno@clisp.org>
25207
25208         Distinguish two kinds of module indicators.
25209         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25210         gl_MODULE_INDICATOR.
25211         (gl_MODULE_INDICATOR): New macro.
25212         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25213         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25214         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25215         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25216         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25217         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25218         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25219         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25220         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25221         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25222         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25223         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25224         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25225         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25226         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25227         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25228         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25229         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25230         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25231         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25232         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25233         * modules/cloexec (configure.ac): Likewise.
25234         * modules/getopt-gnu (configure.ac): Likewise.
25235         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25236         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25237         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25238         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25239
25240 2010-03-27  Bruno Haible  <bruno@clisp.org>
25241
25242         New module description field 'Comment'.
25243         * gnulib-tool: New option --extract-comment.
25244         (func_usage): Document it.
25245         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25246         (func_get_comment): New function.
25247         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25248
25249 2010-03-27  Bruno Haible  <bruno@clisp.org>
25250
25251         Addendum to 2010-02-07 commit.
25252         * gnulib-tool (func_usage): Document --extract-applicability option.
25253
25254 2010-03-27  Bruno Haible  <bruno@clisp.org>
25255
25256         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25257         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25258         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25259         rather than link errors.
25260
25261 2010-03-27  Bruno Haible  <bruno@clisp.org>
25262
25263         Avoid side effects from tests-related modules on the compilation of lib.
25264         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25265         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25266         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25267         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25268         macro.
25269         (func_import): Define a witness macro. Assign it a value that depends
25270         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25271         tests-related modules.
25272         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25273         Reported by Jim Meyering.
25274
25275 2010-03-27  Bruno Haible  <bruno@clisp.org>
25276
25277         Factorize common .m4 code.
25278         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25279         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25280         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25281         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25282         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25283         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25284         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25285         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25286         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25287         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25288         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25289         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25290         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25291         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25292         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25293         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25294         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25295         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25297         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25298         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25299         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25300         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25301         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25302         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25303         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25304         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25306         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25307         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25308         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25309         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25310
25311 2010-03-27  Bruno Haible  <bruno@clisp.org>
25312
25313         Fix a compilation error on Cygwin with g++ >= 4.3.
25314         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25315         if it is undefined or if we alias it to chmod.
25316         (lstat): Don't warn about the use of this function if it is undefined
25317         or if we alias it to stat.
25318         Reported by Simon Josefsson.
25319
25320 2010-03-27  Bruno Haible  <bruno@clisp.org>
25321
25322         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25323         * modules/getlogin (configure.ac): Update.
25324
25325         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25326         * modules/getlogin_r (configure.ac): Update.
25327
25328         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25330         * modules/inet_ntop (configure.ac): Update.
25331
25332         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25333         * modules/inet_pton (configure.ac): Update.
25334
25335         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25336         * modules/mbslen (configure.ac): Update.
25337
25338         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25339         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25340         * modules/forkpty (configure.ac): Update.
25341         * modules/openpty (configure.ac): Update.
25342
25343 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25344
25345         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25346         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25347
25348 2010-03-25  Eric Blake  <eblake@redhat.com>
25349
25350         maint: use pragma consistently across replacement headers
25351         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25352         * lib/dirent.in.h (system_header): Likewise.
25353         * lib/errno.in.h (system_header): Likewise.
25354         * lib/float.in.h (system_header): Likewise.
25355         * lib/getopt.in.h (system_header): Likewise.
25356         * lib/iconv.in.h (system_header): Likewise.
25357         * lib/inttypes.in.h (system_header): Likewise.
25358         * lib/langinfo.in.h (system_header): Likewise.
25359         * lib/locale.in.h (system_header): Likewise.
25360         * lib/math.in.h (system_header): Likewise.
25361         * lib/netdb.in.h (system_header): Likewise.
25362         * lib/netinet_in.in.h (system_header): Likewise.
25363         * lib/pty.in.h (system_header): Likewise.
25364         * lib/sched.in.h (system_header): Likewise.
25365         * lib/se-selinux.in.h (system_header): Likewise.
25366         * lib/search.in.h (system_header): Likewise.
25367         * lib/spawn.in.h (system_header): Likewise.
25368         * lib/stdarg.in.h (system_header): Likewise.
25369         * lib/stdint.in.h (system_header): Likewise.
25370         * lib/string.in.h (system_header): Likewise.
25371         * lib/strings.in.h (system_header): Likewise.
25372         * lib/sys_file.in.h (system_header): Likewise.
25373         * lib/sys_ioctl.in.h (system_header): Likewise.
25374         * lib/sys_socket.in.h (system_header): Likewise.
25375         * lib/sys_times.in.h (system_header): Likewise.
25376         * lib/sys_utsname.in.h (system_header): Likewise.
25377         * lib/sys_wait.in.h (system_header): Likewise.
25378         * lib/sysexits.in.h (system_header): Likewise.
25379         * lib/unistd.in.h (system_header): Likewise.
25380         * lib/wctype.in.h (system_header): Likewise.
25381
25382         arpa/inet: fix mingw compilation warning
25383         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25384         Reported by Matthew Bolte.
25385
25386 2010-03-25  Bruno Haible  <bruno@clisp.org>
25387
25388         Avoid collision between gnulib wrapper and libintl wrapper.
25389         * lib/printf.c (printf): Don't define if a printf wrapper is already
25390         defined in intl/printf.c.
25391         Reported by Michel Boaventura <michel@michelboaventura.com>.
25392
25393 2010-03-25  Bruno Haible  <bruno@clisp.org>
25394
25395         Use ANSI C.
25396         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25397
25398 2010-03-25  Bruno Haible  <bruno@clisp.org>
25399
25400         Minor formatting changes.
25401         * lib/acosl.c: Insert space before function argument list.
25402         * lib/argz.c: Likewise.
25403         * lib/asinl.c: Likewise.
25404         * lib/expl.c: Likewise.
25405         * lib/gen-uni-tables.c: Likewise.
25406         * lib/gettext.h: Likewise.
25407         * lib/glthread/lock.h: Likewise.
25408         * lib/tanl.c: Likewise.
25409         * lib/uniname/uniname.c: Likewise.
25410         * tests/test-idpriv-drop.c: Likewise.
25411         * tests/test-idpriv-droptemp.c: Likewise.
25412         * tests/test-lock.c: Likewise.
25413         * tests/test-tls.c: Likewise.
25414         * lib/argp-help.c: Insert space before function-like macro argument
25415         list.
25416         * lib/memcmp.c: Likewise.
25417         * tests/test-base64.c: Likewise.
25418         * lib/localename.c: Insert space before sizeof's argument list.
25419         * lib/safe-alloc.h: Likewise.
25420         * lib/file-set.h: Insert space before macro argument list.
25421         * tests/test-argp.c: Likewise.
25422         * lib/argp-namefrob.h: Insert space before function parameter list.
25423         * lib/getaddrinfo.c: Likewise.
25424         * lib/netdb.in.h: Likewise.
25425         * lib/parse-duration.h: Likewise.
25426         * lib/parse-duration.c: Likewise.
25427         * lib/poll.c: Likewise.
25428         * lib/select.c: Likewise.
25429         * lib/trim.h: Likewise.
25430         * tests/test-usleep.c: Likewise.
25431         * lib/ldexpl.c: Insert space before function parameter list and before
25432         function argument list.
25433         * lib/logl.c: Likewise.
25434         * lib/sqrtl.c: Likewise.
25435         * lib/trim.c: Likewise.
25436         * lib/cosl.c: Use GNU style indentation. Insert space before function
25437         argument list.
25438         * lib/sinl.c: Likewise.
25439         * lib/tsearch.c: Insert space after 'for'.
25440         Reported by Jim Meyering.
25441
25442 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25443
25444         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25445         config header before grepping, as it's not present before
25446         autoreconf/configure are run.  Reported by Simon Josefsson.
25447
25448 2010-03-23  Bruno Haible  <bruno@clisp.org>
25449
25450         pt_chown: Make it work with automake < 1.11.
25451         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25452         Reported by Simon Josefsson.
25453
25454 2010-03-23  Bruno Haible  <bruno@clisp.org>
25455
25456         pt_chown: Don't depend on GPLed modules.
25457         * lib/pt_chown.c: Don't include idpriv.h.
25458         (main): Don't drop privileges.
25459         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25460         Reported by Simon Josefsson.
25461
25462 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25463
25464         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25465         suggestions from karl@freefriends.org (Karl Berry).
25466
25467 2010-03-22  Eric Blake  <eblake@redhat.com>
25468
25469         gethostname: further tweaks
25470         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25471         are overriding gethostname.
25472         Suggested by Bruno Haible.
25473
25474 2010-03-21  Bruno Haible  <bruno@clisp.org>
25475
25476         Fix comments.
25477         * lib/forkpty.c (rpl_forkpty): Fix comment.
25478         * lib/openpty.c (rpl_openpty): Likewise.
25479         Reported by Eric Blake.
25480
25481 2010-03-22  Eric Blake  <eblake@redhat.com>
25482
25483         gethostname: fix build on mingw
25484         * lib/unistd.in.h (includes): Work around fact that mingw
25485         <winsock2.h> re-includes <unistd.h>, by avoiding any
25486         redeclarations if we are being included by <winsock2.h>.
25487         Reported by Matthias Bolte.
25488
25489 2010-03-21  Bruno Haible  <bruno@clisp.org>
25490
25491         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25492         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25493         modifications.
25494         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25495         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25496         provide the replacement.
25497         * modules/forkpty (Depends-on): Add openpty, login_tty.
25498         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25499         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25500         * doc/glibc-functions/forkpty.texi: More supported platforms.
25501         * config/srclist.txt: Add forkpty.c (commented).
25502
25503 2010-03-21  Bruno Haible  <bruno@clisp.org>
25504
25505         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25506         (Makefile.am): Verify that PTY_LIB is defined.
25507
25508         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25509
25510 2010-03-21  Bruno Haible  <bruno@clisp.org>
25511
25512         Tests for module 'login_tty'.
25513         * modules/login_tty-tests: New file.
25514         * tests/test-login_tty.c: New file.
25515
25516         New module 'login_tty'.
25517         * lib/login_tty.c: New file.
25518         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25519         * modules/login_tty: New file.
25520         * doc/glibc-functions/login_tty.texi: Mention the new module.
25521
25522 2010-03-21  Bruno Haible  <bruno@clisp.org>
25523
25524         login_tty: Documentation.
25525         * doc/glibc-functions/login_tty.texi: New file.
25526         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25527
25528 2010-03-21  Bruno Haible  <bruno@clisp.org>
25529
25530         pty: Consistent macro naming.
25531         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25532         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25533         * modules/pty (configure.ac): Update.
25534
25535 2010-03-21  Bruno Haible  <bruno@clisp.org>
25536
25537         Tests for openpty: Make stricter.
25538         * tests/test-openpty.c (main): Add test of canonical processing and
25539         erase.
25540         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25541
25542         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25543         * lib/openpty.c (openpty): New replacement function.
25544         * lib/pty.in.h: Include <termios.h>.
25545         (openpty): Update declaration. Add comments.
25546         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25547         is not declared, arrange to provide the replacement. Check for _getpty
25548         and posix_openpt.
25549         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25550         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25551         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25552         * modules/pty-tests (test_pty_c___LDADD): New variable.
25553         * doc/glibc-functions/openpty.texi: More supported platforms.
25554
25555 2010-03-21  Bruno Haible  <bruno@clisp.org>
25556
25557         setenv: Tweaks.
25558         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25559         the test program.
25560         * doc/posix-functions/setenv.texi: Update platforms list.
25561
25562 2010-03-21  Bruno Haible  <bruno@clisp.org>
25563
25564         New module 'unlockpt'.
25565         * lib/unlockpt.c: New file, from glibc with modifications.
25566         * m4/unlockpt.m4: New file.
25567         * modules/unlockpt: New file.
25568         * lib/stdlib.in.h (unlockpt): New declaration.
25569         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25570         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25571         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25572         HAVE_UNLOCKPT.
25573         * doc/posix-functions/unlockpt.texi: Mention the new module.
25574         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25575         * config/srclist.txt: Add unlockpt.c (commented).
25576
25577 2010-03-21  Jim Meyering  <meyering@redhat.com>
25578
25579         maint.mk: prohibit inclusion of "intprops.h" without use
25580         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25581
25582 2010-03-21  Bruno Haible  <bruno@clisp.org>
25583
25584         New module 'grantpt'.
25585         * lib/grantpt.c: New file, from glibc with modifications.
25586         * m4/grantpt.m4: New file.
25587         * modules/grantpt: New file.
25588         * lib/stdlib.in.h (grantpt): New declaration.
25589         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25590         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25591         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25592         HAVE_GRANTPT.
25593         * doc/posix-functions/grantpt.texi: Mention the new module.
25594         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25595         * config/srclist.txt: Add grantpt.c (commented).
25596
25597 2010-03-21  Bruno Haible  <bruno@clisp.org>
25598
25599         New module 'pt_chown'.
25600         * lib/pt_chown.c: New file, from glibc with modifications.
25601         * lib/pty-private.h: New file, from glibc with modifications.
25602         * modules/pt_chown: New file.
25603         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25604
25605 2010-03-21  Bruno Haible  <bruno@clisp.org>
25606
25607         Tests for module 'ptsname'.
25608         * modules/ptsname-tests: New file.
25609         * tests/test-ptsname.c: New file.
25610
25611         New module 'ptsname'.
25612         * lib/ptsname.c: New file, from glibc with modifications.
25613         * m4/ptsname.m4: New file.
25614         * modules/ptsname: New file.
25615         * lib/stdlib.in.h (ptsname): New declaration.
25616         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25617         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25618         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25619         HAVE_PTSNAME.
25620         * doc/posix-functions/ptsname.texi: Mention the new module.
25621         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25622         * config/srclist.txt: Add ptsname.c (commented).
25623
25624 2010-03-21  Bruno Haible  <bruno@clisp.org>
25625
25626         Tests for module 'ttyname_r'.
25627         * modules/ttyname_r-tests: New file.
25628         * tests/test-ttyname_r.c: New file.
25629
25630         New module 'ttyname_r'.
25631         * lib/ttyname_r.c: New file.
25632         * m4/ttyname_r.m4: New file.
25633         * modules/ttyname_r: New file.
25634         * lib/unistd.in.h (ttyname_r): New declaration.
25635         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25636         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25637         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25638         HAVE_TTYNAME_R.
25639         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25640         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25641
25642 2010-03-20  Bruno Haible  <bruno@clisp.org>
25643
25644         signal: Undefine macro definitions in C++ mode.
25645         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25646         sigfillset): Undefine macro definitions from the system header in C++
25647         mode.
25648         Reported by John W. Eaton <jwe@gnu.org>.
25649
25650 2010-03-20  Bruno Haible  <bruno@clisp.org>
25651
25652         Ensure no #include statements inside extern "C" { ... }.
25653         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25654         contain #include statements.
25655         * lib/time.in.h: Likewise.
25656
25657 2010-03-20  Bruno Haible  <bruno@clisp.org>
25658
25659         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25660         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25661         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25662         Reported by John W. Eaton <jwe@gnu.org>.
25663
25664 2010-03-20  Bruno Haible  <bruno@clisp.org>
25665
25666         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25667         Reported by Jim Meyering.
25668
25669 2010-03-20  Bruno Haible  <bruno@clisp.org>
25670
25671         pipe: Set errno upon failure.
25672         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25673         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25674         errno value in error message.
25675
25676 2010-03-20  Bruno Haible  <bruno@clisp.org>
25677             Jim Meyering  <meyering@redhat.com>
25678
25679         lchown: Avoid "unused variable" warning.
25680         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25681
25682 2010-03-20  Bruno Haible  <bruno@clisp.org>
25683
25684         Work around unlink() bug on MacOS X 10.5.6.
25685         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25686         attempting to unlink a parent directory.
25687         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25688         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25689         activate for the replacement function.
25690         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25691
25692 2010-03-20  Bruno Haible  <bruno@clisp.org>
25693
25694         Fix link errors on Solaris 8.
25695         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25696         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25697
25698 2010-03-19  Jim Meyering  <meyering@redhat.com>
25699
25700         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25701         The _LIBC implementation of build_range_exp correctly honors the
25702         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25703         However, the non-_LIBC implementation would ignore that syntax-bit
25704         flag and return REG_ERANGE unconditionally.
25705         This change makes it honor that flag.
25706         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25707         Make two pointer parameters "const".
25708         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25709         (parse_bracket_exp): Update caller.
25710
25711         regex.m4: correct the reversed range endpoint ([b-a]) test
25712         * m4/regex.m4: When requiring that [b-a] evoke failure,
25713         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25714         test pass once again for x86-based systems.
25715
25716 2010-03-19  Bruno Haible  <bruno@clisp.org>
25717
25718         scandir: Fix link error on Solaris 8.
25719         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25720         macros.
25721
25722 2010-03-19  Bruno Haible  <bruno@clisp.org>
25723
25724         getusershell: Fix documentation.
25725         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25726         module.
25727         * doc/glibc-functions/setusershell.texi: Likewise.
25728
25729         getusershell: Provide declaration, missing on Solaris 9.
25730         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25731         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25732         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25733         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25735         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25736         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25737         HAVE_GETUSERSHELL.
25738         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25739
25740 2010-03-19  Bruno Haible  <bruno@clisp.org>
25741
25742         wctype: Provide iswblank function.
25743         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25744         exists and is fine.
25745         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25746         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25747         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25748         * doc/posix-functions/iswblank.texi: Update.
25749
25750 2010-03-19  Bruno Haible  <bruno@clisp.org>
25751
25752         Tests of module 'pty' in C++ mode.
25753         * modules/pty-tests: New file.
25754         * tests/test-pty-c++.cc: New file.
25755         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25756
25757 2010-03-19  Eric Blake  <eblake@redhat.com>
25758
25759         logb: fix documentation
25760         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25761         1.5 declaration bug.
25762
25763         forkpty, openpty: prefer glibc's const-safe prototype
25764         * lib/forkpty.c (rpl_forkpty): New file.
25765         * lib/openpty.c (rpl_openpty): Likewise.
25766         * modules/forkpty (Files): Distribute it.
25767         * modules/openpty (Files): Likewise.
25768         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25769         check...
25770         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25771         replacement for for non-const BSD signature.
25772         * modules/pty (Makefile.am): Substitute witnesses.
25773         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25774         * tests/test-forkpty.c: Update signature check.
25775         * tests/test-openpty.c: Likewise.
25776         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25777         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25778
25779         forkpty, openpty: split functions into new modules
25780         * modules/pty (Makefile.am): Substitute new witnesses.
25781         (Libraries): Move library detection...
25782         * modules/forkpty: ...into new module.
25783         * modules/openpty: Another new module.
25784         * modules/pty-tests: Rename and split...
25785         * modules/forkpty-tests: ...to this...
25786         * modules/openpty-tests: ...and this.
25787         * tests/test-pty.c: Rename and split...
25788         * tests/test-forkpty.c: ...to this...
25789         * tests/test-openpty.c: ...and this.
25790         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25791         (gl_PTY): Split library searching...
25792         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25793         (gl_FORKPTY, gl_OPENPTY): New macros.
25794         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25795         * NEWS: Mention the split.
25796         * MODULES.html.sh (Misc): Document the modules.
25797         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25798         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25799
25800         pty: improve replacement header
25801         * lib/pty.in.h: New file.
25802         * modules/pty (Files): Ship it.
25803         (Makefile.am): Always build replacement.
25804         * m4/pty.m4: Rename...
25805         * m4/pty_h.m4: ...to this.
25806         (gl_PTY): Modernize setting of witness macros; update check of
25807         forkpty to take proper advantage of cache.
25808         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25809
25810         getopt: avoid compiler warning
25811         * lib/getopt.c (attribute_hidden): Remove unused macro.
25812
25813 2010-03-18  Bruno Haible  <bruno@clisp.org>
25814
25815         Fix link errors on Solaris 8.
25816         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25817         * modules/search-tests (test_search_c___LDADD): Likewise.
25818         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25819         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25820         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25821         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25822         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25823         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25824         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25825
25826 2010-03-18  Bruno Haible  <bruno@clisp.org>
25827
25828         Fix bug introduced on 2010-03-14.
25829         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25830         (gl_SPAWN_H): Require it.
25831         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25832         Reported by Simon Josefsson.
25833
25834 2010-03-18  Bruno Haible  <bruno@clisp.org>
25835
25836         Fix typo introduced on 2009-12-31.
25837         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25838         posix_spawn_file_actions_adddup2.
25839
25840 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25841         and Eric Blake  <eblake@redhat.com>
25842
25843         test-vc-list-files-git: make more robust
25844         * tests/test-vc-list-files-git.sh: Unset problematic environment
25845         variables.  Chain commands together.
25846
25847 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25848
25849         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25850         `AC_CHECK_DECL' invocation.
25851
25852 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25853
25854         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25855         appears before executable statements. Suggested by Petr Sumbera
25856         <Petr.Sumbera@Sun.COM>.
25857
25858 2010-03-14  Bruno Haible  <bruno@clisp.org>
25859
25860         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25861         portability problems. Instead use a simpler test.
25862         (main): Check that invalid arguments are rejected only on Linux.
25863
25864 2010-03-14  Bruno Haible  <bruno@clisp.org>
25865
25866         Fix bug introduced on 2009-12-31.
25867         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25868         gl_PREREQ_SYS_H_WINSOCK2 always.
25869         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25870         SYS_SOCKET_H variable.
25871         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25872         Update comments.
25873         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25874         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25875         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25876         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25877         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25878
25879 2010-03-14  Bruno Haible  <bruno@clisp.org>
25880
25881         Fix values returned by sinl, cosl.
25882         * lib/trigl.h: Add specification comments.
25883         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25884         that combines the values from the precomputed table with the values of
25885         the Chebyshev polynomials.
25886
25887 2010-03-14  Bruno Haible  <bruno@clisp.org>
25888
25889         Fix compilation error when modules 'posix_spawn[p]' are not used.
25890         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25892
25893 2010-03-14  Bruno Haible  <bruno@clisp.org>
25894
25895         Fix compilation error on mingw when module 'time_r' is not used.
25896         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25897         is 1.
25898         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25899         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25900         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25901         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25902
25903 2010-03-14  Bruno Haible  <bruno@clisp.org>
25904
25905         Fix compilation error with Sun C.
25906         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25907         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25908         instead of GCC specific ULONG_LONG_MAX.
25909         * lib/xstrtoll.c: Likewise.
25910         * lib/xstrtoull.c: Likewise.
25911
25912 2010-03-13  Bruno Haible  <bruno@clisp.org>
25913
25914         Allow the user to disable C++ code and tests.
25915         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25916         (gl_PROG_ANSI_CXX): Require it.
25917
25918 2010-03-13  Bruno Haible  <bruno@clisp.org>
25919
25920         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25921         cases.
25922
25923 2010-03-13  Bruno Haible  <bruno@clisp.org>
25924
25925         Test that gnulib does not break the standard C++ headers.
25926         * tests/test-locale-c++2.cc: New file.
25927         * modules/locale-tests (Files): Add it.
25928         (Makefile.am): Compile it for test-locale-c++.
25929         * tests/test-math-c++2.cc: New file.
25930         * modules/math-tests (Files): Add it.
25931         (Makefile.am): Compile it for test-math-c++.
25932         * tests/test-signal-c++2.cc: New file.
25933         * modules/signal-tests (Files): Add it.
25934         (Makefile.am): Compile it for test-signal-c++.
25935         * tests/test-stdio-c++2.cc: New file.
25936         * modules/stdio-tests (Files): Add it.
25937         (Makefile.am): Compile it for test-stdio-c++.
25938         * tests/test-stdlib-c++2.cc: New file.
25939         * modules/stdlib-tests (Files): Add it.
25940         (Makefile.am): Compile it for test-stdlib-c++.
25941         * tests/test-string-c++2.cc: New file.
25942         * modules/string-tests (Files): Add it.
25943         (Makefile.am): Compile it for test-string-c++.
25944         * tests/test-time-c++2.cc: New file.
25945         * modules/time-tests (Files): Add it.
25946         (Makefile.am): Compile it for test-time-c++.
25947         Reported by John W. Eaton <jwe@gnu.org>.
25948
25949 2010-03-13  Bruno Haible  <bruno@clisp.org>
25950
25951         * gnulib-tool (func_usage): Clarify which options are available for
25952         --create-testdir and --create-megatestdir.
25953
25954 2010-03-13  Bruno Haible  <bruno@clisp.org>
25955
25956         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25957         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25958         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25959         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25960         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25961         when appropriate.
25962         Reported by Jim Meyering.
25963
25964 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25965
25966         * gnulib-tool (func_import): Explain origin of code.
25967
25968 2010-03-12  Bruno Haible  <bruno@clisp.org>
25969
25970         Fix problem with automake's definition of CXXLINK.
25971         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25972         Reported by Simon Josefsson and Ludovic Courtès.
25973
25974 2010-03-12  Bruno Haible  <bruno@clisp.org>
25975
25976         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25977         stable releases.
25978
25979 2010-03-11  Bruno Haible  <bruno@clisp.org>
25980
25981         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25982         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25983         whether the system provides one variant or multiple variants of the
25984         function.
25985         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25986         C++ compilers.
25987         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25988         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25989         Reported by Jim Meyering.
25990
25991 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25992
25993         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25994
25995 2010-03-08  Bruno Haible  <bruno@clisp.org>
25996
25997         gnulib-tool: Add support for --libtool in --create-testdir.
25998         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25999         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26000
26001 2010-03-08  Eric Blake  <eblake@redhat.com>
26002
26003         gnulib-tool.texi: mention possibility of git submodule
26004         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26005         submodules.
26006         * doc/.gitignore: Ignore another generated file.
26007
26008 2010-03-08  Karl Berry  <karl@gnu.org>
26009
26010         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26011         of committing gnulib files while skipping others.
26012
26013 2010-03-07  Bruno Haible  <bruno@clisp.org>
26014
26015         Tests of module 'wctype' in C++ mode.
26016         * tests/test-wctype-c++.cc: New file.
26017         * modules/wctype-tests (Files): Add it and tests/signature.h.
26018         (Depends-on): Add ansi-c++-opt.
26019         (Makefile.am): Arrange to compile and run test-wctype-c++.
26020
26021         Tests of module 'wchar' in C++ mode.
26022         * tests/test-wchar-c++.cc: New file.
26023         * modules/wchar-tests (Files): Add it and tests/signature.h.
26024         (Depends-on): Add ansi-c++-opt.
26025         (Makefile.am): Arrange to compile and run test-wchar-c++.
26026         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26027         gl_MODULE_INDICATOR.
26028
26029         Tests of module 'unistd' in C++ mode.
26030         * tests/test-unistd-c++.cc: New file.
26031         * modules/unistd-tests (Files): Add it and tests/signature.h.
26032         (Depends-on): Add ansi-c++-opt.
26033         (Makefile.am): Arrange to compile and run test-unistd-c++.
26034         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26035         gl_MODULE_INDICATOR.
26036
26037         Tests of module 'time' in C++ mode.
26038         * tests/test-time-c++.cc: New file.
26039         * modules/time-tests (Files): Add it and tests/signature.h.
26040         (Depends-on): Add ansi-c++-opt.
26041         (Makefile.am): Arrange to compile and run test-time-c++.
26042         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26043
26044         Tests of module 'sys_time' in C++ mode.
26045         * tests/test-sys_time-c++.cc: New file.
26046         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26047         (Depends-on): Add ansi-c++-opt.
26048         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26049         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26050         gl_MODULE_INDICATOR.
26051
26052         Tests of module 'sys_stat' in C++ mode.
26053         * tests/test-sys_stat-c++.cc: New file.
26054         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26055         (Depends-on): Add ansi-c++-opt.
26056         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26057         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26058         gl_MODULE_INDICATOR.
26059
26060         Tests of module 'sys_socket' in C++ mode.
26061         * tests/test-sys_socket-c++.cc: New file.
26062         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26063         (Depends-on): Add ansi-c++-opt.
26064         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26065         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26066         gl_MODULE_INDICATOR.
26067
26068         Tests of module 'sys_select' in C++ mode.
26069         * tests/test-sys_select-c++.cc: New file.
26070         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26071         (Depends-on): Add ansi-c++-opt.
26072         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26073         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26074         gl_MODULE_INDICATOR.
26075
26076         Tests of module 'sys_ioctl' in C++ mode.
26077         * tests/test-sys_ioctl-c++.cc: New file.
26078         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26079         (Depends-on): Add ansi-c++-opt.
26080         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26081         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26082         gl_MODULE_INDICATOR.
26083
26084         Tests of module 'string' in C++ mode.
26085         * tests/test-string-c++.cc: New file.
26086         * modules/string-tests (Files): Add it and tests/signature.h.
26087         (Depends-on): Add ansi-c++-opt.
26088         (Makefile.am): Arrange to compile and run test-string-c++.
26089         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26090         gl_MODULE_INDICATOR.
26091
26092         Tests of module 'stdlib' in C++ mode.
26093         * tests/test-stdlib-c++.cc: New file.
26094         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26095         (Depends-on): Add ansi-c++-opt.
26096         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26097         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26098         gl_MODULE_INDICATOR.
26099
26100         Tests of module 'stdio' in C++ mode.
26101         * tests/test-stdio-c++.cc: New file.
26102         * modules/stdio-tests (Files): Add it and tests/signature.h.
26103         (Depends-on): Add ansi-c++-opt.
26104         (Makefile.am): Arrange to compile and run test-stdio-c++.
26105         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26106         gl_MODULE_INDICATOR.
26107
26108         Tests of module 'spawn' in C++ mode.
26109         * tests/test-spawn-c++.cc: New file.
26110         * modules/spawn-tests (Files): Add it and tests/signature.h.
26111         (Depends-on): Add ansi-c++-opt.
26112         (Makefile.am): Arrange to compile and run test-spawn-c++.
26113         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26114         gl_MODULE_INDICATOR.
26115
26116         Tests of module 'signal' in C++ mode.
26117         * tests/test-signal-c++.cc: New file.
26118         * modules/signal-tests (Files): Add it and tests/signature.h.
26119         (Depends-on): Add ansi-c++-opt.
26120         (Makefile.am): Arrange to compile and run test-signal-c++.
26121         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26122         gl_MODULE_INDICATOR.
26123
26124         Tests of module 'search' in C++ mode.
26125         * tests/test-search-c++.cc: New file.
26126         * modules/search-tests (Files): Add it and tests/signature.h.
26127         (Depends-on): Add ansi-c++-opt.
26128         (Makefile.am): Arrange to compile and run test-search-c++.
26129         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26130         gl_MODULE_INDICATOR.
26131
26132         Tests of module 'math' in C++ mode.
26133         * tests/test-math-c++.cc: New file.
26134         * modules/math-tests (Files): Add it and tests/signature.h.
26135         (Depends-on): Add ansi-c++-opt.
26136         (Makefile.am): Arrange to compile and run test-math-c++.
26137         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26138
26139         Tests of module 'locale' in C++ mode.
26140         * tests/test-locale-c++.cc: New file.
26141         * modules/locale-tests (Files): Add it and tests/signature.h.
26142         (Depends-on): Add ansi-c++-opt.
26143         (Makefile.am): Arrange to compile and run test-locale-c++.
26144         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26145         gl_MODULE_INDICATOR.
26146
26147         Tests of module 'langinfo' in C++ mode.
26148         * tests/test-langinfo-c++.cc: New file.
26149         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26150         (Depends-on): Add ansi-c++-opt.
26151         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26152         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26153         gl_MODULE_INDICATOR.
26154
26155         Tests of module 'iconv-h' in C++ mode.
26156         * tests/test-iconv-h-c++.cc: New file.
26157         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26158         (Depends-on): Add ansi-c++-opt.
26159         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26160
26161         Tests of module 'glob' in C++ mode.
26162         * tests/test-glob-c++.cc: New file.
26163         * modules/glob-tests (Files): Add it.
26164         (Depends-on): Add ansi-c++-opt.
26165         (Makefile.am): Arrange to compile and run test-glob-c++.
26166
26167         Tests of module 'fcntl-h' in C++ mode.
26168         * tests/test-fcntl-h-c++.cc: New file.
26169         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26170         (Depends-on): Add ansi-c++-opt.
26171         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26172         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26173         gl_MODULE_INDICATOR.
26174
26175         Tests of module 'dirent' in C++ mode.
26176         * tests/test-dirent-c++.cc: New file.
26177         * modules/dirent-tests (Files): Add it and tests/signature.h.
26178         (Depends-on): Add ansi-c++-opt.
26179         (Makefile.am): Arrange to compile and run test-dirent-c++.
26180         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26181         gl_MODULE_INDICATOR.
26182
26183         New module 'ansi-c++-opt'.
26184         * modules/ansi-c++-opt: New file.
26185         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26186
26187         Document C++ namespace mode.
26188         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26189
26190         wctype: Avoid #define replacements in C++ mode.
26191         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26192         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26193         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26194         In C++, define a namespaced alias symbol.
26195         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26196         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26197         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26198         rule.
26199
26200         wchar: Avoid #define replacements in C++ mode.
26201         * lib/wchar.in.h: Include c++defs.h.
26202         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26203         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26204         symbol.
26205         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26206         * modules/wchar (Depends-on): Add c++defs.
26207         (Makefile.am): Update wchar.h rule.
26208
26209         unistd: Avoid #define replacements in C++ mode.
26210         * lib/unistd.in.h: Include c++defs.h.
26211         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26212         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26213         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26214         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26215         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26216         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26217         symbol.
26218         (environ): Update.
26219         * modules/unistd (Depends-on): Add c++defs.
26220         (Makefile.am): Update unistd.h rule.
26221
26222         time: Avoid #define replacements in C++ mode.
26223         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26224         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26225         define a namespaced alias symbol.
26226         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26227         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26228         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26229         * modules/time (Depends-on): Add c++defs, warn-on-use.
26230         (Makefile.am): Update time.h rule.
26231         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26232         * modules/nanosleep (configure.ac): Likewise.
26233         * modules/strptime (configure.ac): Likewise.
26234         * modules/timegm (configure.ac): Likewise.
26235
26236         sys_time: Avoid #define replacements in C++ mode.
26237         * lib/sys_time.in.h: Include c++defs.h.
26238         (gettimeofday): In C++, define a namespaced alias symbol.
26239         * modules/sys_time (Depends-on): Add c++defs.
26240         (Makefile.am): Update sys/time.h rule.
26241
26242         sys_stat: Avoid #define replacements in C++ mode.
26243         * lib/sys_stat.in.h: Include c++defs.h.
26244         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26245         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26246         namespaced alias symbol.
26247         In C++, define a namespaced alias symbol.
26248         * modules/sys_stat (Depends-on): Add c++defs.
26249         (Makefile.am): Update sys/stat.h rule.
26250
26251         sys_socket: Avoid #define replacements in C++ mode.
26252         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26253         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26254         definitions also when the system has a <sys/socket.h>.
26255         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26256         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26257         In C++, define a namespaced alias symbol.
26258         * modules/sys_socket (Depends-on): Add c++defs.
26259         (Makefile.am): Update sys/socket.h rule.
26260
26261         sys_select: Avoid #define replacements in C++ mode.
26262         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26263         definitions also when the system has a <sys/select.h>.
26264         (select): In C++, define a namespaced alias symbol.
26265         * modules/sys_select (Depends-on): Add c++defs.
26266         (Makefile.am): Update sys/select.h rule.
26267
26268         sys_ioctl: Avoid #define replacements in C++ mode.
26269         * lib/sys_ioctl.in.h: Include c++defs.h.
26270         (ioctl): In C++, define a namespaced alias symbol.
26271         * modules/sys_ioctl (Depends-on): Add c++defs.
26272         (Makefile.am): Update sys/ioctl.h rule.
26273
26274         string: Avoid #define replacements in C++ mode.
26275         * lib/string.in.h: Include c++defs.h.
26276         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26277         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26278         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26279         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26280         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26281         * modules/string (Depends-on): Add c++defs.
26282         (Makefile.am): Update string.h rule.
26283
26284         stdlib: Avoid #define replacements in C++ mode.
26285         * lib/stdlib.in.h: Include c++defs.h.
26286         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26287         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26288         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26289         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26290         symbol.
26291         * modules/stdlib (Depends-on): Add c++defs.
26292         (Makefile.am): Update stdlib.h rule.
26293
26294         stdio: Avoid #define replacements in C++ mode.
26295         * lib/stdio.in.h: Include c++defs.h.
26296         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26297         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26298         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26299         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26300         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26301         namespaced alias symbol.
26302         * modules/stdio (Depends-on): Add c++defs.
26303         (Makefile.am): Update stdio.h rule.
26304
26305         spawn: Avoid #define replacements in C++ mode.
26306         * lib/spawn.in.h: Include c++defs.h.
26307         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26308         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26309         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26310         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26311         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26312         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26313         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26314         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26315         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26316         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26317         In C++, define a namespaced alias symbol.
26318         * modules/spawn (Depends-on): Add c++defs.
26319         (Makefile.am): Update spawn.h rule.
26320
26321         signal: Avoid #define replacements in C++ mode.
26322         * lib/signal.in.h: Include c++defs.h.
26323         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26324         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26325         namespaced alias symbol.
26326         * modules/signal (Depends-on): Add c++defs.
26327         (Makefile.am): Update signal.h rule.
26328
26329         search: Avoid #define replacements in C++ mode.
26330         * lib/search.in.h: Include c++defs.h.
26331         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26332         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26333         symbol.
26334         * modules/search (Depends-on): Add c++defs.
26335         (Makefile.am): Update search.h rule.
26336
26337         math: Avoid #define replacements in C++ mode.
26338         * lib/math.in.h: Include c++defs.h.
26339         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26340         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26341         trunc, truncl): In C++, define a namespaced alias symbol.
26342         * modules/math (Depends-on): Add c++defs.
26343         (Makefile.am): Update math.h rule.
26344
26345         locale: Avoid #define replacements in C++ mode.
26346         * lib/locale.in.h: Include c++defs.h.
26347         (duplocale): In C++, define a namespaced alias symbol.
26348         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26349         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26350         * modules/locale (Depends-on): Add c++defs.
26351         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26352
26353         langinfo: Avoid #define replacements in C++ mode.
26354         * lib/langinfo.in.h: Include c++defs.h.
26355         (nl_langinfo): In C++, define a namespaced alias symbol.
26356         * modules/langinfo (Depends-on): Add c++defs.
26357         (Makefile.am): Update langinfo.h rule.
26358
26359         iconv-h: Avoid #define replacements in C++ mode.
26360         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26361         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26362         symbol.
26363         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26364         whenever iconv is present.
26365         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26366         (Makefile.am): Update iconv.h rule.
26367
26368         glob: Avoid #define replacements in C++ mode.
26369         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26370         (_gl_glob_errfunc_fn): New type.
26371         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26372         symbol.
26373         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26374         (Makefile.am): Update glob.h rule.
26375
26376         fcntl-h: Avoid #define replacements in C++ mode.
26377         * lib/fcntl.in.h: Include c++defs.h.
26378         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26379         * modules/fcntl-h (Depends-on): Add c++defs.
26380         (Makefile.am): Update fcntl.h rule.
26381
26382         dirent: Avoid #define replacements in C++ mode.
26383         * lib/dirent.in.h: Include c++defs.h.
26384         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26385         namespaced alias symbol.
26386         (dirfd): Update declaration.
26387         * modules/dirent (Depends-on): Add c++defs.
26388         (Makefile.am): Update dirent.h rule.
26389
26390         ctype: Make it usable in C++ code.
26391         * lib/ctype.in.h: Include c++defs.h.
26392         (isblank): Declare as extern "C".
26393         * modules/ctype (Depends-on): Add c++defs.
26394         (Makefile.am): Update ctype.h rule.
26395
26396         New module 'c++defs'.
26397         * modules/c++defs: New file.
26398         * build-aux/c++defs.h: New file.
26399         Reported by John W. Eaton <jwe@gnu.org>.
26400
26401 2010-03-07  Bruno Haible  <bruno@clisp.org>
26402
26403         logb: Provide missing declaration for Cygwin.
26404         * lib/math.in.h (logb): New declaration.
26405         * m4/logb.m4: New file.
26406         * modules/logb (Files): Add m4/logb.m4.
26407         (Depends-on): Add math.
26408         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26409         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26411         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26412         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26413
26414 2010-03-07  Bruno Haible  <bruno@clisp.org>
26415
26416         Fix test-cond link error.
26417         * tests/test-cond.c: Include <stdio.h>.
26418
26419 2010-03-07  Bruno Haible  <bruno@clisp.org>
26420
26421         Fix test-dirent-safer link error.
26422         * modules/dirent-safer-tests (Makefile.am): Define
26423         test_dirent_safer_LDADD.
26424
26425 2010-03-07  Bruno Haible  <bruno@clisp.org>
26426
26427         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26428         among default module list.
26429
26430 2010-03-07  Bruno Haible  <bruno@clisp.org>
26431
26432         Fix link error on platforms with GNU libiconv.
26433         * modules/unistr/u8-strcoll-tests (Makefile): Define
26434         test_u8_strcoll_LDADD.
26435         * modules/unistr/u16-strcoll-tests (Makefile): Define
26436         test_u16_strcoll_LDADD.
26437         * modules/unistr/u32-strcoll-tests (Makefile): Define
26438         test_u32_strcoll_LDADD.
26439
26440 2010-03-07  Bruno Haible  <bruno@clisp.org>
26441
26442         Use POSIX declarations for socket functions.
26443         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26444         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26445         rpl_sendto): Change declaration to match POSIX.
26446         * lib/connect.c (rpl_connect): Likewise.
26447         * lib/accept.c (rpl_accept): Likewise.
26448         * lib/bind.c (rpl_bind): Likewise.
26449         * lib/getpeername.c (rpl_getpeername): Likewise.
26450         * lib/getsockname.c (rpl_getsockname): Likewise.
26451         * lib/recv.c (rpl_recv): Likewise.
26452         * lib/send.c (rpl_send): Likewise.
26453         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26454         * lib/sendto.c (rpl_sendto): Likewise.
26455
26456 2010-03-06  Bruno Haible  <bruno@clisp.org>
26457
26458         Clarify access, euidaccess, faccessat.
26459         * doc/posix-functions/faccessat.texi: Mention security problem under
26460         "Other problems", not "Portability problems".
26461         * doc/posix-functions/access.texi: Likewise. Mention a related security
26462         problem.
26463         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26464         * lib/euidaccess.c: Add comments about platforms.
26465         * lib/unistd.in.h (access, euidaccess): Add warnings.
26466
26467 2010-03-07  Bruno Haible  <bruno@clisp.org>
26468
26469         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26470         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26471         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26472         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26473         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26474         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26475         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26476         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26477         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26478         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26479         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26480         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26481         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26482         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26483         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26484         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26485         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26486         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26487         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26488         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26489         Likewise.
26490         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26491         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26492         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26493         Likewise.
26494         * tests/test-spawn.c (main): Make it work when
26495         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26496
26497 2010-03-07  Bruno Haible  <bruno@clisp.org>
26498
26499         Fix incorrect Makefile.am generation in German locale.
26500         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26501         Execute sed command with character range in C locale.
26502
26503 2010-03-06  Bruno Haible  <bruno@clisp.org>
26504
26505         Tests for module 'iconv-h'.
26506         * modules/iconv-h-tests: New file.
26507         * tests/test-iconv-h.c: New file.
26508
26509         New module 'iconv-h'.
26510         * modules/iconv-h: New file.
26511         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26512         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26513         (configure.ac): Remove gl_ICONV_H.
26514         (Makefile.am): Remove rule for iconv.h.
26515
26516 2010-03-06  Bruno Haible  <bruno@clisp.org>
26517
26518         More consistent naming of *.m4 files.
26519         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26520         * modules/wctype (Files): Update.
26521
26522         More consistent naming of *.m4 files.
26523         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26524         * modules/wchar (Files): Update.
26525
26526 2010-03-06  Jim Meyering  <meyering@redhat.com>
26527
26528         euidaccess: relax license to LGPLv2+
26529         * modules/euidaccess (License): Relax to LGPLv2+.
26530
26531 2010-03-06  Bruno Haible  <bruno@clisp.org>
26532
26533         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26534         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26535         (Makefile.am): Augment lib_SOURCES instead.
26536
26537 2010-03-04  Jim Meyering  <meyering@redhat.com>
26538
26539         utime: remove obsolete module
26540         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26541         unnecessary for years, and has been marked as obsolete for 10 months.
26542         * modules/utime: Remove file.
26543         * lib/utime.c: Remove file.
26544         * m4/utime.m4: Remove file.
26545         * m4/utimes-null.m4: Remove file.
26546         * doc/posix-functions/utime.texi (utime): Remove reference to
26547         the module.  Move the sole "fixed by gnulib" item into the
26548         "problems not fixed by Gnulib" list.
26549         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26550
26551 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26552
26553         * modules/exit (License): Relax license to LGPLv2+.
26554         (Status): Mark as obsolete.
26555         * NEWS: Mention deprecated 'exit' module.
26556         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26557         of now obsolete 'exit'.
26558
26559 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26560
26561         fts-lgpl: remove unused module
26562         * modules/fts-lgpl: Remove.
26563         * MODULES.html.sh (func_all_modules): Adjust.
26564         * check-module (find_included_lib_files): Adjust.
26565         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26566
26567 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26568
26569         copy-acl: enhance Solaris ACL error handling
26570         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26571         * lib/set-mode-acl.c (qset_acl): Likewise.
26572
26573 2010-03-02  Bruno Haible  <bruno@clisp.org>
26574
26575         spawn: Don't override the system defined values on FreeBSD 8.
26576         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26577         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26578         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26579         if HAVE_POSIX_SPAWN is 1.
26580         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26581
26582 2010-03-01  Bruno Haible  <bruno@clisp.org>
26583
26584         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26585         regarding Automake.
26586
26587 2010-02-25  Bruno Haible  <bruno@clisp.org>
26588
26589         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26590         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26591         setting, not afterwards.
26592         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26593
26594 2010-02-24  Eric Blake  <eblake@redhat.com>
26595
26596         bootstrap, git-version-gen: use timestamp
26597         * build-aux/git-version-gen (scriptversion): Force UTC.
26598         * build-aux/bootstrap (scriptversion): New variable.
26599
26600         bootstrap: allow older git
26601         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26602         older than 1.6.4.  Requested by the libvirt project.
26603
26604 2010-02-23  Eric Blake  <eblake@redhat.com>
26605
26606         warn-on-use: work with old autoconf
26607         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26608         AS_VAR semantics of autoconf 2.60.
26609         Reported by Bruno Haible.
26610
26611         bootstrap: improve some comments
26612         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26613         clarification comments.
26614
26615         gettimeofday: provide correct function
26616         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26617         when replacement is declared, otherwise provide gettimeofday.
26618         Reported by Michael Goffioul.
26619
26620 2010-02-23  Jim Meyering  <meyering@redhat.com>
26621
26622         lib-ignore: relax license to "unlimited", not LGPLv2+
26623         * modules/lib-ignore (License): Relax to "unlimited".
26624
26625 2010-02-23  Jim Meyering  <meyering@redhat.com>
26626
26627         lib-ignore: relax license to LGPLv2+
26628         * modules/lib-ignore (License): Relax to LGPLv2+.
26629
26630 2010-02-22  Eric Blake  <eblake@redhat.com>
26631
26632         lseek: avoid bash 3.2 broken pipe bug
26633         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26634         warning from bash 3.2.
26635         Reported by Ben Pfaff, with analysis from Bruno Haible.
26636
26637         bootstrap: support non-FSF copyright holder
26638         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26639         bootstrap.conf override of COPYRIGHT_HOLDER.
26640         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26641
26642         bootstrap: interoperate with gettext 0.14.1
26643         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26644
26645         bootstrap: allow for alternate submodule location
26646         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26647         hardcoding submodule location.
26648         (gnulib_mk): Allow direct use of Makefile.am.
26649
26650         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26651         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26652         rather than reconfiguring where the submodule points.
26653
26654         gettimeofday: restore support for platforms that lack function
26655         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26656         replacement if function is missing.
26657         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26658         * modules/sys_time (Makefile.am): Substitute it.
26659         * lib/sys_time.in.h (gettimeofday): Check it.
26660         Reported by Michael Goffioul.
26661
26662 2010-02-21  Bruno Haible  <bruno@clisp.org>
26663
26664         * lib/stdio.in.h (obstack_printf): Fix typo.
26665
26666 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26667
26668         vc-list-files: use bzr ls's -R option
26669         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26670         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26671
26672 2010-02-21  Jim Meyering  <meyering@redhat.com>
26673
26674         init.sh: fix EXEEXT shims to work also for names like test-prog
26675         * tests/init.sh: Re-exec a better shell, when needed.
26676         If the current shell lacks support for posix $(...), an init.sh-using
26677         test will now try to find a shell that supports that.  If EXEEXT is
26678         nonempty, we also require support for hyphen-in-alias-name and shell
26679         substitutions like ${var#glob}.  Failure to find such a shell results
26680         in a skipped test.
26681
26682 2010-02-21  Bruno Haible  <bruno@clisp.org>
26683
26684         Really work around around "broken pipe" error message from bash 3.2.
26685         * gnulib-tool (func_reset_sigpipe): Remove function.
26686         (echo): In bash 3.2, define to a function that uses printf.
26687         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26688
26689 2010-02-20  Bruno Haible  <bruno@clisp.org>
26690
26691         Restore support for automake 1.9.6 with autoconf 2.61.
26692         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26693         Reported by James Youngman <jay@gnu.org>.
26694
26695 2010-02-20  Bruno Haible  <bruno@clisp.org>
26696
26697         Improve *printf warning condition.
26698         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26699         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26700         and the function is overridden due to SIGPIPE emulation.
26701
26702 2010-02-20  Bruno Haible  <bruno@clisp.org>
26703
26704         * lib/stdio.in.h: Tweak comments.
26705
26706 2010-02-19  Bruno Haible  <bruno@clisp.org>
26707
26708         Make it easier to find modules. New gnulib-tool option '--find'.
26709         * gnulib-tool: New option --find.
26710         (func_usage): Document it.
26711         (func_sanitize_modulelist): New function, extracted from
26712         func_all_modules.
26713         (func_all_modules): Invoke it.
26714         * doc/gnulib-tool.texi (Which modules?): New node.
26715
26716 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26717
26718         * lib/sys_select.in.h: Provide select replacement even if
26719         sys/select.h exists on a system, for Interix.
26720
26721 2010-02-18  Jim Meyering  <meyering@redhat.com>
26722
26723         init.sh: don't use $(...) just yet
26724         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26725         to accommodate e.g., Solaris' /bin/sh.
26726
26727 2010-02-17  Bruno Haible  <bruno@clisp.org>
26728
26729         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26730         Reported by Ludovic Courtès <ludo@gnu.org>.
26731
26732 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26733
26734         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26735         linking with -lintl.
26736
26737 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26738
26739         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26740         if not provided by the system's netdb.h.  Reported by
26741         ludo@gnu.org (Ludovic Courtès).
26742
26743 2010-02-15  Jim Meyering  <meyering@redhat.com>
26744
26745         init.sh: improve portability and efficiency
26746         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26747         "dummy" in a for loop.
26748         Use '!', not '^' to select the complement of a character set used
26749         in a "case" statement.
26750         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26751         Suggestions from Eric Blake.
26752
26753         init.sh: automatically accommodate programs with the .exe suffix
26754         Automatically arrange for an invocation of "prog" to execute the
26755         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26756         may use the simpler "prog", yet still work when built on a system
26757         that requires specifying the added suffix.
26758         Do this by constructing a function named "prog" that invokes
26759         "prog.exe" for each .exe file in selected directories.
26760         * tests/init.sh (find_exe_basenames_): New function.
26761         (create_exe_shim_functions_): New function.
26762         (path_prepend_): Use it.
26763
26764         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26765         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26766         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26767
26768 2010-02-14  Jim Meyering  <meyering@redhat.com>
26769
26770         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26771         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26772         (sc_prohibit_hash_pjw_without_use): New rule.
26773
26774         maint.mk: allow the default upload destination dir to be overridden
26775         * top/maint.mk (upload_dest_dir_): Define with a default that
26776         preserves the status quo.
26777         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26778         Reported by Peter Simons.
26779
26780         maint.mk: prohibit inclusion of "hash.h" without_use
26781         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26782
26783 2010-02-10  Jim Meyering  <meyering@redhat.com>
26784
26785         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26786         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26787
26788 2010-02-09  Eric Blake  <ebb9@byu.net>
26789         and Bruno Haible  <bruno@clisp.org>
26790
26791         obstack-printf-posix: ensure declaration
26792         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26793         extracted from gl_FUNC_OBSTACK_PRINTF.
26794         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26795         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26796         Likewise.
26797         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26798         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26799         0.
26800
26801 2010-02-08  Bruno Haible  <bruno@clisp.org>
26802
26803         gnulib-tool: Fix typo in 2010-02-07 commit.
26804         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26805         Reported by Eric Blake.
26806
26807 2010-02-07  Bruno Haible  <bruno@clisp.org>
26808
26809         gnulib-tool: Fix up caching patches.
26810         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26811         option --no-cache. Use associative arrays when supported by the shell.
26812         (sed_comments): New variable.
26813         (modcache): Renamed from do_cache.
26814         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26815         abbreviate unnecessarily.
26816         (have_associative): New variable.
26817         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26818         way also for ksh and zsh.
26819         (func_init_sed_convert_to_cache_statements): New function, extracted
26820         from func_cache_lookup_module. Add support for associative arrays.
26821         Don't set the c_MODULE_cached variable here. Ignore all lines before
26822         the first field header. Remove only the final newline, not all trailing
26823         newlines. Support empty fields correctly. Limit the use of 'eval' to
26824         assignments.
26825         (func_get_description, func_get_status, func_get_notice,
26826         func_get_applicability, func_get_filelist, func_get_dependencies,
26827         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26828         func_get_automake_snippet, func_get_include_directive,
26829         func_get_link_directive, func_get_license, func_get_maintainer):
26830         Update documentation. List the unoptimized code first. Add support for
26831         associative arrays. Limit the use of 'eval' to assignments.
26832         (func_get_applicability): Undo stylistic pessimisations.
26833         (func_get_automake_snippet, func_get_include_directive): Reduce code
26834         duplication.
26835         (func_modules_transitive_closure, func_modules_add_dummy,
26836         func_modules_notice, func_modules_to_filelist, func_add_file,
26837         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26838         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26839         func_create_testdir, func_create_megatestdir): Update documentation.
26840
26841 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26842
26843         * gnulib-tool (func_cache_lookup_module): Store the module name
26844         belonging to the cache variable; error out if two different
26845         module names map to the same cache variable name.
26846
26847 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26848
26849         gnulib-tool: Make caching optional.
26850         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26851         Update matching short versions of --no-changelog.
26852         (func_usage): Update.
26853         (sed_extract_cache_prog): Renamed from ...
26854         (sed_extract_prog): ... this; revert to old extraction script.
26855         (func_get_description, func_get_status)
26856         (func_get_notice, func_get_applicability, func_get_filelist)
26857         (func_get_dependencies, func_get_autoconf_early_snippet)
26858         (func_get_autoconf_snippet, func_get_automake_snippet)
26859         (func_get_include_directive, func_get_link_directive)
26860         (func_get_license, func_get_maintainer): If $do_cache is false,
26861         use old, non-caching extraction scripts.
26862         Suggestion by Bruno Haible.
26863
26864 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26865
26866         gnulib-tool: cache module metainformation.
26867         * gnulib-tool (sed_extract_prog): Match newline before each
26868         header, and rewrite header to a shell variable suffix.
26869         (func_cache_var, func_cache_lookup_module): New functions,
26870         to turn a module name into a cache variable prefix, and to
26871         look up and cache module metainformation.
26872         (func_get_description, func_get_status)
26873         (func_get_notice, func_get_applicability, func_get_filelist)
26874         (func_get_dependencies, func_get_autoconf_early_snippet)
26875         (func_get_autoconf_snippet, func_get_automake_snippet)
26876         (func_get_include_directive, func_get_link_directive)
26877         (func_get_license, func_get_maintainer): Use
26878         func_cache_lookup_module.
26879
26880 2010-02-07  Bruno Haible  <bruno@clisp.org>
26881
26882         fnctl: Fix missing dependency.
26883         * modules/fcntl (Depends-on): Add getdtablesize.
26884         Reported by John W. Eaton <jwe@gnu.org>.
26885
26886 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26887
26888         Argp: fix recognition of short alias options.
26889
26890         * lib/argp-parse.c (convert_options): Fix improper use of
26891         `|' between character values.
26892         * tests/test-argp.c (group1_option): New alias option
26893         --read (-r).
26894         (group1_parser): Special handling for 'r'.
26895         (test15): New test case.
26896         (test_fun): Add test15.
26897         * tests/test-argp-2.sh: Update expected --help and --usage
26898         outputs.
26899
26900 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26901
26902         * tests/test-argp.c: Fix indentation.
26903
26904 2010-02-04  Eric Blake  <ebb9@byu.net>
26905
26906         gettimeofday: expose type of second argument
26907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26908         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26909         * tests/test-gettimeofday.c: Use it to silence warning.
26910         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26911         the issue.
26912
26913 2010-02-03  Jim Meyering  <meyering@redhat.com>
26914
26915         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26916         * lib/regcomp.c (TYPE_SIGNED): Define.
26917         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26918
26919         regcomp.c: avoid a new -Wshadow warning
26920         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26921
26922 2010-02-01  Jim Meyering  <meyering@redhat.com>
26923
26924         removing useless parentheses in cpp #define directives
26925         For motivation, see commit c0221df4, "define STREQ(a,b)
26926         consistently, removing useless parentheses"
26927         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26928         * lib/mountlist.c (MNT_IGNORE): Likewise.
26929         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26930
26931 2010-02-01  Eric Blake  <ebb9@byu.net>
26932
26933         sys_time: use link-warning
26934         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26935         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26936         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26937         * modules/sys_time (Depends-on): Add warn-on-use.
26938         (Makefile.am): Always build replacement.
26939         (configure.ac): Update substitutions.
26940         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26941         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26942         bother with SYS_TIME_H.
26943         * modules/gettimeofday (configure.ac): Declare indicator.
26944         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26945         in use.
26946
26947         closein-tests: silence compiler warning
26948         * tests/test-closein.c (main): Ignore fread result.
26949         * modules/closein-tests (Depends-on): Add ignore-value.
26950
26951         tests: silence warning about system return
26952         * tests/test-areadlink-with-size.c (main): Ignore system result.
26953         * tests/test-areadlink.c (main): Likewise.
26954         * tests/test-areadlinkat-with-size.c (main): Likewise.
26955         * tests/test-areadlinkat.c (main): Likewise.
26956         * tests/test-canonicalize-lgpl.c (main): Likewise.
26957         * tests/test-canonicalize.c (main): Likewise.
26958         * tests/test-chown.c (main): Likewise.
26959         * tests/test-fchownat.c (main): Likewise.
26960         * tests/test-fdutimensat.c (main): Likewise.
26961         * tests/test-fstatat.c (main): Likewise.
26962         * tests/test-futimens.c (main): Likewise.
26963         * tests/test-lchown.c (main): Likewise.
26964         * tests/test-link.c (main): Likewise.
26965         * tests/test-linkat.c (main): Likewise.
26966         * tests/test-lstat.c (main): Likewise.
26967         * tests/test-mkdir.c (main): Likewise.
26968         * tests/test-mkdirat.c (main): Likewise.
26969         * tests/test-mkfifo.c (main): Likewise.
26970         * tests/test-mkfifoat.c (main): Likewise.
26971         * tests/test-mknod.c (main): Likewise.
26972         * tests/test-readlink.c (main): Likewise.
26973         * tests/test-remove.c (main): Likewise.
26974         * tests/test-rename.c (main): Likewise.
26975         * tests/test-renameat.c (main): Likewise.
26976         * tests/test-rmdir.c (main): Likewise.
26977         * tests/test-symlink.c (main): Likewise.
26978         * tests/test-symlinkat.c (main): Likewise.
26979         * tests/test-unlink.c (main): Likewise.
26980         * tests/test-unlinkat.c (main): Likewise.
26981         * tests/test-utimens.c (main): Likewise.
26982         * tests/test-utimensat.c (main): Likewise.
26983         * modules/areadlink-tests (Depends-on): Add ignore-value.
26984         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26985         * modules/areadlinkat-tests (Depends-on): Likewise.
26986         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26987         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26988         * modules/canonicalize-tests (Depends-on): Likewise.
26989         * modules/chown-tests (Depends-on): Likewise.
26990         * modules/fdutimensat-tests (Depends-on): Likewise.
26991         * modules/futimens-tests (Depends-on): Likewise.
26992         * modules/lchown-tests (Depends-on): Likewise.
26993         * modules/link-tests (Depends-on): Likewise.
26994         * modules/linkat-tests (Depends-on): Likewise.
26995         * modules/lstat-tests (Depends-on): Likewise.
26996         * modules/mkdir-tests (Depends-on): Likewise.
26997         * modules/mkfifo-tests (Depends-on): Likewise.
26998         * modules/mkfifoat-tests (Depends-on): Likewise.
26999         * modules/mknod-tests (Depends-on): Likewise.
27000         * modules/openat-tests (Depends-on): Likewise.
27001         * modules/readlink-tests (Depends-on): Likewise.
27002         * modules/remove-tests (Depends-on): Likewise.
27003         * modules/rename-tests (Depends-on): Likewise.
27004         * modules/renameat-tests (Depends-on): Likewise.
27005         * modules/rmdir-tests (Depends-on): Likewise.
27006         * modules/symlink-tests (Depends-on): Likewise.
27007         * modules/symlinkat-tests (Depends-on): Likewise.
27008         * modules/unlink-tests (Depends-on): Likewise.
27009         * modules/utimens-tests (Depends-on): Likewise.
27010         * modules/utimensat-tests (Depends-on): Likewise.
27011
27012 2010-01-31  Bruno Haible  <bruno@clisp.org>
27013
27014         Perform the same test for many <math.h> functions.
27015         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27016         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27017         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27018         of gl_MATHFUNC.
27019         * modules/acos (configure.ac): Likewise.
27020         * modules/asin (configure.ac): Likewise.
27021         * modules/atan (configure.ac): Likewise.
27022         * modules/atan2 (configure.ac): Likewise.
27023         * modules/cbrt (configure.ac): Likewise.
27024         * modules/copysign (configure.ac): Likewise.
27025         * modules/cos (configure.ac): Likewise.
27026         * modules/cosh (configure.ac): Likewise.
27027         * modules/erf (configure.ac): Likewise.
27028         * modules/erfc (configure.ac): Likewise.
27029         * modules/exp (configure.ac): Likewise.
27030         * modules/fmod (configure.ac): Likewise.
27031         * modules/hypot (configure.ac): Likewise.
27032         * modules/j0 (configure.ac): Likewise.
27033         * modules/j1 (configure.ac): Likewise.
27034         * modules/jn (configure.ac): Likewise.
27035         * modules/lgamma (configure.ac): Likewise.
27036         * modules/log (configure.ac): Likewise.
27037         * modules/log10 (configure.ac): Likewise.
27038         * modules/log1p (configure.ac): Likewise.
27039         * modules/pow (configure.ac): Likewise.
27040         * modules/remainder (configure.ac): Likewise.
27041         * modules/sin (configure.ac): Likewise.
27042         * modules/sinh (configure.ac): Likewise.
27043         * modules/tan (configure.ac): Likewise.
27044         * modules/tanh (configure.ac): Likewise.
27045         * modules/y0 (configure.ac): Likewise.
27046         * modules/y1 (configure.ac): Likewise.
27047         * modules/yn (configure.ac): Likewise.
27048         Suggested by Paolo Bonzini.
27049
27050 2010-01-31  Bruno Haible  <bruno@clisp.org>
27051
27052         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27053
27054 2010-01-31  Bruno Haible  <bruno@clisp.org>
27055
27056         Work around getdelim() bug on FreeBSD 8.0.
27057         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27058         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27059         not work.
27060         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27061         is 1.
27062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27063         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27064         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27065         a non-zero size.
27066         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27067
27068 2010-01-31  Bruno Haible  <bruno@clisp.org>
27069
27070         Work around getline() bug on FreeBSD 8.0.
27071         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27072         and a non-zero size.
27073         * tests/test-getline.c (main): Likewise.
27074         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27075         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27076
27077 2010-01-28  Eric Blake  <ebb9@byu.net>
27078
27079         regex: fix build failure
27080         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27081         platforms.
27082
27083 2010-01-28  Jim Meyering  <meyering@redhat.com>
27084
27085         regex: do not ignore memory allocation failure
27086         * lib/regex_internal.c (create_cd_newstate): Detect
27087         re_node_set_init_copy failure.   Extracted from glibc commit
27088         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27089
27090         regex: sync more white-space changes from libc
27091         * lib/regex_internal.c: White-space only changes.
27092         * lib/regexec.c: Likewise.
27093
27094         regex: add many uses of __attribute_warn_unused_result__
27095         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27096         * lib/regexec.c: Likewise.
27097         Extracted from a messy glibc commit.
27098
27099         regcomp.c: spelling and merge-artifact from glibc
27100         * lib/regcomp.c: Merge remainder of glibc's
27101         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27102
27103         regcomp.c: sync white-space changes from glibc
27104         * lib/regcomp.c: Merge to accommodate white space
27105         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27106
27107         regcomp.c: do not ignore internal return values
27108         * lib/regcomp.c: Do not ignore internal return values.
27109         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27110         but without its white-space changes and spelling fixes.
27111
27112         regex_internal.h: define __attribute_warn_unused_result__
27113         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27114
27115         maint: add a syntax-check rule to check for vulnerable Makefile.in
27116         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27117
27118 2010-01-27  Jim Meyering  <meyering@redhat.com>
27119
27120         ncftpput-ftp: clean up spaces
27121         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27122         Remove trailing blanks.
27123
27124 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27125
27126         * build-aux/git-version-gen: Fix copyright statement.
27127         * build-aux/gnupload: Likewise.
27128         * tests/test-arcfour.c: Likewise.
27129         * tests/test-arctwo.c: Likewise.
27130         * tests/test-count-one-bits.c: Likewise.
27131         * tests/test-crc.c: Likewise.
27132         * tests/test-des.c: Likewise.
27133         * tests/test-gc-arcfour.c: Likewise.
27134         * tests/test-gc-arctwo.c: Likewise.
27135         * tests/test-gc-des.c: Likewise.
27136         * tests/test-gc-hmac-md5.c: Likewise.
27137         * tests/test-gc-hmac-sha1.c: Likewise.
27138         * tests/test-gc-md2.c: Likewise.
27139         * tests/test-gc-md4.c: Likewise.
27140         * tests/test-gc-md5.c: Likewise.
27141         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27142         * tests/test-gc-rijndael.c: Likewise.
27143         * tests/test-gc-sha1.c: Likewise.
27144         * tests/test-gc.c: Likewise.
27145         * tests/test-gethostname.c: Likewise.
27146         * tests/test-gettimeofday.c: Likewise.
27147         * tests/test-hash.c: Likewise.
27148         * tests/test-hmac-md5.c: Likewise.
27149         * tests/test-hmac-sha1.c: Likewise.
27150         * tests/test-md2.c: Likewise.
27151         * tests/test-md4.c: Likewise.
27152         * tests/test-md5.c: Likewise.
27153         * tests/test-memchr.c: Likewise.
27154         * tests/test-memchr2.c: Likewise.
27155         * tests/test-memcmp.c: Likewise.
27156         * tests/test-memmem.c: Likewise.
27157         * tests/test-memrchr.c: Likewise.
27158         * tests/test-rawmemchr.c: Likewise.
27159         * tests/test-read-file.c: Likewise.
27160         * tests/test-rijndael.c: Likewise.
27161         * tests/test-sockets.c: Likewise.
27162         * tests/test-strchrnul.c: Likewise.
27163         * tests/test-strstr.c: Likewise.
27164         * tests/test-strtod.c: Likewise.
27165         * build-aux/ncftpput-ftp: Likewise.
27166
27167 2010-01-26  Eric Blake  <ebb9@byu.net>
27168
27169         ignore-value: update recommended header name
27170         * modules/ignore-value (Include): Only use <> for headers that
27171         exist in glibc.
27172
27173 2010-01-26  Jim Meyering  <meyering@redhat.com>
27174
27175         test-userspec.c: avoid compiler warnings
27176         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27177         and "initialization discards qualifiers..." warnings.
27178         Put the first "uid" in its own scope, and make char* members "const".
27179
27180 2010-01-25  Bruno Haible  <bruno@clisp.org>
27181
27182         gnulib-tool: Make warning diagnostics consistent.
27183         * gnulib-tool (func_warning): New function.
27184         Use it everywhere where gnulib-tool produces output to stderr and it is
27185         not a fatal error.
27186
27187 2010-01-25  Bruno Haible  <bruno@clisp.org>
27188
27189         Fix test dependencies.
27190         * modules/xstrtol-tests (Depends-on): Add inttypes.
27191         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27192
27193 2010-01-25 Pádraig Brady <P@draigBrady.com>
27194
27195         syntax-check: detect incorrect boolean macro values in config.h
27196         * modules/maintainer-makefile (configure.ac): Parameterize the location
27197         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27198         The logic is from Eric Blake and the location indicated by Jim Meyering.
27199         Note the more natural CONFIG_HEADER name is prohibited by automake
27200         for backwards compatibility reasons.
27201         * top/maint.mk (sc_Wundef_boolean): New rule.
27202
27203 2010-01-25  Jim Meyering  <meyering@redhat.com>
27204
27205         bootstrap: detect MacOS 10.6's shasum, too
27206         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27207         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27208
27209 2010-01-23  Jim Meyering  <meyering@redhat.com>
27210
27211         xstrtoll: new module
27212         * modules/xstrtoll: New file.
27213         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27214         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27215         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27216         ./configure fails if you use this module and lack "long long".
27217         * modules/xstrtoll-tests: New module.
27218         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27219         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27220         new init.sh-based test framework.
27221
27222 2010-01-24  Bruno Haible  <bruno@clisp.org>
27223
27224         Tests for module 'yn'.
27225         * modules/yn-tests: New file.
27226         * tests/test-yn.c: New file.
27227
27228         Tests for module 'y1'.
27229         * modules/y1-tests: New file.
27230         * tests/test-y1.c: New file.
27231
27232         Tests for module 'y0'.
27233         * modules/y0-tests: New file.
27234         * tests/test-y0.c: New file.
27235
27236         Tests for module 'tanh'.
27237         * modules/tanh-tests: New file.
27238         * tests/test-tanh.c: New file.
27239
27240         Tests for module 'tan'.
27241         * modules/tan-tests: New file.
27242         * tests/test-tan.c: New file.
27243
27244         Tests for module 'sqrt'.
27245         * modules/sqrt-tests: New file.
27246         * tests/test-sqrt.c: New file.
27247
27248         Tests for module 'sinh'.
27249         * modules/sinh-tests: New file.
27250         * tests/test-sinh.c: New file.
27251
27252         Tests for module 'sin'.
27253         * modules/sin-tests: New file.
27254         * tests/test-sin.c: New file.
27255
27256         Tests for module 'rint'.
27257         * modules/rint-tests: New file.
27258         * tests/test-rint.c: New file.
27259
27260         Tests for module 'remainder'.
27261         * modules/remainder-tests: New file.
27262         * tests/test-remainder.c: New file.
27263
27264         Tests for module 'pow'.
27265         * modules/pow-tests: New file.
27266         * tests/test-pow.c: New file.
27267
27268         Tests for module 'nextafter'.
27269         * modules/nextafter-tests: New file.
27270         * tests/test-nextafter.c: New file.
27271
27272         Tests for module 'modf'.
27273         * modules/modf-tests: New file.
27274         * tests/test-modf.c: New file.
27275
27276         Tests for module 'logb'.
27277         * modules/logb-tests: New file.
27278         * tests/test-logb.c: New file.
27279
27280         Tests for module 'log1p'.
27281         * modules/log1p-tests: New file.
27282         * tests/test-log1p.c: New file.
27283
27284         Tests for module 'log10'.
27285         * modules/log10-tests: New file.
27286         * tests/test-log10.c: New file.
27287
27288         Tests for module 'log'.
27289         * modules/log-tests: New file.
27290         * tests/test-log.c: New file.
27291
27292         Tests for module 'lgamma'.
27293         * modules/lgamma-tests: New file.
27294         * tests/test-lgamma.c: New file.
27295
27296         Tests for module 'ldexp'.
27297         * modules/ldexp-tests: New file.
27298         * tests/test-ldexp.c: New file.
27299
27300         Tests for module 'jn'.
27301         * modules/jn-tests: New file.
27302         * tests/test-jn.c: New file.
27303
27304         Tests for module 'j1'.
27305         * modules/j1-tests: New file.
27306         * tests/test-j1.c: New file.
27307
27308         Tests for module 'j0'.
27309         * modules/j0-tests: New file.
27310         * tests/test-j0.c: New file.
27311
27312         Tests for module 'hypot'.
27313         * modules/hypot-tests: New file.
27314         * tests/test-hypot.c: New file.
27315
27316         Tests for module 'fmod'.
27317         * modules/fmod-tests: New file.
27318         * tests/test-fmod.c: New file.
27319
27320         Tests for module 'fabs'.
27321         * modules/fabs-tests: New file.
27322         * tests/test-fabs.c: New file.
27323
27324         Tests for module 'exp'.
27325         * modules/exp-tests: New file.
27326         * tests/test-exp.c: New file.
27327
27328         Tests for module 'erfc'.
27329         * modules/erfc-tests: New file.
27330         * tests/test-erfc.c: New file.
27331
27332         Tests for module 'erf'.
27333         * modules/erf-tests: New file.
27334         * tests/test-erf.c: New file.
27335
27336         Tests for module 'cosh'.
27337         * modules/cosh-tests: New file.
27338         * tests/test-cosh.c: New file.
27339
27340         Tests for module 'cos'.
27341         * modules/cos-tests: New file.
27342         * tests/test-cos.c: New file.
27343
27344         Tests for module 'copysign'.
27345         * modules/copysign-tests: New file.
27346         * tests/test-copysign.c: New file.
27347
27348         Tests for module 'cbrt'.
27349         * modules/cbrt-tests: New file.
27350         * tests/test-cbrt.c: New file.
27351
27352         Tests for module 'atan2'.
27353         * modules/atan2-tests: New file.
27354         * tests/test-atan2.c: New file.
27355
27356         Tests for module 'atan'.
27357         * modules/atan-tests: New file.
27358         * tests/test-atan.c: New file.
27359
27360         Tests for module 'asin'.
27361         * modules/asin-tests: New file.
27362         * tests/test-asin.c: New file.
27363
27364         Tests for module 'acos'.
27365         * modules/acos-tests: New file.
27366         * tests/test-acos.c: New file.
27367
27368 2010-01-24  Bruno Haible  <bruno@clisp.org>
27369
27370         Fix tests for common <math.h> functions.
27371         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27372         code snippet that references the function pointer, rather than merely
27373         calling the function. Substitute the FUNC_LIBM variable.
27374         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27375         * modules/acos (configure.ac): Likewise.
27376         * modules/asin (configure.ac): Likewise.
27377         * modules/atan (configure.ac): Likewise.
27378         * modules/atan2 (configure.ac): Likewise.
27379         * modules/cbrt (configure.ac): Likewise.
27380         * modules/copysign (configure.ac): Likewise.
27381         * modules/cos (configure.ac): Likewise.
27382         * modules/cosh (configure.ac): Likewise.
27383         * modules/erf (configure.ac): Likewise.
27384         * modules/erfc (configure.ac): Likewise.
27385         * modules/exp (configure.ac): Likewise.
27386         * modules/fabs (configure.ac): Likewise.
27387         * modules/fmod (configure.ac): Likewise.
27388         * modules/hypot (configure.ac): Likewise.
27389         * modules/j0 (configure.ac): Likewise.
27390         * modules/j1 (configure.ac): Likewise.
27391         * modules/jn (configure.ac): Likewise.
27392         * modules/ldexp (configure.ac): Likewise.
27393         * modules/lgamma (configure.ac): Likewise.
27394         * modules/log (configure.ac): Likewise.
27395         * modules/log10 (configure.ac): Likewise.
27396         * modules/log1p (configure.ac): Likewise.
27397         * modules/logb (configure.ac): Likewise.
27398         * modules/modf (configure.ac): Likewise.
27399         * modules/nextafter (configure.ac): Likewise.
27400         * modules/pow (configure.ac): Likewise.
27401         * modules/remainder (configure.ac): Likewise.
27402         * modules/rint (configure.ac): Likewise.
27403         * modules/sin (configure.ac): Likewise.
27404         * modules/sinh (configure.ac): Likewise.
27405         * modules/tan (configure.ac): Likewise.
27406         * modules/tanh (configure.ac): Likewise.
27407         * modules/y0 (configure.ac): Likewise.
27408         * modules/y1 (configure.ac): Likewise.
27409         * modules/yn (configure.ac): Likewise.
27410
27411 2010-01-24  Bruno Haible  <bruno@clisp.org>
27412
27413         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27414         * tests/test-acosl.c (x): New variable.
27415         (main): Store argument in x and fetch it from x.
27416         * tests/test-asinl.c (x): New variable.
27417         (main): Store argument in x and fetch it from x.
27418         * tests/test-atanl.c (x): New variable.
27419         (main): Store argument in x and fetch it from x.
27420         * tests/test-cosl.c (x): New variable.
27421         (main): Store argument in x and fetch it from x.
27422         * tests/test-expl.c (x): New variable.
27423         (main): Store argument in x and fetch it from x.
27424         * tests/test-logl.c (x): New variable.
27425         (main): Store argument in x and fetch it from x.
27426         * tests/test-sinl.c (x): New variable.
27427         (main): Store argument in x and fetch it from x.
27428         * tests/test-sqrtl.c (x): New variable.
27429         (main): Store argument in x and fetch it from x.
27430         * tests/test-tanl.c (x): New variable.
27431         (main): Store argument in x and fetch it from x.
27432
27433 2010-01-24  Bruno Haible  <bruno@clisp.org>
27434
27435         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27436         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27437         assignments to the initial TESTS_ENVIRONMENT.
27438         * doc/gnulib.texi (Unit test modules): Document it.
27439         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27440         TESTS_ENVIRONMENT.
27441         * modules/btowc-tests (Makefile.am): Likewise.
27442         * modules/c-stack-tests (Makefile.am): Likewise.
27443         * modules/c-strcase-tests (Makefile.am): Likewise.
27444         * modules/copy-file-tests (Makefile.am): Likewise.
27445         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27446         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27447         * modules/mbrtowc-tests (Makefile.am): Likewise.
27448         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27449         * modules/mbscasestr-tests (Makefile.am): Likewise.
27450         * modules/mbschr-tests (Makefile.am): Likewise.
27451         * modules/mbscspn-tests (Makefile.am): Likewise.
27452         * modules/mbsinit-tests (Makefile.am): Likewise.
27453         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27454         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27455         * modules/mbspbrk-tests (Makefile.am): Likewise.
27456         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27457         * modules/mbsrchr-tests (Makefile.am): Likewise.
27458         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27459         * modules/mbsspn-tests (Makefile.am): Likewise.
27460         * modules/mbsstr-tests (Makefile.am): Likewise.
27461         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27462         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27463         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27464         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27465         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27466         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27467         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27468         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27469         * modules/wcrtomb-tests (Makefile.am): Likewise.
27470         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27471         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27472         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27473         assignments from TESTS_ENVIRONMENT.
27474         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27475         augmentation.
27476         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27477         * modules/atexit-tests (Makefile.am): Likewise.
27478         * modules/binary-io-tests (Makefile.am): Likewise.
27479         * modules/closein-tests (Makefile.am): Likewise.
27480         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27481         * modules/exclude-tests (Makefile.am): Likewise.
27482         * modules/fflush-tests (Makefile.am): Likewise.
27483         * modules/fpending-tests (Makefile.am): Likewise.
27484         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27485         * modules/freadahead-tests (Makefile.am): Likewise.
27486         * modules/freadptr-tests (Makefile.am): Likewise.
27487         * modules/freadseek-tests (Makefile.am): Likewise.
27488         * modules/fseek-tests (Makefile.am): Likewise.
27489         * modules/fseeko-tests (Makefile.am): Likewise.
27490         * modules/ftell-tests (Makefile.am): Likewise.
27491         * modules/ftello-tests (Makefile.am): Likewise.
27492         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27493         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27494         * modules/lseek-tests (Makefile.am): Likewise.
27495         * modules/parse-duration-tests (Makefile.am): Likewise.
27496         * modules/perror-tests (Makefile.am): Likewise.
27497         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27498         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27499         * modules/pipe-tests (Makefile.am): Likewise.
27500         * modules/pread-tests (Makefile.am): Likewise.
27501         * modules/printf-posix-tests (Makefile.am): Likewise.
27502         * modules/select-tests (Makefile.am): Likewise.
27503         * modules/sigpipe-tests (Makefile.am): Likewise.
27504         * modules/tsearch-tests (Makefile.am): Likewise.
27505         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27506         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27507         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27508         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27509         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27510         * modules/version-etc-tests (Makefile.am): Likewise.
27511         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27512         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27513         * modules/xalloc-die-tests (Makefile.am): Likewise.
27514         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27515         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27516         * modules/xstrtol-tests (Makefile.am): Likewise.
27517         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27518         * modules/yesno-tests (Makefile.am): Likewise.
27519         Suggested by Jim Meyering.
27520
27521 2010-01-24  Bruno Haible  <bruno@clisp.org>
27522
27523         More documentation.
27524         * doc/gnulib.texi (Writing modules): New chapter.
27525         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27526         the new chapter.
27527
27528 2010-01-24  Jim Meyering  <meyering@redhat.com>
27529
27530         maint.mk: do not prepend "./" after filtering
27531         * top/maint.mk (_prepend_srcdir_prefix): New variable
27532         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27533         "./" when $(srcdir) is ".".
27534
27535         define STREQ(a,b) consistently, removing useless parentheses
27536         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27537         since the only risk is that "a" or "b" contains an unparenthesized
27538         comma, but if either did that, STREQ would have 3 or more arguments.
27539         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27540         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27541         * lib/hash-triple.c (STREQ): Likewise.
27542         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27543         * lib/getugroups.c (STREQ): Likewise.
27544
27545 2010-01-23  Jim Meyering  <meyering@redhat.com>
27546
27547         maint.mk: fix syntax-check in a non-srcdir build directory
27548         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27549         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27550
27551 2010-01-22  Jim Meyering  <meyering@redhat.com>
27552
27553         userspec: add unit tests
27554         * tests/test-userspec.c: New file.
27555         * modules/userspec-tests: Likewise.
27556
27557 2010-01-21  Jim Meyering  <meyering@redhat.com>
27558
27559         maint.mk: handle source file names containing "." robustly
27560         * top/maint.mk (_dot_escaped_srcdir): Define.
27561         (VC_LIST): Use it in LHS of sed substitution.
27562
27563 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27564
27565         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27566         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27567         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27568         from a non-srcdir build.
27569
27570 2010-01-20  Eric Blake  <ebb9@byu.net>
27571
27572         warn-on-use: use instead of link-warning
27573         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27574         * modules/unistd (Depends-on, Makefile.am): Likewise.
27575         * modules/arpa_inet (Depends-on): Replace link-warning with
27576         warn-on-use.
27577         (Makefile.am): Update rules accordingly.
27578         * modules/ctype (Depends-on, Makefile.am): Likewise.
27579         * modules/dirent (Depends-on, Makefile.am): Likewise.
27580         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27581         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27582         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27583         * modules/locale (Depends-on, Makefile.am): Likewise.
27584         * modules/math (Depends-on, Makefile.am): Likewise.
27585         * modules/search (Depends-on, Makefile.am): Likewise.
27586         * modules/signal (Depends-on, Makefile.am): Likewise.
27587         * modules/spawn (Depends-on, Makefile.am): Likewise.
27588         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27589         * modules/string (Depends-on, Makefile.am): Likewise.
27590         * modules/strings (Depends-on, Makefile.am): Likewise.
27591         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27592         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27593         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27594         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27595         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27596         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27597         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27598         * modules/wchar (Depends-on, Makefile.am): Likewise.
27599         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27600         should be poisoned.
27601         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27602         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27603         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27604         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27605         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27606         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27607         * m4/math_h.m4 (gl_MATH_H): Likewise.
27608         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27609         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27610         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27611         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27612         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27613         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27614         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27615         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27616         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27617         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27618         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27620         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27621         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27622         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27623         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27624         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27625         GL_LINK_WARNING.
27626         * lib/ctype.in.h: Likewise.
27627         * lib/dirent.in.h: Likewise.
27628         * lib/fcntl.in.h: Likewise.
27629         * lib/inttypes.in.h: Likewise.
27630         * lib/langinfo.in.h: Likewise.
27631         * lib/locale.in.h: Likewise.
27632         * lib/math.in.h: Likewise.
27633         * lib/search.in.h: Likewise.
27634         * lib/signal.in.h: Likewise.
27635         * lib/spawn.in.h: Likewise.
27636         * lib/stdio.in.h: Likewise.
27637         * lib/stdlib.in.h: Likewise.
27638         * lib/string.in.h: Likewise.
27639         * lib/strings.in.h: Likewise.
27640         * lib/sys_file.in.h: Likewise.
27641         * lib/sys_ioctl.in.h: Likewise.
27642         * lib/sys_select.in.h: Likewise.
27643         * lib/sys_socket.in.h: Likewise.
27644         * lib/sys_stat.in.h: Likewise.
27645         * lib/sys_times.in.h: Likewise.
27646         * lib/sys_utsname.in.h: Likewise.
27647         * lib/unistd.in.h: Likewise.
27648         * lib/wchar.in.h: Likewise.
27649
27650 2010-01-20  Bruno Haible  <bruno@clisp.org>
27651
27652         Avoid duplicate -lm.
27653         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27654         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27655         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27656         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27657         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27658         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27659         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27660         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27661         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27662         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27663         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27664         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27665         Reported by Paolo Bonzini.
27666
27667 2010-01-19  Bruno Haible  <bruno@clisp.org>
27668
27669         langinfo, nl_langinfo: Relicense under LGPLv2+.
27670         * modules/langinfo (License): Change to LGPLv2+.
27671         * modules/nl_langinfo (License): Likewise.
27672         Patch by David Lutterkort <lutter@redhat.com>.
27673
27674 2010-01-19  Bruno Haible  <bruno@clisp.org>
27675
27676         Avoid compilation error with cc on OSF/1 5.1.
27677         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27678         statement, not before.
27679         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27680
27681 2010-01-18  Bruno Haible  <bruno@clisp.org>
27682
27683         Avoid a link error due to the __printf__ symbol.
27684         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27685         and 2.6.x.
27686         (__format__, __printf__): Remove definitions.
27687         * lib/argp-fmtstream.h: Likewise.
27688         * lib/argp.h: Likewise.
27689         * lib/error.h: Likewise.
27690         * lib/vasnprintf.h: Likewise.
27691         * lib/xprintf.h: Likewise.
27692         * lib/xvasprintf.h: Likewise.
27693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27694
27695 2010-01-18  Bruno Haible  <bruno@clisp.org>
27696
27697         Tests for module 'tanl'.
27698         * modules/tanl-tests: New file.
27699         * tests/test-tanl.c: New file.
27700
27701         Tests for module 'sqrtl'.
27702         * modules/sqrtl-tests: New file.
27703         * tests/test-sqrtl.c: New file.
27704
27705         Tests for module 'sinl'.
27706         * modules/sinl-tests: New file.
27707         * tests/test-sinl.c: New file.
27708
27709         Tests for module 'logl'.
27710         * modules/logl-tests: New file.
27711         * tests/test-logl.c: New file.
27712
27713         Tests for module 'expl'.
27714         * modules/expl-tests: New file.
27715         * tests/test-expl.c: New file.
27716
27717         Tests for module 'cosl'.
27718         * modules/cosl-tests: New file.
27719         * tests/test-cosl.c: New file.
27720
27721         Tests for module 'atanl'.
27722         * modules/atanl-tests: New file.
27723         * tests/test-atanl.c: New file.
27724
27725         Tests for module 'asinl'.
27726         * modules/asinl-tests: New file.
27727         * tests/test-asinl.c: New file.
27728
27729         Tests for module 'acosl'.
27730         * modules/acosl-tests: New file.
27731         * tests/test-acosl.c: New file.
27732
27733         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27734         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27735         tanl): Use the standard gnulib idiom.
27736         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27737         * lib/sinl.c: Likewise.
27738         * lib/tanl.c: Don't include trigl.c.
27739         (kernel_tanl): Make static.
27740         * lib/sincosl.c: Include trigl.h first.
27741         * lib/trigl.c: Likewise.
27742         * m4/acosl.m4: New file.
27743         * m4/asinl.m4: New file.
27744         * m4/atanl.m4: New file.
27745         * m4/cosl.m4: New file.
27746         * m4/expl.m4: New file.
27747         * m4/logl.m4: New file.
27748         * m4/sinl.m4: New file.
27749         * m4/sqrtl.m4: New file.
27750         * m4/tanl.m4: New file.
27751         * m4/mathl.m4: Remove file.
27752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27753         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27754         Don't initialize GNULIB_MATHL.
27755         * modules/acosl: New file.
27756         * modules/asinl: New file.
27757         * modules/atanl: New file.
27758         * modules/cosl: New file.
27759         * modules/expl: New file.
27760         * modules/logl: New file.
27761         * modules/sinl: New file.
27762         * modules/sqrtl: New file.
27763         * modules/tanl: New file.
27764         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27765         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27766         substitute GNULIB_MATHL.
27767         * modules/mathl: Rewritten.
27768         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27769         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27770         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27771         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27772         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27773         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27774         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27775         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27776         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27777
27778 2010-01-18  Bruno Haible  <bruno@clisp.org>
27779
27780         sqrt: Make gl_FUNC_SQRT requirable.
27781         * m4/sqrt.m4: New file.
27782         * modules/sqrt (Files): Add it.
27783         (configure.ac): Invoke gl_FUNC_SQRT.
27784
27785 2010-01-18  Bruno Haible  <bruno@clisp.org>
27786
27787         New modules for common <math.h> functions.
27788         * m4/mathfunc.m4: New file.
27789         * modules/acos: New file.
27790         * modules/asin: New file.
27791         * modules/atan: New file.
27792         * modules/atan2: New file.
27793         * modules/cbrt: New file.
27794         * modules/copysign: New file.
27795         * modules/cos: New file.
27796         * modules/cosh: New file.
27797         * modules/erf: New file.
27798         * modules/erfc: New file.
27799         * modules/exp: New file.
27800         * modules/fabs: New file.
27801         * modules/fmod: New file.
27802         * modules/hypot: New file.
27803         * modules/j0: New file.
27804         * modules/j1: New file.
27805         * modules/jn: New file.
27806         * modules/ldexp: New file.
27807         * modules/lgamma: New file.
27808         * modules/log: New file.
27809         * modules/log10: New file.
27810         * modules/log1p: New file.
27811         * modules/logb: New file.
27812         * modules/modf: New file.
27813         * modules/nextafter: New file.
27814         * modules/pow: New file.
27815         * modules/remainder: New file.
27816         * modules/rint: New file.
27817         * modules/sin: New file.
27818         * modules/sinh: New file.
27819         * modules/sqrt: New file.
27820         * modules/tan: New file.
27821         * modules/tanh: New file.
27822         * modules/y0: New file.
27823         * modules/y1: New file.
27824         * modules/yn: New file.
27825         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27826         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27827         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27828         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27829         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27830         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27831         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27832         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27833         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27834         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27835         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27836         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27837         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27838         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27839         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27840         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27841         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27842         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27843         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27844         * doc/posix-functions/log.texi: Mention the 'log' module.
27845         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27846         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27847         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27848         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27849         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27850         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27851         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27852         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27853         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27854         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27855         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27856         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27857         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27858         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27859         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27860         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27861
27862 2010-01-18  Jim Meyering  <meyering@redhat.com>
27863
27864         ignore-value: relax license to LGPLv2+
27865         * modules/ignore-value (License): Relax to LGPLv2+.
27866
27867         getdate: don't leak when TZ contains two or more '"'s
27868         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27869         double quote in TZ after the first one.
27870
27871         readtokens: do not leak internal token_lengths buffer
27872         * lib/readtokens.c (readtokens): Free the local, lengths,
27873         when the supplied "token_lengths" parameter is NULL.
27874
27875 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27876
27877         Fix a couple of missing LIBTHREAD link failures on AIX.
27878         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27879         $(LIBTHREAD).
27880         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27881
27882         Link test-poll against INET_PTON_LIB.
27883         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27884         for inet_pton on Solaris 10.
27885
27886 2010-01-17  Bruno Haible  <bruno@clisp.org>
27887
27888         unistdio/*-sprintf: Fix typo in module description.
27889         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27890         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27891         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27892         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27893         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27894         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27895         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27896         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27897
27898 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27899
27900         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27901         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27902         variables in shell case patterns, for AIX and HP-UX ksh.
27903
27904         Split large sed scripts, for HP-UX sed.
27905         * modules/stdio: Split sed scripts around 50 sed commands,
27906         to avoid HP-UX limit of 99 commands, in the near future.
27907         * modules/string: Likewise.
27908         * modules/unistd: Likewise.
27909
27910         gnulib-tool: avoid writing in the current directory.
27911         * gnulib-tool (func_emit_lib_Makefile_am)
27912         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27913         not in the current directory, so concurrent gnulib-tool
27914         instances do not interfere.
27915
27916 2010-01-16  Jim Meyering  <meyering@redhat.com>
27917
27918         doc: update users.txt
27919         * users.txt: Add grep.
27920         (diffutils, gzip): Update URLs.
27921
27922 2010-01-12  Bruno Haible  <bruno@clisp.org>
27923
27924         posix_spawn: Avoid test failure on Cygwin.
27925         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27926         characters.
27927         Reported by Simon Josefsson.
27928
27929 2010-01-12  Bruno Haible  <bruno@clisp.org>
27930
27931         * tests/test-cond.c (main): When skipping the test, show the reason.
27932
27933 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27934
27935         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27936
27937 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27938
27939         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27940         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27941
27942 2010-01-12  Eric Blake  <ebb9@byu.net>
27943
27944         build: guarantee AS_VAR_IF
27945         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27946         (gl_AS_VAR_IF): Move...
27947         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27948         Reported by Simon Josefsson.
27949
27950 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27951
27952         * lib/stdio.in.h: Fix typo.
27953
27954 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27955
27956         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27957         libgpg-error.
27958
27959 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27960
27961         * tests/test-xalloc-die.sh: Use $EXEEXT.
27962
27963 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27964             Bruno Haible  <bruno@clisp.org>
27965
27966         getlogin, getlogin_r: Avoid test failure.
27967         * tests/test-getlogin.c: Include <stdio.h>.
27968         (main): Skip the test when the function fails because stdin is not a
27969         tty.
27970         * tests/test-getlogin_r.c: Include <stdio.h>.
27971         (main): Skip the test when the function fails because stdin is not a
27972         tty.
27973
27974 2010-01-11  Eric Blake  <ebb9@byu.net>
27975
27976         tests: avoid more large file warnings
27977         * tests/test-fflush.c: Avoid warning about ftell use.
27978         * tests/test-fseek.c: Avoid warning about fseek use.
27979
27980 2010-01-10  Bruno Haible  <bruno@clisp.org>
27981
27982         nproc: Work better on Linux when /proc and /sys are not mounted.
27983         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27984         as lower bound when, on glibc/Linux systems,
27985         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27986         Suggested by Pádraig Brady <P@draigbrady.com>.
27987         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27988
27989         nproc: Refactor.
27990         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27991         extracted from num_processors.
27992         (num_processors): Call it.
27993
27994 2010-01-11  Jim Meyering  <meyering@redhat.com>
27995
27996         utimecmp: avoid new warning from upcoming gcc-4.5.0
27997         * lib/utimecmp.c (BILLION): Define using #define rather than an
27998         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27999
28000 2010-01-11  Eric Blake  <ebb9@byu.net>
28001
28002         math: add portability warnings for classification macros
28003         * modules/math (Depends-on): Add warn-on-use.
28004         (Makefile.am): Provide new substitutions.
28005         * m4/math_h.m4 (gl_MATH_H): Require inline.
28006         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28007         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28008         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28009         implement warnings.
28010
28011         unistd: warn on use of environ without module
28012         * modules/unistd (Depends-on): Add warn-on-use.
28013         (Makefile.am): Provide new substitutions.
28014         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28015         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28016
28017         stdio: warn on suspicious uses
28018         * modules/stdio (Depends-on): Add warn-on-use.
28019         (Makefile.am): Provide new substitutions.
28020         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28021         fseeko.
28022         * lib/stdio.in.h (gets): Always warn on use.
28023         (fseek, ftell): Adjust when warnings are issued, and honor
28024         _GL_NO_LARGE_FILES as a way to silence the warning.
28025         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28026         any warning about large file offsets.
28027         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28028         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28029         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28030         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28031         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28032         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28033         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28034         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28035
28036         warn-on-use: new module
28037         * modules/warn-on-use: New file.
28038         * build-aux/warn-on-use.h: Likewise.
28039         * m4/warn-on-use.m4: Likewise.
28040         * MODULES.html.sh (Support for building): Mention it.
28041
28042 2010-01-10  Bruno Haible  <bruno@clisp.org>
28043
28044         Tests for module 'unistr/u32-strdup'.
28045         * modules/unistr/u32-strdup-tests: New file.
28046         * tests/unistr/test-u32-strdup.c: New file.
28047
28048         Tests for module 'unistr/u16-strdup'.
28049         * modules/unistr/u16-strdup-tests: New file.
28050         * tests/unistr/test-u16-strdup.c: New file.
28051
28052         Tests for module 'unistr/u8-strdup'.
28053         * modules/unistr/u8-strdup-tests: New file.
28054         * tests/unistr/test-u8-strdup.c: New file.
28055         * tests/unistr/test-strdup.h: New file.
28056
28057         Tests for module 'unistr/u32-strncmp'.
28058         * modules/unistr/u32-strncmp-tests: New file.
28059         * tests/unistr/test-u32-strncmp.c: New file.
28060
28061         Tests for module 'unistr/u16-strncmp'.
28062         * modules/unistr/u16-strncmp-tests: New file.
28063         * tests/unistr/test-u16-strncmp.c: New file.
28064
28065         Tests for module 'unistr/u8-strncmp'.
28066         * modules/unistr/u8-strncmp-tests: New file.
28067         * tests/unistr/test-u8-strncmp.c: New file.
28068         * tests/unistr/test-strncmp.h: New file.
28069
28070         Tests for module 'unistr/u32-strcoll'.
28071         * modules/unistr/u32-strcoll-tests: New file.
28072         * tests/unistr/test-u32-strcoll.c: New file.
28073
28074         Tests for module 'unistr/u16-strcoll'.
28075         * modules/unistr/u16-strcoll-tests: New file.
28076         * tests/unistr/test-u16-strcoll.c: New file.
28077
28078         Tests for module 'unistr/u8-strcoll'.
28079         * modules/unistr/u8-strcoll-tests: New file.
28080         * tests/unistr/test-u8-strcoll.c: New file.
28081
28082         Tests for module 'unistr/u32-strcmp'.
28083         * modules/unistr/u32-strcmp-tests: New file.
28084         * tests/unistr/test-u32-strcmp.c: New file.
28085         * tests/unistr/test-u32-strcmp.h: New file.
28086
28087         Tests for module 'unistr/u16-strcmp'.
28088         * modules/unistr/u16-strcmp-tests: New file.
28089         * tests/unistr/test-u16-strcmp.c: New file.
28090         * tests/unistr/test-u16-strcmp.h: New file.
28091
28092         Tests for module 'unistr/u8-strcmp'.
28093         * modules/unistr/u8-strcmp-tests: New file.
28094         * tests/unistr/test-u8-strcmp.c: New file.
28095         * tests/unistr/test-u8-strcmp.h: New file.
28096         * tests/unistr/test-strcmp.h: New file.
28097
28098         Tests for module 'unistr/u32-strncat'.
28099         * modules/unistr/u32-strncat-tests: New file.
28100         * tests/unistr/test-u32-strncat.c: New file.
28101
28102         Tests for module 'unistr/u16-strncat'.
28103         * modules/unistr/u16-strncat-tests: New file.
28104         * tests/unistr/test-u16-strncat.c: New file.
28105
28106         Tests for module 'unistr/u8-strncat'.
28107         * modules/unistr/u8-strncat-tests: New file.
28108         * tests/unistr/test-u8-strncat.c: New file.
28109         * tests/unistr/test-strncat.h: New file.
28110
28111         Tests for module 'unistr/u32-strcat'.
28112         * modules/unistr/u32-strcat-tests: New file.
28113         * tests/unistr/test-u32-strcat.c: New file.
28114
28115         Tests for module 'unistr/u16-strcat'.
28116         * modules/unistr/u16-strcat-tests: New file.
28117         * tests/unistr/test-u16-strcat.c: New file.
28118
28119         Tests for module 'unistr/u8-strcat'.
28120         * modules/unistr/u8-strcat-tests: New file.
28121         * tests/unistr/test-u8-strcat.c: New file.
28122         * tests/unistr/test-strcat.h: New file.
28123
28124         Tests for module 'unistr/u32-stpncpy'.
28125         * modules/unistr/u32-stpncpy-tests: New file.
28126         * tests/unistr/test-u32-stpncpy.c: New file.
28127
28128         Tests for module 'unistr/u16-stpncpy'.
28129         * modules/unistr/u16-stpncpy-tests: New file.
28130         * tests/unistr/test-u16-stpncpy.c: New file.
28131
28132         Tests for module 'unistr/u8-stpncpy'.
28133         * modules/unistr/u8-stpncpy-tests: New file.
28134         * tests/unistr/test-u8-stpncpy.c: New file.
28135         * tests/unistr/test-stpncpy.h: New file.
28136
28137         Tests for module 'unistr/u32-strncpy'.
28138         * modules/unistr/u32-strncpy-tests: New file.
28139         * tests/unistr/test-u32-strncpy.c: New file.
28140
28141         Tests for module 'unistr/u16-strncpy'.
28142         * modules/unistr/u16-strncpy-tests: New file.
28143         * tests/unistr/test-u16-strncpy.c: New file.
28144
28145         Tests for module 'unistr/u8-strncpy'.
28146         * modules/unistr/u8-strncpy-tests: New file.
28147         * tests/unistr/test-u8-strncpy.c: New file.
28148         * tests/unistr/test-strncpy.h: New file.
28149
28150         Tests for module 'unistr/u32-stpcpy'.
28151         * modules/unistr/u32-stpcpy-tests: New file.
28152         * tests/unistr/test-u32-stpcpy.c: New file.
28153
28154         Tests for module 'unistr/u16-stpcpy'.
28155         * modules/unistr/u16-stpcpy-tests: New file.
28156         * tests/unistr/test-u16-stpcpy.c: New file.
28157
28158         Tests for module 'unistr/u8-stpcpy'.
28159         * modules/unistr/u8-stpcpy-tests: New file.
28160         * tests/unistr/test-u8-stpcpy.c: New file.
28161         * tests/unistr/test-stpcpy.h: New file.
28162
28163         Tests for module 'unistr/u32-strcpy'.
28164         * modules/unistr/u32-strcpy-tests: New file.
28165         * tests/unistr/test-u32-strcpy.c: New file.
28166
28167         Tests for module 'unistr/u16-strcpy'.
28168         * modules/unistr/u16-strcpy-tests: New file.
28169         * tests/unistr/test-u16-strcpy.c: New file.
28170
28171         Tests for module 'unistr/u8-strcpy'.
28172         * modules/unistr/u8-strcpy-tests: New file.
28173         * tests/unistr/test-u8-strcpy.c: New file.
28174         * tests/unistr/test-strcpy.h: New file.
28175
28176         Tests for module 'unistr/u32-strnlen'.
28177         * modules/unistr/u32-strnlen-tests: New file.
28178         * tests/unistr/test-u32-strnlen.c: New file.
28179
28180         Tests for module 'unistr/u16-strnlen'.
28181         * modules/unistr/u16-strnlen-tests: New file.
28182         * tests/unistr/test-u16-strnlen.c: New file.
28183
28184         Tests for module 'unistr/u8-strnlen'.
28185         * modules/unistr/u8-strnlen-tests: New file.
28186         * tests/unistr/test-u8-strnlen.c: New file.
28187         * tests/unistr/test-strnlen.h: New file.
28188
28189         Tests for module 'unistr/u32-strlen'.
28190         * modules/unistr/u32-strlen-tests: New file.
28191         * tests/unistr/test-u32-strlen.c: New file.
28192
28193         Tests for module 'unistr/u16-strlen'.
28194         * modules/unistr/u16-strlen-tests: New file.
28195         * tests/unistr/test-u16-strlen.c: New file.
28196
28197         Tests for module 'unistr/u8-strlen'.
28198         * modules/unistr/u8-strlen-tests: New file.
28199         * tests/unistr/test-u8-strlen.c: New file.
28200
28201         Tests for module 'unistr/u32-prev'.
28202         * modules/unistr/u32-prev-tests: New file.
28203         * tests/unistr/test-u32-prev.c: New file.
28204
28205         Tests for module 'unistr/u16-prev'.
28206         * modules/unistr/u16-prev-tests: New file.
28207         * tests/unistr/test-u16-prev.c: New file.
28208
28209         Tests for module 'unistr/u8-prev'.
28210         * modules/unistr/u8-prev-tests: New file.
28211         * tests/unistr/test-u8-prev.c: New file.
28212
28213         Tests for module 'unistr/u32-next'.
28214         * modules/unistr/u32-next-tests: New file.
28215         * tests/unistr/test-u32-next.c: New file.
28216
28217         Tests for module 'unistr/u16-next'.
28218         * modules/unistr/u16-next-tests: New file.
28219         * tests/unistr/test-u16-next.c: New file.
28220
28221         Tests for module 'unistr/u8-next'.
28222         * modules/unistr/u8-next-tests: New file.
28223         * tests/unistr/test-u8-next.c: New file.
28224
28225         Tests for module 'unistr/u32-strmbtouc'.
28226         * modules/unistr/u32-strmbtouc-tests: New file.
28227         * tests/unistr/test-u32-strmbtouc.c: New file.
28228
28229         Tests for module 'unistr/u16-strmbtouc'.
28230         * modules/unistr/u16-strmbtouc-tests: New file.
28231         * tests/unistr/test-u16-strmbtouc.c: New file.
28232
28233         Tests for module 'unistr/u8-strmbtouc'.
28234         * modules/unistr/u8-strmbtouc-tests: New file.
28235         * tests/unistr/test-u8-strmbtouc.c: New file.
28236
28237         Tests for module 'unistr/u32-strmblen'.
28238         * modules/unistr/u32-strmblen-tests: New file.
28239         * tests/unistr/test-u32-strmblen.c: New file.
28240
28241         Tests for module 'unistr/u16-strmblen'.
28242         * modules/unistr/u16-strmblen-tests: New file.
28243         * tests/unistr/test-u16-strmblen.c: New file.
28244
28245         Tests for module 'unistr/u8-strmblen'.
28246         * modules/unistr/u8-strmblen-tests: New file.
28247         * tests/unistr/test-u8-strmblen.c: New file.
28248
28249         Tests for module 'unistr/u32-cpy-alloc'.
28250         * modules/unistr/u32-cpy-alloc-tests: New file.
28251         * tests/unistr/test-u32-cpy-alloc.c: New file.
28252
28253         Tests for module 'unistr/u16-cpy-alloc'.
28254         * modules/unistr/u16-cpy-alloc-tests: New file.
28255         * tests/unistr/test-u16-cpy-alloc.c: New file.
28256
28257         Tests for module 'unistr/u8-cpy-alloc'.
28258         * modules/unistr/u8-cpy-alloc-tests: New file.
28259         * tests/unistr/test-u8-cpy-alloc.c: New file.
28260         * tests/unistr/test-cpy-alloc.h: New file.
28261
28262         Tests for module 'unistr/u32-mbsnlen'.
28263         * modules/unistr/u32-mbsnlen-tests: New file.
28264         * tests/unistr/test-u32-mbsnlen.c: New file.
28265
28266         Tests for module 'unistr/u16-mbsnlen'.
28267         * modules/unistr/u16-mbsnlen-tests: New file.
28268         * tests/unistr/test-u16-mbsnlen.c: New file.
28269
28270         Tests for module 'unistr/u8-mbsnlen'.
28271         * modules/unistr/u8-mbsnlen-tests: New file.
28272         * tests/unistr/test-u8-mbsnlen.c: New file.
28273
28274         Tests for module 'unistr/u32-chr'.
28275         * modules/unistr/u32-chr-tests: New file.
28276         * tests/unistr/test-u32-chr.c: New file.
28277
28278         Tests for module 'unistr/u16-chr'.
28279         * modules/unistr/u16-chr-tests: New file.
28280         * tests/unistr/test-u16-chr.c: New file.
28281
28282         Tests for module 'unistr/u8-chr'.
28283         * modules/unistr/u8-chr-tests: New file.
28284         * tests/unistr/test-u8-chr.c: New file.
28285         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28286
28287         Tests for module 'unistr/u32-cmp2'.
28288         * modules/unistr/u32-cmp2-tests: New file.
28289         * tests/unistr/test-u32-cmp2.c: New file.
28290
28291         Tests for module 'unistr/u16-cmp2'.
28292         * modules/unistr/u16-cmp2-tests: New file.
28293         * tests/unistr/test-u16-cmp2.c: New file.
28294
28295         Tests for module 'unistr/u8-cmp2'.
28296         * modules/unistr/u8-cmp2-tests: New file.
28297         * tests/unistr/test-u8-cmp2.c: New file.
28298         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28299
28300         Tests for module 'unistr/u32-cmp'.
28301         * modules/unistr/u32-cmp-tests: New file.
28302         * tests/unistr/test-u32-cmp.c: New file.
28303
28304         Tests for module 'unistr/u16-cmp'.
28305         * modules/unistr/u16-cmp-tests: New file.
28306         * tests/unistr/test-u16-cmp.c: New file.
28307
28308         Tests for module 'unistr/u8-cmp'.
28309         * modules/unistr/u8-cmp-tests: New file.
28310         * tests/unistr/test-u8-cmp.c: New file.
28311         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28312
28313         Tests for module 'unistr/u32-set'.
28314         * modules/unistr/u32-set-tests: New file.
28315         * tests/unistr/test-u32-set.c: New file.
28316
28317         Tests for module 'unistr/u16-set'.
28318         * modules/unistr/u16-set-tests: New file.
28319         * tests/unistr/test-u16-set.c: New file.
28320
28321         Tests for module 'unistr/u8-set'.
28322         * modules/unistr/u8-set-tests: New file.
28323         * tests/unistr/test-u8-set.c: New file.
28324         * tests/unistr/test-set.h: New file.
28325
28326         Tests for module 'unistr/u32-move'.
28327         * modules/unistr/u32-move-tests: New file.
28328         * tests/unistr/test-u32-move.c: New file.
28329
28330         Tests for module 'unistr/u16-move'.
28331         * modules/unistr/u16-move-tests: New file.
28332         * tests/unistr/test-u16-move.c: New file.
28333
28334         Tests for module 'unistr/u8-move'.
28335         * modules/unistr/u8-move-tests: New file.
28336         * tests/unistr/test-u8-move.c: New file.
28337         * tests/unistr/test-move.h: New file.
28338
28339         Tests for module 'unistr/u32-cpy'.
28340         * modules/unistr/u32-cpy-tests: New file.
28341         * tests/unistr/test-u32-cpy.c: New file.
28342
28343         Tests for module 'unistr/u16-cpy'.
28344         * modules/unistr/u16-cpy-tests: New file.
28345         * tests/unistr/test-u16-cpy.c: New file.
28346
28347         Tests for module 'unistr/u8-cpy'.
28348         * modules/unistr/u8-cpy-tests: New file.
28349         * tests/unistr/test-u8-cpy.c: New file.
28350         * tests/unistr/test-cpy.h: New file.
28351
28352 2010-01-09  Bruno Haible  <bruno@clisp.org>
28353
28354         Tests for module 'unistr/u32-uctomb'.
28355         * modules/unistr/u32-uctomb-tests: New file.
28356         * tests/unistr/test-u32-uctomb.c: New file.
28357
28358         Tests for module 'unistr/u16-uctomb'.
28359         * modules/unistr/u16-uctomb-tests: New file.
28360         * tests/unistr/test-u16-uctomb.c: New file.
28361
28362         Tests for module 'unistr/u8-uctomb'.
28363         * modules/unistr/u8-uctomb-tests: New file.
28364         * tests/unistr/test-u8-uctomb.c: New file.
28365
28366         Tests for module 'unistr/u32-mbtoucr'.
28367         * modules/unistr/u32-mbtoucr-tests: New file.
28368         * tests/unistr/test-u32-mbtoucr.c: New file.
28369
28370         Tests for module 'unistr/u16-mbtoucr'.
28371         * modules/unistr/u16-mbtoucr-tests: New file.
28372         * tests/unistr/test-u16-mbtoucr.c: New file.
28373
28374         Tests for module 'unistr/u8-mbtoucr'.
28375         * modules/unistr/u8-mbtoucr-tests: New file.
28376         * tests/unistr/test-u8-mbtoucr.c: New file.
28377
28378         Tests for module 'unistr/u32-mbtouc'.
28379         * modules/unistr/u32-mbtouc-tests: New file.
28380         * tests/unistr/test-u32-mbtouc.c: New file.
28381
28382         Tests for module 'unistr/u16-mbtouc'.
28383         * modules/unistr/u16-mbtouc-tests: New file.
28384         * tests/unistr/test-u16-mbtouc.c: New file.
28385
28386         Tests for module 'unistr/u8-mbtouc'.
28387         * modules/unistr/u8-mbtouc-tests: New file.
28388         * tests/unistr/test-u8-mbtouc.c: New file.
28389
28390         Tests for module 'unistr/u32-mbtouc-unsafe'.
28391         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28392         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28393         * tests/unistr/test-u32-mbtouc.h: New file.
28394
28395         Tests for module 'unistr/u16-mbtouc-unsafe'.
28396         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28397         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28398         * tests/unistr/test-u16-mbtouc.h: New file.
28399
28400         Tests for module 'unistr/u8-mbtouc-unsafe'.
28401         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28402         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28403         * tests/unistr/test-u8-mbtouc.h: New file.
28404
28405         Tests for module 'unistr/u32-mblen'.
28406         * modules/unistr/u32-mblen-tests: New file.
28407         * tests/unistr/test-u32-mblen.c: New file.
28408
28409         Tests for module 'unistr/u16-mblen'.
28410         * modules/unistr/u16-mblen-tests: New file.
28411         * tests/unistr/test-u16-mblen.c: New file.
28412
28413         Tests for module 'unistr/u8-mblen'.
28414         * modules/unistr/u8-mblen-tests: New file.
28415         * tests/unistr/test-u8-mblen.c: New file.
28416
28417         Tests for module 'unistr/u32-to-u16'.
28418         * modules/unistr/u32-to-u16-tests: New file.
28419         * tests/unistr/test-u32-to-u16.c: New file.
28420
28421         Tests for module 'unistr/u32-to-u8'.
28422         * modules/unistr/u32-to-u8-tests: New file.
28423         * tests/unistr/test-u32-to-u8.c: New file.
28424
28425         Tests for module 'unistr/u16-to-u32'.
28426         * modules/unistr/u16-to-u32-tests: New file.
28427         * tests/unistr/test-u16-to-u32.c: New file.
28428
28429         Tests for module 'unistr/u16-to-u8'.
28430         * modules/unistr/u16-to-u8-tests: New file.
28431         * tests/unistr/test-u16-to-u8.c: New file.
28432
28433         Tests for module 'unistr/u8-to-u32'.
28434         * modules/unistr/u8-to-u32-tests: New file.
28435         * tests/unistr/test-u8-to-u32.c: New file.
28436
28437         Tests for module 'unistr/u8-to-u16'.
28438         * modules/unistr/u8-to-u16-tests: New file.
28439         * tests/unistr/test-u8-to-u16.c: New file.
28440
28441         Tests for module 'unistr/u32-check'.
28442         * modules/unistr/u32-check-tests: New file.
28443         * tests/unistr/test-u32-check.c: New file.
28444
28445         Tests for module 'unistr/u16-check'.
28446         * modules/unistr/u16-check-tests: New file.
28447         * tests/unistr/test-u16-check.c: New file.
28448
28449         Tests for module 'unistr/u8-check'.
28450         * modules/unistr/u8-check-tests: New file.
28451         * tests/unistr/test-u8-check.c: New file.
28452
28453         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28454         (category_equals): New function.
28455         (main): Add more tests.
28456         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28457
28458         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28459
28460 2010-01-10  Bruno Haible  <bruno@clisp.org>
28461
28462         unistr/u*-strcoll: Try harder to distinguish different strings.
28463         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28464         compare s1 and s2 to see if they are different.
28465
28466 2010-01-10  Bruno Haible  <bruno@clisp.org>
28467
28468         unistr/u*-stpncpy: Fix the return value.
28469         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28470         description of the return value consistent with stpncpy in glibc.
28471         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28472         written non-NUL unit.
28473
28474 2010-01-10  Bruno Haible  <bruno@clisp.org>
28475
28476         unistr/u*-next: Add missing dependencies.
28477         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28478         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28479         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28480
28481 2010-01-10  Bruno Haible  <bruno@clisp.org>
28482
28483         unistr/u8-mbsnlen: Fix return value for incomplete character.
28484         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28485         u8_mblen.
28486         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28487         Remove unistr/u8-mblen.
28488         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28489         u16_mblen.
28490         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28491         Remove unistr/u16-mblen.
28492
28493 2010-01-10  Bruno Haible  <bruno@clisp.org>
28494
28495         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28496         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28497         Reported by Brian Gough <bjg@gnu.org> and
28498         Chris Clayton <chris2553@googlemail.com> via
28499         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28500
28501 2010-01-09  Bruno Haible  <bruno@clisp.org>
28502
28503         unistr/u16-to-u32: Reject invalid input.
28504         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28505         u16_mbtouc.
28506         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28507         Remove unistr/u16-mbtouc.
28508
28509         unistr/u16-to-u8: Reject invalid input.
28510         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28511         u16_mbtouc.
28512         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28513         Remove unistr/u16-mbtouc.
28514
28515         unistr/u8-to-u32: Reject invalid input.
28516         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28517         u8_mbtouc.
28518         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28519         Remove unistr/u8-mbtouc.
28520
28521         unistr/u8-to-u16: Reject invalid input.
28522         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28523         u8_mbtouc.
28524         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28525         Remove unistr/u8-mbtouc.
28526
28527 2010-01-09  Bruno Haible  <bruno@clisp.org>
28528
28529         Tests for module 'getlogin'.
28530         * modules/getlogin-tests: New file.
28531         * tests/test-getlogin.c: New file.
28532
28533         New module 'getlogin'.
28534         * lib/unistd.in.h (getlogin): New declaration.
28535         * lib/getlogin.c: New file.
28536         * m4/getlogin.m4: New file.
28537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28538         HAVE_GETLOGIN.
28539         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28540         HAVE_GETLOGIN.
28541         * modules/getlogin: New file.
28542         * doc/posix-functions/getlogin.texi: Mention the new module.
28543         Reported by John W. Eaton <jwe@gnu.org>.
28544
28545 2010-01-09  Bruno Haible  <bruno@clisp.org>
28546
28547         getlogin_r: Support for native Windows.
28548         * lib/getlogin_r.c: Include <windows.h>
28549         (getlogin_r): Implement for native Windows.
28550         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28551         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28552         via John W. Eaton <jwe@gnu.org>.
28553
28554 2010-01-09  Bruno Haible  <bruno@clisp.org>
28555
28556         getlogin_r: Small fixes.
28557         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28558         succeeds.
28559         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28560         before testing whether getlogin_r is declared. No need to set
28561         HAVE_DECL_GETLOGIN_R to 1.
28562         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28563
28564 2010-01-09  Bruno Haible  <bruno@clisp.org>
28565
28566         * lib/unistd.in.h (getlogin_r): Add comment.
28567
28568 2010-01-09  Bruno Haible  <bruno@clisp.org>
28569
28570         Tests for module 'getlogin_r'.
28571         * modules/getlogin_r-tests: New file.
28572         * tests/test-getlogin_r.c: New file.
28573
28574 2010-01-09  Jim Meyering  <meyering@redhat.com>
28575
28576         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28577         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28578         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28579
28580 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28581
28582         * lib/dup2.c (rpl_dup2): Improve comment.
28583
28584 2010-01-08  Eric Blake  <ebb9@byu.net>
28585
28586         maint.mk: allow packages to add makefile @@ exceptions
28587         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28588         (sc_makefile_check): Rename...
28589         (sc_makefile_at_at_check): ...to this, and use hook.
28590
28591         dup2: work around mingw bug
28592         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28593         Reported by Simon Josefsson.
28594
28595 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28596
28597         glob: Fix C++ compilation.
28598         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28599         C++.
28600
28601 2010-01-07  Bruno Haible  <bruno@clisp.org>
28602
28603         Fix indentation of wctype.in.h, broken since 2007-01-06.
28604         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28605
28606 2010-01-07  Bruno Haible  <bruno@clisp.org>
28607
28608         mbslen: Avoid collision with system function.
28609         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28610         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28611         * m4/mbslen.m4: New file.
28612         * modules/mbslen (Files): Add it.
28613         (configure.ac): Invoke gl_MBSLEN.
28614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28615         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28616         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28617         via Ian Beckwith <ianb@erislabs.net>.
28618
28619 2010-01-07  Bruno Haible  <bruno@clisp.org>
28620
28621         dirent: Document the last fix.
28622         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28623
28624 2010-01-07  Bruno Haible  <bruno@clisp.org>
28625
28626         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28627         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28628         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28629         va_list are defined.
28630         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28631         Reported by Eric Blake.
28632
28633 2010-01-07  Bruno Haible  <bruno@clisp.org>
28634
28635         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28636         * modules/xlist (Depends-on): Add 'list',
28637         * modules/xoset (Depends-on): Add 'oset'.
28638         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28639
28640 2010-01-07  Bruno Haible  <bruno@clisp.org>
28641
28642         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28643         * doc/posix-functions/strncasecmp.texi: Likewise.
28644
28645 2010-01-07  Bruno Haible  <bruno@clisp.org>
28646
28647         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28648
28649 2010-01-07  John W. Eaton  <jwe@octave.org>
28650
28651         wctype: allow C++ use
28652         * lib/wctype.in.h: Add extern "C" block for C++.
28653
28654 2010-01-06  Eric Blake  <ebb9@byu.net>
28655
28656         maint.mk: detect incorrect GFDL usage
28657         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28658
28659 2010-01-06  Jim Meyering  <meyering@redhat.com>
28660         and Eric Blake  <ebb9@byu.net>
28661
28662         maint.mk: ignore multi-line copyright in NEWS
28663         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28664
28665 2010-01-06  Eric Blake  <ebb9@byu.net>
28666
28667         select: add missing dependency
28668         * modules/select-tests (Depends-on): Move sockets dependency...
28669         * modules/select (Depends-on): ...here.
28670         Reported by Ian Beckwith.
28671
28672         doc: regenerate INSTALL
28673         * doc/INSTALL: Reflect recent autoconf update.
28674         * doc/INSTALL.ISO: Likewise.
28675         * doc/INSTALL.UTF-8: Likewise.
28676
28677         pread: fix compilation on glibc
28678         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28679         Reported by Ralf Wildenhues.
28680
28681         dirent: fix test failure
28682         * lib/dirent.in.h (includes): Guarantee ino_t.
28683         Reported by Ralf Wildenhues.
28684
28685 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28686
28687         linkat, renameat: avoid bad free
28688         * lib/at-func2.c (at_func2): Fix typo.
28689         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28690
28691 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28692
28693         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28694         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28695         to avoid failure of symlink test later.
28696
28697 2010-01-06  Eric Blake  <ebb9@byu.net>
28698
28699         stdio, unistd: guarantee ssize_t
28700         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28701         2008 are exposed when needed.
28702         * lib/stdio.in.h (includes): Likewise.
28703         Reported by Ralf Wildenhues.
28704
28705 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28706
28707         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28708         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28709         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28710
28711 2010-01-06  Jim Meyering  <meyering@redhat.com>
28712
28713         readtokens: this module *does* require xalloc.h
28714         It uses only functions that were omitted by the old syntax-check rule.
28715         * lib/readtokens.c: Include "xalloc.h" once again.
28716         * modules/readtokens (Depends-on): Add xalloc.
28717         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28718
28719 2010-01-05  Eric Blake  <ebb9@byu.net>
28720
28721         maint: support 'make announcement' from a VPATH build
28722         * top/maint.mk (announcement): Look for correct NEWS file.
28723
28724 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28725
28726         utimens (fdutimens): ignore a negative FD, per contract
28727         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28728         when we have a valid file descriptor.  Otherwise, using a brand
28729         new glibc (with just-patched futimens that now fails with EBADF)
28730         would cause this function to fail with ENOSYS.
28731         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28732         See also http://bugzilla.redhat.com/552320.
28733
28734 2010-01-05  Eric Blake  <ebb9@byu.net>
28735
28736         strcase: document what it provides
28737         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28738         gnulib module.
28739         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28740         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28741
28742 2010-01-05  Jim Meyering  <meyering@redhat.com>
28743
28744         maint: remove useless inclusions of "xalloc.h"
28745         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28746         * lib/readtokens.c: Likewise.
28747         * lib/same.c: Likewise.
28748         * modules/getloadavg (Depends-on): Remove xalloc.
28749         * modules/readtokens: Likewise.
28750         * modules/same: Likewise.
28751
28752         maint.mk: include 4 more function names in alloca.h-checking regexp
28753         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28754         regexp.  Before, we would give a false-positive (saying alloca.h
28755         is included unnecessarily) when the only uses involved omitted symbols.
28756
28757         xalloc.h: use consistent formatting
28758         * lib/xalloc.h: Move declarations to start in the first column.
28759
28760 2010-01-05  Eric Blake  <ebb9@byu.net>
28761
28762         mkdir: avoid xalloc
28763         * lib/mkdir.c (includes): Drop unused header.
28764         Reported by John W. Eaton.
28765
28766 2010-01-04  Jim Meyering  <meyering@redhat.com>
28767
28768         nl_langinfo: avoid configure-time syntax error
28769         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28770         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28771         the empty string.  Don't let that provoke a shell syntax error.
28772
28773         regcomp, regexec, fnmatch: avoid array bounds read error
28774         * lib/regcomp.c (build_equiv_class): From glibc:
28775         Use only the low 24 bits of a findidx return value as an index
28776         into the weights array.  Patch by Ulrich Drepper:
28777         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28778         * lib/regexec.c (check_node_accept_bytes): Likewise.
28779         * lib/fnmatch_loop.c (FCT): Likewise.
28780
28781         regcomp: skip collseq lookup when there are no rules
28782         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28783         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28784
28785         regcomp: recognize ill-formed { } expressions
28786         * lib/regcomp.c (parse_dup_op): From glibc:
28787         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28788
28789         regcomp: fix typo in comment
28790         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28791         s/satisfy/satisfies/.
28792
28793         regcomp: sync from glibc: remove dead store
28794         * lib/regcomp.c (duplicate_node_closure): Remove useless
28795         search_duplicated_node call and dead store.
28796
28797         regcomp: sync from glibc; always use nl_langinfo
28798         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28799         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28800         * modules/regex (Depends-on): Add nl_langinfo.
28801
28802 2010-01-04  Eric Blake  <ebb9@byu.net>
28803
28804         fdopendir: fix configure test
28805         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28806
28807 2010-01-01  Bruno Haible  <bruno@clisp.org>
28808
28809         wchar: Remove unused configure check.
28810         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28811
28812 2010-01-01  Eric Blake  <ebb9@byu.net>
28813
28814         headers: make check of system header explicit
28815         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28816         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28817         ourselves.
28818         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28819         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28820         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28821         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28822         internals.
28823         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28824         missing.
28825         Suggested by Bruno Haible.
28826
28827 2010-01-01  Jim Meyering  <meyering@redhat.com>
28828
28829         ChangeLog: tweak to eliminate unnecessary copyright line
28830         * ChangeLog: Remove a copyright line that was mistakenly updated
28831         by today's update-copyright run.  Reported by Eric Blake.
28832
28833         test-update-copyright: don't let envvar setting cause test failure
28834         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28835
28836 2010-01-01  Bruno Haible  <bruno@clisp.org>
28837
28838         localename: Avoid gcc warning.
28839         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28840         function if it is not used.
28841
28842 2010-01-01  Jim Meyering  <meyering@redhat.com>
28843
28844         update nearly all FSF copyright year lists to include 2010
28845         Use the same procedure as for 2009, outlined in
28846         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28847
28848         version-etc: set COPYRIGHT_YEAR to 2010
28849         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28850
28851 2009-12-31  Eric Blake  <ebb9@byu.net>
28852
28853         doc: correct availability of cygwin 1.5.x getopt
28854         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28855         variables.
28856         * doc/posix-functions/opterr.texi (opterr): Likewise.
28857         * doc/posix-functions/optind.texi (optind): Likewise.
28858         * doc/posix-functions/optopt.texi (optopt): Likewise.
28859         * doc/posix-functions/tzname.texi (tzname): Likewise.
28860
28861         openat: update maintainer
28862         * modules/openat (Maintainer): Add myself.
28863
28864         utimens: avoid shadowing warning
28865         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28866         buffers into one, to avoid shadowing, as well as avoiding a
28867         redundant stat.
28868         Reported by Jim Meyering.
28869
28870         test-dup2: avoid compiler warning
28871         * tests/test-dup2.c (is_inheritable): Only define if used.
28872
28873 2010-01-01  Bruno Haible  <bruno@clisp.org>
28874
28875         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28876         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28877         defined, use wctomb instead of wcrtomb.
28878
28879 2010-01-01  Bruno Haible  <bruno@clisp.org>
28880
28881         iconv: Reject native Solaris iconv.
28882         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28883         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28884
28885 2009-12-31  Bruno Haible  <bruno@clisp.org>
28886
28887         * tests/test-signal.c (main): Remove test of 'SIG'.
28888
28889 2009-12-31  Bruno Haible  <bruno@clisp.org>
28890
28891         spawn: Fix incomplete fix.
28892         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28893         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28894         warnings for GNULIB_POSIXCHECK again.
28895         Reported by Eric Blake.
28896
28897 2009-12-31  Bruno Haible  <bruno@clisp.org>
28898
28899         Avoid namespace pollution on glibc systems.
28900         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28901         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28902         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28903         glibc systems.
28904
28905 2009-12-31  Bruno Haible  <bruno@clisp.org>
28906
28907         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28908         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28909         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28910         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28911         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28912         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28913         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28914
28915 2009-12-31  Bruno Haible  <bruno@clisp.org>
28916
28917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28918         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28919         afterwards.
28920
28921 2009-12-31  Bruno Haible  <bruno@clisp.org>
28922
28923         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28924         SYS_UTSNAME_H.
28925
28926 2009-12-31  Bruno Haible  <bruno@clisp.org>
28927
28928         spawn: Fix misapplied patch.
28929         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28930         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28931         warnings for GNULIB_POSIXCHECK.
28932
28933 2009-12-31  Bruno Haible  <bruno@clisp.org>
28934
28935         times: Update after sys_times changed.
28936         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28937         * modules/times (Files): Add it.
28938         (configure.ac): Invoke gl_FUNC_TIMES.
28939
28940 2009-12-31  Bruno Haible  <bruno@clisp.org>
28941
28942         Use AC_C_INLINE where necessary.
28943         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28944         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28945         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28946         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28947         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28948         * m4/mbiter.m4 (gl_MBITER): Likewise.
28949         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28950         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28951         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28952         * modules/u64 (configure.ac): Likewise.
28953
28954 2009-12-31  Bruno Haible  <bruno@clisp.org>
28955
28956         Use AC_C_INLINE instead of module 'inline' where possible.
28957         * modules/inline (Description): Clarify purpose.
28958         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28959         * modules/count-one-bits (Depends-on): Remove inline.
28960         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28961         * modules/openat (Depends-on): Remove inline.
28962         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28963         instead of depending on module 'inline'.
28964         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28965         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28966         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28967         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28968         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28969         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28970         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28971         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28972         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28973         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28974         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28975         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28976         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28977         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28978         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28979         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28980         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28981         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28982         Likewise.
28983         * modules/unictype/property-ascii-hex-digit (Depends-on,
28984         configure.ac): Likewise.
28985         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28986         configure.ac): Likewise.
28987         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28988         configure.ac): Likewise.
28989         * modules/unictype/property-bidi-block-separator (Depends-on,
28990         configure.ac): Likewise.
28991         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28992         configure.ac): Likewise.
28993         * modules/unictype/property-bidi-common-separator (Depends-on,
28994         configure.ac): Likewise.
28995         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28996         Likewise.
28997         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28998         configure.ac): Likewise.
28999         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29000         configure.ac): Likewise.
29001         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29002         configure.ac): Likewise.
29003         * modules/unictype/property-bidi-european-digit (Depends-on,
29004         configure.ac): Likewise.
29005         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29006         configure.ac): Likewise.
29007         * modules/unictype/property-bidi-left-to-right (Depends-on,
29008         configure.ac): Likewise.
29009         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29010         configure.ac): Likewise.
29011         * modules/unictype/property-bidi-other-neutral (Depends-on,
29012         configure.ac): Likewise.
29013         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29014         Likewise.
29015         * modules/unictype/property-bidi-segment-separator (Depends-on,
29016         configure.ac): Likewise.
29017         * modules/unictype/property-bidi-whitespace (Depends-on,
29018         configure.ac): Likewise.
29019         * modules/unictype/property-combining (Depends-on, configure.ac):
29020         Likewise.
29021         * modules/unictype/property-composite (Depends-on, configure.ac):
29022         Likewise.
29023         * modules/unictype/property-currency-symbol (Depends-on,
29024         configure.ac): Likewise.
29025         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29026         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29027         Likewise.
29028         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29029         configure.ac): Likewise.
29030         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29031         Likewise.
29032         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29033         Likewise.
29034         * modules/unictype/property-extender (Depends-on, configure.ac):
29035         Likewise.
29036         * modules/unictype/property-format-control (Depends-on, configure.ac):
29037         Likewise.
29038         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29039         Likewise.
29040         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29041         Likewise.
29042         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29043         Likewise.
29044         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29045         Likewise.
29046         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29047         Likewise.
29048         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29049         Likewise.
29050         * modules/unictype/property-id-start (Depends-on, configure.ac):
29051         Likewise.
29052         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29053         Likewise.
29054         * modules/unictype/property-ids-binary-operator (Depends-on,
29055         configure.ac): Likewise.
29056         * modules/unictype/property-ids-trinary-operator (Depends-on,
29057         configure.ac): Likewise.
29058         * modules/unictype/property-ignorable-control (Depends-on,
29059         configure.ac): Likewise.
29060         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29061         Likewise.
29062         * modules/unictype/property-join-control (Depends-on, configure.ac):
29063         Likewise.
29064         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29065         Likewise.
29066         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29067         Likewise.
29068         * modules/unictype/property-logical-order-exception (Depends-on,
29069         configure.ac): Likewise.
29070         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29071         Likewise.
29072         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29073         * modules/unictype/property-non-break (Depends-on, configure.ac):
29074         Likewise.
29075         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29076         Likewise.
29077         * modules/unictype/property-numeric (Depends-on, configure.ac):
29078         Likewise.
29079         * modules/unictype/property-other-alphabetic (Depends-on,
29080         configure.ac): Likewise.
29081         * modules/unictype/property-other-default-ignorable-code-point
29082         (Depends-on, configure.ac): Likewise.
29083         * modules/unictype/property-other-grapheme-extend (Depends-on,
29084         configure.ac): Likewise.
29085         * modules/unictype/property-other-id-continue (Depends-on,
29086         configure.ac): Likewise.
29087         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29088         Likewise.
29089         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29090         Likewise.
29091         * modules/unictype/property-other-math (Depends-on, configure.ac):
29092         Likewise.
29093         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29094         Likewise.
29095         * modules/unictype/property-paired-punctuation (Depends-on,
29096         configure.ac): Likewise.
29097         * modules/unictype/property-paragraph-separator (Depends-on,
29098         configure.ac): Likewise.
29099         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29100         Likewise.
29101         * modules/unictype/property-pattern-white-space (Depends-on,
29102         configure.ac): Likewise.
29103         * modules/unictype/property-private-use (Depends-on, configure.ac):
29104         Likewise.
29105         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29106         Likewise.
29107         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29108         Likewise.
29109         * modules/unictype/property-radical (Depends-on, configure.ac):
29110         Likewise.
29111         * modules/unictype/property-sentence-terminal (Depends-on,
29112         configure.ac): Likewise.
29113         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29114         Likewise.
29115         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29116         * modules/unictype/property-terminal-punctuation (Depends-on,
29117         configure.ac): Likewise.
29118         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29119         Likewise.
29120         * modules/unictype/property-unassigned-code-value (Depends-on,
29121         configure.ac): Likewise.
29122         * modules/unictype/property-unified-ideograph (Depends-on,
29123         configure.ac): Likewise.
29124         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29125         Likewise.
29126         * modules/unictype/property-variation-selector (Depends-on,
29127         configure.ac): Likewise.
29128         * modules/unictype/property-white-space (Depends-on, configure.ac):
29129         Likewise.
29130         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29131         Likewise.
29132         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29133         Likewise.
29134         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29135         Likewise.
29136         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29137         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29138         Likewise.
29139
29140 2009-12-31  Bruno Haible  <bruno@clisp.org>
29141
29142         Remove unnecessary AC_C_INLINE invocation.
29143         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29144         since 2009-08-21.
29145
29146 2009-12-31  Jim Meyering  <meyering@redhat.com>
29147
29148         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29149         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29150         With this change, we can all remove the gpg_key_ID = ... definition
29151         from our respective cfg.mk files.
29152
29153         maint.mk: create announcement template in ~/, not in /tmp
29154         * top/maint.mk (emit_upload_commands): Adjust.
29155         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29156         Remove temporary file, .ci-msg.
29157
29158 2009-12-31  Eric Blake  <ebb9@byu.net>
29159
29160         link-warning: always build headers with link warnings
29161         * modules/arpa_inet (Makefile.am): Always build replacement
29162         header.
29163         * modules/ctype (Makefile.am): Likewise.
29164         * modules/dirent (Makefile.am): Likewise.
29165         * modules/inttypes (Makefile.am): Likewise.
29166         * modules/langinfo (Makefile.am): Likewise.
29167         * modules/locale (Makefile.am): Likewise.
29168         * modules/spawn (Makefile.am): Likewise.
29169         * modules/sys_file (Makefile.am): Likewise.
29170         * modules/sys_ioctl (Makefile.am): Likewise.
29171         * modules/sys_select (Makefile.am): Likewise.
29172         * modules/sys_socket (Makefile.am): Likewise.
29173         * modules/sys_times (Makefile.am): Likewise.
29174         * modules/sys_utsname (Makefile.am): Likewise.
29175         * modules/sys_wait (Makefile.am): Likewise.
29176         * modules/wchar (Makefile.am): Likewise.
29177         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29178         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29179         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29180         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29181         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29182         Likewise.
29183         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29184         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29185         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29186         Likewise.
29187         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29188         Likewise.
29189         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29190         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29191         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29193         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29194         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29195         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29196         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29197         (gl_WCHAR_H_DEFAULTS): Likewise.
29198
29199 2009-12-31  Eric Blake  <ebb9@byu.net>
29200
29201         signal, spawn: use link warnings
29202         * lib/signal.in.h (sigset_t): Make unconditional.
29203         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29204         (sigpending, sigprocmask, sigaction): Add link warnings.
29205         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29206         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29207         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29208         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29209         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29210         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29211         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29212         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29213         (posix_spawn_file_actions_destroy)
29214         (posix_spawn_file_actions_addopen)
29215         (posix_spawn_file_actions_addclose)
29216         (posix_spawn_file_actions_adddup2): Likewise.
29217         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29218         * tests/test-signal.c (main): Enhance test.
29219
29220         spawn: improve wrapper support
29221         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29222         (gl_SPAWN_H_DEFAULTS): New defaults.
29223         * modules/spawn (Makefile.am): Substitute them.
29224         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29225         Only declare if missing or broken.
29226
29227         sys_times, sys_utsname: use include_next
29228         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29229         header.
29230         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29231         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29232         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29233         * modules/sys_times (Depends-on): Add include_next.
29234         (Makefile.am): Substitute additional values.
29235         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29236         * lib/sys_times.in.h (includes): Include native header, if
29237         available.
29238         * lib/sys_utsname.in.h (includes): Likewise.
29239         * tests/test-sys_times.c (main): Enhance test.
29240
29241         fdutimensat: revert prior patch
29242         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29243         utimens.h.
29244         Reported by Bruno Haible.
29245
29246 2009-12-30  Eric Blake  <ebb9@byu.net>
29247
29248         sys_wait: drop link-warning dependency
29249         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29250         link-warning efforts.
29251         * lib/sys_wait.in.h: Likewise.
29252
29253         fdutimensat: remove bogus dependency
29254         * modules/fdutimensat (Depends-on): Drop inline.
29255
29256         unistd: fix typo
29257         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29258
29259 2009-12-30  Bruno Haible  <bruno@clisp.org>
29260
29261         Fix compilation error with Solaris cc.
29262         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29263         * lib/unicase/u16-is-invariant.c: Likewise.
29264         * lib/unicase/u32-is-invariant.c: Likewise.
29265         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29266
29267 2009-12-30  Bruno Haible  <bruno@clisp.org>
29268
29269         Fix test crash.
29270         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29271         locales.
29272         Reported by Simon Josefsson <simon@josefsson.org>.
29273
29274 2009-12-30  Bruno Haible  <bruno@clisp.org>
29275
29276         Fix compilation error on most platforms.
29277         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29278         Reported by Simon Josefsson <simon@josefsson.org>
29279         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29280
29281 2009-12-30  Eric Blake  <ebb9@byu.net>
29282
29283         futimens, utimensat: work around ntfs-3g bug
29284         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29285         a ctime bug is present, and expand workaround to cover ntfs-3g.
29286         * lib/utimens.c (fdutimens, lutimens): Likewise.
29287         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29288         (validate_timespec): Adjust return value.
29289         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29290         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29291         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29292
29293 2009-12-29  Eric Blake  <ebb9@byu.net>
29294
29295         link-warning: make usage consistent
29296         * modules/ctype (Depends-on): Add link-warning.
29297         (Makefile.am): Update rules accordingly.
29298         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29299         * modules/locale (Depends-on, Makefile.am): Likewise.
29300         * modules/sys_file (Makefile.am): Likewise.
29301         * modules/getopt-posix (Makefile.am): Delete unused link warning
29302         efforts.
29303         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29304         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29305         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29306         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29307
29308         stdio: remove unused variables
29309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29310         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29311         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29312
29313         tests: test more substitute headers
29314         * modules/ctype-tests: New file.
29315         * modules/dirent-tests: Likewise.
29316         * modules/spawn-tests: Likewise.
29317         * modules/sys_file-tests: Likewise.
29318         * modules/sys_ioctl-tests: Likewise.
29319         * modules/sys_wait-tests: Likewise.
29320         * tests/test-ctype.c: Likewise.
29321         * tests/test-dirent.c: Likewise.
29322         * tests/test-spawn.c: Likewise.
29323         * tests/test-sys_file.c: Likewise.
29324         * tests/test-sys_ioctl.c: Likewise.
29325         * tests/test-sys_wait.c: Likewise.
29326         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29327         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29328         whether or not flock is in use.
29329
29330         tests: remove License section from module
29331         * modules/arpa_inet-tests: Remove unneeded section.
29332         * modules/byteswap-tests: Likewise.
29333         * modules/ceilf-tests: Likewise.
29334         * modules/ceill-tests: Likewise.
29335         * modules/crypto/des-tests: Likewise.
29336         * modules/crypto/gc-arcfour-tests: Likewise.
29337         * modules/crypto/gc-arctwo-tests: Likewise.
29338         * modules/crypto/gc-des-tests: Likewise.
29339         * modules/crypto/gc-hmac-md5-tests: Likewise.
29340         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29341         * modules/crypto/gc-md2-tests: Likewise.
29342         * modules/crypto/gc-md4-tests: Likewise.
29343         * modules/crypto/gc-md5-tests: Likewise.
29344         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29345         * modules/crypto/gc-rijndael-tests: Likewise.
29346         * modules/crypto/gc-sha1-tests: Likewise.
29347         * modules/crypto/gc-tests: Likewise.
29348         * modules/crypto/md2-tests: Likewise.
29349         * modules/crypto/md4-tests: Likewise.
29350         * modules/fcntl-h-tests: Likewise.
29351         * modules/floorf-tests: Likewise.
29352         * modules/floorl-tests: Likewise.
29353         * modules/frexp-nolibm-tests: Likewise.
29354         * modules/frexp-tests: Likewise.
29355         * modules/frexpl-nolibm-tests: Likewise.
29356         * modules/frexpl-tests: Likewise.
29357         * modules/getaddrinfo-tests: Likewise.
29358         * modules/inttypes-tests: Likewise.
29359         * modules/isfinite-tests: Likewise.
29360         * modules/isinf-tests: Likewise.
29361         * modules/ldexpl-tests: Likewise.
29362         * modules/locale-tests: Likewise.
29363         * modules/math-tests: Likewise.
29364         * modules/netdb-tests: Likewise.
29365         * modules/netinet_in-tests: Likewise.
29366         * modules/printf-frexp-tests: Likewise.
29367         * modules/printf-frexpl-tests: Likewise.
29368         * modules/priv-set-tests: Likewise.
29369         * modules/random_r-tests: Likewise.
29370         * modules/round-tests: Likewise.
29371         * modules/roundf-tests: Likewise.
29372         * modules/roundl-tests: Likewise.
29373         * modules/search-tests: Likewise.
29374         * modules/select-tests: Likewise.
29375         * modules/signal-tests: Likewise.
29376         * modules/stdbool-tests: Likewise.
29377         * modules/stddef-tests: Likewise.
29378         * modules/stdint-tests: Likewise.
29379         * modules/stdio-tests: Likewise.
29380         * modules/stdlib-tests: Likewise.
29381         * modules/string-tests: Likewise.
29382         * modules/strings-tests: Likewise.
29383         * modules/sys_select-tests: Likewise.
29384         * modules/sys_socket-tests: Likewise.
29385         * modules/sys_stat-tests: Likewise.
29386         * modules/sys_time-tests: Likewise.
29387         * modules/sys_utsname-tests: Likewise.
29388         * modules/sysexits-tests: Likewise.
29389         * modules/time-tests: Likewise.
29390         * modules/trunc-tests: Likewise.
29391         * modules/truncf-tests: Likewise.
29392         * modules/truncl-tests: Likewise.
29393         * modules/tsearch-tests: Likewise.
29394         * modules/unistd-tests: Likewise.
29395         * modules/wchar-tests: Likewise.
29396         * modules/wctype-tests: Likewise.
29397
29398         tests: fix license on several tests
29399         * tests/test-des.c: Update to GPLv3+.
29400         * tests/test-flock.c: Likewise.
29401         * tests/test-fsync.c: Likewise.
29402         * tests/test-futimens.h: Likewise.
29403         * tests/test-gc-arcfour.c: Likewise.
29404         * tests/test-gc-arctwo.c: Likewise.
29405         * tests/test-gc-des.c: Likewise.
29406         * tests/test-gc-hmac-md5.c: Likewise.
29407         * tests/test-gc-hmac-sha1.c: Likewise.
29408         * tests/test-gc-md2.c: Likewise.
29409         * tests/test-gc-md4.c: Likewise.
29410         * tests/test-gc-md5.c: Likewise.
29411         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29412         * tests/test-gc-rijndael.c: Likewise.
29413         * tests/test-gc-sha1.c: Likewise.
29414         * tests/test-gc.c: Likewise.
29415         * tests/test-getcwd.c: Likewise.
29416         * tests/test-link.c: Likewise.
29417         * tests/test-link.h: Likewise.
29418         * tests/test-lutimens.h: Likewise.
29419         * tests/test-md2.c: Likewise.
29420         * tests/test-md4.c: Likewise.
29421         * tests/test-mkdir.h: Likewise.
29422         * tests/test-rename.c: Likewise.
29423         * tests/test-rename.h: Likewise.
29424         * tests/test-safe-alloc.c: Likewise.
29425         * tests/test-utimens-common.h: Likewise.
29426         * tests/test-utimens.h: Likewise.
29427
29428         maint: sync license texts
29429         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29430         * doc/gpl-3.0.texi: Revert copyright year update.
29431         * doc/lgpl-3.0.texi: Likewise.
29432
29433 2009-12-29  Jim Meyering  <meyering@redhat.com>
29434
29435         update nearly all FSF copyright year lists to include 2009
29436         The files named by the following are exempted:
29437             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29438               test -f "$dst" && { echo "$dst"; continue; }
29439               test -d "$dst" || continue
29440               echo "$dst"/$(basename "$src")
29441             done > exempt
29442             git ls-files tests/unictype >> exempt
29443         In the remaining files, convert to all-interval notation if
29444         - there is already at least one year interval like 2000-2003
29445         - the file is maintained by me
29446         - the file is in lib/uni*/, where that style already prevails
29447         Otherwise, use update-copyright's default.
29448
29449 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29450         and Eric Blake  <ebb9@byu.net>
29451
29452         tests: don't require debug system() to pass
29453         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29454         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29455         * tests/test-unlink.h (test_unlink_func): Likewise.
29456         * tests/test-fstatat.c (main): ...into callers.
29457         * tests/test-lstat.c (main): Likewise.
29458         * tests/test-rmdir.c (main): Likewise.
29459         * tests/test-unlink.c (main): Likewise.
29460         * tests/test-unlinkat.c (main): Likewise.
29461         * tests/test-areadlink-with-size.c (main): Don't require a
29462         debug-only system call to pass, aiding cross-testing to mingw.
29463         * tests/test-areadlink.c (main): Likewise.
29464         * tests/test-areadlinkat-with-size.c (main): Likewise.
29465         * tests/test-areadlinkat.c (main): Likewise.
29466         * tests/test-canonicalize-lgpl.c (main): Likewise.
29467         * tests/test-canonicalize.c (main): Likewise.
29468         * tests/test-chown.c (main): Likewise.
29469         * tests/test-fchownat.c (main): Likewise.
29470         * tests/test-lchown.c (main): Likewise.
29471         * tests/test-fdutimensat.c (main): Likewise.
29472         * tests/test-futimens.c (main): Likewise.
29473         * tests/test-link.c (main): Likewise.
29474         * tests/test-linkat.c (main): Likewise.
29475         * tests/test-mkdir.c (main): Likewise.
29476         * tests/test-mkdirat.c (main): Likewise.
29477         * tests/test-mkfifo.c (main): Likewise.
29478         * tests/test-mkfifoat.c (main): Likewise.
29479         * tests/test-mknod.c (main): Likewise.
29480         * tests/test-readlink.c (main): Likewise.
29481         * tests/test-remove.c (main): Likewise.
29482         * tests/test-rename.c (main): Likewise.
29483         * tests/test-renameat.c (main): Likewise.
29484         * tests/test-symlink.c (main): Likewise.
29485         * tests/test-symlinkat.c (main): Likewise.
29486         * tests/test-utimens.c (main): Likewise.
29487         * tests/test-utimensat.c (main): Likewise.
29488
29489 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29490
29491         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29492         on $(UNUSED_PARAMETER_H) to avoid build failure.
29493
29494 2009-12-28  Jim Meyering  <meyering@redhat.com>
29495
29496         update-copyright: you may specify a max. line length other than 72
29497         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29498
29499         maint: use consistent FSF copyright line syntax
29500         * lib/posixtm.c: Add missing comma in FSF copyright line.
29501         * lib/posixtm.h: Likewise.
29502         * lib/getugroups.c: Add missing ", Inc.".
29503
29504         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29505         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29506         FSF copyright line.  Remove trailing blanks.
29507
29508 2009-12-28  Eric Blake  <ebb9@byu.net>
29509
29510         test-dup2: reduce dependencies
29511         * modules/cloexec (Configure.ac): Set witness.
29512         * modules/dup2-tests (Depends-on): Drop cloexec.
29513         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29514         not present.
29515         Suggested by Bruno Haible.
29516
29517 2009-12-26  Bruno Haible  <bruno@clisp.org>
29518
29519         Remove an unneeded dependency.
29520         * modules/fseterr (Depends-on): Remove dup2.
29521
29522 2009-12-26  Eric Blake  <ebb9@byu.net>
29523
29524         tests: use macros.h in more places
29525         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29526         (ASSERT_STREAM): Provide default of stderr.
29527         * tests/test-dirent-safer.c: Include macros.h, using alternate
29528         stream for assertions.
29529         * tests/test-dup-safer.c: Likewise.
29530         * tests/test-freopen-safer.c: Likewise.
29531         * tests/test-getopt.c: Likewise.
29532         * tests/test-openat-safer.c: Likewise.
29533         * tests/test-pipe.c: Likewise.
29534         * tests/test-popen-safer.c: Likewise.
29535         * modules/dirent-safer-tests (Files): Include macros.h.
29536         * modules/unistd-safer-tests (Files): Likewise.
29537         * modules/freopen-safer-tests (Files): Likewise.
29538         * modules/getopt-posix-tests (Files): Likewise.
29539         * modules/openat-safer-tests (Files): Likewise.
29540         * modules/pipe-tests (Files): Likewise.
29541
29542 2009-12-26  Bruno Haible  <bruno@clisp.org>
29543
29544         javacomp: Portability fix.
29545         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29546         that it also works on Solaris.
29547
29548 2009-12-26  Bruno Haible  <bruno@clisp.org>
29549
29550         localename: Fix storage allocation of gl_locale_name_thread's result.
29551         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29552         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29553         all platforms that have 'uselocale'.
29554         (gl_locale_name_thread_unsafe): New function, extracted from
29555         gl_locale_name_thread.
29556         (gl_locale_name_thread): Call struniq on all platforms that have
29557         'uselocale'.
29558         * tests/test-localename.c (test_locale_name_thread): Check that the
29559         resulting strings are permanently allocated.
29560         * modules/localename-tests (Depends-on): Add strdup.
29561
29562 2009-12-26  Bruno Haible  <bruno@clisp.org>
29563
29564         * tests/test-localename.c (categories): Fill in the strings.
29565
29566 2009-12-26  Jim Meyering  <meyering@redhat.com>
29567
29568         isdir: complete the removal of m4/isdir.m4
29569         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29570
29571         isdir: clean up, since at least grep still uses it
29572         * lib/isdir.c: Include "isdir.h".
29573         (S_ISDIR): Remove now-unneeded definition.
29574         * modules/isdir (Files): Add lib/isdir.h.
29575         * lib/isdir.h: New file, with declaration.
29576         * m4/isdir.m4: Remove file -- unneeded.
29577
29578 2009-12-25  Bruno Haible  <bruno@clisp.org>
29579
29580         selinux-h: Make generated .h files standalone.
29581         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29582         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29583         * lib/se-selinux.in.h: Likewise.
29584         * modules/selinux-h (Depends-on): Add unused-parameter.
29585         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29586         selinux/selinux.h and selinux/context.h.
29587         Suggested by Eric Blake.
29588
29589 2009-12-25  Bruno Haible  <bruno@clisp.org>
29590
29591         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29592         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29593         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29594         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29595         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29596
29597 2009-12-24  Bruno Haible  <bruno@clisp.org>
29598
29599         openat: Fix warning.
29600         * lib/openat-proc.c: Include <unistd.h>.
29601
29602 2009-12-24  Bruno Haible  <bruno@clisp.org>
29603
29604         New module 'unused-parameter'.
29605         * build-aux/unused-parameter.h: New file, extracted from earlier
29606         gnulib-common.m4.
29607         * modules/unused-parameter: New file.
29608         * lib/unistr.h: Include unused-parameter.h.
29609         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29610         _GL_UNUSED.
29611         * modules/unistr/base (Depends-on): Add unused-parameter.
29612
29613 2009-12-24  Bruno Haible  <bruno@clisp.org>
29614
29615         Add missing dependencies to 'extensions' module.
29616         * m4/extensions.m4: Add comment.
29617         * modules/accept4 (Depends-on): Add extensions.
29618         * modules/dup3 (Depends-on): Likewise.
29619         * modules/fcntl (Depends-on): Likewise.
29620         * modules/futimens (Depends-on): Likewise.
29621         * modules/mknod (Depends-on): Likewise.
29622         * modules/pipe2 (Depends-on): Likewise.
29623         * modules/stat-time (Depends-on): Likewise.
29624         * modules/strcasestr-simple (Depends-on): Likewise.
29625         * modules/strsignal (Depends-on): Likewise.
29626         * modules/utimensat (Depends-on): Likewise.
29627         * modules/localcharset (Depends-on): Likewise. Needed because of
29628         gl_FCNTL_O_FLAGS.
29629         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29630         AC_TYPE_MBSTATE_T.
29631         * modules/wcsnrtombs (Depends-on): Likewise.
29632         * modules/wcsrtombs (Depends-on): Likewise.
29633
29634 2009-12-24  Bruno Haible  <bruno@clisp.org>
29635
29636         binary-io: Avoid gcc warning due to SET_BINARY.
29637         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29638         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29639
29640 2009-12-24  Bruno Haible  <bruno@clisp.org>
29641
29642         Avoid future namespace pollution on glibc systems.
29643         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29644         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29645         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29646         glibc systems.
29647
29648 2009-12-24  Bruno Haible  <bruno@clisp.org>
29649
29650         Refactor common macros used in tests.
29651         * tests/macros.h: New file.
29652         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29653         and/or <stdlib.h>, if appropriate.
29654         (ASSERT, SIZEOF): Remove macros.
29655         * tests/test-areadlink-with-size.c: Likewise.
29656         * tests/test-areadlinkat.c: Likewise.
29657         * tests/test-areadlinkat-with-size.c: Likewise.
29658         * tests/test-argmatch.c: Likewise.
29659         * tests/test-argv-iter.c: Likewise.
29660         * tests/test-array-mergesort.c: Likewise.
29661         * tests/test-array_list.c: Likewise.
29662         * tests/test-array_oset.c: Likewise.
29663         * tests/test-avltree_list.c: Likewise.
29664         * tests/test-avltree_oset.c: Likewise.
29665         * tests/test-avltreehash_list.c: Likewise.
29666         * tests/test-base64.c: Likewise.
29667         * tests/test-binary-io.c: Likewise.
29668         * tests/test-bitrotate.c: Likewise.
29669         * tests/test-btowc.c: Likewise.
29670         * tests/test-byteswap.c: Likewise.
29671         * tests/test-c-ctype.c: Likewise.
29672         * tests/test-c-stack.c: Likewise.
29673         * tests/test-c-strcasecmp.c: Likewise.
29674         * tests/test-c-strcasestr.c: Likewise.
29675         * tests/test-c-strncasecmp.c: Likewise.
29676         * tests/test-c-strstr.c: Likewise.
29677         * tests/test-canonicalize-lgpl.c: Likewise.
29678         * tests/test-canonicalize.c: Likewise.
29679         * tests/test-carray_list.c: Likewise.
29680         * tests/test-ceilf1.c: Likewise.
29681         * tests/test-ceilf2.c: Likewise.
29682         * tests/test-ceill.c: Likewise.
29683         * tests/test-chown.c: Likewise.
29684         * tests/test-cloexec.c: Likewise.
29685         * tests/test-copy-acl.c: Likewise.
29686         * tests/test-copy-file.c: Likewise.
29687         * tests/test-count-one-bits.c: Likewise.
29688         * tests/test-dprintf-posix.c: Likewise.
29689         * tests/test-dup2.c: Likewise.
29690         * tests/test-dup3.c: Likewise.
29691         * tests/test-duplocale.c: Likewise.
29692         * tests/test-fbufmode.c: Likewise.
29693         * tests/test-fchdir.c: Likewise.
29694         * tests/test-fchownat.c: Likewise.
29695         * tests/test-fcntl-safer.c: Likewise.
29696         * tests/test-fcntl.c: Likewise.
29697         * tests/test-fdopendir.c: Likewise.
29698         * tests/test-fdutimensat.c: Likewise.
29699         * tests/test-fflush2.c: Likewise.
29700         * tests/test-file-has-acl.c: Likewise.
29701         * tests/test-filevercmp.c: Likewise.
29702         * tests/test-flock.c: Likewise.
29703         * tests/test-floorf1.c: Likewise.
29704         * tests/test-floorf2.c: Likewise.
29705         * tests/test-floorl.c: Likewise.
29706         * tests/test-fnmatch.c: Likewise.
29707         * tests/test-fopen.h: Likewise.
29708         * tests/test-fpending.c: Likewise.
29709         * tests/test-fprintf-posix.c: Likewise.
29710         * tests/test-fpurge.c: Likewise.
29711         * tests/test-freadable.c: Likewise.
29712         * tests/test-freadahead.c: Likewise.
29713         * tests/test-freading.c: Likewise.
29714         * tests/test-freadptr.c: Likewise.
29715         * tests/test-freadptr2.c: Likewise.
29716         * tests/test-freadseek.c: Likewise.
29717         * tests/test-freopen.c: Likewise.
29718         * tests/test-frexp.c: Likewise.
29719         * tests/test-frexpl.c: Likewise.
29720         * tests/test-fseek.c: Likewise.
29721         * tests/test-fseeko.c: Likewise.
29722         * tests/test-fstatat.c: Likewise.
29723         * tests/test-fstrcmp.c: Likewise.
29724         * tests/test-fsync.c: Likewise.
29725         * tests/test-ftell.c: Likewise.
29726         * tests/test-ftello.c: Likewise.
29727         * tests/test-func.c: Likewise.
29728         * tests/test-futimens.c: Likewise.
29729         * tests/test-fwritable.c: Likewise.
29730         * tests/test-fwriting.c: Likewise.
29731         * tests/test-getcwd.c: Likewise.
29732         * tests/test-getdate.c: Likewise.
29733         * tests/test-getdelim.c: Likewise.
29734         * tests/test-getdtablesize.c: Likewise.
29735         * tests/test-getgroups.c: Likewise.
29736         * tests/test-getline.c: Likewise.
29737         * tests/test-getndelim2.c: Likewise.
29738         * tests/test-glob.c: Likewise.
29739         * tests/test-hash.c: Likewise.
29740         * tests/test-i-ring.c: Likewise.
29741         * tests/test-iconv-utf.c: Likewise.
29742         * tests/test-iconv.c: Likewise.
29743         * tests/test-idpriv-drop.c: Likewise.
29744         * tests/test-idpriv-droptemp.c: Likewise.
29745         * tests/test-inet_ntop.c: Likewise.
29746         * tests/test-inet_pton.c: Likewise.
29747         * tests/test-isblank.c: Likewise.
29748         * tests/test-isfinite.c: Likewise.
29749         * tests/test-isinf.c: Likewise.
29750         * tests/test-isnan.c: Likewise.
29751         * tests/test-isnand.h: Likewise.
29752         * tests/test-isnanf.h: Likewise.
29753         * tests/test-isnanl.h: Likewise.
29754         * tests/test-lchown.c: Likewise.
29755         * tests/test-ldexpl.c: Likewise.
29756         * tests/test-link.c: Likewise.
29757         * tests/test-linkat.c: Likewise.
29758         * tests/test-linked_list.c: Likewise.
29759         * tests/test-linkedhash_list.c: Likewise.
29760         * tests/test-localename.c: Likewise.
29761         * tests/test-lseek.c: Likewise.
29762         * tests/test-lstat.c: Likewise.
29763         * tests/test-mbmemcasecmp.c: Likewise.
29764         * tests/test-mbmemcasecoll.c: Likewise.
29765         * tests/test-mbrtowc.c: Likewise.
29766         * tests/test-mbscasecmp.c: Likewise.
29767         * tests/test-mbscasestr1.c: Likewise.
29768         * tests/test-mbscasestr2.c: Likewise.
29769         * tests/test-mbscasestr3.c: Likewise.
29770         * tests/test-mbscasestr4.c: Likewise.
29771         * tests/test-mbschr.c: Likewise.
29772         * tests/test-mbscspn.c: Likewise.
29773         * tests/test-mbsinit.c: Likewise.
29774         * tests/test-mbsncasecmp.c: Likewise.
29775         * tests/test-mbsnrtowcs.c: Likewise.
29776         * tests/test-mbspbrk.c: Likewise.
29777         * tests/test-mbspcasecmp.c: Likewise.
29778         * tests/test-mbsrchr.c: Likewise.
29779         * tests/test-mbsrtowcs.c: Likewise.
29780         * tests/test-mbsspn.c: Likewise.
29781         * tests/test-mbsstr1.c: Likewise.
29782         * tests/test-mbsstr2.c: Likewise.
29783         * tests/test-mbsstr3.c: Likewise.
29784         * tests/test-memchr.c: Likewise.
29785         * tests/test-memchr2.c: Likewise.
29786         * tests/test-memcmp.c: Likewise.
29787         * tests/test-memmem.c: Likewise.
29788         * tests/test-memrchr.c: Likewise.
29789         * tests/test-mkdir.c: Likewise.
29790         * tests/test-mkdirat.c: Likewise.
29791         * tests/test-mkfifo.c: Likewise.
29792         * tests/test-mkfifoat.c: Likewise.
29793         * tests/test-mknod.c: Likewise.
29794         * tests/test-nanosleep.c: Likewise.
29795         * tests/test-nl_langinfo.c: Likewise.
29796         * tests/test-obstack-printf.c: Likewise.
29797         * tests/test-open.c: Likewise.
29798         * tests/test-openat.c: Likewise.
29799         * tests/test-pipe-filter-gi1.c: Likewise.
29800         * tests/test-pipe-filter-gi2-main.c: Likewise.
29801         * tests/test-pipe-filter-ii1.c: Likewise.
29802         * tests/test-pipe-filter-ii2-main.c: Likewise.
29803         * tests/test-pipe2.c: Likewise.
29804         * tests/test-popen.h: Likewise.
29805         * tests/test-posixtm.c: Likewise.
29806         * tests/test-pread.c: Likewise.
29807         * tests/test-printf-frexp.c: Likewise.
29808         * tests/test-printf-frexpl.c: Likewise.
29809         * tests/test-printf-posix.c: Likewise.
29810         * tests/test-priv-set.c: Likewise.
29811         * tests/test-quotearg.c: Likewise.
29812         * tests/test-random_r.c: Likewise.
29813         * tests/test-rawmemchr.c: Likewise.
29814         * tests/test-rbtree_list.c: Likewise.
29815         * tests/test-rbtree_oset.c: Likewise.
29816         * tests/test-rbtreehash_list.c: Likewise.
29817         * tests/test-readlink.c: Likewise.
29818         * tests/test-remove.c: Likewise.
29819         * tests/test-rename.c: Likewise.
29820         * tests/test-renameat.c: Likewise.
29821         * tests/test-rmdir.c: Likewise.
29822         * tests/test-round1.c: Likewise.
29823         * tests/test-roundf1.c: Likewise.
29824         * tests/test-roundl.c: Likewise.
29825         * tests/test-safe-alloc.c: Likewise.
29826         * tests/test-sameacls.c: Likewise.
29827         * tests/test-set-mode-acl.c: Likewise.
29828         * tests/test-setenv.c: Likewise.
29829         * tests/test-sigaction.c: Likewise.
29830         * tests/test-signbit.c: Likewise.
29831         * tests/test-sleep.c: Likewise.
29832         * tests/test-snprintf-posix.c: Likewise.
29833         * tests/test-snprintf.c: Likewise.
29834         * tests/test-sprintf-posix.c: Likewise.
29835         * tests/test-stat-time.c: Likewise.
29836         * tests/test-stat.c: Likewise.
29837         * tests/test-strcasestr.c: Likewise.
29838         * tests/test-strchrnul.c: Likewise.
29839         * tests/test-strerror.c: Likewise.
29840         * tests/test-striconv.c: Likewise.
29841         * tests/test-striconveh.c: Likewise.
29842         * tests/test-striconveha.c: Likewise.
29843         * tests/test-strsignal.c: Likewise.
29844         * tests/test-strstr.c: Likewise.
29845         * tests/test-strtod.c: Likewise.
29846         * tests/test-strverscmp.c: Likewise.
29847         * tests/test-symlink.c: Likewise.
29848         * tests/test-symlinkat.c: Likewise.
29849         * tests/test-trunc1.c: Likewise.
29850         * tests/test-trunc2.c: Likewise.
29851         * tests/test-truncf1.c: Likewise.
29852         * tests/test-truncf2.c: Likewise.
29853         * tests/test-truncl.c: Likewise.
29854         * tests/test-uname.c: Likewise.
29855         * tests/test-unlink.c: Likewise.
29856         * tests/test-unlinkat.c: Likewise.
29857         * tests/test-unsetenv.c: Likewise.
29858         * tests/test-usleep.c: Likewise.
29859         * tests/test-utimens.c: Likewise.
29860         * tests/test-utimensat.c: Likewise.
29861         * tests/test-vasnprintf-posix.c: Likewise.
29862         * tests/test-vasnprintf-posix2.c: Likewise.
29863         * tests/test-vasnprintf.c: Likewise.
29864         * tests/test-vasprintf-posix.c: Likewise.
29865         * tests/test-vasprintf.c: Likewise.
29866         * tests/test-vdprintf-posix.c: Likewise.
29867         * tests/test-vfprintf-posix.c: Likewise.
29868         * tests/test-vprintf-posix.c: Likewise.
29869         * tests/test-vsnprintf-posix.c: Likewise.
29870         * tests/test-vsnprintf.c: Likewise.
29871         * tests/test-vsprintf-posix.c: Likewise.
29872         * tests/test-wcrtomb.c: Likewise.
29873         * tests/test-wcsnrtombs.c: Likewise.
29874         * tests/test-wcsrtombs.c: Likewise.
29875         * tests/test-wctype.c: Likewise.
29876         * tests/test-wcwidth.c: Likewise.
29877         * tests/test-xfprintf-posix.c: Likewise.
29878         * tests/test-xmemdup0.c: Likewise.
29879         * tests/test-xprintf-posix.c: Likewise.
29880         * tests/test-xvasprintf.c: Likewise.
29881         * tests/unicase/test-locale-language.c: Likewise.
29882         * tests/unicase/test-mapping-part1.h: Likewise.
29883         * tests/unicase/test-predicate-part1.h: Likewise.
29884         * tests/unicase/test-u8-casecmp.c: Likewise.
29885         * tests/unicase/test-u8-casecoll.c: Likewise.
29886         * tests/unicase/test-u8-casefold.c: Likewise.
29887         * tests/unicase/test-u8-is-cased.c: Likewise.
29888         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29889         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29890         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29891         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29892         * tests/unicase/test-u8-tolower.c: Likewise.
29893         * tests/unicase/test-u8-totitle.c: Likewise.
29894         * tests/unicase/test-u8-toupper.c: Likewise.
29895         * tests/unicase/test-u16-casecmp.c: Likewise.
29896         * tests/unicase/test-u16-casecoll.c: Likewise.
29897         * tests/unicase/test-u16-casefold.c: Likewise.
29898         * tests/unicase/test-u16-is-cased.c: Likewise.
29899         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29900         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29901         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29902         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29903         * tests/unicase/test-u16-tolower.c: Likewise.
29904         * tests/unicase/test-u16-totitle.c: Likewise.
29905         * tests/unicase/test-u16-toupper.c: Likewise.
29906         * tests/unicase/test-u32-casecmp.c: Likewise.
29907         * tests/unicase/test-u32-casecoll.c: Likewise.
29908         * tests/unicase/test-u32-casefold.c: Likewise.
29909         * tests/unicase/test-u32-is-cased.c: Likewise.
29910         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29911         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29912         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29913         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29914         * tests/unicase/test-u32-tolower.c: Likewise.
29915         * tests/unicase/test-u32-totitle.c: Likewise.
29916         * tests/unicase/test-u32-toupper.c: Likewise.
29917         * tests/unicase/test-ulc-casecmp.c: Likewise.
29918         * tests/unicase/test-ulc-casecoll.c: Likewise.
29919         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29920         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29921         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29922         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29923         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29924         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29925         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29926         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29927         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29928         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29929         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29930         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29931         * tests/unictype/test-bidi_byname.c: Likewise.
29932         * tests/unictype/test-bidi_name.c: Likewise.
29933         * tests/unictype/test-bidi_of.c: Likewise.
29934         * tests/unictype/test-bidi_test.c: Likewise.
29935         * tests/unictype/test-block_list.c: Likewise.
29936         * tests/unictype/test-block_of.c: Likewise.
29937         * tests/unictype/test-block_test.c: Likewise.
29938         * tests/unictype/test-categ_and.c: Likewise.
29939         * tests/unictype/test-categ_and_not.c: Likewise.
29940         * tests/unictype/test-categ_byname.c: Likewise.
29941         * tests/unictype/test-categ_name.c: Likewise.
29942         * tests/unictype/test-categ_none.c: Likewise.
29943         * tests/unictype/test-categ_of.c: Likewise.
29944         * tests/unictype/test-categ_or.c: Likewise.
29945         * tests/unictype/test-categ_test_withtable.c: Likewise.
29946         * tests/unictype/test-combining.c: Likewise.
29947         * tests/unictype/test-decdigit.c: Likewise.
29948         * tests/unictype/test-digit.c: Likewise.
29949         * tests/unictype/test-mirror.c: Likewise.
29950         * tests/unictype/test-numeric.c: Likewise.
29951         * tests/unictype/test-pr_byname.c: Likewise.
29952         * tests/unictype/test-pr_test.c: Likewise.
29953         * tests/unictype/test-predicate-part1.h: Likewise.
29954         * tests/unictype/test-scripts.c: Likewise.
29955         * tests/unictype/test-sy_c_ident.c: Likewise.
29956         * tests/unictype/test-sy_java_ident.c: Likewise.
29957         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29958         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29959         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29960         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29961         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29962         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29963         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29964         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29965         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29966         * tests/uninorm/test-compat-decomposition.c: Likewise.
29967         * tests/uninorm/test-composition.c: Likewise.
29968         * tests/uninorm/test-decomposing-form.c: Likewise.
29969         * tests/uninorm/test-decomposition.c: Likewise.
29970         * tests/uninorm/test-u8-nfc.c: Likewise.
29971         * tests/uninorm/test-u8-nfd.c: Likewise.
29972         * tests/uninorm/test-u8-nfkc.c: Likewise.
29973         * tests/uninorm/test-u8-nfkd.c: Likewise.
29974         * tests/uninorm/test-u8-normcmp.c: Likewise.
29975         * tests/uninorm/test-u8-normcoll.c: Likewise.
29976         * tests/uninorm/test-u16-nfc.c: Likewise.
29977         * tests/uninorm/test-u16-nfd.c: Likewise.
29978         * tests/uninorm/test-u16-nfkc.c: Likewise.
29979         * tests/uninorm/test-u16-nfkd.c: Likewise.
29980         * tests/uninorm/test-u16-normcmp.c: Likewise.
29981         * tests/uninorm/test-u16-normcoll.c: Likewise.
29982         * tests/uninorm/test-u32-nfc.c: Likewise.
29983         * tests/uninorm/test-u32-nfd.c: Likewise.
29984         * tests/uninorm/test-u32-nfkc.c: Likewise.
29985         * tests/uninorm/test-u32-nfkd.c: Likewise.
29986         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29987         * tests/uninorm/test-u32-normcmp.c: Likewise.
29988         * tests/uninorm/test-u32-normcoll.c: Likewise.
29989         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29990         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29991         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29992         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29993         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29994         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29995         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29996         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29997         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29998         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29999         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30000         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30001         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30002         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30003         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30004         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30005         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30006         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30007         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30008         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30009         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30010         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30011         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30012         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30013         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30014         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30015         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30016         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30017         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30018         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30019         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30020         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30021         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30022         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30023         * tests/uniwidth/test-u8-width.c: Likewise.
30024         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30025         * tests/uniwidth/test-u16-width.c: Likewise.
30026         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30027         * tests/uniwidth/test-u32-width.c: Likewise.
30028         * tests/uniwidth/test-uc_width.c: Likewise.
30029         * tests/uniwidth/test-uc_width2.c: Likewise.
30030         * modules/acl-tests (Files): Add tests/macros.h.
30031         * modules/areadlink-tests (Files): Likewise.
30032         * modules/areadlink-with-size-tests (Files): Likewise.
30033         * modules/areadlinkat-tests (Files): Likewise.
30034         * modules/areadlinkat-with-size-tests (Files): Likewise.
30035         * modules/argmatch-tests (Files): Likewise.
30036         * modules/argv-iter-tests (Files): Likewise.
30037         * modules/array-list-tests (Files): Likewise.
30038         * modules/array-mergesort-tests (Files): Likewise.
30039         * modules/array-oset-tests (Files): Likewise.
30040         * modules/avltree-list-tests (Files): Likewise.
30041         * modules/avltree-oset-tests (Files): Likewise.
30042         * modules/avltreehash-list-tests (Files): Likewise.
30043         * modules/base64-tests (Files): Likewise.
30044         * modules/binary-io-tests (Files): Likewise.
30045         * modules/bitrotate-tests (Files): Likewise.
30046         * modules/btowc-tests (Files): Likewise.
30047         * modules/byteswap-tests (Files): Likewise.
30048         * modules/c-ctype-tests (Files): Likewise.
30049         * modules/c-stack-tests (Files): Likewise.
30050         * modules/c-strcase-tests (Files): Likewise.
30051         * modules/c-strcasestr-tests (Files): Likewise.
30052         * modules/c-strstr-tests (Files): Likewise.
30053         * modules/canonicalize-lgpl-tests (Files): Likewise.
30054         * modules/canonicalize-tests (Files): Likewise.
30055         * modules/carray-list-tests (Files): Likewise.
30056         * modules/ceilf-tests (Files): Likewise.
30057         * modules/ceill-tests (Files): Likewise.
30058         * modules/chown-tests (Files): Likewise.
30059         * modules/cloexec-tests (Files): Likewise.
30060         * modules/copy-file-tests (Files): Likewise.
30061         * modules/count-one-bits-tests (Files): Likewise.
30062         * modules/dprintf-posix-tests (Files): Likewise.
30063         * modules/dup2-tests (Files): Likewise.
30064         * modules/dup3-tests (Files): Likewise.
30065         * modules/duplocale-tests (Files): Likewise.
30066         * modules/fbufmode-tests (Files): Likewise.
30067         * modules/fchdir-tests (Files): Likewise.
30068         * modules/fcntl-safer-tests (Files): Likewise.
30069         * modules/fcntl-tests (Files): Likewise.
30070         * modules/fdopendir-tests (Files): Likewise.
30071         * modules/fdutimensat-tests (Files): Likewise.
30072         * modules/fflush-tests (Files): Likewise.
30073         * modules/filevercmp-tests (Files): Likewise.
30074         * modules/flock-tests (Files): Likewise.
30075         * modules/floorf-tests (Files): Likewise.
30076         * modules/floorl-tests (Files): Likewise.
30077         * modules/fnmatch-tests (Files): Likewise.
30078         * modules/fopen-safer-tests (Files): Likewise.
30079         * modules/fopen-tests (Files): Likewise.
30080         * modules/fpending-tests (Files): Likewise.
30081         * modules/fprintf-posix-tests (Files): Likewise.
30082         * modules/fpurge-tests (Files): Likewise.
30083         * modules/freadable-tests (Files): Likewise.
30084         * modules/freadahead-tests (Files): Likewise.
30085         * modules/freading-tests (Files): Likewise.
30086         * modules/freadptr-tests (Files): Likewise.
30087         * modules/freadseek-tests (Files): Likewise.
30088         * modules/freopen-tests (Files): Likewise.
30089         * modules/frexp-nolibm-tests (Files): Likewise.
30090         * modules/frexp-tests (Files): Likewise.
30091         * modules/frexpl-nolibm-tests (Files): Likewise.
30092         * modules/frexpl-tests (Files): Likewise.
30093         * modules/fseek-tests (Files): Likewise.
30094         * modules/fseeko-tests (Files): Likewise.
30095         * modules/fstrcmp-tests (Files): Likewise.
30096         * modules/fsync-tests (Files): Likewise.
30097         * modules/ftell-tests (Files): Likewise.
30098         * modules/ftello-tests (Files): Likewise.
30099         * modules/func-tests (Files): Likewise.
30100         * modules/futimens-tests (Files): Likewise.
30101         * modules/fwritable-tests (Files): Likewise.
30102         * modules/fwriting-tests (Files): Likewise.
30103         * modules/getcwd-tests (Files): Likewise.
30104         * modules/getdate-tests (Files): Likewise.
30105         * modules/getdelim-tests (Files): Likewise.
30106         * modules/getdtablesize-tests (Files): Likewise.
30107         * modules/getgroups-tests (Files): Likewise.
30108         * modules/getline-tests (Files): Likewise.
30109         * modules/getndelim2-tests (Files): Likewise.
30110         * modules/glob-tests (Files): Likewise.
30111         * modules/hash-tests (Files): Likewise.
30112         * modules/i-ring-tests (Files): Likewise.
30113         * modules/iconv-tests (Files): Likewise.
30114         * modules/iconv_open-utf-tests (Files): Likewise.
30115         * modules/idpriv-drop-tests (Files): Likewise.
30116         * modules/idpriv-droptemp-tests (Files): Likewise.
30117         * modules/inet_ntop-tests (Files): Likewise.
30118         * modules/inet_pton-tests (Files): Likewise.
30119         * modules/isblank-tests (Files): Likewise.
30120         * modules/isfinite-tests (Files): Likewise.
30121         * modules/isinf-tests (Files): Likewise.
30122         * modules/isnan-tests (Files): Likewise.
30123         * modules/isnand-nolibm-tests (Files): Likewise.
30124         * modules/isnand-tests (Files): Likewise.
30125         * modules/isnanf-nolibm-tests (Files): Likewise.
30126         * modules/isnanf-tests (Files): Likewise.
30127         * modules/isnanl-nolibm-tests (Files): Likewise.
30128         * modules/isnanl-tests (Files): Likewise.
30129         * modules/lchown-tests (Files): Likewise.
30130         * modules/ldexpl-tests (Files): Likewise.
30131         * modules/link-tests (Files): Likewise.
30132         * modules/linkat-tests (Files): Likewise.
30133         * modules/linked-list-tests (Files): Likewise.
30134         * modules/linkedhash-list-tests (Files): Likewise.
30135         * modules/localename-tests (Files): Likewise.
30136         * modules/lseek-tests (Files): Likewise.
30137         * modules/lstat-tests (Files): Likewise.
30138         * modules/mbmemcasecmp-tests (Files): Likewise.
30139         * modules/mbmemcasecoll-tests (Files): Likewise.
30140         * modules/mbrtowc-tests (Files): Likewise.
30141         * modules/mbscasecmp-tests (Files): Likewise.
30142         * modules/mbscasestr-tests (Files): Likewise.
30143         * modules/mbschr-tests (Files): Likewise.
30144         * modules/mbscspn-tests (Files): Likewise.
30145         * modules/mbsinit-tests (Files): Likewise.
30146         * modules/mbsncasecmp-tests (Files): Likewise.
30147         * modules/mbsnrtowcs-tests (Files): Likewise.
30148         * modules/mbspbrk-tests (Files): Likewise.
30149         * modules/mbspcasecmp-tests (Files): Likewise.
30150         * modules/mbsrchr-tests (Files): Likewise.
30151         * modules/mbsrtowcs-tests (Files): Likewise.
30152         * modules/mbsspn-tests (Files): Likewise.
30153         * modules/mbsstr-tests (Files): Likewise.
30154         * modules/memchr-tests (Files): Likewise.
30155         * modules/memchr2-tests (Files): Likewise.
30156         * modules/memcmp-tests (Files): Likewise.
30157         * modules/memmem-tests (Files): Likewise.
30158         * modules/memrchr-tests (Files): Likewise.
30159         * modules/mkdir-tests (Files): Likewise.
30160         * modules/mkfifo-tests (Files): Likewise.
30161         * modules/mkfifoat-tests (Files): Likewise.
30162         * modules/mknod-tests (Files): Likewise.
30163         * modules/nanosleep-tests (Files): Likewise.
30164         * modules/nl_langinfo-tests (Files): Likewise.
30165         * modules/obstack-printf-tests (Files): Likewise.
30166         * modules/open-tests (Files): Likewise.
30167         * modules/openat-tests (Files): Likewise.
30168         * modules/pipe-filter-gi-tests (Files): Likewise.
30169         * modules/pipe-filter-ii-tests (Files): Likewise.
30170         * modules/pipe2-tests (Files): Likewise.
30171         * modules/popen-safer-tests (Files): Likewise.
30172         * modules/popen-tests (Files): Likewise.
30173         * modules/posixtm-tests (Files): Likewise.
30174         * modules/pread-tests (Files): Likewise.
30175         * modules/printf-frexp-tests (Files): Likewise.
30176         * modules/printf-frexpl-tests (Files): Likewise.
30177         * modules/printf-posix-tests (Files): Likewise.
30178         * modules/priv-set-tests (Files): Likewise.
30179         * modules/quotearg-tests (Files): Likewise.
30180         * modules/random_r-tests (Files): Likewise.
30181         * modules/rawmemchr-tests (Files): Likewise.
30182         * modules/rbtree-list-tests (Files): Likewise.
30183         * modules/rbtree-oset-tests (Files): Likewise.
30184         * modules/rbtreehash-list-tests (Files): Likewise.
30185         * modules/readlink-tests (Files): Likewise.
30186         * modules/remove-tests (Files): Likewise.
30187         * modules/rename-tests (Files): Likewise.
30188         * modules/renameat-tests (Files): Likewise.
30189         * modules/rmdir-tests (Files): Likewise.
30190         * modules/round-tests (Files): Likewise.
30191         * modules/roundf-tests (Files): Likewise.
30192         * modules/roundl-tests (Files): Likewise.
30193         * modules/safe-alloc-tests (Files): Likewise.
30194         * modules/setenv-tests (Files): Likewise.
30195         * modules/sigaction-tests (Files): Likewise.
30196         * modules/signbit-tests (Files): Likewise.
30197         * modules/sleep-tests (Files): Likewise.
30198         * modules/snprintf-posix-tests (Files): Likewise.
30199         * modules/snprintf-tests (Files): Likewise.
30200         * modules/sprintf-posix-tests (Files): Likewise.
30201         * modules/stat-tests (Files): Likewise.
30202         * modules/stat-time-tests (Files): Likewise.
30203         * modules/strcasestr-tests (Files): Likewise.
30204         * modules/strchrnul-tests (Files): Likewise.
30205         * modules/strerror-tests (Files): Likewise.
30206         * modules/striconv-tests (Files): Likewise.
30207         * modules/striconveh-tests (Files): Likewise.
30208         * modules/striconveha-tests (Files): Likewise.
30209         * modules/strsignal-tests (Files): Likewise.
30210         * modules/strstr-tests (Files): Likewise.
30211         * modules/strtod-tests (Files): Likewise.
30212         * modules/strverscmp-tests (Files): Likewise.
30213         * modules/symlink-tests (Files): Likewise.
30214         * modules/symlinkat-tests (Files): Likewise.
30215         * modules/trunc-tests (Files): Likewise.
30216         * modules/truncf-tests (Files): Likewise.
30217         * modules/truncl-tests (Files): Likewise.
30218         * modules/uname-tests (Files): Likewise.
30219         * modules/unicase/cased-tests (Files): Likewise.
30220         * modules/unicase/ignorable-tests (Files): Likewise.
30221         * modules/unicase/locale-language-tests (Files): Likewise.
30222         * modules/unicase/tolower-tests (Files): Likewise.
30223         * modules/unicase/totitle-tests (Files): Likewise.
30224         * modules/unicase/toupper-tests (Files): Likewise.
30225         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30226         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30227         * modules/unicase/u8-casefold-tests (Files): Likewise.
30228         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30229         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30230         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30231         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30232         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30233         * modules/unicase/u8-tolower-tests (Files): Likewise.
30234         * modules/unicase/u8-totitle-tests (Files): Likewise.
30235         * modules/unicase/u8-toupper-tests (Files): Likewise.
30236         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30237         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30238         * modules/unicase/u16-casefold-tests (Files): Likewise.
30239         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30240         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30241         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30242         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30243         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30244         * modules/unicase/u16-tolower-tests (Files): Likewise.
30245         * modules/unicase/u16-totitle-tests (Files): Likewise.
30246         * modules/unicase/u16-toupper-tests (Files): Likewise.
30247         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30248         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30249         * modules/unicase/u32-casefold-tests (Files): Likewise.
30250         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30251         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30252         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30253         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30254         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30255         * modules/unicase/u32-tolower-tests (Files): Likewise.
30256         * modules/unicase/u32-totitle-tests (Files): Likewise.
30257         * modules/unicase/u32-toupper-tests (Files): Likewise.
30258         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30259         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30260         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30261         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30262         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30263         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30264         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30265         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30266         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30267         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30268         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30269         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30270         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30271         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30272         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30273         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30274         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30275         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30276         * modules/unictype/block-list-tests (Files): Likewise.
30277         * modules/unictype/block-of-tests (Files): Likewise.
30278         * modules/unictype/block-test-tests (Files): Likewise.
30279         * modules/unictype/category-C-tests (Files): Likewise.
30280         * modules/unictype/category-Cc-tests (Files): Likewise.
30281         * modules/unictype/category-Cf-tests (Files): Likewise.
30282         * modules/unictype/category-Cn-tests (Files): Likewise.
30283         * modules/unictype/category-Co-tests (Files): Likewise.
30284         * modules/unictype/category-Cs-tests (Files): Likewise.
30285         * modules/unictype/category-L-tests (Files): Likewise.
30286         * modules/unictype/category-Ll-tests (Files): Likewise.
30287         * modules/unictype/category-Lm-tests (Files): Likewise.
30288         * modules/unictype/category-Lo-tests (Files): Likewise.
30289         * modules/unictype/category-Lt-tests (Files): Likewise.
30290         * modules/unictype/category-Lu-tests (Files): Likewise.
30291         * modules/unictype/category-M-tests (Files): Likewise.
30292         * modules/unictype/category-Mc-tests (Files): Likewise.
30293         * modules/unictype/category-Me-tests (Files): Likewise.
30294         * modules/unictype/category-Mn-tests (Files): Likewise.
30295         * modules/unictype/category-N-tests (Files): Likewise.
30296         * modules/unictype/category-Nd-tests (Files): Likewise.
30297         * modules/unictype/category-Nl-tests (Files): Likewise.
30298         * modules/unictype/category-No-tests (Files): Likewise.
30299         * modules/unictype/category-P-tests (Files): Likewise.
30300         * modules/unictype/category-Pc-tests (Files): Likewise.
30301         * modules/unictype/category-Pd-tests (Files): Likewise.
30302         * modules/unictype/category-Pe-tests (Files): Likewise.
30303         * modules/unictype/category-Pf-tests (Files): Likewise.
30304         * modules/unictype/category-Pi-tests (Files): Likewise.
30305         * modules/unictype/category-Po-tests (Files): Likewise.
30306         * modules/unictype/category-Ps-tests (Files): Likewise.
30307         * modules/unictype/category-S-tests (Files): Likewise.
30308         * modules/unictype/category-Sc-tests (Files): Likewise.
30309         * modules/unictype/category-Sk-tests (Files): Likewise.
30310         * modules/unictype/category-Sm-tests (Files): Likewise.
30311         * modules/unictype/category-So-tests (Files): Likewise.
30312         * modules/unictype/category-Z-tests (Files): Likewise.
30313         * modules/unictype/category-Zl-tests (Files): Likewise.
30314         * modules/unictype/category-Zp-tests (Files): Likewise.
30315         * modules/unictype/category-Zs-tests (Files): Likewise.
30316         * modules/unictype/category-and-not-tests (Files): Likewise.
30317         * modules/unictype/category-and-tests (Files): Likewise.
30318         * modules/unictype/category-byname-tests (Files): Likewise.
30319         * modules/unictype/category-name-tests (Files): Likewise.
30320         * modules/unictype/category-none-tests (Files): Likewise.
30321         * modules/unictype/category-of-tests (Files): Likewise.
30322         * modules/unictype/category-or-tests (Files): Likewise.
30323         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30324         * modules/unictype/combining-class-tests (Files): Likewise.
30325         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30326         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30327         * modules/unictype/ctype-blank-tests (Files): Likewise.
30328         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30329         * modules/unictype/ctype-digit-tests (Files): Likewise.
30330         * modules/unictype/ctype-graph-tests (Files): Likewise.
30331         * modules/unictype/ctype-lower-tests (Files): Likewise.
30332         * modules/unictype/ctype-print-tests (Files): Likewise.
30333         * modules/unictype/ctype-punct-tests (Files): Likewise.
30334         * modules/unictype/ctype-space-tests (Files): Likewise.
30335         * modules/unictype/ctype-upper-tests (Files): Likewise.
30336         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30337         * modules/unictype/decimal-digit-tests (Files): Likewise.
30338         * modules/unictype/digit-tests (Files): Likewise.
30339         * modules/unictype/mirror-tests (Files): Likewise.
30340         * modules/unictype/numeric-tests (Files): Likewise.
30341         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30342         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30343         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30344         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30345         Likewise.
30346         * modules/unictype/property-bidi-block-separator-tests (Files):
30347         Likewise.
30348         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30349         Likewise.
30350         * modules/unictype/property-bidi-common-separator-tests (Files):
30351         Likewise.
30352         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30353         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30354         Likewise.
30355         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30356         Likewise.
30357         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30358         Likewise.
30359         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30360         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30361         Likewise.
30362         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30363         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30364         Likewise.
30365         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30366         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30367         * modules/unictype/property-bidi-segment-separator-tests (Files):
30368         Likewise.
30369         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30370         * modules/unictype/property-byname-tests (Files): Likewise.
30371         * modules/unictype/property-combining-tests (Files): Likewise.
30372         * modules/unictype/property-composite-tests (Files): Likewise.
30373         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30374         * modules/unictype/property-dash-tests (Files): Likewise.
30375         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30376         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30377         Likewise.
30378         * modules/unictype/property-deprecated-tests (Files): Likewise.
30379         * modules/unictype/property-diacritic-tests (Files): Likewise.
30380         * modules/unictype/property-extender-tests (Files): Likewise.
30381         * modules/unictype/property-format-control-tests (Files): Likewise.
30382         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30383         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30384         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30385         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30386         * modules/unictype/property-hyphen-tests (Files): Likewise.
30387         * modules/unictype/property-id-continue-tests (Files): Likewise.
30388         * modules/unictype/property-id-start-tests (Files): Likewise.
30389         * modules/unictype/property-ideographic-tests (Files): Likewise.
30390         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30391         * modules/unictype/property-ids-trinary-operator-tests (Files):
30392         Likewise.
30393         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30394         * modules/unictype/property-iso-control-tests (Files): Likewise.
30395         * modules/unictype/property-join-control-tests (Files): Likewise.
30396         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30397         * modules/unictype/property-line-separator-tests (Files): Likewise.
30398         * modules/unictype/property-logical-order-exception-tests (Files):
30399         Likewise.
30400         * modules/unictype/property-lowercase-tests (Files): Likewise.
30401         * modules/unictype/property-math-tests (Files): Likewise.
30402         * modules/unictype/property-non-break-tests (Files): Likewise.
30403         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30404         * modules/unictype/property-numeric-tests (Files): Likewise.
30405         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30406         * modules/unictype/property-other-default-ignorable-code-point-tests
30407         (Files): Likewise.
30408         * modules/unictype/property-other-grapheme-extend-tests (Files):
30409         Likewise.
30410         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30411         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30412         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30413         * modules/unictype/property-other-math-tests (Files): Likewise.
30414         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30415         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30416         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30417         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30418         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30419         * modules/unictype/property-private-use-tests (Files): Likewise.
30420         * modules/unictype/property-punctuation-tests (Files): Likewise.
30421         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30422         * modules/unictype/property-radical-tests (Files): Likewise.
30423         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30424         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30425         * modules/unictype/property-space-tests (Files): Likewise.
30426         * modules/unictype/property-terminal-punctuation-tests (Files):
30427         Likewise.
30428         * modules/unictype/property-test-tests (Files): Likewise.
30429         * modules/unictype/property-titlecase-tests (Files): Likewise.
30430         * modules/unictype/property-unassigned-code-value-tests (Files):
30431         Likewise.
30432         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30433         * modules/unictype/property-uppercase-tests (Files): Likewise.
30434         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30435         * modules/unictype/property-white-space-tests (Files): Likewise.
30436         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30437         * modules/unictype/property-xid-start-tests (Files): Likewise.
30438         * modules/unictype/property-zero-width-tests (Files): Likewise.
30439         * modules/unictype/scripts-tests (Files): Likewise.
30440         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30441         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30442         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30443         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30444         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30445         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30446         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30447         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30448         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30449         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30450         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30451         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30452         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30453         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30454         * modules/uninorm/composition-tests (Files): Likewise.
30455         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30456         * modules/uninorm/decomposition-tests (Files): Likewise.
30457         * modules/uninorm/filter-tests (Files): Likewise.
30458         * modules/uninorm/nfc-tests (Files): Likewise.
30459         * modules/uninorm/nfd-tests (Files): Likewise.
30460         * modules/uninorm/nfkc-tests (Files): Likewise.
30461         * modules/uninorm/nfkd-tests (Files): Likewise.
30462         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30463         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30464         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30465         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30466         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30467         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30468         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30469         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30470         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30471         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30472         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30473         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30474         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30475         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30476         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30477         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30478         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30479         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30480         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30481         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30482         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30483         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30484         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30485         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30486         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30487         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30488         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30489         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30490         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30491         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30492         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30493         * modules/uniwidth/u8-width-tests (Files): Likewise.
30494         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30495         * modules/uniwidth/u16-width-tests (Files): Likewise.
30496         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30497         * modules/uniwidth/u32-width-tests (Files): Likewise.
30498         * modules/uniwidth/width-tests (Files): Likewise.
30499         * modules/unlink-tests (Files): Likewise.
30500         * modules/unsetenv-tests (Files): Likewise.
30501         * modules/usleep-tests (Files): Likewise.
30502         * modules/utimens-tests (Files): Likewise.
30503         * modules/utimensat-tests (Files): Likewise.
30504         * modules/vasnprintf-posix-tests (Files): Likewise.
30505         * modules/vasnprintf-tests (Files): Likewise.
30506         * modules/vasprintf-posix-tests (Files): Likewise.
30507         * modules/vasprintf-tests (Files): Likewise.
30508         * modules/vdprintf-posix-tests (Files): Likewise.
30509         * modules/vfprintf-posix-tests (Files): Likewise.
30510         * modules/vprintf-posix-tests (Files): Likewise.
30511         * modules/vsnprintf-posix-tests (Files): Likewise.
30512         * modules/vsnprintf-tests (Files): Likewise.
30513         * modules/vsprintf-posix-tests (Files): Likewise.
30514         * modules/wcrtomb-tests (Files): Likewise.
30515         * modules/wcsnrtombs-tests (Files): Likewise.
30516         * modules/wcsrtombs-tests (Files): Likewise.
30517         * modules/wctype-tests (Files): Likewise.
30518         * modules/wcwidth-tests (Files): Likewise.
30519         * modules/xmemdup0-tests (Files): Likewise.
30520         * modules/xprintf-posix-tests (Files): Likewise.
30521         * modules/xvasprintf-tests (Files): Likewise.
30522
30523 2009-12-24  Eric Blake  <ebb9@byu.net>
30524
30525         test-nanosleep: fix typo
30526         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30527         patch.
30528         Reported by Bruno Haible.
30529
30530 2009-12-24  Bruno Haible  <bruno@clisp.org>
30531
30532         Reduce namespace pollution on glibc systems.
30533         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30534         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30535         systems.
30536         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30537         <getopt.h> on glibc systems.
30538         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30539         systems.
30540         * lib/fcntl.c: Include <unistd.h> here instead.
30541
30542 2009-12-24  Bruno Haible  <bruno@clisp.org>
30543
30544         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30545
30546 2009-12-24  Eric Blake  <ebb9@byu.net>
30547
30548         tests: add signature checks
30549         * tests/signature.h (SIGNATURE_CHECK): New file.
30550         * modules/atexit-tests (Files): Use it.
30551         * modules/btowc-tests (Files): Likewise.
30552         * modules/canonicalize-lgpl-tests (Files): Likewise.
30553         * modules/ceilf-tests (Files): Likewise.
30554         * modules/ceill-tests (Files): Likewise.
30555         * modules/chown-tests (Files): Likewise.
30556         * modules/dprintf-posix-tests (Files): Likewise.
30557         * modules/dup2-tests (Files): Likewise.
30558         * modules/dup3-tests (Files): Likewise.
30559         * modules/duplocale-tests (Files): Likewise.
30560         * modules/fchdir-tests (Files): Likewise.
30561         * modules/fcntl-tests (Files): Likewise.
30562         * modules/fdopendir-tests (Files): Likewise.
30563         * modules/fflush-tests (Files): Likewise.
30564         * modules/flock-tests (Files): Likewise.
30565         * modules/floorf-tests (Files): Likewise.
30566         * modules/floorl-tests (Files): Likewise.
30567         * modules/fnmatch-tests (Files): Likewise.
30568         * modules/fopen-tests (Files): Likewise.
30569         * modules/fprintf-posix-tests (Files): Likewise.
30570         * modules/freopen-tests (Files): Likewise.
30571         * modules/frexp-nolibm-tests (Files): Likewise.
30572         * modules/frexp-tests (Files): Likewise.
30573         * modules/frexpl-nolibm-tests (Files): Likewise.
30574         * modules/frexpl-tests (Files): Likewise.
30575         * modules/fseek-tests (Files): Likewise.
30576         * modules/fseeko-tests (Files): Likewise.
30577         * modules/fsync-tests (Files): Likewise.
30578         * modules/ftell-tests (Files): Likewise.
30579         * modules/ftello-tests (Files): Likewise.
30580         * modules/futimens-tests (Files): Likewise.
30581         * modules/getaddrinfo-tests (Files): Likewise.
30582         * modules/getcwd-tests (Files): Likewise.
30583         * modules/getdelim-tests (Files): Likewise.
30584         * modules/getdtablesize-tests (Files): Likewise.
30585         * modules/getgroups-tests (Files): Likewise.
30586         * modules/gethostname-tests (Files): Likewise.
30587         * modules/getline-tests (Files): Likewise.
30588         * modules/getopt-posix-tests (Files): Likewise.
30589         * modules/gettimeofday-tests (Files): Likewise.
30590         * modules/glob-tests (Files): Likewise.
30591         * modules/iconv-tests (Files): Likewise.
30592         * modules/inet_ntop-tests (Files): Likewise.
30593         * modules/inet_pton-tests (Files): Likewise.
30594         * modules/isblank-tests (Files): Likewise.
30595         * modules/lchown-tests (Files): Likewise.
30596         * modules/ldexpl-tests (Files): Likewise.
30597         * modules/link-tests (Files): Likewise.
30598         * modules/linkat-tests (Files): Likewise.
30599         * modules/lseek-tests (Files): Likewise.
30600         * modules/lstat-tests (Files): Likewise.
30601         * modules/mbrtowc-tests (Files): Likewise.
30602         * modules/mbsinit-tests (Files): Likewise.
30603         * modules/mbsnrtowcs-tests (Files): Likewise.
30604         * modules/mbsrtowcs-tests (Files): Likewise.
30605         * modules/memchr-tests (Files): Likewise.
30606         * modules/memcmp-tests (Files): Likewise.
30607         * modules/memmem-tests (Files): Likewise.
30608         * modules/memrchr-tests (Files): Likewise.
30609         * modules/mkdir-tests (Files): Likewise.
30610         * modules/mkfifo-tests (Files): Likewise.
30611         * modules/mkfifoat-tests (Files): Likewise.
30612         * modules/mknod-tests (Files): Likewise.
30613         * modules/nanosleep-tests (Files): Likewise.
30614         * modules/nl_langinfo-tests (Files): Likewise.
30615         * modules/obstack-printf-tests (Files): Likewise.
30616         * modules/open-tests (Files): Likewise.
30617         * modules/openat-tests (Files): Likewise.
30618         * modules/perror-tests (Files): Likewise.
30619         * modules/pipe2-tests (Files): Likewise.
30620         * modules/poll-tests (Files): Likewise.
30621         * modules/popen-tests (Files): Likewise.
30622         * modules/posix_spawn-tests (Files): Likewise.
30623         * modules/posix_spawnp-tests (Files): Likewise.
30624         * modules/pread-tests (Files): Likewise.
30625         * modules/printf-posix-tests (Files): Likewise.
30626         * modules/pty-tests (Files): Likewise.
30627         * modules/random_r-tests (Files): Likewise.
30628         * modules/rawmemchr-tests (Files): Likewise.
30629         * modules/readlink-tests (Files): Likewise.
30630         * modules/remove-tests (Files): Likewise.
30631         * modules/rename-tests (Files): Likewise.
30632         * modules/renameat-tests (Files): Likewise.
30633         * modules/rmdir-tests (Files): Likewise.
30634         * modules/round-tests (Files): Likewise.
30635         * modules/roundf-tests (Files): Likewise.
30636         * modules/roundl-tests (Files): Likewise.
30637         * modules/select-tests (Files): Likewise.
30638         * modules/setenv-tests (Files): Likewise.
30639         * modules/sigaction-tests (Files): Likewise.
30640         * modules/sleep-tests (Files): Likewise.
30641         * modules/snprintf-posix-tests (Files): Likewise.
30642         * modules/snprintf-tests (Files): Likewise.
30643         * modules/sprintf-posix-tests (Files): Likewise.
30644         * modules/stat-tests (Files): Likewise.
30645         * modules/strcasestr-tests (Files): Likewise.
30646         * modules/strchrnul-tests (Files): Likewise.
30647         * modules/strerror-tests (Files): Likewise.
30648         * modules/strsignal-tests (Files): Likewise.
30649         * modules/strstr-tests (Files): Likewise.
30650         * modules/strtod-tests (Files): Likewise.
30651         * modules/strverscmp-tests (Files): Likewise.
30652         * modules/symlink-tests (Files): Likewise.
30653         * modules/symlinkat-tests (Files): Likewise.
30654         * modules/times-tests (Files): Likewise.
30655         * modules/trunc-tests (Files): Likewise.
30656         * modules/truncf-tests (Files): Likewise.
30657         * modules/truncl-tests (Files): Likewise.
30658         * modules/tsearch-tests (Files): Likewise.
30659         * modules/uname-tests (Files): Likewise.
30660         * modules/unlink-tests (Files): Likewise.
30661         * modules/unsetenv-tests (Files): Likewise.
30662         * modules/usleep-tests (Files): Likewise.
30663         * modules/utimensat-tests (Files): Likewise.
30664         * modules/vasprintf-tests (Files): Likewise.
30665         * modules/vdprintf-posix-tests (Files): Likewise.
30666         * modules/vfprintf-posix-tests (Files): Likewise.
30667         * modules/vprintf-posix-tests (Files): Likewise.
30668         * modules/vsnprintf-posix-tests (Files): Likewise.
30669         * modules/vsnprintf-tests (Files): Likewise.
30670         * modules/vsprintf-posix-tests (Files): Likewise.
30671         * modules/wcrtomb-tests (Files): Likewise.
30672         * modules/wcsnrtombs-tests (Files): Likewise.
30673         * modules/wcsrtombs-tests (Files): Likewise.
30674         * modules/wcwidth-tests (Files): Likewise.
30675         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30676         * tests/test-isinf.c (isinf): Likewise.
30677         * tests/test-isnan.c (isnan): Likewise.
30678         * tests/test-signbit.c (signbit): Likewise.
30679         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30680         declaration, either as macro or with correct signature.
30681         (select): Ensure function under test is declared with correct
30682         signature in correct header.
30683         * tests/test-atexit.c (atexit): Likewise.
30684         * tests/test-btowc.c (btowc): Likewise.
30685         * tests/test-canonicalize-lgpl.c (realpath)
30686         (canonicalize_file_name): Likewise.
30687         * tests/test-ceilf1.c (ceilf): Likewise.
30688         * tests/test-ceill.c (ceill): Likewise.
30689         * tests/test-chown.c (chown): Likewise.
30690         * tests/test-dprintf-posix.c (dprintf): Likewise.
30691         * tests/test-dup2.c (dup2): Likewise.
30692         * tests/test-dup3.c (dup3): Likewise.
30693         * tests/test-duplocale.c (duplocale): Likewise.
30694         * tests/test-fchdir.c (fchdir): Likewise.
30695         * tests/test-fchownat.c (fchownat): Likewise.
30696         * tests/test-fcntl.c (fcntl): Likewise.
30697         * tests/test-fdopendir.c (fdopendir): Likewise.
30698         * tests/test-fflush.c (fflush): Likewise.
30699         * tests/test-flock.c (flock): Likewise.
30700         * tests/test-floorf1.c (floorf): Likewise.
30701         * tests/test-floorl.c (floorl): Likewise.
30702         * tests/test-fnmatch.c (fnmatch): Likewise.
30703         * tests/test-fopen.c (fopen): Likewise.
30704         * tests/test-fprintf-posix.c (fprintf): Likewise.
30705         * tests/test-freopen.c (freopen): Likewise.
30706         * tests/test-frexp.c (frexp): Likewise.
30707         * tests/test-frexpl.c (frexpl): Likewise.
30708         * tests/test-fseek.c (fseek): Likewise.
30709         * tests/test-fseeko.c (fseeko): Likewise.
30710         * tests/test-fstatat.c (fstatat): Likewise.
30711         * tests/test-fsync.c (fsync): Likewise.
30712         * tests/test-ftell.c (ftell): Likewise.
30713         * tests/test-ftello.c (ftello): Likewise.
30714         * tests/test-futimens.c (futimens): Likewise.
30715         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30716         (gai_strerror): Likewise.
30717         * tests/test-getcwd.c (getcwd): Likewise.
30718         * tests/test-getdelim.c (getdelim): Likewise.
30719         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30720         * tests/test-getgroups.c (getgroups): Likewise.
30721         * tests/test-gethostname.c (gethostname): Likewise.
30722         * tests/test-getline.c (getline): Likewise.
30723         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30724         Likewise.
30725         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30726         * tests/test-glob.c (glob, globfree): Likewise.
30727         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30728         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30729         * tests/test-inet_pton.c (inet_pton): Likewise.
30730         * tests/test-isblank.c (isblank): Likewise.
30731         * tests/test-lchown.c (lchown): Likewise.
30732         * tests/test-ldexpl.c (ldexpl): Likewise.
30733         * tests/test-link.c (link): Likewise.
30734         * tests/test-linkat.c (linkat): Likewise.
30735         * tests/test-lseek.c (lseek): Likewise.
30736         * tests/test-lstat.c (lstat): Likewise.
30737         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30738         * tests/test-mbsinit.c (mbsinit): Likewise.
30739         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30740         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30741         * tests/test-memchr.c (memchr): Likewise.
30742         * tests/test-memcmp.c (memcmp): Likewise.
30743         * tests/test-memmem.c (memmem): Likewise.
30744         * tests/test-memrchr.c (memrchr): Likewise.
30745         * tests/test-mkdir.c (mkdir): Likewise.
30746         * tests/test-mkdirat.c (mkdirat): Likewise.
30747         * tests/test-mkfifo.c (mkfifo): Likewise.
30748         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30749         * tests/test-mknod.c (mknod): Likewise.
30750         * tests/test-nanosleep.c (nanosleep): Likewise.
30751         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30752         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30753         Likewise.
30754         * tests/test-open.c (open): Likewise.
30755         * tests/test-openat.c (openat): Likewise.
30756         * tests/test-perror.c (perror): Likewise.
30757         * tests/test-pipe2.c (pipe2): Likewise.
30758         * tests/test-poll.c (poll): Likewise.
30759         * tests/test-popen.c (popen, pclose): Likewise.
30760         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30761         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30762         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30763         (posix_spawn_file_actions_destroy)
30764         (posix_spawn_file_actions_addclose)
30765         (posix_spawn_file_actions_addopen)
30766         (posix_spawn_file_actions_adddup2): Likewise.
30767         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30768         * tests/test-pread.c (pread): Likewise.
30769         * tests/test-printf-posix.c (printf): Likewise.
30770         * tests/test-pty.c (openpty, forkpty): Likewise.
30771         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30772         (random_r): Likewise.
30773         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30774         * tests/test-readlink.c (readlink): Likewise.
30775         * tests/test-remove.c (remove): Likewise.
30776         * tests/test-rename.c (rename): Likewise.
30777         * tests/test-renameat.c (renameat): Likewise.
30778         * tests/test-rmdir.c (rmdir): Likewise.
30779         * tests/test-round1.c (round): Likewise.
30780         * tests/test-roundf1.c (roundf): Likewise.
30781         * tests/test-roundl.c (roundl): Likewise.
30782         * tests/test-setenv.c (setenv): Likewise.
30783         * tests/test-sigaction.c (sigaction): Likewise.
30784         * tests/test-sleep.c (sleep): Likewise.
30785         * tests/test-snprintf.c (snprintf): Likewise.
30786         * tests/test-sprintf-posix.c (sprintf): Likewise.
30787         * tests/test-stat.c (stat): Likewise.
30788         * tests/test-stpncpy.c (stpncpy): Likewise.
30789         * tests/test-strcasestr.c (strcasestr): Likewise.
30790         * tests/test-strchrnul.c (strchrnul): Likewise.
30791         * tests/test-strerror.c (strerror): Likewise.
30792         * tests/test-strsignal.c (strsignal): Likewise.
30793         * tests/test-strstr.c (strstr): Likewise.
30794         * tests/test-strtod.c (strtod): Likewise.
30795         * tests/test-strverscmp.c (strverscmp): Likewise.
30796         * tests/test-symlink.c (symlink): Likewise.
30797         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30798         * tests/test-times.c (times): Likewise.
30799         * tests/test-trunc1.c (trunc): Likewise.
30800         * tests/test-truncf1.c (truncf): Likewise.
30801         * tests/test-truncl.c (truncl): Likewise.
30802         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30803         Likewise.
30804         * tests/test-uname.c (uname): Likewise.
30805         * tests/test-unlink.c (unlink): Likewise.
30806         * tests/test-unlinkat.c (unlinkat): Likewise.
30807         * tests/test-unsetenv.c (unsetenv): Likewise.
30808         * tests/test-usleep.c (usleep): Likewise.
30809         * tests/test-utimensat.c (utimensat): Likewise.
30810         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30811         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30812         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30813         * tests/test-vprintf-posix.c (vprintf): Likewise.
30814         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30815         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30816         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30817         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30818         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30819         * tests/test-wcwidth.c (wcwidth): Likewise.
30820
30821         build: pull in conditional headers during GNULIB_POSIXCHECK
30822         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30823         definitions from any conditionally-included headers.
30824         * lib/stdlib.in.h (includes): Likewise.
30825         * lib/unistd.in.h (includes): Likewise.
30826
30827 2009-12-24  Bruno Haible  <bruno@clisp.org>
30828
30829         * tests/test-argv-iter.c: Include header file being tested immediately
30830         after config.h.
30831         * tests/test-base64.c: Likewise.
30832         * tests/test-flock.c: Likewise.
30833         * tests/test-fsync.c: Likewise.
30834         * tests/test-getdate.c: Likewise.
30835         * tests/test-getndelim2.c: Likewise.
30836         * tests/test-isfinite.c: Likewise.
30837         * tests/test-isinf.c: Likewise.
30838         * tests/test-strerror.c: Likewise.
30839         * tests/test-strsignal.c: Likewise.
30840
30841 2009-12-23  Eric Blake  <ebb9@byu.net>
30842
30843         unistd: work around cygwin bug
30844         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30845         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30846         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30847
30848 2009-12-23  Bruno Haible  <bruno@clisp.org>
30849
30850         localename: More tests.
30851         * tests/test-localename.c (SIZEOF): New macro.
30852         (categories): New variable.
30853         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30854         test_locale_name_default): Add test w.r.t. thread locale.
30855         (test_locale_name_thread): New function.
30856         (main): Invoke it.
30857
30858         localename: Make aware of thread locale.
30859         * lib/localename.h (gl_locale_name_thread): New declaration.
30860         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30861         behaviour with respect to thread locale.
30862         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30863         <langinfo.h>, glthread/lock.h.
30864         (SIZE_BITS): New macro.
30865         (string_hash): New function.
30866         (struct hash_node): New type.
30867         (HASH_TABLE_SIZE): New macro.
30868         (struniq_hash_table, struniq_lock): New variables.
30869         (struniq): New function.
30870         (gl_locale_name_thread): New function.
30871         (gl_locale_name): Invoke it.
30872         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30873         * modules/localename (Depends-on): Add lock.
30874         Reported by Mike Gran <spk121@yahoo.com>.
30875
30876 2009-12-23  Eric Blake  <ebb9@byu.net>
30877
30878         va-args: new module
30879         * modules/va-args: New file.
30880         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30881         * MODULES.html.sh (Core language properties): Mention it.
30882
30883         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30884         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30885         named alias for __attribute__((__unused__)).
30886         * lib/chown.c: Update client.
30887         * lib/fchmodat.c: Likewise.
30888         * lib/fts.c: Likewise.
30889         * lib/getdate.y: Likewise.
30890         * lib/getgroups.c: Likewise.
30891         * lib/getopt.c: Likewise.
30892         * lib/getugroups.c: Likewise.
30893         * lib/mkdir.c: Likewise.
30894         * lib/mkfifo.c: Likewise.
30895         * lib/mkfifoat.c: Likewise.
30896         * lib/mknod.c: Likewise.
30897         * lib/mknodat.c: Likewise.
30898         * lib/readlink.c: Likewise.
30899         * lib/se-context.in.h: Likewise.
30900         * lib/se-selinux.in.h: Likewise.
30901         * lib/sockets.c: Likewise.
30902         * lib/symlink.c: Likewise.
30903         * lib/symlinkat.c: Likewise.
30904         * lib/unicodeio.c: Likewise.
30905         * lib/unistr.h: Likewise.
30906         * tests/test-areadlink.c: Likewise.
30907         * tests/test-areadlinkat.c: Likewise.
30908         * tests/test-filenamecat.c: Likewise.
30909         * tests/test-fseeko.c: Likewise.
30910         * tests/test-ftello.c: Likewise.
30911         * tests/test-getdate.c: Likewise.
30912         * tests/test-getgroups.c: Likewise.
30913         * tests/test-gethostname.c: Likewise.
30914         * tests/test-quotearg.c: Likewise.
30915         * tests/test-version-etc.c: Likewise.
30916         * tests/test-xalloc-die.c: Likewise.
30917         * tests/test-xfprintf-posix.c: Likewise.
30918         * tests/test-xprintf-posix.c: Likewise.
30919         * tests/test-xvasprintf.c: Likewise.
30920
30921         tests: avoid compiler warnings
30922         * tests/test-fcntl.c (main): Delete unused parameters.
30923         * tests/test-freopen-safer.c (main): Likewise.
30924         * tests/test-xalloc-die.c (main): Mark unused parameters.
30925         * tests/test-fseeko.c (main): Likewise.
30926         * tests/test-ftello.c (main): Likewise.
30927         * tests/test-nanosleep.c (main): Avoid declaration warning.
30928         * tests/test-sleep.c (main): Likewise.
30929         * tests/test-unsetenv.c (main): Silence warning about string
30930         literal.
30931         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30932
30933 2009-12-23  Bruno Haible  <bruno@clisp.org>
30934
30935         * tests/test-localename.c (test_locale_name): New function, extracted
30936         from main. Also test mixed situations.
30937         (test_locale_name_posix, test_locale_name_environ,
30938         test_locale_name_default): New functions.
30939         (main): Invoke them all.
30940         * modules/localename-tests (configure.ac): Test for newlocale.
30941
30942 2009-12-23  Bruno Haible  <bruno@clisp.org>
30943
30944         unistd: Ensure getcwd gets declared before being overridden.
30945         * lib/unistd.in.h: Conditionally include <io.h>.
30946
30947 2009-12-22  Bruno Haible  <bruno@clisp.org>
30948
30949         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30950         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30951         (gl_WCHAR_H): Invoke it.
30952         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30953         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30954         Reported by Karl Berry <karl@freefriends.org>.
30955
30956 2009-12-22  Eric Blake  <ebb9@byu.net>
30957
30958         math, unistd: avoid redundant includes
30959         * lib/math.in.h (isnan): No need to re-include <math.h>.
30960         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30961
30962         getsubopt: work around cygwin bug
30963         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30964         avoid conflicting with system getsubopt.
30965         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30966         bug.
30967
30968         getopt: synchronize from glibc
30969         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30970         parameter order.  Adjust all callers.
30971         (_getopt_internal_r, main): Adjust quoting in error messages.
30972         Drop considerations for outdated POSIX 1003.2 error message.
30973         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30974         callers.
30975         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30976
30977         test-getopt: test stderr behavior
30978         * modules/getopt-posix-tests (Depends-on): Add dup2.
30979         * tests/test-getopt.c (ASSERT): Avoid stderr.
30980         (main): Move stderr to a temporary file.
30981         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30982         Instead, add parameter to inform caller if output occurred.
30983         (test_getopt): Adjust all existing tests to expect silence, and
30984         add new tests of leading ":".
30985         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30986         glibc shortcomings with leading "-:" or "+:" in optstring.
30987         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30988         Likewise.
30989         * doc/posix-functions/getopt.texi (getopt): Likewise.
30990
30991         test-getopt: enhance test
30992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30993         supports optind=0.
30994         * tests/test-getopt.c (OPTIND_MIN): Move...
30995         * tests/test-getopt.h (OPTIND_MIN): ...here.
30996         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30997         Require that optind=0 works, since modern BSD supports it in
30998         addition to optreset, and since coreutils expects it.
30999         (test_getopt_long_only): New test.
31000         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31001         glibc shortcomings with 'W;', and enforcement of optind=0.
31002         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31003         Likewise.
31004
31005 2009-12-21  Bruno Haible  <bruno@clisp.org>
31006
31007         localename: Improvements for MacOS X and Cygwin.
31008         * lib/localename.h (gl_locale_name_environ): New declaration.
31009         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31010         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31011         (gl_locale_name_posix): Invoke it.
31012         (gl_locale_name_default): Add comments. Use Windows native API also on
31013         Cygwin.
31014
31015 2009-12-21  Bruno Haible  <bruno@clisp.org>
31016
31017         Update list of Win32 locale ids.
31018         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31019         (LANG_SAMI): Renamed from LANG_SAAMI.
31020         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31021         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31022         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31023         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31024         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31025         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31026         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31027         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31028         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31029         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31030         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31031         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31032         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31033         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31034         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31035         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31036         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31037         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31038         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31039         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31040         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31041         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31042         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31043         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31044         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31045         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31046         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31047         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31048         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31049         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31050         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31051         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31052         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31053         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31054         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31055         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31056         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31057         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31058         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31059         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31060         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31061         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31062         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31063         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31064         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31065         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31066         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31067         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31068         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31069         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31070         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31071         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31072         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31073         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31074         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31075         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31076         Add more languages and countries for Sami, Sorbian. Add more countries
31077         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31078         for Pashto. Change country for Syriac, Tswana.
31079
31080 2009-12-21  Eric Blake  <ebb9@byu.net>
31081
31082         test-utimens: avoid spurious failure
31083         * tests/test-chown.h (nap): Factor...
31084         * tests/nap.h: ...into new file.
31085         * tests/test-lchown.h (nap): Avoid duplication.
31086         * tests/test-utimens-common.h (nap): Use shared implementation,
31087         necessary on file systems with 1-second resolution.
31088         * modules/chown-tests (Files): Include new file.
31089         * modules/fdutimensat-tests (Files): Likewise.
31090         * modules/futimens-tests (Files): Likewise.
31091         * modules/lchown-tests (Files): Likewise.
31092         * modules/openat-tests (Files): Likewise.
31093         * modules/utimens-tests (Files): Likewise.
31094         * modules/utimensat-tests (Files): Likewise.
31095
31096 2009-12-19  Eric Blake  <ebb9@byu.net>
31097
31098         futimens, utimensat: work around Linux bug
31099         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31100         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31101         * lib/utimensat.c (rpl_utimensat): Work around it.
31102         * lib/futimens.c (rpl_futimens): Adjust comment.
31103
31104         utimens: work around Linux ctime bug
31105         * lib/utimens.c (detect_ctime_bug): New helper function.
31106         (update_timespec): Differentiate between workaround needed for
31107         this bug vs. what is needed for systems that lack utimensat.
31108         (fdutimens, lutimens): Work around bug.
31109
31110         utimens: check for ctime update
31111         * tests/test-utimens-common.h (check_ctime): Define.
31112         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31113         * tests/test-futimens.h (test_futimens): Likewise.
31114         * tests/test-lutimens.h (test_lutimens): Likewise.
31115         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31116         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31117
31118 2009-12-19  Bruno Haible  <bruno@clisp.org>
31119
31120         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31121         * tests/test-dprintf-posix2.sh: New file.
31122         * tests/test-dprintf-posix2.c: New file.
31123         * modules/dprintf-posix-tests (Files): Add them.
31124         (configure.ac): Check for getrlimit and setrlimit.
31125         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31126
31127 2009-12-19  Bruno Haible  <bruno@clisp.org>
31128
31129         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31130         * tests/test-fprintf-posix3.sh: New file.
31131         * tests/test-fprintf-posix3.c: New file.
31132         * modules/fprintf-posix-tests (Files): Add them.
31133         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31134
31135 2009-12-19  Eric Blake  <ebb9@byu.net>
31136
31137         dirfd: fix prototype
31138         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31139         * lib/dirfd.c (dirfd): Likewise.
31140
31141         canonicalize: reduce memory usage
31142         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31143         allocation to size.
31144         Reported by Solar Designer <solar@openwall.com>.
31145
31146 2009-12-19  Bruno Haible  <bruno@clisp.org>
31147
31148         New module attribute 'Applicability'.
31149         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31150         * gnulib-tool: New option --extract-applicability.
31151         (func_usage): Document it.
31152         (sed_extract_prog): Recognize it.
31153         (func_get_applicability): New function.
31154         (func_import): Generalize handling of 'link-warning' module.
31155         * modules/link-warning (Applicability): New section.
31156         * modules/arg-nonnull (Applicability): New section.
31157         Repoted by Simon Josefsson <simon@josefsson.org>.
31158
31159 2009-12-19  Bruno Haible  <bruno@clisp.org>
31160
31161         fflush: tweak
31162         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31163         * lib/fseeko.c (rpl_fseeko): Likewise.
31164
31165 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31166
31167         * lib/gl_list.h: Fix typo in comment.
31168
31169 2009-12-16  Eric Blake  <ebb9@byu.net>
31170
31171         fcntl: use to simplify other modules
31172         * modules/cloexec (Depends-on): Add fcntl.
31173         * modules/fchdir (Depends-on): Likewise.
31174         * modules/fd-safer-flag (Depends-on): Likewise.
31175         * modules/unistd-safer (Depends-on): Likewise.
31176         * modules/dup3 (configure.ac): Set module indicator.
31177         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31178         missing.
31179         * lib/fchdir.c (_gl_register_dup): Fix comment.
31180         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31181         * lib/dup-safer.c (dup_safer): Likewise.
31182         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31183         * lib/dup3.c (dup3): Likewise.
31184         * tests/test-fchdir.c (main): Enhance test.
31185         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31186
31187         fcntl: port portions of fcntl to mingw
31188         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31189         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31190         replacement for mingw.
31191         * modules/fcntl (Description): Update.
31192         (Depends-on): Add dup2.
31193         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31194         * modules/fcntl-h (Makefile.am): Substitute it.
31195         * lib/fcntl.in.h (fcntl): Update declaration.
31196         (F_DUPFD, F_GETFD): New macros, when needed.
31197         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31198         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31199         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31200         we now guarantee.
31201
31202         fcntl: work around cygwin bug in F_DUPFD
31203         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31204         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31205         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31206         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31207         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31208
31209         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31210         * modules/fcntl (Files): List new files.
31211         (configure.ac): Run a test.
31212         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31213         * lib/fcntl.c (rpl_fcntl): Likewise.
31214         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31215         (gl_FCNTL_H): Always replace fcntl.h.
31216         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31217         * lib/fcntl.in.h (fcntl): Declare replacement.
31218         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31219         needed, plus a witness.
31220         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31221         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31222         * tests/test-fcntl.c: New file.
31223         * modules/fcntl-tests: Likewise.
31224
31225         binary-io: avoid potential compilation warning
31226         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31227         directives.
31228
31229         fflush: avoid compilation error on NetBSD
31230         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31231         between off_t and fpos_t, since the latter is sometimes a struct.
31232         * lib/fseeko.c (rpl_fseeko): Likewise.
31233         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31234
31235 2009-12-15  Eric Blake  <ebb9@byu.net>
31236
31237         fcntl-h, stdio, sys_ioctl: fix declarations
31238         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31239         function must not take arguments.
31240         * lib/sys_ioctl.in.h (ioctl): Likewise.
31241         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31242         (open): Add a link warning.
31243
31244 2009-12-15  Jim Meyering  <meyering@redhat.com>
31245
31246         areadlink, areadlink-with-size: relax license to LGPLv2+
31247         * modules/areadlink (License): Relax to LGPLv2+.
31248         * modules/areadlink-with-size (License): Likewise.
31249
31250 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31251             Bruno Haible  <bruno@clisp.org>
31252
31253         *printf: Fix memory leak.
31254         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31255         * lib/vfprintf.c (vfprintf): Likewise.
31256         * lib/dprintf.c (dprintf): Likewise.
31257         * lib/vdprintf.c (vdprintf): Likewise.
31258
31259 2009-12-14  Eric Blake  <ebb9@byu.net>
31260
31261         accept4: adjust module dependencies
31262         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31263
31264         utimens: one more try at avoiding compiler warning
31265         * lib/utimens.c (lutimens): Lower scope of result.
31266
31267 2009-12-13  Bruno Haible  <bruno@clisp.org>
31268
31269         Move the malloc checking from module 'list' to new module 'xlist'.
31270         * modules/xlist: New file.
31271         * lib/gl_xlist.h: New file.
31272         * lib/gl_xlist.c: New file.
31273         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31274         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31275         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31276         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31277         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31278         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31279         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31280         gl_sortedlist_nx_add): New declarations.
31281         (struct gl_list_implementation): Rename and change methods accordingly.
31282         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31283         (gl_list_nx_create): Renamed from gl_list_create.
31284         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31285         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31286         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31287         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31288         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31289         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31290         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31291         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31292         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31293         gl_list_create_empty.
31294         (gl_list_nx_create): Renamed from gl_list_create.
31295         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31296         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31297         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31298         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31299         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31300         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31301         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31302         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31303         * lib/gl_array_list.c: Don't include xalloc.h.
31304         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31305         NULL upon out-of-memory.
31306         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31307         out-of-memory.
31308         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31309         Change return type to 'int'.
31310         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31311         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31312         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31313         upon out-of-memory.
31314         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31315         upon out-of-memory.
31316         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31317         upon out-of-memory.
31318         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31319         upon out-of-memory.
31320         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31321         out-of-memory.
31322         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31323         Update.
31324         (gl_array_list_implementation): Update.
31325         * lib/gl_carray_list.c: Don't include xalloc.h.
31326         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31327         Return NULL upon out-of-memory.
31328         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31329         out-of-memory.
31330         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31331         Change return type to 'int'.
31332         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31333         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31334         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31335         upon out-of-memory.
31336         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31337         upon out-of-memory.
31338         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31339         out-of-memory.
31340         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31341         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31342         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31343         Update.
31344         (gl_carray_list_implementation): Update.
31345         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31346         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31347         gl_linked_create_empty. Return NULL upon out-of-memory.
31348         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31349         out-of-memory.
31350         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31351         Change return type to 'int'. Return -1 upon out-of-memory.
31352         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31353         out-of-memory.
31354         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31355         upon out-of-memory.
31356         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31357         upon out-of-memory.
31358         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31359         NULL upon out-of-memory.
31360         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31361         upon out-of-memory.
31362         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31363         out-of-memory.
31364         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31365         Update.
31366         * lib/gl_linked_list.c: Don't include xalloc.h.
31367         (gl_linked_list_implementation): Update.
31368         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31369         (add_to_bucket): Change return type to 'int'.
31370         (gl_linkedhash_list_implementation): Update.
31371         * lib/gl_anytree_list1.h (free_subtree): New function.
31372         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31373         gl_tree_create_empty. Return NULL upon out-of-memory.
31374         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31375         Change return type to 'int'. Return -1 upon out-of-memory.
31376         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31377         out-of-memory.
31378         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31379         (gl_tree_remove_node): New function, moved here from
31380         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31381         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31382         Update.
31383         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31384         malloc, not xmalloc. Return NULL upon out-of-memory.
31385         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31386         out-of-memory.
31387         (gl_tree_remove_node_from_tree): New function, extracted from
31388         gl_tree_remove_node.
31389         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31390         upon out-of-memory.
31391         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31392         out-of-memory.
31393         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31394         upon out-of-memory.
31395         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31396         upon out-of-memory.
31397         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31398         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31399         not xmalloc. Return NULL upon out-of-memory.
31400         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31401         out-of-memory.
31402         (gl_tree_remove_node_from_tree): New function, extracted from
31403         gl_tree_remove_node.
31404         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31405         upon out-of-memory.
31406         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31407         out-of-memory.
31408         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31409         upon out-of-memory.
31410         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31411         upon out-of-memory.
31412         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31413         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31414         gl_anytree_list1.h before gl_anyavltree_list2.h.
31415         (gl_avltree_list_implementation): Update.
31416         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31417         gl_anytree_list1.h before gl_anyavltree_list2.h.
31418         (gl_rbtree_list_implementation): Update.
31419         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31420         Change return type to 'int'. Return -1 upon out-of-memory. Use
31421         __builtin_expect.
31422         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31423         (gl_avltreehash_list_implementation): Update.
31424         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31425         (gl_rbtreehash_list_implementation): Update.
31426         * modules/array-list (Depends-on): Remove xalloc.
31427         * modules/carray-list (Depends-on): Likewise.
31428         * modules/linked-list (Depends-on): Likewise.
31429         * modules/linkedhash-list (Depends-on): Likewise.
31430         * modules/avltree-list (Depends-on): Likewise.
31431         * modules/rbtree-list (Depends-on): Likewise.
31432         * modules/avltreehash-list (Depends-on): Likewise.
31433         * modules/rbtreehash-list (Depends-on): Likewise.
31434
31435         * modules/xsublist: New file.
31436         * lib/gl_xsublist.h: New file.
31437         * lib/gl_xsublist.c: New file.
31438         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31439         (gl_sublist_nx_create): New declaration.
31440         * lib/gl_sublist.c: Don't include xalloc.h.
31441         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31442         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31443         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31444         Change return type to 'int'. Return -1 upon out-of-memory.
31445         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31446         upon out-of-memory.
31447         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31448         NULL upon out-of-memory.
31449         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31450         upon out-of-memory.
31451         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31452         NULL upon out-of-memory.
31453         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31454         NULL upon out-of-memory.
31455         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31456         upon out-of-memory.
31457         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31458         (gl_sublist_list_implementation): Update.
31459         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31460         upon out-of-memory.
31461         * modules/sublist (Depends-on): Remove xalloc.
31462
31463         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31464         * tests/test-carray_list.c: Likewise.
31465         * tests/test-linked_list.c: Likewise.
31466         * tests/test-linkedhash_list.c: Likewise.
31467         * tests/test-avltree_list.c: Likewise.
31468         * tests/test-rbtree_list.c: Likewise.
31469         * tests/test-avltreehash_list.c: Likewise.
31470         * tests/test-rbtreehash_list.c: Likewise.
31471         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31472         * modules/carray-list-tests (Makefile.am): Likewise.
31473         * modules/linked-list-tests (Makefile.am): Likewise.
31474         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31475         * modules/avltree-list-tests (Makefile.am): Likewise.
31476         * modules/rbtree-list-tests (Makefile.am): Likewise.
31477         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31478         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31479
31480         * NEWS: Mention the changes.
31481
31482         * lib/clean-temp.c: Include gl_xlist.h.
31483         * modules/clean-temp (Depends-on): Add xlist.
31484
31485         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31486         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31487
31488         * tests/test-array_oset.c: Include gl_xlist.h.
31489         * modules/array-oset-tests (Depends-on): Add xlist.
31490
31491         Reported by José E. Marchesi <jemarch@gnu.org>.
31492
31493 2009-12-13  Bruno Haible  <bruno@clisp.org>
31494
31495         Move the malloc checking from module 'oset' to new module 'xoset'.
31496         * modules/xoset: New file.
31497         * lib/gl_xoset.h: New file.
31498         * lib/gl_xoset.c: New file.
31499         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31500         declarations.
31501         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31502         (struct gl_oset_implementation): Rename and change methods accordingly.
31503         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31504         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31505         'int'. Mark as __warn_unused_result__.
31506         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31507         gl_oset_create_empty.
31508         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31509         'int'.
31510         * lib/gl_array_oset.c: Don't include xalloc.h.
31511         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31512         malloc, not xmalloc.
31513         (grow): Change return type to 'int'. Don't call xalloc_die.
31514         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31515         to 'int'.
31516         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31517         'int'.
31518         (gl_array_oset_implementation): Update.
31519         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31520         gl_tree_create_empty.
31521         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31522         'int'.
31523         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31524         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31525         xmalloc.
31526         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31527         not xmalloc.
31528         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31529         xmalloc.
31530         (gl_avltree_oset_implementation): Update.
31531         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31532         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31533         xmalloc.
31534         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31535         not xmalloc.
31536         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31537         xmalloc.
31538         (gl_rbtree_oset_implementation): Update.
31539         * modules/array-oset (Depends-on): Remove xalloc.
31540         * modules/avltree-oset (Depends-on): Likewise.
31541         * modules/rbtree-oset (Depends-on): Likewise.
31542         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31543         * tests/test-avltree_oset.c: Likewise.
31544         * tests/test-rbtree_oset.c: Likewise.
31545         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31546         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31547         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31548         * NEWS: Mention the change.
31549
31550 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31551
31552         maint.mk: allow a project to override release-prep commands
31553         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31554         commands into a new rule.
31555         (release-prep): New rule.
31556         (release-prep-hook): New overridable variable.
31557
31558 2009-12-13  Bruno Haible  <bruno@clisp.org>
31559
31560         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31561
31562 2009-12-13  Jim Meyering  <meyering@redhat.com>
31563
31564         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31565         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31566
31567 2009-12-12  Bruno Haible  <bruno@clisp.org>
31568
31569         duplocale: Tweak.
31570         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31571
31572 2009-12-12  Karl Berry  <karl@gnu.org>
31573
31574         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31575
31576 2009-12-12  Bruno Haible  <bruno@clisp.org>
31577
31578         * m4/po.m4: Undo incorrect untabification.
31579
31580 2009-12-12  Bruno Haible  <bruno@clisp.org>
31581
31582         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31583         * modules/c-strtod (Depends-on): Add locale.
31584         * modules/c-strtold (Depends-on): Likewise.
31585
31586 2009-12-12  Bruno Haible  <bruno@clisp.org>
31587
31588         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31589
31590 2009-12-11  Eric Blake  <ebb9@byu.net>
31591
31592         setenv: relax requirement in light of POSIX ruling
31593         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31594         not NULL.
31595         * tests/test-setenv.c (main): Relax test.
31596         * tests/test-unsetenv.c (main): Likewise.
31597         * doc/posix-functions/setenv.texi (setenv): Document this.
31598         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31599
31600 2009-12-11  Bruno Haible  <bruno@clisp.org>
31601
31602         New module 'fd-safer-flag'.
31603         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31604         * lib/dup-safer.c (dup_safer_flag): Remove function.
31605         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31606         * lib/fd-safer.c (fd_safer_flag): Remove function.
31607         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31608         * modules/cloexec (configure.ac): Drop indicator macro.
31609         * modules/fd-safer-flag: New file.
31610         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31611         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31612         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31613
31614 2009-12-11  Bruno Haible  <bruno@clisp.org>
31615
31616         Tests for module 'nl_langinfo'.
31617         * modules/nl_langinfo-tests: New file.
31618         * tests/test-nl_langinfo.sh: New file.
31619         * tests/test-nl_langinfo.c: New file.
31620
31621         New module 'nl_langinfo'.
31622         * lib/nl_langinfo.c: New file.
31623         * m4/nl_langinfo.m4: New file.
31624         * modules/nl_langinfo: New file.
31625         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31626
31627 2009-12-11  Bruno Haible  <bruno@clisp.org>
31628
31629         Tests for module 'langinfo'.
31630         * modules/langinfo-tests: New file.
31631         * tests/test-langinfo.c: New file.
31632
31633         New module 'langinfo'.
31634         * lib/langinfo.in.h: New file.
31635         * m4/langinfo_h.m4: New file.
31636         * modules/langinfo: New file.
31637         * doc/posix-headers/langinfo.texi: Mention the new module.
31638
31639 2009-12-11  Bruno Haible  <bruno@clisp.org>
31640
31641         * lib/config.charset: Untabify.
31642
31643 2009-12-11  Bruno Haible  <bruno@clisp.org>
31644
31645         * modules/unistd-safer (configure.ac): Drop indicator macro.
31646
31647 2009-12-11  Bruno Haible  <bruno@clisp.org>
31648
31649         Move pipe2-safer code to its own file.
31650         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31651         * lib/pipe-safer.c (pipe2_safer): Remove function.
31652         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31653         (Makefile.am): Add it to lib_SOURCES.
31654
31655 2009-12-10  Bruno Haible  <bruno@clisp.org>
31656
31657         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31658
31659 2009-12-10  Bruno Haible  <bruno@clisp.org>
31660
31661         Declare which arguments expect non-NULL values, for GCC and clang.
31662         * build-aux/arg-nonnull.h: New file.
31663         * modules/arg-nonnull: New file.
31664         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31665         (inet_ntop, inet_pton): Use it.
31666         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31667         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31668         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31669         (open, openat): Use it.
31670         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31671         (fnmatch): Use it.
31672         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31673         (getopt, getopt_long, getopt_long_only): Use it.
31674         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31675         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31676         Use it.
31677         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31678         (iconv_open): Use it.
31679         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31680         (strtoimax, strtoumax): Use it.
31681         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31682         (duplocale): Use it.
31683         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31684         (frexp, frexpl): Use it.
31685         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31686         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31687         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31688         (tsearch, tfind, tdelete, twalk): Use it.
31689         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31690         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31691         sigpending): Use it.
31692         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31693         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31694         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31695         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31696         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31697         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31698         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31699         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31700         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31701         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31702         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31703         Use it.
31704         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31705         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31706         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31707         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31708         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31709         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31710         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31711         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31712         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31713         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31714         strtoull, unsetenv): Use it.
31715         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31716         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31717         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31718         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31719         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31720         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31721         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31722         (strcasecmp, strncasecmp): Use it.
31723         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31724         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31725         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31726         rpl_setsockopt): Use it.
31727         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31728         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31729         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31730         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31731         (gettimeofday): Use it.
31732         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31733         (times): Use it.
31734         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31735         (uname): Use it.
31736         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31737         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31738         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31739         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31740         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31741         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31742         unlinkat, write): Use it.
31743         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31744         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31745         * lib/argv-iter.h: Include arg-nonnull.h.
31746         (_ATTRIBUTE_NONNULL_): Remove macro.
31747         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31748         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31749         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31750         optimization.
31751         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31752         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31753         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31754         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31755         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31756         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31757         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31758         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31759         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31760         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31761         * modules/dirent (Depends-on): Add arg-nonnull.
31762         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31763         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31764         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31765         * modules/fnmatch (Depends-on): Add arg-nonnull.
31766         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31767         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31768         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31769         * modules/glob (Depends-on): Add arg-nonnull.
31770         (Makefile.am): Insert arg-nonnull.h into glob.h.
31771         * modules/iconv_open (Depends-on): Add arg-nonnull.
31772         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31773         * modules/inttypes (Depends-on): Add arg-nonnull.
31774         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31775         * modules/locale (Depends-on): Add arg-nonnull.
31776         (Makefile.am): Insert arg-nonnull.h into locale.h.
31777         * modules/math (Depends-on): Add arg-nonnull.
31778         (Makefile.am): Insert arg-nonnull.h into math.h.
31779         * modules/netdb (Depends-on): Add arg-nonnull.
31780         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31781         * modules/search (Depends-on): Add arg-nonnull.
31782         (Makefile.am): Insert arg-nonnull.h into search.h.
31783         * modules/signal (Depends-on): Add arg-nonnull.
31784         (Makefile.am): Insert arg-nonnull.h into signal.h.
31785         * modules/spawn (Depends-on): Add arg-nonnull.
31786         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31787         * modules/stdio (Depends-on): Add arg-nonnull.
31788         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31789         * modules/stdlib (Depends-on): Add arg-nonnull.
31790         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31791         * modules/string (Depends-on): Add arg-nonnull.
31792         (Makefile.am): Insert arg-nonnull.h into string.h.
31793         * modules/strings (Depends-on): Add arg-nonnull.
31794         (Makefile.am): Insert arg-nonnull.h into strings.h.
31795         * modules/sys_socket (Depends-on): Add arg-nonnull.
31796         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31797         * modules/sys_stat (Depends-on): Add arg-nonnull.
31798         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31799         * modules/sys_time (Depends-on): Add arg-nonnull.
31800         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31801         * modules/sys_times (Depends-on): Add arg-nonnull.
31802         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31803         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31804         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31805         * modules/time (Depends-on): Add arg-nonnull.
31806         (Makefile.am): Insert arg-nonnull.h into time.h.
31807         * modules/unistd (Depends-on): Add arg-nonnull.
31808         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31809         * modules/wchar (Depends-on): Add arg-nonnull.
31810         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31811         * modules/argv-iter (Depends-on): Add arg-nonnull.
31812         * tests/test-canonicalize.c (null_ptr): New function.
31813         (main): Use it.
31814         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31815         (main): Use it.
31816         * tests/test-memmem.c (null_ptr): New function.
31817         (main): Use it.
31818         Reported by Jim Meyering.
31819
31820 2009-12-10  Bruno Haible  <bruno@clisp.org>
31821
31822         Use spaces for indentation, not tabs.
31823         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31824         * m4/*.m4: Untabify.
31825         * build-aux/*.h: Untabify.
31826         * tests/**/*.[hc]: Untabify.
31827         * README: New section "Indent with spaces, not TABs", based on
31828         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31829         * NEWS: Mention the change.
31830
31831 2009-12-10  Bruno Haible  <bruno@clisp.org>
31832
31833         pty test: Fix link error.
31834         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31835         test_pty_LDADD.
31836
31837 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31838
31839         * modules/pty: New file.
31840         * modules/pty-tests: New file.
31841         * m4/pty.m4: New file.
31842         * tests/test-pty.c: New file.
31843         * doc/glibc-headers/pty.texi: Modified.
31844         * doc/glibc-functions/forkpty.texi: Modified.
31845         * doc/glibc-functions/openpty.texi: Modified.
31846
31847 2009-12-10  Bruno Haible  <bruno@clisp.org>
31848
31849         Avoid syntax error in C++ mode.
31850         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31851
31852 2009-12-10  Bruno Haible  <bruno@clisp.org>
31853
31854         Use sed with option -e.
31855         * gnulib-tool (func_version, func_emit_copyright_notice,
31856         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31857         option -e to sed.
31858         * modules/link-warning (Makefile.am): Likewise.
31859
31860 2009-12-10  Jim Meyering  <meyering@redhat.com>
31861
31862         mgetgroups: do not write bytes beyond end of malloc'd buffer
31863         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31864         username, we call getgroups with a one-element-shorter buffer,
31865         but still told it the length was original, max_n_groups.
31866
31867 2009-12-09  Eric Blake  <ebb9@byu.net>
31868
31869         cloexec: relax license
31870         * modules/cloexec (Maintainer): Add myself.
31871         (License): Use LGPL, not GPL.
31872
31873         link-warning: optimize generation
31874         * modules/link-warning (Makefile.am): Reduce process usage.
31875
31876 2009-12-09  Bruno Haible  <bruno@clisp.org>
31877
31878         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31879         workaround was added on 2009-11-17.
31880
31881 2009-12-09  Jim Meyering  <meyering@redhat.com>
31882             Bruno Haible  <bruno@clisp.org>
31883
31884         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31885         * modules/link-warning (Makefile.am): Make the comment-removing sed
31886         command more robust in the face of bootstrap-prepended comment lines.
31887
31888 2009-12-09  Bruno Haible  <bruno@clisp.org>
31889
31890         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31891         most one group.
31892
31893 2009-12-09  Simon Josefsson <simon@josefsson.org>
31894             Bruno Haible  <bruno@clisp.org>
31895
31896         * build-aux/link-warning.h: Add copyright notice.
31897         * modules/link-warning (Makefile.am): Generate link-warning.h from
31898         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31899         * NEWS: Mention change in link-warning module.
31900         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31901         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31902         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31903         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31904         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31905         * modules/math (Makefile.am): Add dependency to math.h.
31906         * modules/search (Makefile.am): Add dependency to search.h.
31907         * modules/signal (Makefile.am): Add dependency to signal.h.
31908         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31909         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31910         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31911         * modules/string (Makefile.am): Add dependency to string.h.
31912         * modules/strings (Makefile.am): Add dependency to strings.h.
31913         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31914         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31915         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31916         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31917         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31918         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31919         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31920         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31921         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31922
31923 2009-12-09  Bruno Haible  <bruno@clisp.org>
31924
31925         fchdir: Optimize away rpl_fstat when possible.
31926         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31927         REPLACE_OPEN_DIRECTORY.
31928         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31929
31930 2009-12-09  Bruno Haible  <bruno@clisp.org>
31931
31932         * lib/fchdir.c: Update comment.
31933
31934 2009-12-09  Bruno Haible  <bruno@clisp.org>
31935
31936         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31937
31938 2009-12-08  Eric Blake  <ebb9@byu.net>
31939
31940         fchdir: avoid memory leak on re-registration.
31941         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31942
31943 2009-12-08  Jim Meyering  <meyering@redhat.com>
31944
31945         init.sh: avoid Solaris 10 /bin/sh portability problem
31946         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31947         sourced script:
31948           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31949           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31950           bar
31951         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31952         and two tests used that idiom.
31953         * tests/init.sh: Update suggested usage comments.
31954         (path_prepend_): New function, to be used in place
31955         of the --src-path=DIR option.
31956         (setup_): Move PATH-prepending code into path_prepend_.
31957         * tests/test-pread.sh: Adapt to new usage.
31958         * tests/test-xalloc-die.sh: Likewise.
31959
31960 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31961
31962         * doc/gnulib.texi (Glibc pty.h): Add.
31963         * doc/glibc-functions/forkpty.texi: Add.
31964         * doc/glibc-functions/openpty.texi: Add.
31965         Suggested by Bruno Haible.
31966
31967 2009-12-08  Eric Blake  <ebb9@byu.net>
31968
31969         fchdir: fix logic bugs
31970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31971         * tests/test-fchdir.c (main): Enhance test.
31972         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31973         is in use.
31974
31975         dup2: fix logic bugs
31976         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31977         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31978         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31979         exists.
31980         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31981
31982 2009-12-07  Eric Blake  <ebb9@byu.net>
31983
31984         unlink: fix m4 detection
31985         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31986
31987         unistd-safer: add unit test
31988         * modules/unistd-safer-tests: New file.
31989         * tests/test-dup-safer.c: Likewise.
31990         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31991         * tests/test-dup2.c (setmode): Likewise.
31992         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31993
31994         cloexec: preserve text vs. binary across dup_cloexec
31995         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31996         mode.
31997         * modules/dup2-tests (Depends-on): Add binary-io.
31998         * modules/cloexec-tests (Depends-on): Likewise.
31999         * tests/test-dup2.c (setmode, is_mode): New helpers.
32000         (main): Add tests that translation mode is preserved.
32001         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32002         Reported by Bruno Haible.
32003
32004         mgetgroups: reduce duplicate listings
32005         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32006         resulting array.
32007         * tests/test-chown.h (test_chown): Simplify client.
32008         * tests/test-lchown.h (test_lchown): Likewise.
32009
32010 2009-12-06  Bruno Haible  <bruno@clisp.org>
32011
32012         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32013         value.
32014
32015 2009-12-06  Bruno Haible  <bruno@clisp.org>
32016
32017         * lib/progname.c: Include stdio.h, stdlib.h.
32018         (set_program_name): Reject a NULL argument.
32019
32020 2009-12-05  Eric Blake  <ebb9@byu.net>
32021
32022         pipe2-safer: new module
32023         * modules/pipe2-safer: New file.
32024         * lib/unistd-safer.h (pipe2_safer): New prototype.
32025         * lib/unistd--.h (pipe2): New wrapper.
32026         * lib/pipe-safer.c (pipe2_safer): New function.
32027         * modules/pipe (Depends-on): Add pipe2-safer.
32028         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32029
32030         stdlib-safer: preserve cloexec flag for mkostemp[s]
32031         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32032         fd_safer_flag.
32033
32034         unistd-safer: allow preservation of cloexec status via flag
32035         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32036         prototypes.
32037         * lib/dup-safer.c (dup_safer_flag): New function.
32038         * lib/fd-safer.c (fd_safer_flag): Likewise.
32039         * modules/cloexec (configure.ac): Set witness.
32040
32041         test-dup2: enhance test
32042         * modules/dup2-tests (Depends-on): Add cloexec.
32043         * tests/test-dup2.c (main): Enhance test.
32044
32045         cloexec: add dup_cloexec
32046         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32047         header and comments.
32048         * lib/cloexec.c (set_cloexec_flag): Add comments.
32049         (dup_cloexec): New function, with mingw implementation borrowed
32050         from...
32051         * lib/w32spawn.h (dup_noinherit): ...here.
32052         * modules/execute (Depends-on): Add cloexec.
32053         * modules/pipe (Depends-on): Likewise.
32054         * modules/cloexec (Depends-on): Add dup2.
32055         * modules/cloexec-tests (Files): New file.
32056         * tests/test-cloexec.c: Likewise.
32057
32058         test-xalloc-die: fix test for mingw
32059         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32060         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32061         directory and .exe suffix off argv[0] output.
32062
32063         test-fseeko: fix test for mingw
32064         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32065         than undefining fseek, so test will pass on mingw.
32066
32067 2009-12-05  Bruno Haible  <bruno@clisp.org>
32068
32069         * lib/progname.h (set_program_name): Clarify specification.
32070         * lib/progname.c (set_program_name): Likewise.
32071         Reported by Jim Meyering.
32072
32073 2009-12-05  Jim Meyering  <meyering@redhat.com>
32074
32075         maint.mk: backslash-escape parens in default regexp
32076         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32077         backslash-escape the literal parentheses.
32078
32079         maint.mk: news-date-check: use grep -E
32080         * top/maint.mk (today): Define a Make variable, not a...
32081         (news-date-check): ...shell variable.
32082         (news-date-regexp): Use the Make variable.
32083         Use grep's -E option.  Change the failing diagnostic to mention
32084         the variable, $(news-date-regexp).
32085
32086 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32087
32088         maintainer-makefile: allow customization of NEWS entry format
32089         * top/maint.mk (news-date-regexp): New overridable variable.
32090         (news-date-check): Use it.
32091
32092 2009-12-04  Eric Blake  <ebb9@byu.net>
32093
32094         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32095         * lib/mgetgroups.h (xgetgroups): New prototype.
32096         * lib/mgetgroups.c (xgetgroups): New wrapper.
32097         (mgetgroups): Handle ENOSYS.
32098         * modules/mgetgroups (Depends-on): Add realloc.
32099         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32100
32101         mgetgroups: avoid argument promotion issues with -1
32102         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32103         for invalid gid_t.
32104         * tests/test-chown.h (getegid, test_chown): Likewise.
32105         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32106
32107 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32108
32109         exclude: Fix header file problems.
32110         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32111
32112 2009-12-01  Jim Meyering  <meyering@redhat.com>
32113
32114         fts: fts_open: do not let an empty string cause immediate failure
32115         This is required in support of GNU rm, for which the command
32116         "rm A '' B" must process and remove both A and B, in spite of
32117         the empty string argument.
32118         * lib/fts.c (fts_open): Do not let the presence of an empty string
32119         cause fts_open to fail immediately.  Most fts-using tools must be
32120         able to process all arguments, in order, and can be expected to
32121         diagnose such arguments themselves.
32122
32123 2009-11-30  Eric Blake  <ebb9@byu.net>
32124
32125         utimens: fix compilation error
32126         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32127         Declare variable at right scope.
32128
32129 2009-11-29  Jim Meyering  <meyering@redhat.com>
32130
32131         bootstrap: handle perl-5.11's changed --version output
32132         * build-aux/bootstrap (get_version): Handle perl separately,
32133         since perl-5.11's --version output is different.
32134
32135 2009-11-28  Jim Meyering  <meyering@redhat.com>
32136
32137         userspec: depend on the inttostr module, too
32138         * modules/userspec (Depends-on): Add inttostr.
32139
32140         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32141         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32142         number of MAXUID when it evaluates to (uid_t) -1.
32143         Likewise for group ID.  Reported by Matt McCutchen in
32144         <http://savannah.gnu.org/bugs/?28113>
32145
32146         userspec: reformat to use spaces, not TABs
32147         * lib/userspec.c: Expand TABs to spaces.
32148         Add Emacs' "indent-tabs-mode: nil" hint.
32149
32150 2009-11-27  Eric Blake  <ebb9@byu.net>
32151
32152         getopt-gnu: flush out another BSD bug
32153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32154         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32155         flush out BSD bug.
32156         * tests/test-getopt.h (test_getopt): End lists with NULL.
32157         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32158         (test_getopt_long_posix): Enhance test.
32159         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32160         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32161         getopt-gnu.
32162         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32163         Likewise.
32164
32165 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32166
32167         * modules/idpriv-droptemp-tests (Notice): Fix text.
32168
32169 2009-11-27  Jim Meyering  <meyering@redhat.com>
32170
32171         test-xalloc-die: avoid spurious failure due to libtool argv difference
32172         In a libtool-enabled project, this test would fail due to a difference
32173         in the emitted program name, e.g.,
32174         -test-xalloc-die: memory exhausted
32175         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32176         Use program to avoid that.
32177         * modules/xalloc-die-tests (Depends-on): Add progname.
32178         * tests/test-xalloc-die.c: Include progname.h".
32179         (program_name): Remove decl.
32180         (main): Call set_program_name.
32181         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32182
32183 2009-11-26  Richard Jones  <rjones@redhat.com>
32184
32185         w32sock: leave win32 error in place.
32186         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32187
32188 2009-11-26  Eric Blake  <ebb9@byu.net>
32189
32190         init.sh: suggest to use skip_ and fail_ functions in comments
32191         * tests/init.sh: Add a sentence.
32192
32193 2009-11-25  Bruno Haible  <bruno@clisp.org>
32194
32195         init.sh: add documentation in comments
32196         * tests/init.sh: Add some developer and user documentation.
32197
32198 2009-11-26  Jim Meyering  <meyering@redhat.com>
32199
32200         init.sh: accommodate even those who specify bogus srcdir manually
32201         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32202         configure-time tests to be sanitized, so that there is no need to
32203         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32204         (with no double quotes) suffices.  However, since tests may be
32205         invoked manually, and since you may explicitly set srcdir to the
32206         name of a directory containing spaces, do quote its uses here.
32207         * tests/test-pread.sh: Likewise.
32208         Suggested by Bruno Haible.
32209
32210         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32211         * tests/test-pread.sh: Write no data into the pipe, because
32212         test-pread actually reads none.  This avoids a diagnostic,
32213         "bash: echo: write error: Broken pipe", that arises in the unusual
32214         event something is ignoring SIGPIPE, and might be interpreted
32215         as some sort of failure.  Reported by Bruno Haible.
32216
32217 2009-11-25  Jim Meyering  <meyering@redhat.com>
32218
32219         test-pread: cover failure with ESPIPE and EINVAL
32220         * tests/test-pread.c (main): Test for failure, too.
32221         * tests/test-pread.sh: Invoke with stdin on a pipe.
32222         Suggested by Eric Blake.
32223
32224         pread: improvement and fix
32225         * modules/pread (Depends-on): Depend on lseek, for portability to
32226         e.g., mingw.  Suggested by Eric Blake.
32227         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32228
32229         unistd.in.h: correct declaration of pread
32230         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32231         Reported by Richard W.M. Jones.
32232
32233         test-pread.sh: distribute the test script
32234         * modules/pread-tests (Files): Include test-pread.sh.
32235
32236         test-pread.sh: clean up
32237         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32238         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32239         That is unnecessary, since it's always ".".
32240         Suggestion from Eric Blake.
32241
32242         test-pread.sh: make executable
32243         * tests/test-pread.sh: Set executable bit.
32244         Reported by Eric Blake.
32245
32246         correct typo in test-pread.sh
32247         * tests/test-pread.sh: Add #! line.
32248
32249         test pread
32250         * tests/test-pread.c: New file.
32251         * tests/test-pread.sh: Likewise.
32252         * modules/pread-tests: Likewise.
32253
32254         pread: new module
32255         * modules/pread: New file.
32256         * lib/unistd.in.h (pread): Define/declare.
32257         * lib/pread.c (pread): New file.
32258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32259         * modules/unistd (Makefile.am): Substitute witnesses.
32260         * doc/posix-functions/pread.texi (pread): Update.
32261         * MODULES.html.sh: Add pread.
32262
32263 2009-11-25  Jim Meyering  <meyering@redhat.com>
32264
32265         tests/init.sh: new file to be used via most *.sh tests
32266         * tests/init.sh: New file.
32267
32268 2009-11-25  Eric Blake  <ebb9@byu.net>
32269
32270         utimens: work around older Linux failure with symlinks
32271         * lib/utimens.c (lutimensat_works_really): New variable.
32272         (fdutimens, lutimens): Use it to manage kernels that support
32273         nanosecond times on files, but not on symlinks.
32274         Reported by Ondřej Vašík.
32275
32276         utimes: fix configure grammar
32277         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32278
32279 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32280
32281         regex: Fix fastmap for multibyte character ranges.
32282         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32283         characters when a multibyte character range is included.
32284
32285 2009-11-22  Andy Wingo  <wingo@pobox.com>
32286
32287         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32288         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32289
32290 2009-11-24  Bruno Haible  <bruno@clisp.org>
32291
32292         doc: Most *_l functions exist in MacOS X 10.5.
32293         * doc/posix-functions/duplocale.texi: Update platforms list.
32294         * doc/posix-functions/freelocale.texi: Likewise.
32295         * doc/posix-functions/newlocale.texi: Likewise.
32296         * doc/posix-functions/uselocale.texi: Likewise.
32297         * doc/posix-functions/isalnum_l.texi: Likewise.
32298         * doc/posix-functions/isalpha_l.texi: Likewise.
32299         * doc/posix-functions/isblank_l.texi: Likewise.
32300         * doc/posix-functions/iscntrl_l.texi: Likewise.
32301         * doc/posix-functions/isdigit_l.texi: Likewise.
32302         * doc/posix-functions/isgraph_l.texi: Likewise.
32303         * doc/posix-functions/islower_l.texi: Likewise.
32304         * doc/posix-functions/isprint_l.texi: Likewise.
32305         * doc/posix-functions/ispunct_l.texi: Likewise.
32306         * doc/posix-functions/isspace_l.texi: Likewise.
32307         * doc/posix-functions/isupper_l.texi: Likewise.
32308         * doc/posix-functions/iswalnum_l.texi: Likewise.
32309         * doc/posix-functions/iswalpha_l.texi: Likewise.
32310         * doc/posix-functions/iswblank_l.texi: Likewise.
32311         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32312         * doc/posix-functions/iswctype_l.texi: Likewise.
32313         * doc/posix-functions/iswdigit_l.texi: Likewise.
32314         * doc/posix-functions/iswgraph_l.texi: Likewise.
32315         * doc/posix-functions/iswlower_l.texi: Likewise.
32316         * doc/posix-functions/iswprint_l.texi: Likewise.
32317         * doc/posix-functions/iswpunct_l.texi: Likewise.
32318         * doc/posix-functions/iswspace_l.texi: Likewise.
32319         * doc/posix-functions/iswupper_l.texi: Likewise.
32320         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32321         * doc/posix-functions/isxdigit_l.texi: Likewise.
32322         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32323         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32324         * doc/posix-functions/strcoll_l.texi: Likewise.
32325         * doc/posix-functions/strfmon_l.texi: Likewise.
32326         * doc/posix-functions/strftime_l.texi: Likewise.
32327         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32328         * doc/posix-functions/strxfrm_l.texi: Likewise.
32329         * doc/posix-functions/tolower_l.texi: Likewise.
32330         * doc/posix-functions/toupper_l.texi: Likewise.
32331         * doc/posix-functions/towctrans_l.texi: Likewise.
32332         * doc/posix-functions/towlower_l.texi: Likewise.
32333         * doc/posix-functions/towupper_l.texi: Likewise.
32334         * doc/posix-functions/wcscoll_l.texi: Likewise.
32335         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32336         * doc/posix-functions/wctrans_l.texi: Likewise.
32337         * doc/posix-functions/wctype_l.texi: Likewise.
32338         * doc/glibc-functions/strptime_l.texi: Likewise.
32339         * doc/glibc-functions/strtod_l.texi: Likewise.
32340         * doc/glibc-functions/strtof_l.texi: Likewise.
32341         * doc/glibc-functions/strtol_l.texi: Likewise.
32342         * doc/glibc-functions/strtold_l.texi: Likewise.
32343         * doc/glibc-functions/strtoll_l.texi: Likewise.
32344         * doc/glibc-functions/strtoul_l.texi: Likewise.
32345         * doc/glibc-functions/strtoull_l.texi: Likewise.
32346         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32347         * doc/glibc-functions/wcstod_l.texi: Likewise.
32348         * doc/glibc-functions/wcstof_l.texi: Likewise.
32349         * doc/glibc-functions/wcstol_l.texi: Likewise.
32350         * doc/glibc-functions/wcstold_l.texi: Likewise.
32351         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32352         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32353         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32354
32355 2009-11-24  Bruno Haible  <bruno@clisp.org>
32356
32357         duplocale: Fix logic bug.
32358         * lib/duplocale.c: Don't include <langinfo.h>.
32359         (_NL_LOCALE_NAME): Remove macro.
32360         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32361         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32362
32363 2009-11-23  Jim Meyering  <meyering@redhat.com>
32364
32365         test-update-copyright: don't hard-code /usr/bin/perl
32366         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32367         perl to print the current year.  Gilles Espinasse reported that
32368         the replaced use of perl was hard-coded as /usr/bin/perl.
32369
32370 2009-11-23  Bruno Haible  <bruno@clisp.org>
32371
32372         duplocale: Add support for glibc 2.3.x.
32373         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32374
32375 2009-11-22  Bruno Haible  <bruno@clisp.org>
32376
32377         vasnprintf: Tiny optimization.
32378         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32379         MacOS X.
32380
32381 2009-11-22  Bruno Haible  <bruno@clisp.org>
32382
32383         Tests for module 'duplocale'.
32384         * modules/duplocale-tests: New file.
32385         * tests/test-duplocale.c: New file.
32386
32387         New module 'duplocale'.
32388         * m4/duplocale.m4: New file.
32389         * lib/locale.in.h (duplocale): New declaration.
32390         * lib/duplocale.c: New file.
32391         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32392         gl_LOCALE_H_DEFAULTS): New macros.
32393         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32394         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32395         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32396         REPLACE_DUPLOCALE.
32397         * modules/duplocale: New file.
32398         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32399
32400 2009-11-22  Bruno Haible  <bruno@clisp.org>
32401
32402         * modules/locale-tests (configure.ac): Test for newlocale function.
32403         * tests/test-locale.c: When the system has extended locale functions,
32404         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32405
32406         locale: Make locale_t available when possible.
32407         * lib/locale.in.h: Include <xlocale.h> when it exists.
32408         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32409         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32410         * modules/locale (Depends-on): Add extensions.
32411         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32412         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32413
32414 2009-11-22  Bruno Haible  <bruno@clisp.org>
32415
32416         Add comments.
32417         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32418         invocation.
32419         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32420         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32421         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32422
32423 2009-11-22  Bruno Haible  <bruno@clisp.org>
32424
32425         error: account for the possibility of freopen (stdout).
32426         * lib/error.c: Include <unistd.h>.
32427         (flush_stdout): New function, extracted from error and error_at_line.
32428         Determine stdout's fd dynamically.
32429         (error, error_at_line): Invoke flush_stdout.
32430         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32431         * modules/error (Depends-on): Add unistd.
32432
32433 2009-11-22  Bruno Haible  <bruno@clisp.org>
32434
32435         diffseq: Add comment.
32436         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32437
32438 2009-11-22  Jim Meyering  <meyering@redhat.com>
32439
32440         c-stack: avoid defining an unused static function
32441         * lib/c-stack.c (find_stack_direction): Do not define this function
32442         when it will not be used.
32443
32444         diffseq: avoid spurious gcc warnings
32445         * lib/diffseq.h (IF_LINT2): Define.
32446         (compareseq): Use it to initialize two members of "part".
32447         This avoids two used-uninitialized warnings.
32448
32449 2009-11-21  Jim Meyering  <meyering@redhat.com>
32450
32451         c-stack: avoid "ignoring return value of `write'" warning
32452         * lib/c-stack.c: Include "ignore-value.h".
32453         (die): Explicitly ignore each write return value.
32454         * modules/c-stack (Depends-on): Add ignore-value.
32455
32456 2009-11-21  Bruno Haible  <bruno@clisp.org>
32457
32458         diffseq: reduce scope of variable 'best'.
32459         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32460         variable, earlier used for two different purposes.
32461
32462 2009-11-21  Jim Meyering  <meyering@redhat.com>
32463
32464         diffseq: remove useless assignment to "best"
32465         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32466         assignment.  At that point "best" is already guaranteed to be zero.
32467
32468 2009-11-20  Eric Blake  <ebb9@byu.net>
32469
32470         build: mention ftp redirector in release announcements
32471         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32472         values that used to come from cfg.mk; mention FTP redirect URL.
32473         * build-aux/announce-gen: Mention the mirror list.
32474         Suggested by Karl Berry.
32475
32476         nanosleep: improve port to mingw
32477         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32479         LIB_NANOSLEEP, but only when needed.
32480         * modules/select (Link): Document LIBSOCKET.
32481         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32482         enough.
32483
32484         nanosleep: work around cygwin bug
32485         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32486         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32487         bug.
32488         (getnow): Delete, not needed.
32489         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32490         LIB_CLOCK_GETTIME.
32491         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32492         clock-time, gettime.
32493         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32494         bug.
32495         * modules/nanosleep-tests: New test.
32496         * tests/test-nanosleep.c: New file.
32497
32498         sleep: work around cygwin bug
32499         * lib/sleep.c (rpl_sleep): Work around the bug.
32500         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32501         (gl_PREREQ_SLEEP): Delete unused macro.
32502         * modules/sleep (Depends-on): Add verify.
32503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32504         * modules/unistd (Makefile.am): Substitute witness.
32505         * lib/unistd.in.h (sleep): Update prototype.
32506         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32507         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32508         * modules/sleep-tests (Depends-on): Check for alarm.
32509
32510 2009-11-20  Jim Meyering  <meyering@redhat.com>
32511
32512         maint.mk: improve sc_prohibit_magic_number_exit
32513         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32514         so it does not match uses like System.exit(1).
32515         Add comments showing how to correct all offenders.
32516
32517 2009-11-19  Eric Blake  <ebb9@byu.net>
32518
32519         xalloc-die-tests: add missing library
32520         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32521
32522         test-xvasprintf: silence compiler warnings
32523         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32524         empty string from gcc.
32525
32526 2009-11-19  Jim Meyering  <meyering@redhat.com>
32527
32528         xfreopen: new module, from coreutils
32529         * modules/xfreopen: New module.
32530         * lib/xfreopen.c: New file.
32531         * lib/xfreopen.h: New file.
32532         * MODULES.html.sh (File stream based Input/Output"): Add it.
32533
32534 2009-11-19  Eric Blake  <ebb9@byu.net>
32535
32536         manywarnings: depend on warnings
32537         * modules/manywarnings (Depends-on): Add warnings.
32538
32539         build: avoid compiler warnings
32540         * lib/select.c (rpl_select): Delete unused variable.
32541         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32542
32543 2009-11-18  Eric Blake  <ebb9@byu.net>
32544
32545         tests: avoid false negative with --with-packager
32546         * tests/test-version-etc.sh: Discard packager information.
32547         * tests/test-argp-version-etc-1.sh: Likewise.
32548         Reported by Mike Frysinger.
32549
32550         utimens: fix regression on Solaris
32551         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32552         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32553         can only change fd timestamps via futimesat.  Instead, use an
32554         additional witness macro to avoid BSD bug.
32555         Reported by Jim Meyering.
32556
32557 2009-11-17  Eric Blake  <ebb9@byu.net>
32558
32559         usleep: use it to simplify tests
32560         * modules/stat-time-tests (Depends-on): Add usleep.
32561         (configure.ac): Drop usleep check.
32562         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32563         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32564         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32565         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32566         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32567         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32568         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32569         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32570         Likewise.
32571         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32572         * tests/test-lchown.h (nap): Likewise.
32573         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32574         * tests/test-stat-time.c (nap): Likewise.
32575         * tests/test-utimens-common.h (nap): Update comments.
32576
32577         usleep: new module
32578         * modules/usleep: New file.
32579         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32580         * lib/usleep.c (usleep): Likewise.
32581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32582         * modules/unistd (Makefile.am): Substitute witnesses.
32583         * lib/unistd.in.h (usleep): Add declaration.
32584         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32585         * MODULES.html.sh (Date and time): Likewise.
32586         * modules/usleep-tests (Depends-on): New test.
32587         * tests/test-usleep.c: New file.
32588
32589         chown: work around OpenBSD bug
32590         * lib/chown.c (rpl_chown): Work around the bug.
32591         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32592         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32593         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32594         * modules/chown (Depends-on): Add stdbool.
32595         * modules/lchown (Depends-on): Likewise.
32596         * doc/posix-functions/chown.texi (chown): Document the bug.
32597         * doc/posix-functions/lchown.texi (lchown): Likewise.
32598         * tests/test-lchown.h (test_chown): Relax test.
32599
32600         mkstemp: avoid conflict with C++ keyword template
32601         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32602         * lib/mkostemp.c (mkostemp): Likewise.
32603         * lib/mkostemps.c (mkostemps): Likewise.
32604         * lib/mkstemp.c (mkstemp): Likewise.
32605         * lib/mkstemps.c (mkstemps): Likewise.
32606
32607         xalloc-die-tests: optimize
32608         * tests/test-xalloc-die.sh: Reduce number of processes.
32609
32610 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32611
32612         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32613         patch from ludo@gnu.org (Ludovic Courtès).
32614
32615 2009-11-17  Jim Meyering  <meyering@redhat.com>
32616
32617         version-etc: use proper license string
32618         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32619         * modules/version-etc-fsf: Likewise.
32620
32621 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32622
32623         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32624         printed to stdout.  Deal with EOL differences.
32625
32626 2009-11-17  Eric Blake  <ebb9@byu.net>
32627
32628         unsetenv: work around Solaris bug
32629         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32630         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32631         Reported by Jim Meyering.
32632
32633         vasnprintf: avoid compiler warnings
32634         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32635         variables.
32636         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32637
32638 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32639
32640         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32641         settings since xalloc-die is no longer the self test,
32642         xalloc-die.sh is.
32643
32644 2009-11-17  Jim Meyering  <meyering@redhat.com>
32645
32646         test-xalloc-die.sh: make the code agree with the commit log
32647         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32648         at the end, just in case you happen to have a test-xalloc-die
32649         program in some other PATH directory.
32650
32651         test-xalloc-die.sh: fix a portability bug
32652         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32653         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32654         Otherwise, argv[0] (as often seen in diagnostics) would be too
32655         system-dependent, sometimes with, and sometimes without the leading "./".
32656
32657         version-etc-fsf: relax license to LGPLv3+
32658         * modules/version-etc-fsf (License): Relax license.
32659
32660 2009-11-16  Eric Blake  <ebb9@byu.net>
32661
32662         xalloc-die-tests: avoid printing null pointer
32663         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32664         shell script.
32665         * tests/test-xalloc-die.c (program_name): Declare.
32666         * tests/test-xalloc-die.sh (tmpfiles): New file.
32667
32668         setenv, unsetenv: work around various bugs
32669         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32670         (setenv) [HAVE_SETENV]: Work around bugs.
32671         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32672         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32673         for bugs.
32674         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32675         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32677         * modules/stdlib (Makefile.am): Update substitutions.
32678         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32679         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32680         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32681         * modules/setenv-tests: New test.
32682         * modules/unsetenv-tests: Likewise.
32683         * tests/test-setenv.c: New file.
32684         * tests/test-unsetenv.c: Likewise.
32685
32686 2009-11-16  Jim Meyering  <meyering@redhat.com>
32687
32688         version-etc: relax license to LGPLv3+
32689         * modules/version-etc (License): Relax license.
32690
32691         better AC_REQUIRE expanded-before-required-warning avoidance
32692         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32693         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32694         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32695         which is no longer needed.
32696
32697 2009-11-16  Eric Blake  <ebb9@byu.net>
32698
32699         test-freading: clean up temporary file
32700         * tests/test-freading.c (main): Remove file on success, and use
32701         ASSERT more liberally.
32702         Reported by Jim Meyering.
32703
32704 2009-11-16  Jim Meyering  <meyering@redhat.com>
32705
32706         avoid new AC_REQUIRE expanded-before-required warnings
32707         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32708         merely using it.
32709         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32710         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32711
32712 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32713
32714         * tests/test-xalloc-die.c: New file.
32715         * modules/xalloc-die-tests: New file.
32716         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32717         XFAIL_TESTS so it can be appended by modules.
32718
32719 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32720
32721         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32722         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32723
32724 2009-11-14  Eric Blake  <ebb9@byu.net>
32725
32726         fnmatch: avoid compiler warning
32727         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32728         to silence compiler warning about mismatch signedness in ?:.
32729         Reported by Robert Millan.
32730
32731         intprops: add double-inclusion guard
32732         * lib/intprops.h: Allow idempotent includes.
32733         Suggested by Bruce Korb.
32734
32735         openat: detect Solaris fchownat bug
32736         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32737         penalizing glibc chownat when only lchownat is broken.
32738         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32739         trailing slash bugs.
32740         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32741         * modules/openat-tests (Files): Include more files.
32742         (Depends-on): Add mgetgroups, sleep, stat-time.
32743         (configure.ac): Add additional checks.
32744         (Makefile.am): Build new test.
32745         * tests/test-fchownat.c: New file.
32746
32747         lchown: detect Solaris and FreeBSD bug
32748         * lib/lchown.c (rpl_lchown): Work around bug.
32749         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32751         * modules/unistd (Makefile.am): Populate it.
32752         * lib/unistd.in.h (lchown): Update declaration.
32753         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32754         * modules/lchown-tests: New file.
32755         * tests/test-lchown.h (test_lchown): Likewise.
32756         * tests/test-lchown.c (main): Likewise.
32757
32758         chown: detect Solaris and FreeBSD bug
32759         * lib/chown.c (rpl_chown): Work around bug.
32760         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32761         (gl_PREREQ_CHOWN): Delete.
32762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32763         * modules/unistd (Makefile.am): Populate it.
32764         * lib/unistd.in.h (chown): Update declaration.
32765         * lib/lchown.c (chown): Update client.
32766         * modules/lchown (Depends-on): Add lstat.
32767         * doc/posix-functions/chown.texi (chown): Document the bug.
32768         * doc/posix-functions/getgroups.texi (getgroups): Document
32769         getgroups pitfall.
32770         * modules/chown-tests: New file.
32771         * tests/test-chown.h (test_chown): Likewise.
32772         * tests/test-chown.c (main): Likewise.
32773
32774 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32775
32776         gnulib-tool: correctly detect absence of m4 directories
32777         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32778
32779 2009-11-14  Jim Meyering  <meyering@redhat.com>
32780
32781         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32782         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32783
32784 2009-11-14  John W. Eaton  <jwe@gnu.org>
32785
32786         strftime.h: wrap funtion declaration in extern "C" block
32787         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32788
32789 2009-11-13  Eric Blake  <ebb9@byu.net>
32790
32791         getgroups: avoid compiler warning
32792         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32793
32794         getgroups: work around FreeBSD bug
32795         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32796         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32797         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32798         * tests/test-getgroups.c (main): Fix buffer overrun.
32799
32800         getgroups: avoid compilation failure
32801         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32802         * modules/getgroups (Depends-on): Add stdint.
32803
32804 2009-11-13  Jim Meyering  <meyering@redhat.com>
32805
32806         test-getgroups: avoid compilation failure
32807         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32808
32809 2009-11-13  Eric Blake  <ebb9@byu.net>
32810
32811         mgetgroups: new module, taken from coreutils
32812         * modules/mgetgroups: New file.
32813         * lib/mgetgroups.h: Likewise.
32814         * lib/mgetgroups.c (mgetgroups): Likewise.
32815         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32816         * MODULES.html.sh (Users and groups): Mention it.
32817
32818         getgroups: don't expose GETGROUPS_T to user
32819         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32820         an element at a time if GETGROUPS_T is wrong size.
32821         * lib/getugroups.h (getugroups): Change signature.
32822         * lib/unistd.in.h (getgroups): Likewise.
32823         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32824         signature needs fixing.
32825         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32826         AC_TYPE_GETGROUPS.
32827         * modules/group-member (Depends-on): Add getgroups.
32828         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32829         (group_member): Rely on getgroups replacement.
32830         * lib/getugroups.c (getugroups): Use gid_t.
32831         * tests/test-getgroups.c (main): Likewise.
32832         * NEWS: Mention the signature change.
32833         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32834         problem with signature.
32835         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32836         GETGROUPS_T is still useful for setgroups.
32837
32838         getgroups, getugroups: provide stubs for mingw
32839         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32840         * lib/getugroups.c (getugroups): Likewise.
32841         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32842         function.  Modernize replacement scheme.
32843         (gl_PREREQ_GETGROUPS): Delete.
32844         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32845         * modules/getgroups (configure.ac): Declare witness.
32846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32847         * modules/unistd (Depends-on): Substitute witness.
32848         * lib/unistd.in.h (getgroups): Declare replacement.
32849
32850         getgroups: avoid calling exit
32851         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32852         drop xalloc.
32853         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32854         dependencies.
32855         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32856         exiting, in the rare case of malloc failure.
32857
32858         getgroups: fix logic error
32859         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32860         has more than 20 groups.
32861         * modules/getgroups-tests: New test.
32862         * tests/test-getgroups.c: New file.
32863
32864 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32865
32866         * tests/test-base64.c: Improve.
32867
32868 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32869
32870         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32871         Blake <ebb9@byu.net>.
32872
32873 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32874
32875         * tests/test-xvasprintf.c: Add %s%s related checks.
32876
32877 2009-11-12  Eric Blake  <ebb9@byu.net>
32878
32879         version-etc: match standards.texi style
32880         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32881         and use <> only for URLs.
32882
32883 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32884
32885         fts: do not fail on a submount during traversal
32886         * lib/fts.c (fts_build): Read the stat info again after opening
32887         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32888         Original report at http://bugzilla.redhat.com/501848.
32889
32890 2009-11-12  Jim Meyering  <meyering@redhat.com>
32891
32892         bootstrap: sync from coreutils
32893         * build-aux/bootstrap (bootstrap_epilogue): New function.
32894         Use git_modules_config in one more place.  This make bootstrap's
32895         --gnulib-srcdir option more useful for testing.
32896
32897         bootstrap: generalize autoheader check
32898         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32899         AC_CONFIG_HEADERS.
32900
32901 2009-11-11  Eric Blake  <ebb9@byu.net>
32902
32903         mkfifoat: use new modules for Solaris and BSD bugs
32904         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32905         * lib/mkfifoat.c (mknodat): Split...
32906         * lib/mknodat.c (mknodat): ...into new file.
32907         * modules/mkfifoat (Files): Ship new file.
32908         (Depends-on): Add mkfifo, mknod.
32909         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32910         (Depends-on): Add symlink.
32911         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32912         redundant with test_mkfifo.h.
32913         (do_mkfifoat, do_mknodat): New helpers.
32914
32915         mknod: new module
32916         * modules/mknod: New file.
32917         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32918         * lib/mknod.c (mknod): Likewise.
32919         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32920         defaults.
32921         * modules/sys_stat (Makefile.am): Substitute them.
32922         * lib/sys_stat.in.h (mknod): Declare replacement.
32923         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32924         Document it.
32925         * doc/posix-functions/mknod.texi (mknod): Likewise.
32926         * modules/mknod-tests: New test.
32927         * tests/test-mknod.c: Likewise.
32928
32929         mkfifo: new module
32930         * modules/mkfifo: New file.
32931         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32932         * lib/mkfifo.c (mkfifo): Likewise.
32933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32934         defaults.
32935         * modules/sys_stat (Makefile.am): Substitute them.
32936         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32937         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32938         Document it.
32939         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32940         * modules/mkfifo-tests: New test.
32941         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32942         from test-mkfifoat.c.
32943         * tests/test-mkfifo.c: New file.
32944
32945         readlink: detect FreeBSD bug
32946         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32947         slash on symlink.
32948         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32949         * tests/test-readlink.h (test_readlink): Enhance test.
32950
32951         symlink: detect FreeBSD bug
32952         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32953         slash on symlink.
32954         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32955         * tests/test-symlink.h (test_symlink): Enhance test.
32956
32957 2009-11-10  Eric Blake  <ebb9@byu.net>
32958
32959         link: detect FreeBSD bug
32960         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32961         symlink.
32962         * doc/posix-functions/link.texi (link): Document the bug.
32963         * tests/test-link.h (test_link): Enhance test.
32964         * tests/test-linkat.c (main): Update caller.
32965
32966         unlink, remove: detect FreeBSD bug
32967         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32968         slash on symlink.
32969         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32970         * doc/posix-functions/remove.texi (remove): Likewise.
32971         * tests/test-unlink.h (test_unlink): Enhance test.
32972         * tests/test-remove.c (main): Likewise.
32973
32974 2009-11-09  Eric Blake  <ebb9@byu.net>
32975
32976         rename: detect FreeBSD bug
32977         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32978         slash on symlink.
32979         * modules/renameat-tests (Depends-on): Add filenamecat.
32980         * tests/test-rename.h (test_rename): Allow one more errno.
32981         * tests/test-renameat.c (main): Likewise.
32982         * doc/posix-functions/rename.texi (rename): Document the bug.
32983
32984         open: detect FreeBSD bug
32985         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32986         symlink.
32987         * doc/posix-functions/open.texi (open): Document the bug.
32988         * doc/posix-functions/utimes.texi (utimes): Likewise.
32989         * tests/test-open.h (test_open): Add parameters, and test symlink
32990         handling.
32991         * tests/test-open.c (main): Adjust caller.
32992         * tests/test-fcntl-safer.c (main): Likewise.
32993         * modules/open-tests (Depends-on): Add stdbool, symlink.
32994         * modules/fcntl-safer-tests (Depends-on): Likewise.
32995         * tests/test-openat.c (main): Add test-open tests.
32996
32997         stat: detect FreeBSD bug
32998         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32999         symlink.
33000         * doc/posix-functions/stat.texi (stat): Document the bug.
33001         * tests/test-stat.h (test_stat_func): Add argument.
33002         * tests/test-stat.c (main): Adjust caller.
33003         * tests/test-fstatat.c (main): Likewise.
33004         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33005         Reported by Jim Meyering.
33006
33007 2009-11-09  James Youngman  <jay@gnu.org>
33008
33009         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33010         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33011
33012 2009-11-08  Jim Meyering  <meyering@redhat.com>
33013
33014         utimens: remove invalid futimesat call
33015         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33016         It used the file descriptor of the target file as the DIR_FD
33017         parameter and NULL as the file name.  That caused failure with
33018         errno == EFAULT on FreeBSD-8.0-rc2
33019
33020 2009-11-07  Eric Blake  <ebb9@byu.net>
33021
33022         fflush, freadseek: use fseeko, not fseek
33023         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33024         (clear_ungetc_buffer): Avoid potential problems on large files.
33025         * lib/freadseek.c (freadseek): Likewise.
33026         * modules/freadseek (Depends-on): Add fseeko.
33027         * modules/fseek (configure.ac): Set a witness.
33028         * tests/test-fflush.c (main): Use fseeko.
33029         * tests/test-fpurge.c (fseek): Disable link warning.
33030         * tests/test-freadable.c (fseek): Likewise.
33031         * tests/test-freading.c (fseek): Likewise.
33032         * tests/test-fseeko.c (fseek): Likewise.
33033         * tests/test-ftell.c (fseek): Likewise.
33034         * tests/test-ftello.c (fseek): Likewise.
33035         * tests/test-fwritable.c (fseek): Likewise.
33036         * tests/test-fwriting.c (fseek): Likewise.
33037
33038 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33039
33040         * modules/memchr (Depends-on): Drop getpagesize dependency.
33041
33042 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33043
33044         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33045         Reported by Ludovic Courtès.
33046         * build-aux/pmccabe2html: Improve example usage.
33047         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33048
33049 2009-11-06  Jim Meyering  <meyering@redhat.com>
33050
33051         do-release-commit-and-tag: New module.
33052         Automate the release-commit and tag process.
33053         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33054         * modules/do-release-commit-and-tag: New file.
33055         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33056
33057 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33058
33059         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33060         because test-select.c uses inet_pton.
33061
33062 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33063
33064         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33065         GETADDRINFO_LIB.  Bump serial number.
33066         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33067         Suggested by Eric Blake <ebb9@byu.net>.
33068
33069 2009-11-05  Eric Blake  <ebb9@byu.net>
33070
33071         strtod: detect darwin bug
33072         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33073         Reported by Leo Davis.
33074
33075         freopen-safer: new module
33076         * modules/freopen-safer: New module.
33077         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33078         * lib/freopen-safer.c (freopen_safer): New file.
33079         * lib/stdio-safer.h (freopen_safer): New declaration.
33080         * lib/stdio--.h (freopen): New override.
33081         * MODULES.html.sh (File stream based Input/Output): Mention it.
33082         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33083         freopen-safer module.
33084         * doc/posix-functions/stderr.texi (stderr): Likewise.
33085         * doc/posix-functions/stdin.texi (stdin): Likewise.
33086         * doc/posix-functions/stdout.texi (stdout): Likewise.
33087         * modules/freopen-safer-tests: New test.
33088         * tests/test-reopen-safer.c: New file.
33089
33090 2009-11-05  Jim Meyering  <meyering@redhat.com>
33091
33092         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33093         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33094
33095 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33096
33097         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33098
33099 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33100
33101         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33102
33103 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33104
33105         Fix link error.
33106         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33107         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33108
33109 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33110
33111         * tests/test-func.c: Also test value of __func__.
33112
33113 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33114
33115         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33116         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33117
33118 2009-11-05  Bruno Haible  <bruno@clisp.org>
33119
33120         Fix link error.
33121         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33122         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33123         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33124
33125 2009-11-05  Bruno Haible  <bruno@clisp.org>
33126
33127         Tests for module 'inet_pton'.
33128         * modules/inet_pton-tests: New file.
33129         * tests/test-inet_pton.c: New file.
33130
33131 2009-11-05  Bruno Haible  <bruno@clisp.org>
33132
33133         Tests for module 'inet_ntop'.
33134         * modules/inet_ntop-tests: New file.
33135         * tests/test-inet_ntop.c: New file.
33136
33137 2009-11-04  Eric Blake  <ebb9@byu.net>
33138
33139         stdlib-safer: wrap all mkstemp variants
33140         * modules/mkostemp (configure.ac): Set witness.
33141         * modules/mkostemps (configure.ac): Likewise.
33142         * modules/mkstemps (configure.ac): Likewise.
33143         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33144         (mkstemps_safer): Wrap more functions.
33145         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33146         wrapping.
33147         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33148         (mkstemps_safer): Implement the wrappers.
33149
33150         mkstemps, mkostemps: new modules
33151         * modules/mkostemps: New module.
33152         * modules/mkstemps: Likewise.
33153         * lib/mkostemps.c (mkostemps): New file.
33154         * lib/mkstemps.c (mkstemps): Likewise.
33155         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33156         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33158         * modules/stdlib (Makefile.am): Substitute them.
33159         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33160         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33161         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33162         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33163         * MODULES.html.sh (File system functions): Mention them.
33164
33165         tempname: resync from glibc
33166         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33167         same values for __GT_FILE as glibc.  Abort even when assertions
33168         are disabled.
33169         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33170         match its value otherwise.  Allow idempotent inclusion.
33171         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33172         * lib/mkostemp.c (mkostemp): Likewise.
33173         * lib/mkstemp.c (mkstemp): Likewise.
33174         * lib/tmpfile.c (tmpfile): Likewise.
33175         * NEWS: Document this.
33176
33177         utimens: fix use of futimens on older Linux
33178         * lib/utimens.c (fdutimens): Use updated, rather than original,
33179         timespec to avoid bug in older Linux kernel.
33180         Reported by Simon Josefsson.
33181
33182 2009-11-04  Bruno Haible  <bruno@clisp.org>
33183
33184         Make num_processors more flexible and consistent.
33185         * lib/nproc.h (enum nproc_query): New type.
33186         (num_processors): Add a 'query' argument.
33187         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33188         (num_processors): Add a 'query' argument. Test the value of the
33189         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33190         mingw, count the number of CPUs available for the current process.
33191         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33192         Check for sched_getaffinity and sched_getaffinity_np.
33193         * modules/nproc (Depends-on): Add c-ctype, extensions.
33194         * NEWS: Mention the change.
33195
33196 2009-11-03  Bruno Haible  <bruno@clisp.org>
33197
33198         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33199
33200 2009-11-03  Jim Meyering  <meyering@redhat.com>
33201
33202         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33203         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33204         if it is defined.
33205
33206 2009-11-02  Eric Blake  <ebb9@byu.net>
33207
33208         mktime, timegm: share common declaration
33209         * lib/mktime-internal.h: New file.
33210         * lib/mktime.c: Use it rather than open-coding a declaration.
33211         * lib/timegm.c: Likewise.
33212         * modules/mktime (Files): Ship it.
33213         * modules/timegm (Files): Likewise.
33214         Suggested by Bruno Haible.
33215
33216         test-update-copyright: update test to match script changes
33217         * tests/test-update-copyright.sh: Avoid hard-coding perl
33218         location.  Don't update *.bak created by earlier runs.
33219
33220 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33221             Simon Josefsson  <simon@josefsson.org>
33222             Bruno Haible  <bruno@clisp.org>
33223
33224         Fix link error on Solaris 8.
33225         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33226         also in libnsl. Define also INET_PTON_LIB.
33227         * modules/inet_pton (Link): New section.
33228
33229 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33230             Bruno Haible  <bruno@clisp.org>
33231
33232         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33233         * modules/inet_ntop (Link): New section.
33234         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33235
33236 2009-11-02  Eric Blake  <ebb9@byu.net>
33237
33238         maint: avoid compiler warnings in m4 macros
33239         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33240         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33241
33242 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33243
33244         * m4/pmccabe2html.m4: Remove file.
33245         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33246         function.  Change maintainer.
33247         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33248         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33249         Courtès).
33250
33251 2009-10-31  Eric Blake  <ebb9@byu.net>
33252
33253         fseeko: fix m4 regression
33254         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33255         regression from 2009-10-27.
33256         Reported by Ralf Wildenhues.
33257
33258 2009-10-31  Jim Meyering  <meyering@redhat.com>
33259
33260         inttostr: aesthetics and improved (compile-time) safety
33261         Define inttype_is_signed rather than inttype_is_unsigned,
33262         since the sole use is via "#if inttype_is_signed".
33263         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33264         inttype_is_unsigned.
33265         * lib/offtostr.c (inttype_is_signed): Likewise.
33266         * lib/uinttostr.c (inttype_is_signed): Likewise.
33267         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33268         * lib/inttostr.c (inttostr): Use verify to cross-check the
33269         inttype_is_signed value and the signedness of the actual type.
33270         * modules/inttostr (Depends-on): Add verify.
33271
33272 2009-10-30  Eric Blake  <ebb9@byu.net>
33273
33274         build: avoid compiler warnings
33275         * lib/fchmodat.c (lchmod): Mark unused variables.
33276         * lib/getopt.c (_getopt_initialize): Likewise.
33277         * lib/mktime.c (__mktime_internal): Provide prototype.
33278         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33279         older gcc that do not understand #pragma GCC diagnostic.
33280         * lib/uinttostr.c (inttype_is_unsigned): Define.
33281         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33282
33283 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33284
33285         stat: fix compilation on AIX
33286         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33287         only see struct stat64.
33288
33289 2009-10-30  Eric Blake  <ebb9@byu.net>
33290
33291         exclude: make more robust
33292         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33293         rather than masking a coding bug.
33294         Suggested by Bruno Haible.
33295
33296 2009-10-30  Jim Meyering  <meyering@redhat.com>
33297
33298         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33299         Rather than putting #!/usr/bin/perl on the first line,
33300         start with a variant of what's recommended by "man perlrun" that
33301         invokes the first "perl" program from your shell's search path.
33302         * build-aux/gitlog-to-changelog: Replace #!... as above.
33303         Add a "Local Variables" perl mode setting.
33304         Prompted by a patch from Ludovic Courtès.
33305         Improved by Eric Blake.
33306         * build-aux/useless-if-before-free: Likewise.
33307         * build-aux/announce-gen: Likewise.
33308         * build-aux/update-copyright: Likewise.
33309
33310 2009-10-29  Eric Blake  <ebb9@byu.net>
33311
33312         filenamecat-lgpl: adjust clients
33313         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33314         filenamecat.
33315         * modules/renameat (Depends-on): Likewise.
33316
33317         filenamecat: split into filenamecat-lgpl
33318         * modules/filenamecat-lgpl: New module.
33319         * modules/filenamecat (Files): Move library-safe files into
33320         filenamecat-lgpl.
33321         (Depends-on): Add filenamecat-lgpl.
33322         (configure.ac): Declare witness.
33323         * lib/filenamecat.h (file_name_concat): Only declare when using
33324         GPL module.
33325         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33326         Move...
33327         * lib/filenamecat-lgpl.c: ...into new file.
33328         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33329         (gl_FILE_NAME_CONCAT): Use it.
33330         * MODULES.html.sh (File system functions): Mention new module.
33331
33332         argp: avoid memory leak
33333         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33334         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33335         base_name, since the latter malloc()s and can call exit().
33336         Leak introduced 2006-07-03.
33337
33338         dirname-lgpl: adjust clients that don't need full dirname
33339         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33340         * modules/filenamecat (Depends-on): Likewise.
33341         * modules/linkat (Depends-on): Likewise.
33342         * modules/mkancesdirs (Depends-on): Likewise.
33343         * modules/mkdir (Depends-on): Likewise.
33344         * modules/openat (Depends-on): Likewise.
33345         * modules/savewd (Depends-on): Likewise.
33346         * modules/rename (Depends-on): Likewise.
33347         (License): Relax license.
33348         * modules/mkdir-tests (Depends-on): Drop progname.
33349         (Makefile.am): Delete unneeded LDADD.
33350         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33351
33352         dirname: split into dirname-lgpl
33353         * modules/dirname-lgpl: New module.
33354         * modules/dirname (Files): Move library-safe files into
33355         dirname-lgpl.
33356         (Depends-on): Add dirname-lgpl.
33357         (configure.ac): Declare witness.
33358         * modules/double-slash-root (License): Relax license.
33359         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33360         module.
33361         * lib/dirname.c (dir_len, mdir_name): Move...
33362         * lib/dirname-lgpl.c: ...into new file.
33363         * lib/basename.c (last_component, base_len): Move...
33364         * lib/basename-lgpl.c: ...into new file.
33365         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33366         (gl_DIRNAME): Use it.
33367         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33368         Mention new module.
33369         * modules/dirname-tests (Depends-on): Add progname.
33370         * tests/test-dirname.c (program_name): Delete.
33371
33372         mkdir: make safe for libraries
33373         * modules/mkdir (Depends-on): Drop xalloc.
33374         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33375         exit.
33376
33377         tests: avoid some compiler warnings
33378         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33379         literals.
33380         * tests/test-memchr.c (main): Avoid type mismatch.
33381         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33382         * tests/test-base64.c (main): Likewise.
33383         * tests/test-getdelim.c (main): Likewise.
33384         * tests/test-gethostname.c (main): Likewise.
33385         * tests/test-getline.c (main): Likewise.
33386         * tests/test-netinet_in.c (main): Likewise.
33387         * tests/test-select.c (open_server_socket, main): Likewise.
33388         * tests/test-select-stdin.c (main): Likewise.
33389         * tests/test-sockets.c (main): Likewise.
33390         * tests/test-strsignal.c (main): Likewise.
33391         * tests/test-sys_select.c (main): Likewise.
33392         * tests/test-sys_socket.c (main): Likewise.
33393         * tests/test-u64.c (main): Likewise.
33394         * tests/test-xfprintf-posix.c (main): Likewise.
33395         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33396
33397         sockets: avoid compiler warning
33398         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33399
33400         maint: detect usage(1) and other suspicious exits
33401         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33402
33403 2009-10-29  Jim Meyering  <meyering@redhat.com>
33404
33405         timespec: long-to-int truncation could make timespec_cmp malfunction
33406         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33407         a multiple of 2^32 nanoseconds as no difference.
33408
33409 2009-10-28  Jim Meyering  <meyering@redhat.com>
33410
33411         fprintftime: wrap macro code argument in "do {...} while(0)"
33412         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33413         cpy macro must be a statement that can be followed by a semicolon.
33414         Now that the else clause contains a comment and is hence longer
33415         than one line, I require curly braces.  That in turn requires
33416         that we wrap this code block in the standard do...while(0).
33417
33418         fprintftime: remove stray semicolon from previous change
33419         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33420
33421         fprintftime: avoid a warning about ignored fwrite return value
33422         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33423         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33424         that is unsafe.
33425         * modules/fprintftime (Depends-on): Add ignore-value.
33426
33427         exclude: avoid an unwarranted warning
33428         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33429
33430 2009-10-27  Eric Blake  <ebb9@byu.net>
33431
33432         fseek: avoid compilation failure when fflush is replaced
33433         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33434         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33435         module is in use.
33436         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33437         module is not in use; since REPLACE_FSEEK worked otherwise.
33438         (GNULIB_FTELLO): Likewise for ftell.
33439         Reported by Ian Beckwith and others.
33440
33441 2009-10-27  Bruno Haible  <bruno@clisp.org>
33442
33443         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33444         Reported by Jim Meyering.
33445
33446 2009-10-27  Jim Meyering  <jim@meyering.net>
33447             Bruno Haible  <bruno@clisp.org>
33448
33449         Avoid warning despite dropping the return value of fwrite.
33450         * lib/unicodeio.c: Include ignore-value.h.
33451         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33452         * modules/unicodeio (Depends-on): Add ignore-value.
33453
33454 2009-10-26  Eric Blake  <ebb9@byu.net>
33455
33456         areadlinkat: fix fallback path
33457         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33458         pointer and zero.
33459
33460 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33461
33462         Use a better IO block size for modern systems
33463         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33464         * lib/md2.c: Likewise.
33465         * lib/md4.c: Likewise.
33466         * lib/md5.c: Likewise.
33467         * lib/sha1.c: Likewise.
33468         * lib/sha256.c: Likewise.
33469         * lib/sha512.c: Likewise.
33470
33471 2009-10-22  Eric Blake  <ebb9@byu.net>
33472
33473         tests: avoid several compiler warnings
33474         * tests/test-getcwd.c (main): Avoid buffer underflow.
33475         * tests/test-getdate.c (main): String literals are not safe with
33476         putenv, so use setenv.  Declare unused argument.
33477         * modules/getdate-tests (Depends-on): Add setenv.
33478         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33479         problems with string literals in char *.
33480         * tests/test-hash.c (main): Avoid shadowing declaration.
33481         (insert_new): Treat string literals as char const *.
33482         * tests/test-getopt.h (test_getopt): Likewise.
33483         (getopt_loop): Alter types to minimize casting elsewhere.
33484         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33485         (test_getopt_long_posix): Likewise.
33486         (do_getopt_long): Add wrapper to minimize casting.
33487         * tests/test-atexit.c (clear_temp_file): Use void.
33488         * tests/test-areadlink-with-size.c (main): Declare unused
33489         arguments.
33490         * tests/test-areadlink.c (main): Likewise.
33491         * tests/test-areadlinkat-with-size.c (main): Likewise.
33492         * tests/test-areadlinkat.c (main): Likewise.
33493         * tests/test-canonicalize-lgpl.c (main): Likewise.
33494         * tests/test-canonicalize.c (main): Likewise.
33495         * tests/test-dirent-safer.c (main): Likewise.
33496         * tests/test-dirname.c (main): Likewise.
33497         * tests/test-dup2.c (main): Likewise.
33498         * tests/test-fchdir.c (main): Likewise.
33499         * tests/test-fcntl-h.c (main): Likewise.
33500         * tests/test-fcntl-safer.c (main): Likewise.
33501         * tests/test-fdopendir.c (main): Likewise.
33502         * tests/test-fdutimensat.c (main): Likewise.
33503         * tests/test-fflush.c (main): Likewise.
33504         * tests/test-filenamecat.c (main): Likewise.
33505         * tests/test-filevercmp.c (main): Likewise.
33506         * tests/test-fopen-safer.c (main): Likewise.
33507         * tests/test-fopen.c (main): Likewise.
33508         * tests/test-fpending.c (main): Likewise.
33509         * tests/test-fpurge.c (main): Likewise.
33510         * tests/test-freading.c (main): Likewise.
33511         * tests/test-fstatat.c (main): Likewise.
33512         * tests/test-fsync.c (main): Likewise.
33513         * tests/test-futimens.c (main): Likewise.
33514         * tests/test-getndelim2.c (main): Likewise.
33515         * tests/test-gettimeofday.c (main): Likewise.
33516         * tests/test-getopt.c (main): Likewise.
33517         * tests/test-i-ring.c (main): Likewise.
33518         * tests/test-inttypes.c (main): Likewise.
33519         * tests/test-link.c (main): Likewise.
33520         * tests/test-lstat.c (main): Likewise.
33521         * tests/test-math.c (main): Likewise.
33522         * tests/test-md5.c (main): Likewise.
33523         * tests/test-memchr2.c (main): Likewise.
33524         * tests/test-memrchr.c (main): Likewise.
33525         * tests/test-mkdir.c (main): Likewise.
33526         * tests/test-mkdirat.c (main): Likewise.
33527         * tests/test-mkfifoat.c (main): Likewise.
33528         * tests/test-open.c (main): Likewise.
33529         * tests/test-openat-safer.c (main): Likewise.
33530         * tests/test-openat.c (main): Likewise.
33531         * tests/test-quotearg.c (main): Likewise.
33532         * tests/test-rawmemchr.c (main): Likewise.
33533         * tests/test-readlink.c (main): Likewise.
33534         * tests/test-remove.c (main): Likewise.
33535         * tests/test-rename.c (main): Likewise.
33536         * tests/test-renameat.c (main): Likewise.
33537         * tests/test-rmdir.c (main): Likewise.
33538         * tests/test-sha1.c (main): Likewise.
33539         * tests/test-signal.c (main): Likewise.
33540         * tests/test-sigaction.c (main): Likewise.
33541         * tests/test-stat.c (main): Likewise.
33542         * tests/test-stat-time.c (main): Likewise.
33543         * tests/test-stddef.c (main): Likewise.
33544         * tests/test-stdint.c (main): Likewise.
33545         * tests/test-stdio.c (main): Likewise.
33546         * tests/test-stdlib.c (main): Likewise.
33547         * tests/test-strchrnul.c (main): Likewise.
33548         * tests/test-strerror.c (main): Likewise.
33549         * tests/test-string.c (main): Likewise.
33550         * tests/test-strtod.c (main): Likewise.
33551         * tests/test-strverscmp.c (main): Likewise.
33552         * tests/test-symlink.c (main): Likewise.
33553         * tests/test-symlinkat.c (main): Likewise.
33554         * tests/test-sys_stat.c (main): Likewise.
33555         * tests/test-sys_time.c (main): Likewise.
33556         * tests/test-time.c (main): Likewise.
33557         * tests/test-unistd.c (main): Likewise.
33558         * tests/test-unlink.c (main): Likewise.
33559         * tests/test-unlinkat.c (main): Likewise.
33560         * tests/test-utimens.c (main): Likewise.
33561         * tests/test-utimensat.c (main): Likewise.
33562         * tests/test-version-etc.c (main): Likewise.
33563         * tests/test-wchar.c (main): Likewise.
33564         * tests/test-wctype.c (main): Likewise.
33565         * tests/test-xprintf-posix.c (main): Likewise.
33566         * tests/test-posixtm.c (main): Likewise.
33567         (STREQ): Delete unused macro.
33568         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33569         shadowed variables.
33570         * tests/test-memchr.c (main): Likewise.
33571
33572 2009-10-21  Eric Blake  <ebb9@byu.net>
33573
33574         areadlinkat: avoid failure on older glibc
33575         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33576         rather than mis-comparing 0 against FUNC_RESULT of char*.
33577
33578 2009-10-21  Bruno Haible  <bruno@clisp.org>
33579
33580         * modules/stpncpy (License): Relicense under LGPLv2+.
33581         Reported by David Lutterkort <lutter@redhat.com>.
33582
33583 2009-10-20  Eric Blake  <ebb9@byu.net>
33584
33585         utimensat: work around Solaris 9 bug
33586         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33587         has trailing slash bugs.
33588         * tests/test-lutimens.h (test_lutimens): Enhance test.
33589         * tests/test-utimens.h (test_utimens): Likewise.
33590         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33591         * doc/posix-functions/utimes.texi (utimes): Likewise.
33592         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33593         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33594         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33595         * doc/posix-functions/futimens.texi (futimens): Likewise.
33596
33597         fdutimensat: new module
33598         * modules/fdutimensat: New file.
33599         * lib/fdutimensat.c (fdutimensat): Likewise.
33600         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33601         * MODULES.html.sh (File system functions): Mention module.
33602         * modules/fdutimensat-tests: New test.
33603         * tests/test-fdutimensat.c: Likewise.
33604
33605         doc: regenerate INSTALL
33606         * doc/INSTALL: Reflect recent autoconf update.
33607         * doc/INSTALL.ISO: Likewise.
33608         * doc/INSTALL.UTF-8: Likewise.
33609
33610 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33611
33612         acl: warn if ACL support is not detected
33613         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33614
33615 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33616
33617         * lib/nproc.h: Add extern "C" block for C++.
33618
33619 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33620             Bruno Haible  <bruno@clisp.org>
33621
33622         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33623         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33624         * doc/posix-functions/isalpha.texi: Likewise.
33625         * doc/posix-functions/isblank.texi: Likewise.
33626         * doc/posix-functions/iscntrl.texi: Likewise.
33627         * doc/posix-functions/isdigit.texi: Likewise.
33628         * doc/posix-functions/isgraph.texi: Likewise.
33629         * doc/posix-functions/islower.texi: Likewise.
33630         * doc/posix-functions/isprint.texi: Likewise.
33631         * doc/posix-functions/ispunct.texi: Likewise.
33632         * doc/posix-functions/isspace.texi: Likewise.
33633         * doc/posix-functions/isupper.texi: Likewise.
33634         * doc/posix-functions/isxdigit.texi: Likewise.
33635
33636 2009-10-18  Bruno Haible  <bruno@clisp.org>
33637
33638         Tests for module 'isblank'.
33639         * modules/isblank-tests: New file.
33640         * tests/test-isblank.c: New file.
33641
33642         New module 'isblank'.
33643         * lib/isblank.c: New file.
33644         * m4/isblank.m4: New file.
33645         * modules/isblank: New file.
33646         * doc/posix-functions/isblank.texi: Mention the new module.
33647
33648 2009-10-18  Bruno Haible  <bruno@clisp.org>
33649
33650         New module 'ctype'.
33651         * lib/ctype.in.h: New file.
33652         * m4/ctype.m4: New file.
33653         * modules/ctype: New file.
33654         * doc/posix-headers/ctype.texi: Mention the new module.
33655
33656 2009-10-18  Jim Meyering  <meyering@redhat.com>
33657
33658         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33659         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33660         right after its initialization, rather than farther down.
33661         Keeping these in close proximity makes it easier to ensure
33662         that each such variable is initialized.  E.g.,
33663
33664             LIB_CLOCK_GETTIME=
33665             AC_SUBST([LIB_CLOCK_GETTIME])
33666
33667         This change also increments these serial numbers.
33668         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33669         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33671
33672 2009-10-18  Bruno Haible  <bruno@clisp.org>
33673
33674         Don't let environment variables perturb build.
33675         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33676         (gl_PREREQ_GETHRXTIME): ... not here.
33677
33678 2009-10-18  Bruno Haible  <bruno@clisp.org>
33679
33680         Avoid symlink attack in localcharset module.
33681         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33682         (O_NOFOLLOW): Define fallback.
33683         (get_charset_aliases): Don't open the file if it is a symbolic link.
33684         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33685         gl_FCNTL_H.
33686         (gl_FCNTL_H): Require it.
33687         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33688         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33689         Reported by Fergal Glynn <fglynn@veracode.com>.
33690
33691 2009-10-18  Bruno Haible  <bruno@clisp.org>
33692
33693         Implement nproc for mingw.
33694         * lib/nproc.c: Include <windows.h>
33695         (num_processors): On native Windows platforms, try GetSystemInfo.
33696
33697 2009-10-18  Bruno Haible  <bruno@clisp.org>
33698
33699         Implement nproc for IRIX.
33700         * lib/nproc.c: Include <sys/sysmp.h>.
33701         (num_processors): On IRIX systems, try sysmp.
33702         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33703
33704 2009-10-18  Bruno Haible  <bruno@clisp.org>
33705
33706         Implement nproc for HP-UX.
33707         * lib/nproc.c: Include <sys/pstat.h>
33708         (num_processors): On HP-UX systems, try pstat_getdynamic.
33709         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33710         pstat_getdynamic.
33711
33712 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33713             Bruno Haible  <bruno@clisp.org>
33714
33715         Implement nproc for NetBSD, OpenBSD.
33716         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33717         (ARRAY_SIZE): New macro.
33718         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33719         * m4/nproc.m4: New file.
33720         * modules/nproc (Files): Add m4/nproc.m4.
33721         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33722         (Makefile.am): Instead, augment lib_SOURCES.
33723
33724 2009-10-18  Bruno Haible  <bruno@clisp.org>
33725
33726         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33727         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33728         sys/param.h.
33729
33730 2009-10-16  Eric Blake  <ebb9@byu.net>
33731
33732         utimensat: new module
33733         * modules/utimensat: New file.
33734         * lib/utimensat.c (utimensat): Likewise.
33735         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33736         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33737         so we can work around Linux bugs.
33738         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33739         * modules/sys_stat (Makefile.am): Substitute them.
33740         * lib/sys_stat.in.h (utimensat): Declare it.
33741         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33742         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33743         * modules/utimensat-tests: New test.
33744         * tests/test-utimensat.c: Likewise.
33745
33746         utimens: let lutimens work on non-symlinks
33747         * lib/utimens.c (lutimens): Fall back to utimens rather than
33748         failing with ENOSYS, when file is not a symlink.
33749         (utimens): Reduce redirection.
33750         * tests/test-lutimens.h (test_lutimens): Update test to cover
33751         non-symlinks.
33752         * tests/test-utimens.h (test_utimens): Update test to cover
33753         symlinks.
33754         * tests/test-utimens.c (main): Update caller.
33755
33756         utimens: cache whether utimensat syscall works
33757         * lib/utimens.c (utimensat_works_really): New cache variable.
33758         (fdutimens, lutimens): Use it to avoid failing syscall.
33759
33760         test-stat-time, test-utimens: improve portability
33761         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33762         ext4 on alpha, and for cygwin.
33763         * tests/test-utimens-common.h: New file.
33764         (nap): Factor delays into single function.
33765         * tests/test-lutimens.h (test_lutimens): Use new header.
33766         * tests/test-futimens.h (test_futimens): Likewise.
33767         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33768         timestamps to occur from same machine, as was done previously for
33769         test_utimens.
33770         * modules/utimens-tests (Files): Ship new file.
33771         * modules/futimens-tests (Files): Likewise.
33772         Reported in part by Jim Meyering.
33773
33774         sys_stat: sort replacement declarations
33775         * lib/sys_stat.in.h: Sort declarations.
33776         * lib/futimens.c (futimens): Fix typo.
33777
33778 2009-10-15  Jim Meyering  <meyering@redhat.com>
33779
33780         don't let environment settings perturb build
33781         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33782         could cause a configure-time and/or build-time malfunction.
33783         Typically, a configure-time function-in-library test is performed
33784         via code like this:
33785
33786           LIB_VAR=
33787           AC_SUBST([LIB_VAR])
33788           prefix_saved_LIBS=$LIBS
33789             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33790                        [test "$ac_cv_search_FUNC" = "none required" ||
33791                         LIB_VAR=$ac_cv_search_FUNC])
33792           LIBS=$prefix_saved_LIBS
33793
33794         However, in each of the files affected by this change, the LIB_VAR=
33795         initialization was omitted.  Thus, when set in the environment, its
33796         value would propagate into generated Makefiles when FUNC is not found
33797         in LIB_NAME.
33798         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33799         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33801
33802 2009-10-14  Eric Blake  <ebb9@byu.net>
33803
33804         fchdir: avoid infinite recursion in mingw
33805         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33806         recursing.
33807
33808         test-stat-time: port to mingw
33809         * tests/test-stat-time.c (force_unlink): Return a value.
33810         (test_ctime) [W32]: Fix compilation error.
33811         (nap): Don't call usleep with too large an argument.  Use
33812         force_unlink.
33813         * doc/pastposix-functions/usleep.texi (usleep): Document the
33814         portability issue.
33815
33816 2009-10-13  Jim Meyering  <meyering@redhat.com>
33817
33818         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33819         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33820         * modules/pipe-filter-ii: Likewise.
33821         * modules/sys_socket-tests: Likewise.
33822         * modules/tsearch-tests: Likewise.
33823         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33824         (check): Depend on it.
33825
33826 2009-10-12  Eric Blake  <ebb9@byu.net>
33827
33828         utimens-tests: port to NFS file systems
33829         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33830         comparisons to avoid spurious failures from timestamp drift
33831         between NFS machines.
33832
33833 2009-10-12  Eric Blake  <ebb9@byu.net>
33834
33835         stat-time-tests: minor cleanups
33836         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33837         * tests/test-stat-time.c (nap): Separate assignment from call.
33838         Suggested by Paolo Bonzini and Bruno Haible.
33839
33840         sys_stat: guarantee struct timespec
33841         * lib/sys_stat.in.h (includes): Always include <time.h>
33842         * modules/sys_stat (Depends-on): Add time.
33843         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33844         mode_t permission values.
33845         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33846         get at subsecond timestamps.
33847
33848 2009-10-10  Eric Blake  <ebb9@byu.net>
33849
33850         futimens: new module
33851         * modules/futimens: New file.
33852         * lib/futimens.c (futimens): Likewise.
33853         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33854         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33855         we can work around Linux bugs.
33856         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33857         * modules/sys_stat (Makefile.am): Substitute them.
33858         * lib/sys_stat.in.h (futimens): Declare it.
33859         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33860         * doc/posix-functions/futimens.texi (futimens): Likewise.
33861         * modules/futimens-tests: New test.
33862         * tests/test-futimens.c: Likewise.
33863
33864         utimens: introduce fdutimens
33865         * lib/utimens.h (fdutimens): New prototype.
33866         * lib/utimens.c (gl_futimens): Move guts...
33867         (fdutimens): ...to new interface.
33868         * tests/test-utimens.c (do_fdutimens): Use it.
33869
33870         utimens: add UTIME_NOW and UTIME_OMIT support
33871         * lib/utimens.c (validate_timespec, update_timespec): New helper
33872         functions.
33873         (gl_futimens, lutimens): Use them.
33874         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33875         stdbool, sys_stat.
33876         (Link): Mention resulting library dependency.
33877         * modules/utimecmp (Link): Likewise.
33878         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33879         (Makefile.am): Pick up library dependency.
33880         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33881         definition.
33882         * tests/test-sys_stat.c: Test the definitions.
33883         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33884         * NEWS: Document library dependency.
33885
33886         utimecmp: support symlink timestamps
33887         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33888         hashing when possible.  Use pathconf when available.
33889         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33890         * modules/utimecmp (Depends-on): Add lstat.
33891
33892         utimens: add lutimens interface
33893         * lib/utimens.c (lutimens): New function.
33894         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33895         * lib/utimens.h (lutimens): Declare new interface.
33896         * tests/test-utimens.c (main): Enhance test.
33897         * tests/test-lutimens.h (test_lutimens): New file.
33898         * modules/utimens-tests (Files): Distribute it.
33899         (Depends-on): Add symlink.
33900         (configure.ac): Check for usleep.
33901
33902         utimens: validate futimens usage
33903         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33904         fewer syscalls on failure later on.  Avoid compiler warning on
33905         mingw.
33906         * modules/utimens (Depends-on): Add dup2.
33907
33908         utimens: add test
33909         * modules/utimens-tests: New test.
33910         * tests/test-utimens.h: New file.
33911         * tests/test-futimens.h: Likewise.
33912         * tests/test-utimens.c: Likewise.
33913
33914         doc: mention timestamp portability issues
33915         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33916         instead.
33917         * doc/posix-functions/utime.texi (utime): Likewise.
33918         * doc/posix-functions/utimes.texi (utimes): Likewise.
33919         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33920         instead.
33921         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33922         module.
33923         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33924         Mention weakness with symlink timestamps.
33925         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33926         to utimensat/futimens instead.
33927         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33928
33929         test-dup2: enhance test
33930         * tests/test-dup2.c (main): Also check AT_FDCWD.
33931
33932         test-stat-time: avoid more spurious failures
33933         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33934         xfs; and avoid race if the two timestamps cross quantization edge.
33935
33936         relocatable: prefer 'file system' over 'filesystem'
33937         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33938         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33939         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33940         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33941         * lib/relocatable.c (compute_curr_prefix): Likewise.
33942
33943 2009-10-10  Jim Meyering  <meyering@redhat.com>
33944
33945         stat-time-tests: check for the usleep function
33946         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33947
33948 2009-10-10  Bruno Haible  <bruno@clisp.org>
33949
33950         * modules/xnanosleep: Put the Link section after the Include section.
33951
33952 2009-10-09  Eric Blake  <ebb9@byu.net>
33953
33954         dup2: work around FreeBSD 6.1 bug
33955         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33956         * doc/posix-functions/dup2.texi (dup2): Document it.
33957         Reported by Nelson H. F. Beebe and Jim Meyering.
33958
33959         test-stat-time: port to buggy NFS clients
33960         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33961         (test_ctime): Also skip test if mtime and ctime are skewed.
33962
33963         maint: prefer 'file system' over 'filesystem'
33964         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33965         * doc/posix-functions/lstat.texi (lstat): Likewise.
33966         * lib/file-has-acl.c (file_has_acl): Likewise.
33967         * lib/fwriteerror.c [TEST]: Likewise.
33968         * tests/test-areadlink.h (test_areadlink): Likewise.
33969         * tests/test-areadlinkat-with-size.c (main): Likewise.
33970         * tests/test-areadlinkat.c (main): Likewise.
33971         * tests/test-canonicalize-lgpl.c (main): Likewise.
33972         * tests/test-canonicalize.c (main): Likewise.
33973         * tests/test-fstatat.c (main): Likewise.
33974         * tests/test-linkat.c (main): Likewise.
33975         * tests/test-lstat.h (test_lstat_func): Likewise.
33976         * tests/test-mkdir.h (test_mkdir): Likewise.
33977         * tests/test-readlink.h (test_readlink): Likewise.
33978         * tests/test-remove.c (main): Likewise.
33979         * tests/test-rename.h (test_rename): Likewise.
33980         * tests/test-renameat.c (main): Likewise.
33981         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33982         * tests/test-symlink.h (test_symlink): Likewise.
33983         * tests/test-symlinkat.c (main): Likewise.
33984         * tests/test-unlink.h (test_unlink_func): Likewise.
33985         * tests/test-unlinkat.c (main): Likewise.
33986
33987         maint: make realtime library usage explicit
33988         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33989         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33990         * modules/settime (Link): Likewise.
33991         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33992
33993         test-stat-time: speed up execution
33994         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33995         warning on mingw.
33996         (nap): New helper function.
33997         (prepare_test): Use it to reduce sleep time.
33998         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33999         execution.
34000         * modules/stat-time-tests (configure.ac): Check for usleep.
34001
34002 2009-10-09  Jim Meyering  <meyering@redhat.com>
34003
34004         selinux-h: always use getfilecon wrappers
34005         * lib/getfilecon.c: New file.
34006         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34007         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34008         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34009         (fgetfilecon): Provide a stub.
34010         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34011         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34012         file unconditionally.
34013         When <selinux/selinux.h> is found, arrange to use wrappers.
34014         * modules/selinux-h (Files): Add getfilecon.c.
34015         (Makefile.am): Substitute include-next-related bits
34016         into the now-always-generated selinux/selinux.h file.
34017         * doc/glibc-functions/lgetfilecon.texi: New file.
34018         * doc/glibc-functions/fgetfilecon.texi: New file.
34019         * doc/glibc-functions/getfilecon.texi: New file.
34020         * doc/glibc-functions/getfilecon-desc.texi: New file.
34021         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34022         which to pull in the new files.
34023         * MODULES.html.sh (Misc): Add selinux-h.
34024
34025 2009-10-08  Jim Meyering  <meyering@redhat.com>
34026
34027         unistd: fix comment typo
34028         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34029
34030 2009-10-08  Eric Blake  <ebb9@byu.net>
34031
34032         areadlink: use SIZE_MAX consistently
34033         * modules/areadlink (Depends-on): Add stdint.
34034         * modules/areadlink-with-size (Depends-on): Likewise.
34035         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34036         gives NULL; drop sys/types, since unistd gives size_t; and add
34037         stdint for SIZE_MAX.
34038         (SIZE_MAX): Rely on headers.
34039         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34040         and add stdint.
34041         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34042         (SIZE_MAX): Likewise.
34043         (INITIAL_BUF_SIZE): Turn into enum.
34044         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34045
34046 2009-10-08  Jim Meyering  <meyering@redhat.com>
34047
34048         areadlinkat: avoid compilation failure
34049         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34050         Fix typo in comment.
34051
34052 2009-10-07  Eric Blake  <ebb9@byu.net>
34053
34054         areadlinkat-with-size: new module
34055         * modules/areadlinkat-with-size: New module.
34056         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34057         * lib/areadlink.h (areadlinkat): Declare it.
34058         * MODULES.html.sh (File system functions): Mention it.
34059         * modules/areadlinkat-with-size-tests: New test.
34060         * tests/test-areadlinkat-with-size.c: New file.
34061
34062         xreadlinkat: new module
34063         * modules/xreadlinkat: New module.
34064         * lib/xreadlinkat.c (xreadlinkat): New file.
34065         * lib/xreadlink.h (xreadlinkat): Declare it.
34066         * MODULES.html.sh (File system functions): Mention it.
34067
34068         areadlinkat: new module
34069         * lib/at-func.c (FUNC_FAIL): New define.
34070         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34071         * modules/areadlinkat: New module.
34072         * lib/linkat.c (areadlinkat): Move...
34073         * lib/areadlinkat.c (areadlinkat): ...to new file.
34074         * lib/areadlink.h (areadlinkat): Declare it.
34075         * modules/linkat (Depends-on): Add areadlinkat.
34076         * MODULES.html.sh (File system functions): Mention it.
34077         * modules/areadlinkat-tests: New test.
34078         * tests/test-areadlinkat.c: New file.
34079
34080         areadlink, areadlink-with-size: add tests
34081         * modules/areadlink-tests: New test.
34082         * modules/areadlink-with-size-tests: Likewise.
34083         * tests/test-areadlink.h: New file.
34084         * tests/test-areadlink.c: Likewise.
34085         * tests/test-areadlink-with-size.c: Likewise.
34086
34087         maint: minor cleanups
34088         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34089         _UNUSED_PARAMETER_ instead.
34090         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34091         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34092         * modules/linkat-tests (Files): Distribute test-link.h.
34093
34094         openat, utimens: whitespace cleanup
34095         * lib/openat.c: Prefer space throughout, rather than mix of 8
34096         spaces vs. tabs.
34097         * lib/at-func.c: Likewise.
34098         * lib/utimens.c: Likewise.
34099
34100         openat: avoid using wrong fd
34101         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34102         working directory chooses same fd.
34103         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34104
34105         mkdir, mkdirat: fix cygwin 1.5.x bug
34106         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34107         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34108         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34109         bug.
34110         (gl_PREREQ_MKDIR): Delete unused macro.
34111         * modules/mkdir (Files): Track file rename.
34112         (configure.ac): Update macro name.
34113         * modules/openat (Depends-on): Add mkdir.
34114         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34115
34116         mkdir, mkdirat: add tests
34117         * modules/mkdir-tests: New test.
34118         * tests/test-mkdir.h: New file.
34119         * tests/test-mkdir.c: Likewise.
34120         * tests/test-mkdirat.c: Likewise.
34121         * modules/openat-tests (Files): Add new files.
34122         (Makefile.am): Run new test.
34123
34124 2009-10-06  Eric Blake  <ebb9@byu.net>
34125
34126         doc: tweak *at function documentation
34127         * doc/posix-functions/faccessat.texi (faccessat): Mention
34128         known issue with replacement.
34129         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34130         * doc/posix-functions/linkat.texi (linkat): Likewise.
34131         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34132         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34133         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34134         * doc/posix-functions/renameat.texi (renameat): Likewise.
34135         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34136
34137         openat: fix GNU/Hurd bug in unlinkat
34138         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34139         broken.
34140         * doc/posix-functions/unlink.texi (unlink): Document this.
34141         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34142
34143         fdopendir: fix GNU/Hurd bug
34144         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34145         allowing non-directory fds.
34146         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34147         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34148         * modules/dirent (Makefile.am): Substitute it.
34149         * lib/dirent.in.h (fdopendir): Declare replacement.
34150         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34151         * tests/test-fdopendir.c (main): Test something other than
34152         /dev/null, since on Hurd that behaves like a directory.
34153
34154         test-symlink: port to GNU/Hurd
34155         * tests/test-symlink.h (test_symlink): Relax expected errno.
34156
34157         doc: tweak more cygwin information
34158         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34159         now compatible with glibc.
34160         * doc/posix-functions/getopt.texi (getopt): Likewise.
34161
34162         getopt-gnu: add another test
34163         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34164         guarantee behavior relied on by m4.
34165         * tests/test-getopt.c (main): Use it.
34166         * modules/getopt-posix-tests (Depends-on): Add setenv.
34167         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34168
34169         getopt: fix compilation on darwin
34170         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34171         include.
34172         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34173         Reported by Ludovic Courtès.
34174
34175 2009-10-06  Bruno Haible  <bruno@clisp.org>
34176
34177         * modules/size_max (Description): Discourage its use.
34178         Reported by Simon Josefsson.
34179
34180 2009-10-06  Jim Meyering  <meyering@redhat.com>
34181
34182         linkat: avoid compilation failure
34183         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34184
34185 2009-10-05  Eric Blake  <ebb9@byu.net>
34186
34187         linkat: support Linux 2.6.17
34188         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34189         linkat on Linux, but allow cache variable override.
34190         * lib/linkat.c (rpl_linkat): Define override.
34191         * modules/linkat (Depends-on): Add symlinkat.
34192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34193         * modules/unistd (Makefile.am): Substitute it.
34194         * lib/unistd.in.h (linkat): Declare replacement.
34195         Reported by Pádraig Brady.
34196
34197         quotearg: port test to systems with C.UTF-8 locale
34198         * tests/test-quotearg.c (struct result_strings): Add another
34199         member, differentiating between C.ASCII and C.UTF-8 handling.
34200         (compare_strings): Add parameter.
34201         (main): Adjust all callers.
34202
34203         getopt: avoid clash with FreeBSD _getopt_internal
34204         * lib/getopt.in.h (_getopt_internal): Override the name.
34205         * lib/getopt_int.h (includes): Pick up any overrides.
34206         Reported by Reuben Thomas.
34207
34208         hash: allow C89 compilation
34209         * lib/hash.c (check_tuning): Move declaration before statement.
34210         Reported by Reuben Thomas.
34211
34212 2009-10-05  Karl Berry  <karl@gnu.org>
34213
34214         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34215
34216 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34217             Bruno Haible  <bruno@clisp.org>
34218
34219         * lib/uname.c (uname): Use a table-driven algorithm to compute
34220         Windows NT versions.
34221
34222 2009-10-04  Bruno Haible  <bruno@clisp.org>
34223
34224         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34225         program_invocation_short_name.
34226         * modules/progname (configure.ac): Test for presence of
34227         program_invocation_short_name.
34228         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34229
34230 2009-10-04  Bruno Haible  <bruno@clisp.org>
34231
34232         * lib/progname.c (set_program_name): Fix comment.
34233         Reported by Jim Meyering.
34234
34235 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34236             Bruno Haible  <bruno@clisp.org>
34237
34238         * lib/uname.c: Include <string.h>.
34239         (uname): Do only one call to GetVersionEx in the common case.
34240
34241 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34242             Bruno Haible  <bruno@clisp.org>
34243
34244         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34245         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34246         (uname): Add support for Windows CE and various non-x86 CPU types.
34247
34248 2009-10-03  Bruno Haible  <bruno@clisp.org>
34249
34250         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34251         invocation to tests/configure.ac.
34252         Reported by Ian Beckwith <ianb@erislabs.net>.
34253
34254 2009-10-02  Eric Blake  <ebb9@byu.net>
34255
34256         fchdir: avoid compiler warning
34257         * lib/fchdir.c (canonicalize_file_name)
34258         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34259
34260         test-open: support mingw errno values
34261         * tests/test-open.h (test_open): Relax test.
34262         * tests/test-fopen.h (test_fopen): Likewise.
34263         * tests/test-openat-safer.c (main): Likewise.
34264
34265         open: fix opening directory on mingw
34266         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34267
34268         test-open: on GNU/Hurd, /dev/null is a directory
34269         * tests/test-fopen.h (main): Rename...
34270         (test_fopen): ...to this.  Use a guaranteed non-directory when
34271         confirming open behavior on trailing slash.
34272         * tests/test-openat-safer.c (main): Likewise.
34273         * tests/test-open.h (main): Likewise....
34274         (test_open): ...to this.
34275         * tests/test-fopen.c (main): Adjust caller.
34276         * tests/test-fopen-safer.c (main): Likewise.
34277         * tests/test-open.c (main): Likewise.
34278         * tests/test-fcntl-safer.c (main): Likewise.
34279         Reported by Samuel Thibault.
34280
34281         rename, fchdir: don't ignore chdir failure
34282         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34283         * lib/rename.c (rpl_rename) [W32]: Likewise.
34284         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34285         an empty destination directory if source cannot be renamed,
34286         although there is still possibility for failure.
34287         * doc/posix-functions/rename.texi (rename): Document the race.
34288         Reported by Jim Meyering.
34289
34290         maint: cleanup whitespace in recent commits
34291         * lib/rename.c (rpl_rename): Remove tabs.
34292         * tests/test-link.h (test_link): Likewise.
34293         * lib/fchdir.c (get_name): Likewise.
34294         Reported by Jim Meyering.
34295
34296 2009-10-02  Ben Pfaff  <blp@gnu.org>
34297
34298         relocatable-prog-wrapper: Add missing dependency on
34299         double-slash-root.
34300         * modules/relocatable-prog-wrapper: Add dependency.
34301         Reported by Ian Beckwith <ianb@erislabs.net>.
34302
34303 2009-10-02  Eric Blake  <ebb9@byu.net>
34304
34305         renameat: fix Solaris bugs
34306         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34307         needed fixing.
34308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34309         * modules/stdio (Makefile.am): Substitute it.
34310         * lib/stdio.in.h (renameat): Declare replacement.
34311         * lib/renameat.c (rpl_renameat): Implement fix.
34312
34313         renameat: new module
34314         * modules/renameat: New file.
34315         * lib/renameat.c (renameat): Likewise.
34316         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34318         * modules/stdio (Makefile.am): Substitute them.
34319         * lib/stdio.in.h (renameat): Declare it.
34320         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34321         * doc/posix-functions/renameat.texi (renameat): Likewise.
34322         * modules/renameat-tests: New test.
34323         * tests/test-renameat.c: Likewise.
34324
34325         rename: fix mingw bugs
34326         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34327         directory overwrite bugs.
34328
34329         rename: fix another cygwin 1.5 bug
34330         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34331         checks.
34332         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34333         unnecessary cygwin workarounds.  Also work around bug with moving
34334         full directory onto an empty one.
34335         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34336
34337         rename-dest-slash: merge into rename module
34338         * modules/rename-dest-slash (Status): Mark obsolete.
34339         (Depends-on): Add rename.
34340         (Files): Let rename do it all.
34341         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34342         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34343         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34344         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34345         * lib/rename.c (rpl_rename): Update comments.
34346
34347         rename: fix cygwin 1.5.x bugs
34348         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34349         * lib/rename.c (rpl_rename): Work around them.
34350         * modules/rename (Depends-on): Add same-inode.
34351
34352         rename: fix Solaris 10 bug
34353         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34354         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34355         was the only bug.
34356
34357         rename: fix Solaris 9 bug
34358         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34359         on non-directory.  Avoid calling exit.
34360         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34361         strdup.
34362         * modules/rename-tests (Depends-on): Drop lstat.
34363         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34364         (gl_PREREQ_RENAME): Delete unused macro.
34365
34366         rename-dest-slash: fix NetBSD bug
34367         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34368         links.
34369         * modules/rename-dest-slash (Depends-on): Add same-inode.
34370
34371         rename-tests: new test, exposes several platform bugs
34372         * modules/rename-tests: New file.
34373         * tests/test-rename.h: Likewise.
34374         * tests/test-rename.c: Likewise.
34375         * doc/posix-functions/rename.texi (rename): Improve documentation,
34376         including bugs that will eventually be fixed in gnulib.
34377
34378 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34379
34380         * lib/uname.c: Include <stdlib.h>
34381         (uname): Assume version info is available.
34382
34383 2009-10-02  Jim Meyering  <meyering@redhat.com>
34384
34385         gnu-web-doc-update: correct --help output
34386         * build-aux/gnu-web-doc-update: Make --help output relevant.
34387
34388         gnu-web-doc-update: add standard options
34389         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34390
34391         gnu-web-doc-update: New module.
34392         Use this script to automatically update the on-line web documentation
34393         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34394         * modules/gnu-web-doc-update: New file, from coreutils.
34395         * build-aux/gnu-web-doc-update: New script.
34396
34397 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34398
34399         link: LoadLibrary is not needed.
34400         * lib/link.c: Use GetModuleHandle.
34401
34402 2009-10-01  Eric Blake  <ebb9@byu.net>
34403
34404         getopt: bump serial number
34405         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34406         change.
34407
34408         tests: tighten link, rmdir, and remove tests
34409         * tests/test-link.h (includes): No need to use <config.h> here.
34410         Clean up if directory hard link was created, otherwise test for
34411         trailing '.'.
34412         * tests/test-linkat.c (main): Simplify.
34413         * tests/test-remove.c (main): Enhance test for trailing '.'.
34414         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34415
34416 2009-10-01  Jim Meyering  <meyering@redhat.com>
34417
34418         maint.mk: requiring "make major" was annoying, for a "minor" release.
34419         What is intended is "stable", to contrast with alpha and beta,
34420         so require "make stable", not "make major".
34421         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34422         (get_tool_versions): Likewise.
34423         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34424
34425 2009-09-30  Ben Pfaff  <blp@gnu.org>
34426
34427         Fix broken build of replacement for Windows tmpfile().
34428         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34429         flags argument added along with the 'mkostemp' module.
34430
34431 2009-09-28  Bruno Haible  <bruno@clisp.org>
34432
34433         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34434         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34435         to 'remove_elt'.
34436         (gl_list_remove): Update.
34437         * lib/gl_list.c (gl_list_remove): Update.
34438         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34439         to 'remove_elt'.
34440         (gl_oset_remove): Update.
34441         * lib/gl_list.c (gl_oset_remove): Update.
34442         Reported by Eric Blake.
34443
34444 2009-09-28  Eric Blake  <ebb9@byu.net>
34445
34446         doc: mention yet more cygwin 1.7 status
34447         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34448         cygwin.
34449         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34450         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34451
34452         argp: fix test failure
34453         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34454         that are not upper-case.  Pass correct range to tolower.
34455
34456 2009-09-27  Jim Meyering  <meyering@redhat.com>
34457
34458         test-yesno: work around sparc-dash here-document infelicity
34459         Without this change, the literal \177 byte in a here document
34460         would make dash 0.5.5.1-3 access uninitialized memory.
34461         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34462         Instead, use a marker, "@", and filter through tr to create the desired
34463         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34464
34465 2009-09-27  Bruno Haible  <bruno@clisp.org>
34466
34467         Disable untested support for new flavours of ACLs on AIX.
34468         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34469         progress.
34470         * lib/set-mode-acl.c (qset_acl): Likewise.
34471
34472 2008-12-07  Bruno Haible  <bruno@clisp.org>
34473
34474         Add support for new flavours of ACLs on AIX. (Untested.)
34475         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34476         (file_has_acl): Add support for newer AIX.
34477         * lib/set-mode-acl.c (qset_acl): Likewise.
34478         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34479         Rainer Tammer <tammer@tammer.net>.
34480
34481 2009-09-26  Eric Blake  <ebb9@byu.net>
34482
34483         argp: fix compilation of getopt
34484         * lib/getopt.in.h (includes): Use different guard than glibc.
34485         Reported by Sergey Poznyakoff.
34486
34487         doc: mention more cygwin 1.7 status
34488         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34489         bug.
34490         * doc/posix-functions/execl.texi (execl): Likewise.
34491         * doc/posix-functions/execle.texi (execle): Likewise.
34492         * doc/posix-functions/execlp.texi (execlp): Likewise.
34493         * doc/posix-functions/execv.texi (execv): Likewise.
34494         * doc/posix-functions/execve.texi (execve): Likewise.
34495         * doc/posix-functions/execvp.texi (execvp): Likewise.
34496         * doc/glibc-functions/canonicalize_file_name.texi
34497         (canonicalize_file_name): Cygwin 1.7 now provides this.
34498         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34499         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34500         on AT_SYMLINK_NOFOLLOW.
34501
34502 2009-09-24  Eric Blake  <ebb9@byu.net>
34503
34504         test-linkat: make test more robust
34505         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34506
34507         getopt: fix inclusion guards for cygwin
34508         * modules/getopt-posix (Depends-on): Add include-next.
34509         (Makefile.am): Substitute more items in replacement header.
34510         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34511         <getopt.h>.
34512         * lib/getopt.in.h (includes): Use split inclusion guard, and
34513         prefer <getopt.h> over include <unistd.h> when one is present.
34514         (option): Also override name of 'struct option'.
34515
34516         same-inode: revert prior change; it is not yet ready
34517         * NEWS: Undo mention of this change.
34518         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34519         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34520         * lib/cycle-check.c (cycle_check): Likewise.
34521         * lib/same.c (same_name): Likewise.
34522         * lib/at-func2.c (at_func2): Likewise.
34523
34524 2009-09-23  Eric Blake  <ebb9@byu.net>
34525
34526         linkat: new module
34527         * modules/linkat: New file.
34528         * lib/at-func2.c (at_func2): Likewise.
34529         * lib/linkat.c (linkat): Likewise.
34530         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34531         * lib/openat-priv.h (at_func2): Add declaration.
34532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34533         * modules/unistd (Makefile.am): Substitute them.
34534         * lib/unistd.in.h (linkat): Declare it.
34535         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34536         * doc/posix-functions/linkat.texi (linkat): Likewise.
34537         * doc/posix-functions/link.texi (link): Tweak wording.
34538         * tests/test-link.c (main): Move guts...
34539         * tests/test-link.h (test_link): ...into new file.
34540         * modules/linkat-tests: New test.
34541         * tests/test-linkat.c: Likewise.
34542         * modules/link-tests (Files): Ship new file.
34543         (Depends-on): Add stdbool.
34544
34545         dirname: add library-safe mdir_name
34546         * lib/dirname.h (mdir_name): New prototype.
34547         * lib/dirname.c (dir_name): Move guts...
34548         (mdir_name): ...to new function that avoids xalloc_die.
34549
34550         fchdir: another mingw fix
34551         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34552         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34553         on mingw (where it has not yet been ported), and make it optional
34554         elsewhere.
34555         (_gl_register_fd): Use it.
34556
34557         same-inode: make SAME_INODE tri-state, to port to mingw
34558         * NEWS: Mention this change.
34559         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34560         st_ino always being 0.
34561         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34562         * lib/cycle-check.c (cycle_check): Likewise.
34563         * lib/same.c (same_name): Likewise.
34564
34565         lstat: avoid mingw compilation error
34566         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34567         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34568         lstat ourselves.
34569         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34570         was adequate.
34571         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34572         the checks for lstat.
34573         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34574
34575         link: fix test failure on Solaris 9
34576         * lib/link.c (rpl_link): Don't assume link will catch bogus
34577         trailing slash on source.
34578
34579         test-symlinkat: enhance test
34580         * tests/test-readlink.c (main): Move guts...
34581         * tests/test-readlink.h (test_readlink): ...into new file.
34582         * tests/test-symlink.c (main): Move guts...
34583         * tests/test-symlink.h (test_symlink): ...into new file.
34584         * tests/test-symlinkat.c (main): Use new files for further
34585         coverage.
34586         (do_symlink, do_readlink): New helper functions.
34587         * modules/symlink-tests (Files): Ship new file.
34588         (Depends-on): Add stdbool.
34589         * modules/readlink-tests (Files): Ship new file.
34590         (Depends-on): Add stdbool.
34591         * modules/symlinkat-tests (Files): Use new files.
34592
34593 2009-09-23  Eric Blake  <ebb9@byu.net>
34594
34595         readlink: document portability issue with symlink length
34596         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34597         systems have bogus st_size on symlinks, and mention the
34598         areadlink-with-size module.
34599         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34600         * doc/posix-functions/readlink.texi (readlink): Mention the
34601         areadlink module, and ERANGE failure.
34602         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34603         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34604
34605         readlink: fix Solaris 9 bug with trailing slash
34606         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34607         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34608         * doc/posix-functions/readlink.texi (readlink): Document this.
34609         * modules/readlink-tests: New test.
34610         * tests/test-readlink.c: Likewise.
34611
34612         readlink: fix cygwin 1.5.x bug with return type
34613         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34614         * lib/unistd.in.h (readlink): Use ssize_t.
34615         * lib/readlink.c (readlink): Likewise.
34616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34617         * modules/unistd (Makefile.am): Substitute it.
34618         * lib/unistd.in.h (readlink): Declare replacement.
34619         * doc/posix-functions/readlink.texi (readlink): Document this.
34620
34621         symlink: use throughout gnulib
34622         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34623         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34624         symlink is not used.
34625         * modules/symlinkat (Depends-on): Add symlink.
34626         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34627         * modules/canonicalize-tests (Depends-on): Likewise.
34628         * modules/lstat-tests (Depends-on): Likewise.
34629         * modules/openat-tests (Depends-on): Likewise.
34630         * modules/remove-tests (Depends-on): Likewise.
34631         * modules/rmdir-tests (Depends-on): Likewise.
34632         * modules/unlink-tests (Depends-on): Likewise.
34633         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34634         * tests/test-canonicalize.c (symlink): Likewise.
34635         * tests/test-fstatat.c (symlink): Likewise.
34636         * tests/test-lstat.c (symlink): Likewise.
34637         * tests/test-remove.c (symlink): Likewise.
34638         * tests/test-rmdir.c (symlink): Likewise.
34639         * tests/test-unlink.c (symlink): Likewise.
34640         * tests/test-unlinkat.c (symlink): Likewise.
34641
34642         symlink: new module, for Solaris 9 bug
34643         * modules/symlink: New file.
34644         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34645         * lib/symlink.c: Likewise.
34646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34647         * modules/unistd (Makefile.am): Substitute them.
34648         * lib/unistd.in.h (symlink): Declare replacement.
34649         * MODULES.html.sh (File system functions): Mention it.
34650         * doc/posix-functions/symlink.texi (symlink): Likewise.
34651         * modules/symlink-tests: New test.
34652         * tests/test-symlink.c: Likewise.
34653
34654 2009-09-23  Bruno Haible  <bruno@clisp.org>
34655
34656         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34657         when needed.
34658         Test case: gnulib-tool --import --with-tests atexit inttypes.
34659         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34660
34661 2009-09-23  Bruno Haible  <bruno@clisp.org>
34662
34663         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34664         subcommand, not in a subshell.
34665
34666 2009-09-22  Eric Blake  <ebb9@byu.net>
34667
34668         unistd: sort replacement declarations
34669         * lib/unistd.in.h: Sort declarations.
34670
34671         open, openat: minor optimization
34672         * lib/open.c (open): If open succeeded, len is non-zero.
34673         * lib/openat.c (rpl_openat): Likewise.
34674
34675         link-follow: ensure correct result
34676         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34677         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34678         distinguish between possible failures.
34679
34680 2009-09-21  Eric Blake  <ebb9@byu.net>
34681
34682         fts: avoid compiler warning
34683         * lib/fts.c (dirent_inode_sort_may_be_useful)
34684         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34685
34686 2009-09-19  Bruno Haible  <bruno@clisp.org>
34687
34688         * lib/progreloc.c (canonicalize_file_name): New declaration.
34689
34690 2009-09-19  Eric Blake  <ebb9@byu.net>
34691
34692         link: fix quoting
34693         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34694
34695         openat: fix openat bugs on Solaris 9
34696         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34697         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34698         * modules/openat (Depends-on): Add open.
34699         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34700         * modules/fcntl-h (Makefile.am): Substitute it.
34701         * lib/fcntl.in.h (openat): Declare replacement.
34702         * doc/posix-functions/openat.texi (openat): Document this.
34703
34704         openat: move fstatat and unlinkat into correct files
34705         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34706         compiled.
34707         * lib/openat.c (fstatat, unlinkat): Move...
34708         * lib/fstatat.c (fstatat): ...into correct files.
34709         * lib/unlinkat.c (unlinkat): Likewise.
34710
34711         openat: fix unlinkat bugs on Solaris 9
34712         * lib/unlinkat.c (unlinkat): New file.
34713         * modules/openat (Depends-on): Add unlink.
34714         (Files): Distribute it.
34715         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34716         trailing slash behavior is broken.
34717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34718         * modules/unistd (Makefile.am): Substitute it.
34719         * lib/unistd.in.h (unlinkat): Declare replacement.
34720         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34721
34722         openat: fix fstatat bugs on Solaris 9
34723         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34724         stat.
34725         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34726
34727         test-unlinkat: enhance test, to expose Solaris 9 bug
34728         * tests/test-unlink.c (main): Factor guts...
34729         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34730         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34731         * tests/test-rmdir.c (main): Adjust caller.
34732         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34733         (unlinker): New helper function.
34734         (rmdirat): Enhance check.
34735         * modules/rmdir-tests (Depends-on): Add stdbool.
34736         * modules/unlink-tests (Depends-on): Likewise.
34737         (Files): Add test-unlink.h.
34738         * modules/openat-tests (Files): Likewise.
34739         (Depends-on): Add unlinkdir.
34740
34741         test-fstatat: new test, to expose Solaris 9 bugs
34742         * tests/test-stat.c (main): Factor guts...
34743         * tests/test-stat.h (test_stat_func): ...into new file.
34744         * tests/test-lstat.c (main): Factor guts...
34745         * tests/test-lstat.h (test_lstat_func): ...into new file.
34746         * tests/test-fstatat.c: New file.
34747         * modules/stat-tests (Files): Add test-stat.h.
34748         * modules/lstat-tests (Files): Add test-lstat.h.
34749         (Depends-on): Add stdbool.
34750         * modules/openat-tests (Depends-on): Add pathmax.
34751         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34752         (Makefile.am): Run new test.
34753
34754         remove: new module, for mingw and Solaris 9 bugs
34755         * modules/remove: New file.
34756         * lib/remove.c: Likewise.
34757         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34759         * modules/stdio (Makefile.am): Use them.
34760         * lib/stdio.in.h (remove): Declare replacement.
34761         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34762         * doc/posix-functions/remove.texi (remove): Likewise.
34763         * modules/remove-tests: New test.
34764         * tests/test-remove.c: Likewise.
34765
34766         unlink: new module, for Solaris 9 bug
34767         * modules/unlink: New file.
34768         * lib/unlink.c: Likewise.
34769         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34771         * modules/unistd (Makefile.am): Use them.
34772         * lib/unistd.in.h (stat): Declare replacement.
34773         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34774         * doc/posix-functions/unlink.texi (unlink): Likewise.
34775         * modules/unlink-tests: New test.
34776         * tests/test-unlink.c: Likewise.
34777
34778         lstat: fix Solaris 9 bug
34779         * lib/lstat.c (lstat): Also check for trailing slash on
34780         non-symlink, non-directories.  Use stat module to simplify logic.
34781         * doc/posix-functions/lstat.texi (lstat): Document it.
34782         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34783         (configure.ac): Check for symlink.
34784         * tests/test-lstat.c (main): Add more tests.
34785
34786         stat: add as dependency to other modules
34787         * modules/chown (Depends-on): Add stat.
34788         * modules/euidaccess (Depends-on): Likewise.
34789         * modules/fchdir (Depends-on): Likewise.
34790         * modules/isdir (Depends-on): Likewise.
34791         * modules/link (Depends-on): Likewise.
34792         * modules/lstat (Depends-on): Likewise.
34793         * modules/mkdir-p (Depends-on): Likewise.
34794         * modules/modechange (Depends-on): Likewise.
34795         * modules/open (Depends-on): Likewise.
34796         * modules/readlink (Depends-on): Likewise.
34797         * modules/same (Depends-on): Likewise.
34798
34799         stat: fix Solaris 9 bug
34800         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34801         slash.
34802         * lib/stat.c (rpl_stat): Work around it.
34803         * doc/posix-functions/stat.texi (stat): Update documentation.
34804
34805         stat: new module, for mingw bug
34806         * modules/stat: New file.
34807         * lib/stat.c: Likewise.
34808         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34809         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34810         * modules/sys_stat (Makefile.am): Use them.
34811         * lib/sys_stat.in.h (stat): Declare replacement.
34812         * lib/openat.c (fstatat): Deal with lstat and stat being function
34813         macros.
34814         * modules/openat (Depends-on): Add inline.
34815         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34816         * doc/posix-functions/stat.texi (stat): Likewise.
34817         * modules/stat-tests: New test.
34818         * tests/test-stat.c: Likewise.
34819
34820 2009-09-19  Jim Meyering  <meyering@redhat.com>
34821
34822         syntax-check: detect unnecessary inclusion of canonicalize.h
34823         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34824
34825 2009-09-19  Eric Blake  <ebb9@byu.net>
34826
34827         canonicalize-lgpl: adjust clients to use correct header
34828         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34829         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34830         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34831         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34832         * lib/progreloc.c (includes): Likewise.
34833
34834 2009-09-19  Jim Meyering  <meyering@redhat.com>
34835
34836         test-posixtm.c: correct a comment
34837         * tests/test-posixtm.c: Correct first-line comment.
34838         Spotted by Eric Blake.
34839
34840 2009-09-16  Jim Meyering  <meyering@redhat.com>
34841
34842         posixtm-tests: make T const-correct; add a test case
34843         * tests/test-posixtm.c (T): Declare const.
34844         Add a test for -(2^31+1).
34845         Remove useless can-succeed-only-in-2002 test.
34846
34847         posixtm-tests: adjust the sole failing test
34848         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34849         expected output matches what mktime now produces.  Cross-checked via
34850         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34851
34852         posixtm: move #ifdef'd tests into a new module
34853         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34854         * tests/test-posixtm.c: ... this new file.
34855         * modules/posixtm-tests: New module.
34856
34857 2009-09-19  Eric Blake  <ebb9@byu.net>
34858
34859         openat: simplify use of at-func.c
34860         * lib/at-func.c (includes): Include prerequisites here, to
34861         simplify requirements on client files.
34862         * lib/openat-priv.h: Add double-inclusion guard.
34863         * lib/faccessat.c (includes): Simplify.
34864         * lib/fchmodat.c (includes): Likewise.
34865         * lib/fchownat.c (includes): Likewise.
34866         * lib/mkdirat.c (includes): Likewise.
34867         * lib/mkfifoat.c (includes): Likewise.
34868         * lib/symlinkat.c (includes): Likewise.
34869
34870         openat: allow return of fd 0
34871         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34872         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34873         unistd-safer.
34874         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34875         <fcntl.h>; this module does not leak fds.
34876         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34877         must be allowed to return 0, leaving openat_safer to add the
34878         safety.
34879         (openat_permissive): Avoid writing to just-opened fd 2 if
34880         restoring the current directory fails.
34881         * lib/openat-die.c (openat_restore_fail): Add comment.
34882         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34883         (save_cwd): Guarantee safe fd, but without use of open_safer.
34884         * tests/test-openat.c: New test.
34885         * modules/openat-tests (Files, Makefile.am): Distribute and build
34886         new file.
34887
34888         relocatable-prog-wrapper: fix build
34889         * modules/relocatable-prog-wrapper (Files): Update name of
34890         canonicalize m4 file, broken on 2009-09-17.
34891         Reported by emad hajjar <aleppos@hotmail.com>.
34892
34893 2009-09-19  Bruno Haible  <bruno@clisp.org>
34894
34895         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34896         * lib/safe-alloc.c: Likewise.
34897         Reported by Ian Beckwith <ianb@erislabs.net>.
34898
34899 2009-09-18  Bruno Haible  <bruno@clisp.org>
34900
34901         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34902         Reported by <erobles@sensacd.com.mx>.
34903
34904 2009-09-17  Eric Blake  <ebb9@byu.net>
34905
34906         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34907         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34908         slashes when checking if last component is missing.
34909         * tests/test-canonicalize.c (main): Test this.
34910
34911         canonicalize, canonicalize-lgpl: honor // if distinct from /
34912         * modules/canonicalize (Files): Add double-slash-root.m4.
34913         * modules/canonicalize-lgpl (Files): Likewise.
34914         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34915         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34916         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34917         fallback definition.
34918         (canonicalize_filename_mode): Use it to protect //.
34919         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34920         (__realpath): Likewise.
34921         * tests/test-canonicalize.c (main): Test this.
34922         * tests/test-canonicalize-lgpl.c (main): Likewise.
34923         * modules/canonicalize-tests (Depends-on): Add same-inode.
34924         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34925
34926         canonicalize-lgpl: fix glibc bug with trailing slash
34927         * m4/canonicalize-lgpl.m4: Move contents...
34928         * m4/canonicalize.m4: ...here.
34929         (gl_CANONICALIZE_LGPL): Factor realpath check...
34930         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34931         glibc 2.3.5 bug, fixed 2005-04-27.
34932         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34933         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34934         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34935         * modules/canonicalize-lgpl (Files): Manage file rename.
34936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34937         * modules/stdlib (Makefile.am): Substitute witness.
34938         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34939         is needed.
34940         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34941         replacement is required.
34942         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34943         * doc/glibc-functions/canonicalize_file_name.texi
34944         (canonicalize_file_name): Document this.
34945         * doc/posix-functions/realpath.texi (realpath): Likewise.
34946
34947         canonicalize-lgpl: reject non-directory with trailing slash
34948         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34949         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34950         catches failures in glibc 2.3.5.
34951         * tests/test-canonicalize.c (main): Likewise.
34952
34953         canonicalize-lgpl: use native realpath if it works
34954         * lib/canonicalize-lgpl.c (realpath): Guard with
34955         FUNC_REALPATH_WORKS.
34956         * lib/stdlib.in.h (realpath): Make declaration optional based on
34957         HAVE_REALPATH.
34958         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34959         native realpath works.
34960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34961         * modules/stdlib (Makefile.am): Substitute witness.
34962
34963         canonicalize, canonicalize-lgpl: use <stdlib.h>
34964         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34965         (Include): Mention <stdlib.h>.
34966         (configure.ac): Mention functions we provide.
34967         * modules/canonicalize (configure.ac): Likewise.
34968         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34969         realpath if canonicalize_file_name is missing.
34970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34971         * modules/stdlib (Makefile.am): Substitute witnesses.
34972         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34973         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34974         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34975         * NEWS: Document this.
34976         * doc/glibc-functions/canonicalize_file_name.texi
34977         (canonicalize_file_name): Likewise.
34978         * doc/posix-functions/realpath.texi (realpath): Likewise.
34979         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34980
34981         test-canonicalize: consolidate into single C program
34982         * tests/test-canonicalize.sh: Delete; move setup into...
34983         * tests/test-canonicalize.c (main): ...the program, making it
34984         easier to run in debugger.  Add some tests.
34985         * modules/canonicalize-tests (Files): Remove unused file.
34986         (Depends-on): Add progname.
34987         (configure.ac, Makefile.am): Simplify.
34988
34989         test-canonicalize-lgpl: consolidate into single C program
34990         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34991         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34992         easier to run in debugger.  Add some tests.
34993         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34994         (configure.ac, Makefile.am): Simplify.
34995
34996         canonicalize: avoid resolvepath
34997         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34998         unnecessary checks.
34999         * lib/canonicalize.c (includes): Simplify.
35000         (canonicalize_file_name): Drop resolvepath implementation.
35001         * modules/canonicalize (Depends-on): Drop filenamecat.
35002
35003         canonicalize: don't lose errno
35004         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35005         over calls to free.
35006
35007         canonicalize: simplify errno handling
35008         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35009         assignment.
35010
35011         canonicalize, canonicalize-lgpl: update module dependencies
35012         * modules/canonicalize (Depends-on): Add extensions, lstat,
35013         pathmax, stdlib.
35014         (Files): Drop pathmax.h.
35015         (configure.ac): Adjust macro name.
35016         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35017         lstat, stdlib, sys_stat.
35018         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35019         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35020         extensions.
35021         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35022         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35023         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35024         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35025         declaration, if available.
35026         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35027         we can rely on the readlink module.
35028         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35029         (includes): Use <unistd.h> unconditionally.
35030
35031 2009-09-17  Eric Blake  <ebb9@byu.net>
35032
35033         maint: make Include sections of modules consistent
35034         * modules/alloca: Use only header name; no need to list #include.
35035         * modules/alloca-opt: Likewise.
35036         * modules/arpa_inet: Likewise.
35037         * modules/canon-host: Likewise.
35038         * modules/configmake: Likewise.
35039         * modules/dirent: Likewise.
35040         * modules/eealloc: Likewise.
35041         * modules/environ: Likewise.
35042         * modules/fchdir: Likewise.
35043         * modules/fcntl: Likewise.
35044         * modules/fcntl-h: Likewise.
35045         * modules/gethrxtime: Likewise.
35046         * modules/gettime: Likewise.
35047         * modules/ignore-value: Likewise.
35048         * modules/inet_ntop: Likewise.
35049         * modules/inet_pton: Likewise.
35050         * modules/inttypes: Likewise.
35051         * modules/isnand-nolibm: Likewise.
35052         * modules/isnanf-nolibm: Likewise.
35053         * modules/mbchar: Likewise.
35054         * modules/mbfile: Likewise.
35055         * modules/mbiter: Likewise.
35056         * modules/mbuiter: Likewise.
35057         * modules/netdb: Likewise.
35058         * modules/netinet_in: Likewise.
35059         * modules/nproc: Likewise.
35060         * modules/pagealign_alloc: Likewise.
35061         * modules/poll: Likewise.
35062         * modules/printf-frexp: Likewise.
35063         * modules/pthread: Likewise.
35064         * modules/putenv: Likewise.
35065         * modules/random_r: Likewise.
35066         * modules/relocatable-prog: Likewise.
35067         * modules/search: Likewise.
35068         * modules/select: Likewise.
35069         * modules/selinux-h: Likewise.
35070         * modules/settime: Likewise.
35071         * modules/signal: Likewise.
35072         * modules/size_max: Likewise.
35073         * modules/socklen: Likewise.
35074         * modules/ssize_t: Likewise.
35075         * modules/stdarg: Likewise.
35076         * modules/stdbool: Likewise.
35077         * modules/stddef: Likewise.
35078         * modules/stdint: Likewise.
35079         * modules/stdio: Likewise.
35080         * modules/stdlib: Likewise.
35081         * modules/string: Likewise.
35082         * modules/strings: Likewise.
35083         * modules/sys_file: Likewise.
35084         * modules/sys_ioctl: Likewise.
35085         * modules/sys_select: Likewise.
35086         * modules/sys_socket: Likewise.
35087         * modules/sys_stat: Likewise.
35088         * modules/sys_time: Likewise.
35089         * modules/sys_times: Likewise.
35090         * modules/sys_utsname: Likewise.
35091         * modules/sys_wait: Likewise.
35092         * modules/sysexits: Likewise.
35093         * modules/time: Likewise.
35094         * modules/times: Likewise.
35095         * modules/tmpfile: Likewise.
35096         * modules/trim: Likewise.
35097         * modules/unistd: Likewise.
35098         * modules/wchar: Likewise.
35099         * modules/wctype: Likewise.
35100
35101 2009-09-17  Bruno Haible  <bruno@clisp.org>
35102
35103         Make getdate.y compile on QNX and NetBSD 5 / i386.
35104         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35105         TIME_T_FITS_IN_LONG_INT.
35106         * lib/getdate.y (long_time_t): New type.
35107         (relative_time): Change type of 'seconds' field to long_time_t.
35108         (get_date): Update types of local variables. Check against overflow
35109         during conversion from long_time_t to time_t.
35110         Reported by Matt Kraai <kraai@ftbfs.org>
35111         and Hasso Tepper <hasso@netbsd.org>.
35112
35113 2009-09-17  Bruno Haible  <bruno@clisp.org>
35114
35115         * modules/COPYING: Update copyright years.
35116         * modules/README: Likeiwse.
35117         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35118         Reported by Ian Beckwith <ianb@erislabs.net>.
35119
35120 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35121
35122         * users.txt: Update references for gnuit package.
35123
35124 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35125
35126         * m4/getdelim.m4: Fix typo in copyright line.
35127
35128 2009-09-17  Bruno Haible  <bruno@clisp.org>
35129
35130         * lib/atoll.c: Use the standard header with GPL copyright.
35131         * lib/argz.in.h: Likewise.
35132         * lib/glob.c: Likewise.
35133         * lib/glob-libc.h: Likewise.
35134         * lib/random_r.c: Likewise.
35135         * lib/siglist.h: Likewise.
35136         * lib/strsignal.c: Likewise.
35137         Reported by Ian Beckwith <ianb@erislabs.net>.
35138
35139 2009-09-17  Eric Blake  <ebb9@byu.net>
35140
35141         rmdir: ensure correct dependency order
35142         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35143
35144 2009-09-17  Bruno Haible  <bruno@clisp.org>
35145
35146         Disable assertion that fails on NetBSD 5 / i386.
35147         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35148         Reported by Sam Steingold <sds@gnu.org>
35149         and Hasso Tepper <hasso@netbsd.org>.
35150
35151 2009-09-16  Eric Blake  <ebb9@byu.net>
35152
35153         unlinkdir: port to mingw
35154         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35155         on which no one can unlink a directory.
35156
35157         stdlib: sort witness names
35158         * modules/stdlib (Makefile.am): Sort replacements.
35159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35160         * lib/stdlib.in.h: Likewise.
35161
35162         parse-duration-tests: avoid link failure
35163         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35164         LIBINTL.
35165         Reported by Tom G. Christensen.
35166
35167         openat-tests: ensure unlinkat behaves like rmdir
35168         * tests/test-rmdir.c (main): Factor guts...
35169         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35170         * modules/rmdir-tests (Files): Ship new file.
35171         * modules/openat-tests: New test.
35172         * tests/test-unlinkat.c: Likewise.
35173
35174         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35175         * modules/rmdir-errno (Status, Notice): Now obsolete.
35176
35177         rmdir: work around cygwin 1.5.x and mingw bugs
35178         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35179         * lib/rmdir.c (rmdir): Work around it.
35180         * modules/rmdir (Status, Notice): No longer obsolete.
35181         (Files): Add dos.m4.
35182         (Depends-on): Add unistd.
35183         (configure.ac): Set witnesses.
35184         (License): Relax to LGPLv2+.
35185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35186         * modules/unistd (Makefile.am): Substitute witnesses.
35187         * lib/unistd.in.h (rmdir): Declare replacement.
35188         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35189         * modules/rmdir-tests: New tests.
35190         * tests/test-rmdir.c: Likewise.
35191
35192 2009-09-15  Eric Blake  <ebb9@byu.net>
35193
35194         fchdir: improve use of replacement functions
35195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35196         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35197         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35198         REPLACE_CLOSEDIR.
35199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35200         * modules/sys_stat (Makefile.am): Substitute correct witness.
35201         * modules/dirent (Makefile.am): Likewise.
35202         * modules/unistd (Makefile.am): Likewise.
35203         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35204         * lib/unistd.in.h (dup): Likewise.
35205         * lib/sys_stat.in.h (fstat): Likewise.
35206
35207         maint: ignore gnulib-tool temp files
35208         * .gitignore: Ignore files created during gnulib-tool --test.
35209
35210 2009-09-13  Jim Meyering  <meyering@redhat.com>
35211
35212         posixtm: don't reject a time that specify "60" as the number of seconds
35213         * lib/posixtm.c (posixtime): The code to reject invalid dates
35214         would also reject a time specified with the .60 suffix.
35215         But POSIX allows that, in order to accommodate leap seconds.
35216         So don't reject it.
35217         (main): Adjust tests accordingly.
35218         * modules/posixtm (Depends-on): Add stpcpy.
35219
35220 2009-09-11  Jim Meyering  <meyering@redhat.com>
35221
35222         announce-gen: include [$release_type] in emitted Subject:
35223         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35224         e.g., [stable] in the emitted Subject: line.
35225
35226 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35227
35228         Remove obsolete macros from several modules.
35229         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35230         obsolete Autoconf macros with their modern counterparts.
35231         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35232         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35234         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35235         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35236         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35238         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35239         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35240         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35241         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35243         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35244         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35245         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35246         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35247         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35248         * m4/time_r.m4 (gl_TIME_R): Likewise.
35249         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35250         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35251         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35252
35253         Fix copyright header in build-aux scripts.
35254         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35255         recommendation.
35256         * build-aux/ncftpput-ftp: Likewise.
35257         * build-aux/update-copyright: Likewise.
35258
35259 2009-09-09  Eric Blake  <ebb9@byu.net>
35260
35261         test-link: allow Linux choice of errno
35262         * tests/test-link.c (main): Relax test for alternate error.
35263
35264         strndup: fix improper m4 caching
35265         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35266         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35267         (gl_PREREQ_STRNDUP): Delete.
35268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35269         * modules/string (Makefile.am): Substitute it.
35270         * lib/string.in.h (strndup): Modernize prototype.
35271
35272         getcwd: port to mingw
35273         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35274         different from the POSIX assumptions made throughout the getcwd
35275         module; fortunately, the mingw getcwd does not need replacement.
35276         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35277         * modules/getcwd-tests: New test.
35278         * tests/test-getcwd.c: Likewise.
35279
35280         link: fix platform bugs
35281         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35282         * lib/link.c (link): Work around them.  Fix related mingw bug.
35283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35284         * modules/unistd (Makefile.am): Substitute it.
35285         * lib/unistd.in.h (link): Declare replacement.
35286         * doc/posix-functions/link.texi (link): Document this.
35287         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35288
35289         test-link: consolidate into single C program, test more cases
35290         * tests/test-link.sh: Delete.
35291         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35292         at least Cygwin and Solaris.
35293         * modules/link-tests (Files): Remove unused file.
35294         (Depends-on): Add errno, sys_stat.
35295         (Makefile.am): Simplify.
35296
35297 2009-09-08  Bruno Haible  <bruno@clisp.org>
35298
35299         Work around towlower, towupper bug on mingw.
35300         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35301         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35302         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35303         * doc/posix-functions/towupper.texi: Likewise.
35304         Reported by Eric Blake.
35305
35306 2009-09-08  Jim Meyering  <meyering@redhat.com>
35307
35308         build: don't try to run autoheader if we don't use it
35309         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35310         is not used in configure.ac.
35311
35312 2009-09-08  Eric Blake  <ebb9@byu.net>
35313
35314         euidaccess: fix compilation error
35315         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35316
35317         rawmemchr: relax license
35318         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35319         okay.
35320         Reported by Jim Meyering.
35321
35322         mkfifoat: new module
35323         * modules/mkfifoat: New file.
35324         * lib/mkfifoat.c: Likewise.
35325         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35327         * modules/sys_stat (Makefile.am): Use them.
35328         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35329         * MODULES.html.sh (File system functions): Mention module.
35330         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35331         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35332         * modules/mkfifoat-tests: New test.
35333         * tests/test-mkfifoat.c: Likewise.
35334
35335         strchrnul: relax license
35336         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35337         okay.
35338         Reported by Jim Meyering.
35339
35340 2009-09-08  Eric Blake  <ebb9@byu.net>
35341
35342         fstatat: fix compilation on Solaris
35343         * lib/fstatat.c (includes): Add fcntl.h.
35344         Reported by Pádraig Brady.
35345
35346 2009-09-07  Eric Blake  <ebb9@byu.net>
35347
35348         rename: modernize replacement
35349         * modules/rename (Depends-on): Add stdio.
35350         (configure.ac): Declare witness.
35351         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35352         stdio take care of replacement.
35353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35354         * modules/stdio (Makefile.am): Substitute them.
35355         * lib/stdio.in.h (rename): Declare replacement.
35356         * lib/rename.c (includes): Allow cross-compilation to non-windows
35357         machines.
35358         * doc/posix-functions/rename.texi (rename): Improve
35359         documentation.
35360
35361         stdio: sort witness names
35362         * modules/stdio (Makefile.am): Sort replacements.
35363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35364         * lib/stdio.in.h: Likewise.
35365
35366         getcwd: minor cleanups
35367         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35368         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35369
35370         openat: provide more convenience names
35371         * modules/faccessat (configure.ac): Add C witness.
35372         * lib/unistd.in.h (readlinkat): Fix typo.
35373         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35374         convenience wrappers.
35375         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35376         wrappers in syntax checks.
35377
35378 2009-09-06  Eric Blake  <ebb9@byu.net>
35379
35380         doc: fix comments in recent patches
35381         * lib/faccessat.c: Mention correct function.
35382         * lib/fchmodat.c: Likewise.
35383         * lib/fchownat.c: Likewise.
35384         * lib/symlinkat.c: Likewise.
35385         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35386         constants.
35387
35388         faccessat, symlinkat: continue cleanup of previous patch
35389         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35390         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35391         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35393         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35394         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35395         set.
35396
35397 2009-09-06  Bruno Haible  <bruno@clisp.org>
35398
35399         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35400         (fstatat): Declare if GNULIB_FSTATAT is set.
35401         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35402         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35403         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35404         * modules/fcntl-h (Files): Remove m4/openat.m4.
35405         * modules/sys_stat (Files): Remove m4/openat.m4.
35406         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35407         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35408         * modules/unistd (Files): Remove m4/openat.m4.
35409         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35410         GNULIB_OPENAT.
35411         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35412         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35413         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35414         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35415         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35416         gl_OPENAT_DEFAULTS.
35417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35418         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35419         Don't require gl_OPENAT_DEFAULTS.
35420         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35421         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35422         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35423         (gl_OPENAT_DEFAULTS): Remove macro.
35424
35425 2009-09-06  Bruno Haible  <bruno@clisp.org>
35426
35427         * modules/openat (configure.ac): Remove unneeded witness.
35428
35429 2009-09-06  Bruno Haible  <bruno@clisp.org>
35430
35431         Set errno to ENOSYS when a function is entirely unsupported.
35432         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35433         EOPNOTSUPP.
35434         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35435         * modules/chown (Depends-on): Remove errno.
35436
35437 2009-09-06  Bruno Haible  <bruno@clisp.org>
35438
35439         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35440
35441 2009-09-06  Bruno Haible  <bruno@clisp.org>
35442
35443         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35444
35445 2009-09-06  Ben Pfaff  <blp@gnu.org>
35446             Bruno Haible  <bruno@clisp.org>
35447
35448         Work around a glibc bug in strtok_r.
35449         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35450         Undefine if UNDEFINE_STRTOK_R is set.
35451         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35453         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35455         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35456         UNDEFINE_STRTOK_R.
35457         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35458
35459 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35460
35461         exclude: minor fix
35462         * lib/exclude.c: Include wctype.h
35463
35464 2009-09-06  Akim Demaille  <demaille@gostai.com>
35465
35466         bootstrap: improve error message
35467         * build-aux/bootstrap (find_tool): Upon failure, report the list
35468         of candidates.
35469         Honor the initial value of the envvar.
35470
35471 2009-09-05  Eric Blake  <ebb9@byu.net>
35472
35473         symlinkat: new module
35474         * modules/symlinkat: New file.
35475         * lib/symlinkat.c: Likewise.
35476         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35478         * modules/unistd (Makefile.am): Use them.
35479         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35480         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35481         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35482         * MODULES.html.sh (File system functions): Mention module.
35483         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35484         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35485         * modules/symlinkat-tests: New test.
35486         * tests/test-symlinkat.c: Likewise.
35487
35488         test-openat-safer: add more checks
35489         * tests/test-openat-safer.c (main): Check more code paths.
35490
35491 2009-09-05  Jim Meyering  <meyering@redhat.com>
35492
35493         syntax-check: detect unnecessary inclusion of openat.h
35494         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35495
35496 2009-09-05  Bruno Haible  <bruno@clisp.org>
35497
35498         Support towlower, towupper.
35499         * doc/posix-functions/towlower.texi: Mention module wctype.
35500         * doc/posix-functions/towupper.texi: Likewise.
35501         * lib/wctype.in.h (towlower, towupper): New functions.
35502         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35503         (ASSERT): New macro.
35504         (e): New variable.
35505         (main): Test also towlower, towupper. Test WEOF argument.
35506         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35507
35508 2009-09-05  Bruno Haible  <bruno@clisp.org>
35509
35510         Fix conversion behaviour when the input is invalid.
35511         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35512         mark occurring in first pass of indirect conversion.
35513         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35514         input.
35515         Found by clang's static analyzer.
35516
35517 2009-09-05  Bruno Haible  <bruno@clisp.org>
35518
35519         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35520         where direct conversion is possible.
35521
35522 2009-09-04  Eric Blake  <ebb9@byu.net>
35523
35524         openat: fail with ENOENT on empty name
35525         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35526         buffer.
35527
35528         link-follow: fix logic bug in prior patch
35529         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35530         reversed sense of yes and no in prior patch.  Avoid confusing
35531         compilation failure with desired semantics.
35532
35533         link-follow: accomodate mingw and cross-compilation
35534         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35535         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35536         cross-compilation results to -1, to make linkat easier to
35537         implement when cross-compiling.  Trivially support mingw.
35538         * modules/link-follow (configure.ac): Call new name.
35539         * NEWS: Mention this.
35540
35541 2009-09-03  Eric Blake  <ebb9@byu.net>
35542
35543         faccessat: compile replacement
35544         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35545         needed.
35546
35547         fts: fix compilation error
35548         * lib/fts.c (includes): Re-add "openat.h", for
35549         openat_needs_fchdir.
35550
35551         faccessat: new module
35552         * modules/faccessat: New file.
35553         * lib/faccessat.c: Likewise.
35554         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35556         * modules/unistd (Makefile.am): Use it.
35557         * lib/unistd.in.h (faccessat): Declare it.
35558         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35559         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35560         * MODULES.html.sh (File system functions): Mention it.
35561         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35562         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35563
35564         euidaccess: prefer POSIX over non-standard implementation
35565         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35566         * lib/euidaccess.c (euidaccess): Use it if available.
35567
35568         openat: make template easier to use
35569         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35570         AT_FUNC_F2 to be undefined.
35571         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35572         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35573         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35574         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35575         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35576         Likewise.
35577         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35578         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35579         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35580         Likewise.
35581
35582         openat: declare in POSIX headers
35583         * NEWS: Mention this.
35584         * modules/openat (configure.ac): Declare witnesses.
35585         (Depends-on): Add fcntl-h, sys_stat, unistd.
35586         (Include): Mention correct headers.
35587         * modules/fcntl-h (Depends-on): Add link-warning.
35588         (Files): Add openat.m4.
35589         (Makefile.am): Substitute witnesses.
35590         * modules/sys_stat (Files, Makefile.am): Likewise.
35591         * modules/unistd (Files, Makefile.am): Likewise.
35592         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35593         (gl_OPENAT_DEFAULTS): New macro.
35594         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35596         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35597         (SYS_STAT_H): Remove unused variable.
35598         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35599         * lib/fcntl--.h (includes): Remove unneeded header.
35600         * lib/openat-safer.c (includes): Likewise.
35601         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35602         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35603         appropriate headers.
35604         (__OPENAT_PREFIX): Delete.
35605         * lib/fcntl.in.h (openat): Provide declaration.
35606         (AT_FDCWD): Fix Solaris bug.
35607         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35608         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35609         * lib/fchmodat.c (includes):  Adjust to find declaration.
35610         * lib/fchownat.c (includes): Likewise.
35611         * lib/mkdirat.c (includes): Likewise.
35612         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35613         still visible.
35614
35615 2009-09-02  Eric Blake  <ebb9@byu.net>
35616
35617         errno: use consistently
35618         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35619         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35620         * lib/canonicalize.c (ELOOP): Likewise.
35621         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35622         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35623         * lib/lchown.c (EOPNOTSUPP): Likewise.
35624         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35625         * lib/savewd.c (ESTALE): Likewise.
35626         * lib/settime.c (ENOSYS): Likewise.
35627         * lib/utimens.c (ENOSYS): Likewise.
35628         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35629         * lib/chdir-safer.c (ELOOP): Likewise.
35630         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35631         * modules/c-stack (Depends-on): Add errno.
35632         * modules/canonicalize (Depends-on): Likewise.
35633         * modules/chdir-safer (Depends-on): Likewise.
35634         * modules/fdopendir (Depends-on): Likewise.
35635         * modules/inet_ntop (Depends-on): Likewise.
35636         * modules/inet_pton (Depends-on): Likewise.
35637         * modules/lchown (Depends-on): Likewise.
35638         * modules/openat (Depends-on): Likewise.
35639         * modules/savewd (Depends-on): Likewise.
35640         * modules/settime (Depends-on): Likewise.
35641         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35642
35643         fts: avoid leaking fds
35644         * modules/fts (Depends-on): Add cloexec.
35645         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35646         flag.
35647
35648         fts: make directory fds more robust
35649         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35650         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35651
35652         backupfile, chdir-long, fts, savedir: make safer
35653         * lib/backupfile.c (includes): Use "dirent--.h", since
35654         numbered_backup can write to stderr during readdir.
35655         * lib/savedir.c (includes): Likewise.
35656         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35657         emulation can write to stderr on failure.
35658         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35659         * lib/getcwd.c: Document why opendir_safer is unused.
35660         * lib/glob.c: Likewise.
35661         * lib/scandir.c: Likewise.
35662         * lib/openat-proc.c: Likewise, for open_safer.
35663         * modules/backupfile (Depends-on): Add dirent-safer.
35664         * modules/savedir (Depends-on): Likewise.
35665         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35666         * modules/chdir-long (Depends-on): Add openat-safer.
35667
35668         openat-safer: new module
35669         * modules/openat-safer: New file.
35670         * lib/openat-safer.c: Likewise.
35671         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35672         * lib/fcntl-safer.h (openat_safer): Declare.
35673         * lib/fcntl--.h (openat): Override.
35674         * MODULES.html.sh (File descriptor based I/O): Mention it.
35675         * lib/openat.h: Add double-inclusion guards.
35676         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35677         "fcntl--.h", so we can implement openat.
35678         * modules/openat-safer-tests: New test.
35679         * tests/test-openat-safer.c: New file.
35680
35681         dirent-safer: new module
35682         * modules/dirent-safer: New file.
35683         * lib/dirent--.h: Likewise.
35684         * lib/dirent-safer.h: Likewise.
35685         * lib/opendir-safer.c: Likewise.
35686         * m4/dirent-safer.m4: Likewise.
35687         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35688         * modules/dirent-safer-tests: New test.
35689         * tests/test-dirent-safer.c: New file.
35690         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35691
35692         fdopendir: optimize on mingw
35693         * lib/unistd.in.h (_gl_directory_name): New prototype.
35694         * lib/fchdir.c (_gl_directory_name): Implement it.
35695         (fchdir): Use it to simplify implementation.
35696         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35697         fchdir, when available, to avoid calling [f]chdir().
35698
35699         fdopendir: split into its own module
35700         * lib/openat.c (fdopendir): Move...
35701         * lib/fdopendir.c: ...into new file.
35702         * modules/fdopendir: New module.
35703         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35704         * modules/openat (Depends-on): Add fdopendir.
35705         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35706         fdopendir here.
35707         * modules/savedir (Depends-on): Only need fdopendir, not full
35708         openat.
35709         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35710         * lib/openat.h (fdopendir): Drop prototype.
35711         * lib/dirent.in.h (fdopendir): Provide prototype.
35712         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35713         * modules/dirent (Makefile.am): Substitute them.
35714         * MODULES.html.sh (File system functions): Mention it.
35715         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35716         * modules/fdopendir-tests: New file.
35717         * tests/test-fdopendir.c: Likewise.
35718
35719         fchdir: use more consistent macro convention
35720         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35721         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35722         REPLACE_FCHDIR, rather than relying on config.h macros.
35723         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35724         inside a single make-time REPLACE_FCHDIR block, rather than using
35725         the config.h FCHDIR_REPLACEMENT.
35726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35727         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35728         Manage fstat replacement.
35729         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35730         REPLACE_FCHDIR.
35731         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35732         (Makefile.am): Substitute REPLACE_FCHDIR.
35733         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35734         FCHDIR_REPLACEMENT.
35735         * lib/dup-safer.c (dup_safer): Likewise.
35736         * lib/dup2.c (rpl_dup2): Likewise.
35737         * lib/dup3.c (rpl_dup3): Likewise.
35738         * lib/open.c (rpl_open): Likewise.
35739
35740         fchdir: simplify error handling, and support dup3
35741         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35742         stdbool, malloc-posix, realloc-posix.
35743         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35744         (ensure_dirs_slot): Return false on allocation failure.
35745         (rpl_dup2): Delete.
35746         (_gl_register_dup): New function.
35747         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35748         (_gl_register_fd): Close fd on allocation failure.
35749         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35750         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35751         prototype.
35752         (rpl_dup2_fchdir): Delete prototype.
35753         * lib/open.c (open): Update caller.
35754         * lib/dup2.c (dup2): Track fchdir metadata.
35755         * lib/dup3.c (dup3): Likewise.
35756         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35758
35759 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35760
35761         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35762         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35763         don't pass arguments to AC_OUTPUT.
35764
35765 2009-09-02  Bruno Haible  <bruno@clisp.org>
35766
35767         * modules/mkdtemp (License): Relicense under LGPLv2+.
35768         Reported by Paolo Bonzini.
35769
35770 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35771
35772         Replace uses of obsolete autoconf macros in Jim's modules.
35773         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35774         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35775         can evoke a warning from autoconf when run with -Wobsolete
35776         enabled.  They were declared obsolete for good reasons (see
35777         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35778         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35779         should not continue using the deprecated macros.
35780         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35781         obsolete Autoconf macros with modern counterparts.
35782         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35783         * m4/dos.m4 (gl_AC_DOS): Likewise.
35784         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35785         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35786         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35787         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35788         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35789         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35790         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35791         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35792         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35793         Likewise.
35794         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35795         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35796         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35797         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35798         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35799         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35800
35801 2009-09-01  Eric Blake  <ebb9@byu.net>
35802
35803         fchdir: fix off-by-one bug in previous patch
35804         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35805         (_gl_unregister_fd): Delete useless if.
35806
35807 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35808
35809         maint.mk: sort the list of syntax-check rules
35810         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35811         easier to get a sense of progress when the rules are run sequentially
35812         and take a long time.
35813
35814 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35815
35816         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35817         * modules/netinet_in: Likewise.
35818         * modules/sys_file: Likewise.
35819         * modules/sys_ioctl: Likewise.
35820         * modules/sys_select: Likewise.
35821         * modules/sys_socket: Likewise.
35822         * modules/sys_stat: Likewise.
35823         * modules/sys_time: Likewise.
35824         * modules/sys_times: Likewise.
35825         * modules/sys_utsname: Likewise.
35826         * modules/sys_wait: Likewise.
35827
35828 2009-09-01  Jim Meyering  <meyering@redhat.com>
35829
35830         fts: help ensure that return values are not ignored
35831         * lib/fts_.h (__GNUC_PREREQ): Define.
35832         (__attribute_warn_unused_result__): Define.
35833         (fts_children, fts_close, fts_open, fts_read): Declare with
35834         __attribute_warn_unused_result__.
35835
35836         fts: fts_close now fails also when closing a dir file descriptor fails
35837         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35838         and propagate to caller, along with errno.
35839
35840         announce-gen: correct formatting in --help output
35841         * build-aux/announce-gen (usage): Move the one-line description in
35842         --help output "up", to where it belongs, just after Usage:.
35843
35844 2009-08-31  Eric Blake  <ebb9@byu.net>
35845
35846         fchdir: port to mingw
35847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35848         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35849         opened, then use a substitute.
35850         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35851         replacement.
35852         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35853         (_gl_register_fd): No need to check stat if open already filters
35854         all directories.
35855         (fchdir): Fix error condition to match POSIX.
35856         * modules/fchdir (Depends-on): Add sys_stat.
35857         * doc/posix-functions/open.texi (open): Document the limitation.
35858         * modules/fchdir-tests: New file.
35859         * tests/test-fchdir.c: Likewise.
35860
35861         canonicalize: allow cross-testing from cygwin to mingw
35862         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35863         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35864         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35865         Likewise.
35866         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35867         target does not support symlinks.
35868         * tests/test-canonicalize-lgpl.sh: Likewise.
35869
35870         chown: avoid compilation warning on mingw
35871         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35872         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35873         mingw.
35874         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35875         * modules/chown (Depends-on): Add errno.
35876
35877 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35878
35879         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35880         command.
35881
35882 2009-08-31  Jim Meyering  <meyering@redhat.com>
35883
35884         canonicalize: remove useless initialization
35885         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35886         initialization of local, "end".
35887
35888 2009-08-30  Bruno Haible  <bruno@clisp.org>
35889
35890         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35891         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35892         ENOSYS.
35893
35894 2009-08-30  Bruno Haible  <bruno@clisp.org>
35895
35896         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35897         /usr/xpg4/bin/tr when it exists.
35898         * tests/test-pipe-filter-gi1.sh: Likewise.
35899
35900 2009-08-30  Bruno Haible  <bruno@clisp.org>
35901
35902         Work around deficient /usr/bin/id program on Solaris.
35903         * tests/test-file-has-acl.sh (ID): New variable.
35904         * tests/test-set-mode-acl.sh (ID): Likewise.
35905         * tests/test-copy-acl.sh (ID): Likewise.
35906         * tests/test-copy-file.sh (ID): Likewise.
35907
35908 2009-08-30  Bruno Haible  <bruno@clisp.org>
35909
35910         New module 'xstriconveh'.
35911         * lib/xstriconveh.h: New file.
35912         * lib/xstriconveh.c: New file.
35913         * modules/xstriconveh: New file.
35914
35915 2009-08-30  Bruno Haible  <bruno@clisp.org>
35916
35917         Make it easier to use mem_cd_iconveh.
35918         * lib/striconveh.h (iconveh_t): New type.
35919         (iconveh_open, iconveh_close): New declarations.
35920         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35921         with a single 'const iconveh_t *' argument.
35922         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35923         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35924         with a single 'const iconveh_t *' argument.
35925         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35926         * tests/test-striconveh.c (main): Update.
35927         * NEWS: Mention the change.
35928
35929 2009-08-30  Bruno Haible  <bruno@clisp.org>
35930
35931         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35932         problem.
35933
35934 2009-08-30  Bruno Haible  <bruno@clisp.org>
35935
35936         Work around iconv_open problem on Solaris.
35937         * lib/iconv_open-solaris.gperf: New file.
35938         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35939         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35940         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35941         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35942         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35943         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35944
35945 2009-08-29  Jim Meyering  <meyering@redhat.com>
35946
35947         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35948         * top/maint.mk (cvs-check): Remove target; it was just an alias
35949         to the better-named vc-diff-check.
35950         (maintainer-distcheck): Remove rule.  It was used only from
35951         the (alpha/beta/major) target, and all of its commands but one
35952         were coreutils-specific.
35953         (vc-dist): Remove rule.
35954         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35955         Run vc-diff-check, not vc-dist.
35956         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35957
35958 2009-08-27  Bruno Haible  <bruno@clisp.org>
35959
35960         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35961         of 0.
35962
35963 2009-08-27  Bruno Haible  <bruno@clisp.org>
35964
35965         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35966         compilers.
35967         * doc/func.texi: Document the SunPRO C bug.
35968
35969 2009-08-27  Bruno Haible  <bruno@clisp.org>
35970
35971         Fix link error on Solaris.
35972         * tests/test-parse-duration.c (xstrdup): Remove function.
35973
35974 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35975
35976         ignore-value: handle pointer types, too
35977         * lib/ignore-value.h (__attribute__): Remove definition.
35978         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35979         of a more concise and more-often effective "(void) i" statement.
35980         (ignore_ptr): New function to suppress warnings from functions that
35981         return pointers, and to make it explicit that one function doesn't
35982         handle all cases.
35983
35984 2009-08-25  Bruno Haible  <bruno@clisp.org>
35985
35986         dup2: work around a Linux bug.
35987         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35988         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35989         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35990         Reported by Simon Josefsson.
35991
35992 2009-08-25  Jim Meyering  <meyering@redhat.com>
35993
35994         libguestfs uses gnulib
35995         * users.txt: Add libguestfs.
35996
35997 2009-08-24  Eric Blake  <ebb9@byu.net>
35998
35999         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36000         * lib/pipe2.c (includes): Add binary-io.h.
36001         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36002
36003 2009-08-24  Bruno Haible  <bruno@clisp.org>
36004
36005         Tolerate declared but missing accept4 syscall.
36006         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36007         available.
36008         * lib/sys_socket.in.h (accept4): If the function is already present,
36009         override it.
36010         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36011         * modules/accept4 (Makefile.am): Compile accept4.c always.
36012         Reported by Paolo Bonzini and Eric Blake.
36013
36014 2009-08-23  Bruno Haible  <bruno@clisp.org>
36015
36016         New module 'accept4'.
36017         * lib/sys_socket.in.h (accept4): New declaration.
36018         * lib/accept4.c: New file.
36019         * m4/accept4.m4: New file.
36020         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36021         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36022         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36023         HAVE_ACCEPT4.
36024         * modules/accept4: New file.
36025         * doc/glibc-functions/accept4.texi: Mention the new module.
36026
36027 2009-08-24  Jim Meyering  <meyering@redhat.com>
36028
36029         progname: also set global program_invocation_name, when possible
36030         Before this change, a libtool-enabled program that calls glibc's
36031         error function would report the program name as
36032         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36033         * modules/progname (configure.ac): Check for a declaration of
36034         program_invocation_name.
36035         * lib/progname.c:  Include <errno.h>.
36036         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36037         Set program_invocation_name.
36038
36039 2009-08-23  Bruno Haible  <bruno@clisp.org>
36040
36041         * lib/dup3.c: Include <string.h>.
36042
36043 2009-08-23  Bruno Haible  <bruno@clisp.org>
36044
36045         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36046         * lib/pipe2.c (pipe2): Likewise.
36047         Suggested by Eric Blake.
36048
36049 2009-08-23  Bruno Haible  <bruno@clisp.org>
36050
36051         Tolerate declared but missing dup3 syscall.
36052         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36053         * lib/unistd.in.h (dup3): If the function is already present,
36054         override it.
36055         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36056         * modules/dup3 (Makefile.am): Compile dup3.c always.
36057         Reported by Paolo Bonzini.
36058
36059 2009-08-23  Bruno Haible  <bruno@clisp.org>
36060
36061         Tolerate declared but missing pipe2 syscall.
36062         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36063         available.
36064         * lib/unistd.in.h (pipe2): If the function is already present,
36065         override it.
36066         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36067         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36068         Reported by Paolo Bonzini.
36069
36070 2009-08-23  Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/pipe2.c (pipe2): Move #ifs inside function.
36073
36074 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36075
36076         quotearg: document limitations of quote_these_too
36077         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36078         those limitations are created.
36079         * lib/quotearg.h (set_char_quoting): Document that digits and
36080         letters that are special after backslash are not permitted.
36081         (quotearg_char): Cross-reference set_char_quoting documentation.
36082
36083 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36084
36085         quotearg: implement custom_quoting_style
36086         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36087         right_quote fields.
36088         (set_custom_quoting): New public function.
36089         (quotearg_buffer_restyled): Add left_quote and right_quote
36090         arguments, handle them very much like locale quoting, and update
36091         all uses.
36092         (quotearg_n_custom): New public function.
36093         (quotearg_n_custom_mem): New public function.
36094         (quotearg_custom): New public function.
36095         (quotearg_custom_mem): New public function.
36096         * lib/quotearg.h: Prototype and document new public functions.
36097         (enum quoting_style): For escape_quoting_style and
36098         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36099         ignored even though they're otherwise like c_quoting_style.
36100         Add custom_quoting_style member and document with comparison to
36101         clocale_quoting_style.
36102         * tests/test-quotearg.c (custom_quotes): New array.
36103         (custom_results): New array.
36104         (main): Extend to test custom quoting.
36105
36106 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36107
36108         quotearg: fix right quote escaping when it's in quote_these_too
36109         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36110         quote, be sure to prepend only one backslash.
36111         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36112         (main): Test it.
36113
36114 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36115
36116         quotearg-tests: test escaping of embedded locale quotes
36117         * tests/test-quotearg.c (struct result_strings): Add member for
36118         new input.
36119         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36120         (inputs): Add new input.
36121         (results_g): Add expected results.
36122         (flag_results): Likewise.
36123         (locale_results): Likewise.
36124         (compare_strings): Check those.
36125
36126 2009-08-23  Bruno Haible  <bruno@clisp.org>
36127
36128         Tests for module 'dup3'.
36129         * modules/dup3-tests: New file.
36130         * tests/test-dup3.c: New file.
36131
36132         New module 'dup3'.
36133         * lib/unistd.in.h (dup3): New declaration.
36134         * lib/dup3.c: New file.
36135         * m4/dup3.m4: New file.
36136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36137         HAVE_DUP3.
36138         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36139         * modules/dup3: New file.
36140         * doc/glibc-functions/dup3.texi: Mention the new module.
36141
36142 2009-08-23  Bruno Haible  <bruno@clisp.org>
36143
36144         Tweak the dup2 test.
36145         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36146         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36147         the test file is still empty. Fix argument order of lseek.
36148
36149 2009-08-23  Bruno Haible  <bruno@clisp.org>
36150
36151         Avoid test link errors when the modules getopt-gnu, gettext are used.
36152         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36154
36155 2009-08-23  Bruno Haible  <bruno@clisp.org>
36156
36157         Fix getdtablesize() on mingw.
36158         * lib/getdtablesize.c (getdtablesize): Implement differently.
36159         * lib/unistd.in.h (getdtablesize): Improve comment.
36160
36161 2009-08-23  Bruno Haible  <bruno@clisp.org>
36162
36163         New module 'mkostemp'.
36164         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36165         * lib/stdlib.in.h (mksotemp): New declaration.
36166         * lib/mkostemp.c: New file, from glibc with modifications.
36167         * lib/tempname.h (GT_FILE): Remove outdated comment.
36168         (gen_tempname): Add flags argument.
36169         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36170         (__GT_FILE): Map to 1.
36171         (small_open, large_open): Remove macros.
36172         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36173         * lib/mkstemp.c (mkstemp): Update.
36174         * lib/mkdtemp.c (mkdtemp): Likewise.
36175         * m4/mkostemp.m4: New file.
36176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36177         HAVE_MKOSTEMP.
36178         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36179         HAVE_MKOSTEMP.
36180         * modules/mkostemp: New file, based on modules/mkstemp.
36181         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36182         * NEWS: Mention the change.
36183
36184 2009-08-23  Bruno Haible  <bruno@clisp.org>
36185
36186         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36187         Reported by Eric Blake.
36188
36189 2009-08-23  Bruno Haible  <bruno@clisp.org>
36190
36191         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36192         Reported by Eric Blake.
36193
36194 2009-08-23  Bruno Haible  <bruno@clisp.org>
36195
36196         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36197         * modules/pipe2 (Depends-on): Likewise.
36198
36199 2009-08-23  Eric Blake  <ebb9@byu.net>
36200
36201         fcntl-h: add O_TTY_INIT support
36202         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36203         * tests/test-fcntl-h.c (o): Test it.
36204         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36205
36206         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36207         * modules/fcntl: Move <fcntl.h> header replacement...
36208         * modules/fcntl-h: ...to new name, so as not to collide with
36209         like-named function.
36210         * tests/test-fcntl.c: Rename...
36211         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36212         * modules/fcntl-tests: Rename...
36213         * modules/fcntl-h-tests: ...to this.  Update test file name.
36214         * modules/chdir-long (Depends-on): Update clients.
36215         * modules/chdir-safer (Depends-on): Likewise.
36216         * modules/fcntl-safer (Depends-on): Likewise.
36217         * modules/fts (Depends-on): Likewise.
36218         * modules/mkancesdirs (Depends-on): Likewise.
36219         * modules/mkdir-p (Depends-on): Likewise.
36220         * modules/open (Depends-on): Likewise.
36221         * modules/savewd (Depends-on): Likewise.
36222         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36223         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36224
36225 2009-08-22  Bruno Haible  <bruno@clisp.org>
36226
36227         * modules/binary-io (License): Relicense under LGPL.
36228         * modules/pipe2 (License): Likewise.
36229
36230 2009-08-22  Bruno Haible  <bruno@clisp.org>
36231
36232         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36233         return value.
36234         * lib/pipe-filter-gi.c (filter_init): Likewise.
36235         Reported by Eric Blake.
36236
36237 2009-08-22  Bruno Haible  <bruno@clisp.org>
36238
36239         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36240         * modules/pipe (Depends-on): Add pipe2.
36241
36242 2009-08-22  Bruno Haible  <bruno@clisp.org>
36243
36244         Tests for module 'pipe2'.
36245         * modules/pipe2-tests: New file.
36246         * tests/test-pipe2.c: New file.
36247
36248         New module 'pipe2'.
36249         * lib/unistd.in.h (pipe2): New declaration.
36250         * lib/pipe2.c: New file.
36251         * m4/pipe2.m4: New file.
36252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36253         HAVE_PIPE2.
36254         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36255         * modules/pipe2: New file.
36256         * doc/glibc-functions/pipe2.texi: Mention the new module.
36257
36258 2009-08-22  Bruno Haible  <bruno@clisp.org>
36259
36260         Reference some new glibc functions.
36261         * doc/glibc-functions/accept4.texi: New file.
36262         * doc/glibc-functions/dup3.texi: New file.
36263         * doc/glibc-functions/mkostemp.texi: New file.
36264         * doc/glibc-functions/pipe2.texi: New file.
36265         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36266         (Glibc sys/socket.h): Refer to accept4.
36267         (Glibc unistd.h): Refer to dup3, pipe2.
36268         Reported by Eric Blake.
36269
36270 2009-08-22  Jim Meyering  <meyering@redhat.com>
36271             Bruno Haible  <bruno@clisp.org>
36272
36273         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36274         This makes it so packages using automake-1.11's silent-rules option
36275         can print e.g., a single "GEN    configmake.h" line, rather than
36276         the 30+ statements that perform the job.  If you want to see the
36277         actual commands, you can still run "make V=1".
36278         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36279         so that make output is abbreviated when those variables are defined
36280         appropriately.
36281         * modules/argz: Likewise.
36282         * modules/arpa_inet: Likewise.
36283         * modules/byteswap: Likewise.
36284         * modules/configmake: Likewise.
36285         * modules/dirent: Likewise.
36286         * modules/errno: Likewise.
36287         * modules/fcntl: Likewise.
36288         * modules/float: Likewise.
36289         * modules/fnmatch: Likewise.
36290         * modules/getopt-posix: Likewise.
36291         * modules/glob: Likewise.
36292         * modules/iconv_open: Likewise.
36293         * modules/inttypes: Likewise.
36294         * modules/localcharset: Likewise.
36295         * modules/locale: Likewise.
36296         * modules/math: Likewise.
36297         * modules/netdb: Likewise.
36298         * modules/netinet_in: Likewise.
36299         * modules/poll: Likewise.
36300         * modules/posix_spawnp-tests: Likewise.
36301         * modules/sched: Likewise.
36302         * modules/search: Likewise.
36303         * modules/selinux-h: Likewise.
36304         * modules/signal: Likewise.
36305         * modules/spawn: Likewise.
36306         * modules/stdarg: Likewise.
36307         * modules/stdbool: Likewise.
36308         * modules/stddef: Likewise.
36309         * modules/stdint: Likewise.
36310         * modules/stdio: Likewise.
36311         * modules/stdlib: Likewise.
36312         * modules/string: Likewise.
36313         * modules/strings: Likewise.
36314         * modules/sys_file: Likewise.
36315         * modules/sys_ioctl: Likewise.
36316         * modules/sys_select: Likewise.
36317         * modules/sys_socket: Likewise.
36318         * modules/sys_stat: Likewise.
36319         * modules/sys_time: Likewise.
36320         * modules/sys_times: Likewise.
36321         * modules/sys_utsname: Likewise.
36322         * modules/sys_wait: Likewise.
36323         * modules/sysexits: Likewise.
36324         * modules/time: Likewise.
36325         * modules/unistd: Likewise.
36326         * modules/wchar: Likewise.
36327         * modules/wctype: Likewise.
36328
36329 2009-08-22  Jim Meyering  <meyering@redhat.com>
36330
36331         announce-gen: detect write failure
36332         * build-aux/announce-gen: Add Coda at end.
36333         Remove equivalent-but-more-verbose block at top.
36334
36335 2009-08-19  Akim Demaille  <demaille@gostai.com>
36336
36337         bootstrap: --help to stdout.
36338         * bootstrap (usage): Don't send --help to stderr.
36339         Use a here doc instead of a long string.
36340
36341 2009-08-21  Eric Blake  <ebb9@byu.net>
36342
36343         test-popen-safer: split from test-popen
36344         * tests/test-popen.c (main): Move...
36345         * tests/test-popen.h: ...into new file.
36346         * tests/test-popen-safer2.c: New file.
36347         * modules/popen-tests (Files): Add test-popen.h.
36348         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36349         Suggested by Bruno Haible.
36350
36351         test-fcntl-safer: split from test-open
36352         * tests/test-open.c (main): Move...
36353         * tests/test-open.h: ...into new file.
36354         * tests/test-fcntl-safer.c: New file.
36355         * modules/open-tests (Files): Add test-open.h.
36356         * modules/fcntl-safer-tests: New file.
36357         Suggested by Bruno Haible.
36358
36359         test-fopen-safer: split from test-fopen
36360         * tests/test-fopen.c (main): Move...
36361         * tests/test-fopen.h: ...into new file.
36362         * tests/test-fopen-safer.c: New file.
36363         * modules/fopen-tests (Files): Add test-fopen.h.
36364         * modules/fopen-safer-tests: New file.
36365         Suggested by Bruno Haible.
36366
36367 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36368
36369         popen-safer: test O_CLOEXEC at run-time.
36370         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36371
36372 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36373
36374         fcntl: move more flags to the header
36375         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36376         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36377         * lib/fcntl.in.h: Do both things here.
36378
36379 2009-08-21  Jim Meyering  <meyering@redhat.com>
36380
36381         consistently remove $@-t before redirecting to it
36382         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36383         * modules/alloca-opt: Likewise.
36384         * modules/byteswap: Likewise.
36385         * modules/fnmatch: Likewise.
36386         * modules/getopt-posix: Likewise.
36387         * modules/glob: Likewise.
36388         * modules/poll: Likewise.
36389         * modules/posix_spawnp-tests: Likewise.
36390         * modules/sys_socket: Likewise.
36391         * modules/sysexits: Likewise.
36392
36393 2009-08-21  Eric Blake  <ebb9@byu.net>
36394
36395         popen: simplify access to original popen
36396         * lib/popen.c (rpl_popen): No need to worry about popen being a
36397         macro.
36398         Reported by Bruno Haible.
36399
36400 2009-08-20  Eric Blake  <ebb9@byu.net>
36401
36402         build: avoid some compiler warnings
36403         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36404         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36405         type.
36406         (new_exclude_segment, excluded_file_pattern_p)
36407         (excluded_file_name_p): Reduce scope.
36408         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36409         old-style declaration.
36410
36411 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36412
36413         * tests/test-exclude1.sh: Handle Windows EOL.
36414         * tests/test-exclude2.sh: Likewise.
36415         * tests/test-exclude3.sh: Likewise.
36416         * tests/test-exclude4.sh: Likewise.
36417         * tests/test-exclude5.sh: Likewise.
36418         * tests/test-exclude6.sh: Likewise.
36419         * tests/test-exclude7.sh: Likewise.
36420
36421 2009-08-19  Akim Demaille  <demaille@gostai.com>
36422
36423         bootstrap: find sha1sum when named gsha1sum.
36424         * bootstrap (find_tool): New.
36425         ($SHA1SUM): New.
36426         Use it.
36427
36428 2009-08-20  Jim Meyering  <meyering@redhat.com>
36429
36430         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36431         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36432         expression that converts "." in a file name to "\." in the resulting
36433         regexp.  Start with a dummy statement, so that prior shell variable
36434         definitions are expanded portably.  Reported by Simon Josefsson.
36435
36436 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36437
36438         Fix polling for writeability of a screen buffer.
36439         * lib/poll.c: Distinguish input and screen buffers for the
36440         Win32 implementation.
36441         * lib/select.c: Likewise.
36442
36443 2009-08-19  Eric Blake  <ebb9@byu.net>
36444
36445         popen-safer: prevent popen from clobbering std descriptors
36446         * modules/popen-safer: New file.
36447         * lib/popen-safer.c: Likewise.
36448         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36449         * lib/stdio--.h (popen): Provide override.
36450         * lib/stdio-safer.h (popen_safer): Provide declaration.
36451         * tests/test-popen.c (includes): Partially test this.
36452         * modules/popen-safer-tests: New file, for more tests.
36453         * tests/test-popen-safer.c: Likewise.
36454         * MODULES.html.sh (file stream based Input/Output): Mention it.
36455
36456         tests: test some of the *-safer modules
36457         * modules/fopen-safer (Depends-on): Add fopen.
36458         * modules/fcntl-safer (Depends-on): Add fcntl.
36459         * modules/stdlib-safer (Depends-on): Add stdlib.
36460         (configure.ac): Set indicator.
36461         * modules/unistd-safer (configure.ac): Likewise.
36462         * modules/tmpfile-safer (configure.ac): Likewise.
36463         (Depends-on): Add tmpfile.
36464         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36465         active.
36466         * tests/test-fopen.c (includes): Test safer versions when they are
36467         in use.
36468         * tests/test-open.c (includes): Likewise.
36469
36470         popen: fix cygwin 1.5 bug when stdin closed
36471         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36472         * modules/popen: New file.
36473         * modules/popen-tests: Likewise.
36474         * tests/test-popen.c: Likewise.
36475         * m4/popen.m4: Likewise.
36476         * lib/popen.c: Likewise.
36477         * lib/stdio.in.h (popen): New declaration.
36478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36479         * modules/stdio (Makefile.am): Likewise.
36480         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36481
36482 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36483
36484         maint.mk: give full control over update-copyright exclusions
36485         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36486         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36487         (update-copyright): Don't force inclusion of top-level
36488         ChangeLog.  Don't force exclusion of all COPYING files, but make
36489         them the default exclusion instead.
36490
36491 2009-08-16  Bruno Haible  <bruno@clisp.org>
36492
36493         Fix test failures on Solaris 10.
36494         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36495         tests when Solaris iconv() is used.
36496         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36497         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36498         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36499         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36500         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36501
36502 2009-08-16  Bruno Haible  <bruno@clisp.org>
36503
36504         Fix test failures on Solaris 10.
36505         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36506         'tr' program and pass it as first argument.
36507         * tests/test-pipe-filter-gi1.sh: Likewise.
36508         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36509         program as first argument.
36510         * tests/test-pipe-filter-gi1.c (main): Likewise.
36511
36512 2009-08-16  Eric Blake  <ebb9@byu.net>
36513
36514         fpurge: fix previous commits
36515         * modules/fpurge (Makefile.am): Make replacement conditional,
36516         partially reverting 2007-04-29 change; missed in previous
36517         attempt.
36518         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36519         is missing.
36520
36521 2009-08-16  Bruno Haible  <bruno@clisp.org>
36522
36523         Clarify fpurge's effect on the file position.
36524         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36525         * tests/test-fpurge.c (main): Make a second pass for checking the file
36526         position.
36527
36528 2009-08-16  Bruno Haible  <bruno@clisp.org>
36529
36530         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36531         declaration of fpurge is missing.
36532         * tests/test-fpurge.c (main): Check that the file has not more contents
36533         than expected. Close the file before removing it.
36534
36535 2009-08-15  Eric Blake  <ebb9@byu.net>
36536
36537         fpurge: don't wrap working cygwin implementation
36538         * lib/fpurge.c (fpurge): Fix comment typo.
36539         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36540         1.7 to avoid replacement.
36541         * tests/test-fpurge.c (main): Enhance test.
36542
36543 2009-08-15  Eric Blake  <ebb9@byu.net>
36544         and Jim Meyering  <meyering@redhat.com>
36545
36546         test-update-copyright: skip if perl is insufficient
36547         * tests/test-update-copyright.sh: Failure to run maintainer tool
36548         should not cause testsuite failure on cygwin 1.5.
36549
36550 2009-08-14  Eric Blake  <ebb9@byu.net>
36551
36552         doc: mention more functions added in cygwin 1.7.0
36553         * doc/posix-headers/limits.texi (limits.h): Update for recent
36554         cygwin additions.
36555         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36556         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36557         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36558         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36559         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36560
36561 2009-08-14  Eric Blake  <ebb9@byu.net>
36562
36563         maint.mk: simplify update-copyright rule
36564         * top/maint.mk (update-copyright-local): Delete, and document how
36565         to do it in cfg.mk instead.
36566         (update-copyright-exclude-regexp): Delete, and document how to do
36567         it in .x-update-copyright instead.
36568         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36569         exclude ChangeLog.
36570
36571 2009-08-14  Bruno Haible  <bruno@clisp.org>
36572
36573         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36574
36575 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36576
36577         maint.mk: support update-copyright-env
36578         * top/maint.mk (update-copyright-env): Define place-holder.
36579         (update-copyright): Expand $(update-copyright-env) before
36580         invoking update-copyright.
36581
36582 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36583
36584         update-copyright: implement forced reformatting
36585         * build-aux/update-copyright: Implement and document
36586         UPDATE_COPYRIGHT_FORCE.
36587         * tests/test-update-copyright.sh: Test it.
36588
36589 2009-08-14  Eric Blake  <ebb9@byu.net>
36590         and Bruno Haible  <bruno@clisp.org>
36591
36592         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36593         * tests/test-locale.c: Revert previous patch related to NULL.
36594         * tests/test-stdio.c: Likewise.
36595         * tests/test-stdlib.c: Likewise.
36596         * tests/test-string.c: Likewise.
36597         * tests/test-unistd.c: Likewise.
36598         * modules/time-tests (Depends-on): Add verify.
36599         * modules/wchar-tests (Depends-on): Likewise.
36600         * tests/test-time.c: Test for NULL compliance.
36601         * tests/test-wchar.c: Likewise.
36602         * modules/locale (Depends-on): Add stddef.
36603         * modules/stdio (Depends-on): Likewise.
36604         * modules/stdlib (Depends-on): Likewise.
36605         * modules/string (Depends-on): Likewise.
36606         * modules/time (Depends-on): Likewise.
36607         * modules/unistd (Depends-on): Likewise.
36608         * modules/wchar (Depends-on): Likewise.
36609         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36610         * lib/stdlib.in.h (includes): Likewise.
36611         * lib/string.in.h (includes): Likewise.
36612         * lib/time.in.h (includes): Likewise.
36613         * lib/unistd.in.h (includes): Likewise.
36614         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36615         replaced.
36616         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36617         * m4/stddef_h.m4: New file.
36618         * modules/stddef: Likewise.
36619         * lib/stddef.in.h: Likewise.
36620         * modules/stddef-tests: Likewise.
36621         * tests/test-stddef.c: Likewise.
36622         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36623         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36624         * doc/posix-headers/locale.texi (locale.h): Likewise.
36625         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36626         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36627         * doc/posix-headers/string.texi (string.h): Likewise.
36628         * doc/posix-headers/time.texi (time.h): Likewise.
36629         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36630         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36631
36632 2009-08-14  Eric Blake  <ebb9@byu.net>
36633
36634         doc: improve git diff of texinfo files
36635         * .gitattributes: Add rule for *.texi files, with hint on how to
36636         use it.
36637         Copied from m4, and based on a report by Bruno Haible.
36638
36639 2009-08-14  Bruno Haible  <bruno@clisp.org>
36640
36641         Disable multithread support by default on Cygwin 1.5.x for real.
36642         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36643
36644 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36645
36646         update-copyright: much ado about intervals
36647         * build-aux/update-copyright: Implement and document
36648         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36649         of copyright year intervals.
36650         Also, document UPDATE_COPYRIGHT_YEAR.
36651         * tests/test-update-copyright.sh: Test it.
36652
36653         update-copyright: convert 2-digit to 4-digit years
36654         * build-aux/update-copyright: Implement and document.
36655         * tests/test-update-copyright.sh: Update.
36656
36657 2009-08-14  Jim Meyering  <meyering@redhat.com>
36658
36659         test-exclude: avoid coreutils "make check" failure
36660         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36661         just as in test-argmatch.c.
36662
36663 2009-08-13  Eric Blake  <ebb9@byu.net>
36664
36665         test-dup2: fix bad assumption
36666         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36667         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36668
36669         test-version-etc: fix CRLF portability issue
36670         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36671         recognize \r.
36672         * tests/test-argp-version-etc-1.sh: Likewise.
36673
36674         getopt: update client modules
36675         * modules/argp (Depends-on): Use getopt-gnu.
36676         * modules/git-merge-changelog (Depends-on): Likewise.
36677         * modules/long-options (Depends-on): Likewise.
36678         * modules/xstrtol (Depends-on): Likewise.
36679
36680 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36681
36682         * tests/test-version-etc.sh: Don't fail on different
36683         project/version.  Don't fail on CRLF differences.  Rewrite to use
36684         multiple -e instead of multiple sed forks, suggested by Eric Blake
36685         <ebb9@byu.net>.
36686         * tests/test-argp-version-etc-1.sh: Likewise.
36687
36688 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36689
36690         * tests/test-version-etc.sh: Don't fail on different
36691         project/version.
36692
36693 2009-08-12  Bruno Haible  <bruno@clisp.org>
36694
36695         Tests for modules 'getopt-posix', 'getopt-gnu'.
36696         * modules/getopt-posix-tests: New file.
36697         * tests/test-getopt.c: New file.
36698         * tests/test-getopt.h: New file.
36699         * tests/test-getopt_long.h: New file.
36700
36701         New modules 'getopt-posix', 'getopt-gnu'.
36702         * modules/getopt-gnu: New file, renamed from modules/getopt.
36703         * modules/getopt-posix: New file.
36704         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36705         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36706         (gl_GETOPT): Remove macro.
36707         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36708         Disable the test against BSD systems that declare optreset. Test
36709         against mingw bug. Test against lack of support of optional arguments
36710         on many platforms.
36711         * doc/glibc-headers/getopt.texi: Update module name and list of
36712         relevant platforms.
36713         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36714         'getopt-gnu' and more portability problems.
36715         * NEWS: Mention the changes.
36716
36717 2009-08-12  Bruno Haible  <bruno@clisp.org>
36718
36719         Ensure that optarg etc. get declared by <unistd.h>.
36720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36721         AC_USE_SYSTEM_EXTENSIONS.
36722         * modules/getopt (Depends-on): Add 'extensions'.
36723
36724 2009-08-12  Bruno Haible  <bruno@clisp.org>
36725
36726         Avoid test link errors.
36727         * modules/pipe-filter-ii-tests (Makefile.am): Define
36728         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36729         * modules/pipe-filter-gi-tests (Makefile.am): Define
36730         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36732
36733 2009-08-12  Bruno Haible  <bruno@clisp.org>
36734
36735         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36736         gl_GETOPT_SUBSTITUTE before.
36737         (gl_GETOPT): Use it.
36738         * m4/argp.m4 (gl_ARGP): Update.
36739         Reported by Sergey Poznyakoff.
36740
36741         * m4/getopt.m4: Reorder macros.
36742         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36743         (gl_GETOPT_SUBSTITUTE): Remove macro.
36744
36745 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36746
36747         Minor improvement in gitlog-to-changelog
36748
36749         * build-aux/gitlog-to-changelog: New option `--format' makes
36750         output format string configurable.
36751
36752 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36753
36754         Optimize exclude: use hash tables for non-wildcard patterns.
36755
36756         * lib/exclude.c: Include hash.h and mbuiter.h
36757         (struct exclude_pattern, exclude_segment): New data types.
36758         (struct exclude): Rewrite.
36759         (fnmatch_pattern_has_wildcards): New function.
36760         (new_exclude_segment, free_exclude_segment): New functions.
36761         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36762         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36763         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36764         * modules/exclude: Depend on hash and mbuiter.
36765
36766         * modules/exclude-tests: New file.
36767         * tests/test-exclude.c: New file.
36768         * tests/test-exclude1.sh: New file.
36769         * tests/test-exclude2.sh: New file.
36770         * tests/test-exclude3.sh: New file.
36771         * tests/test-exclude4.sh: New file.
36772         * tests/test-exclude5.sh: New file.
36773         * tests/test-exclude6.sh: New file.
36774         * tests/test-exclude7.sh: New file.
36775
36776 2009-08-12  Bruno Haible  <bruno@clisp.org>
36777
36778         Ensure that getopt() gets declared by <unistd.h>.
36779         * lib/unistd.in.h: Conditionally include getopt.h.
36780         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36781         Set GNULIB_UNISTD_H_GETOPT.
36782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36783         GNULIB_UNISTD_H_GETOPT.
36784         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36785
36786 2009-08-12  Bruno Haible  <bruno@clisp.org>
36787
36788         Clarify logic.
36789         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36790         gl_replace_getopt instead of GETOPT_H.
36791
36792 2009-08-12  Bruno Haible  <bruno@clisp.org>
36793
36794         * m4/getopt.m4: Add comments.
36795
36796 2009-08-12  Bruno Haible  <bruno@clisp.org>
36797
36798         Disable multithread support by default on Cygwin 1.5.x.
36799         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36800         set gl_use_threads=no if not specified otherwise.
36801
36802 2009-08-11  Bruno Haible  <bruno@clisp.org>
36803
36804         Avoid compilation error on NetBSD 5.0.
36805         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36806         * tests/test-stdio.c: Likewise.
36807         * tests/test-stdlib.c: Likewise.
36808         * tests/test-string.c: Likewise.
36809         * tests/test-unistd.c: Likewise.
36810         Reported by Greg Troxel <gdt@ir.bbn.com>
36811         at <https://savannah.gnu.org/support/?106973>.
36812
36813 2009-08-11  Bruno Haible  <bruno@clisp.org>
36814
36815         * modules/dup2-tests (Depends-on): Remove close.
36816
36817         Undo 2009-07-19 commit.
36818         * modules/acl-tests (Depends-on): Remove close.
36819         * modules/binary-io-tests (Depends-on): Likewise.
36820         * modules/closein-tests (Depends-on): Likewise.
36821         * modules/flock-tests (Depends-on): Likewise.
36822         * modules/fsync-tests (Depends-on): Likewise.
36823         * modules/lseek-tests (Depends-on): Likewise.
36824         * modules/pipe-tests (Depends-on): Likewise.
36825         * modules/posix_spawn-tests (Depends-on): Likewise.
36826         * modules/posix_spawnp-tests (Depends-on): Likewise.
36827         * modules/stat-time-tests (Depends-on): Likewise.
36828         * modules/yesno-tests (Depends-on): Likewise.
36829
36830 2009-08-10  Bruno Haible  <bruno@clisp.org>
36831
36832         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36833
36834 2009-08-10  Bruno Haible  <bruno@clisp.org>
36835
36836         Fix a gcc warning.
36837         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36838
36839 2009-08-10  Bruno Haible  <bruno@clisp.org>
36840
36841         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36842         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36843         not only the first time.
36844         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36845         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36846         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36847         is 1, not only the the first time.
36848
36849 2009-08-10  Bruno Haible  <bruno@clisp.org>
36850
36851         Make it possible to use module 'gethostname' without module 'close'.
36852         * lib/unistd.in.h (close): Evoke a link error only if
36853         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36855         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36856         * modules/unistd (Makefile.am): Substitute
36857         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36858         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36859         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36860         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36861         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36862         * modules/sys_ioctl (Makefile.am): Substitute
36863         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36864         * modules/socket (configure.ac): On native Windows, set
36865         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36866         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36867         Reported by Sam Steingold <sds@gnu.org>.
36868
36869 2009-08-10  Bruno Haible  <bruno@clisp.org>
36870
36871         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36872         * modules/ioctl (configure.ac): Likewise.
36873
36874 2009-08-10  Bruno Haible  <bruno@clisp.org>
36875
36876         Avoid collision between gnulib wrapper and libintl wrapper.
36877         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36878         already defined in intl/printf.c.
36879         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36880         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36881
36882 2009-08-09  Bruno Haible  <bruno@clisp.org>
36883
36884         Make <sys/select.h> really self-contained, also on Solaris 10.
36885         * lib/sys_select.in.h: Include <string.h>.
36886         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36887         Solaris 10 problem.
36888         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36889         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36890         Reported by Jim Meyering.
36891
36892 2009-08-09  Bruno Haible  <bruno@clisp.org>
36893
36894         Avoid warnings from 'aclocal' that are due to a use of macro name
36895         AM_XGETTEXT_OPTION that is not defined in automake.
36896         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36897         automake.
36898         * modules/error (configure.ac): Likewise.
36899         * modules/propername (configure.ac): Likewise.
36900         * modules/vasprintf (configure.ac): Likewise.
36901         * modules/verror (configure.ac): Likewise.
36902         * modules/xprintf (configure.ac): Likewise.
36903         * modules/xvasprintf (configure.ac): Likewise.
36904
36905 2009-08-08  Bruno Haible  <bruno@clisp.org>
36906
36907         Avoid compilation error in C++ mode.
36908         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36909         Reported by Sam Steingold <sds@gnu.org>.
36910
36911 2009-08-08  Bruno Haible  <bruno@clisp.org>
36912
36913         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36914         for the various Unix platforms.
36915         * doc/posix-headers/limits.texi: Update platforms list regarding
36916         HOST_NAME_MAX.
36917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36918
36919 2009-08-07  Jim Meyering  <meyering@redhat.com>
36920
36921         selinux-at: fix typo in a comment
36922         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36923         Spotted by Paolo Bonzini.
36924
36925         selinux-at: remove redundant m4 code, add documentation
36926         * modules/selinux-at (configure.ac): Remove redundant code.
36927         LIB_SELINUX is already set via the dependent module, selinux-h.
36928         (Include): Add quotes around selinux-at.h.
36929         * lib/selinux-at.h: Add documentation.
36930         Reported by Bruno Haible in
36931         http://marc.info/?l=gnulib-bug&m=124958988300749
36932
36933 2009-08-07  Bruno Haible  <bruno@clisp.org>
36934
36935         Avoid link error on MacOS X 10.3 and 10.4.
36936         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36937         on non-ELF systems.
36938         * lib/argp-pv.c (argp_program_version): Likewise.
36939         Reported by Simon Josefsson.
36940
36941 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36942
36943         * tests/test-version-etc.sh: Use $EXEEXT.
36944
36945 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36946
36947         update-copyright: update documentation to point to maint.mk
36948         * build-aux/update-copyright: Here.
36949
36950 2009-08-06  Jim Meyering  <meyering@redhat.com>
36951
36952         maint.mk: support update-copyright-local
36953         * top/maint.mk (update-copyright-local): Define place-holder.
36954         (update-copyright): Depend on $(update-copyright-local).
36955
36956 2009-08-06  Jim Meyering  <meyering@redhat.com>
36957
36958         selinux-at: new module
36959         Initially written for coreutils, this module will soon be
36960         used by findutils, too.
36961         * MODULES.html.sh [Misc]: Add selinux-at.
36962         * lib/selinux-at.h: New file, from coreutils.
36963         * lib/selinux-at.c: Likewise.
36964         * modules/selinux-at: Likewise.
36965         (License): Change from LGPL to GPL, since it depends
36966         on the GPL'd openat module.
36967
36968         doc: update README
36969         * README: Remove references to cogito.
36970         Remove cvs-repo-updating instructions from 2007.
36971         Don't imply that CVS is better if you have limited disk space.
36972
36973 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36974
36975         update-copyright: support C-style comments
36976         * build-aux/update-copyright: Implement and document.
36977         * tests/test-update-copyright.sh: Test.
36978
36979 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36980
36981         update-copyright: support omitted "(C)"
36982         * build-aux/update-copyright: Implement and document.  Also,
36983         allow variable whitespace before "(C)".
36984         * tests/test-update-copyright.sh: Test.
36985
36986 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36987
36988         update-copyright: don't trip on non-FSF copyright statements
36989         * build-aux/update-copyright: Fix so that the first correctly
36990         formatted FSF copyright statement is recognized no matter what
36991         appears before it.  Update documentation.
36992         * tests/test-update-copyright.sh: Test that.
36993
36994 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36995
36996         update-copyright: clean up code a little
36997         * build-aux/update-copyright: Append "_re" to the name of any
36998         variable holding a regular expression.
36999         Replace "old" and "new" with "stmt" in variable names.
37000         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37001         handled correctly.
37002         Format code more consistently.
37003
37004 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37005
37006         update-copyright-tests: improve portability
37007         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37008         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37009
37010 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37011
37012         update-copyright: support @copyright{} and &copy;
37013         * build-aux/update-copyright: Implement and document.
37014         * tests/test-update-copyright.sh: Test.
37015
37016 2009-08-04  Jim Meyering  <meyering@redhat.com>
37017
37018         update-copyright-tests: correctly test EOL=\r\n handling
37019         * tests/test-update-copyright.sh: Put \r at the end of some lines
37020         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37021
37022         maint.mk: make update-copyright exclusion list more configurable
37023         * top/maint.mk (update-copyright): Default to excluding COPYING,
37024         but allow an override, in case someone does want to update that file.
37025
37026         maint.mk: don't update copyright date in COPYING
37027         * top/maint.mk (update-copyright): Exclude COPYING.
37028
37029         maint.mk: add a copyright-updating rule
37030         * top/maint.mk (update-copyright): New rule.
37031         Derived from coreutils/Makefile.am.
37032
37033         update-copyright: rename some variables
37034         * build-aux/update-copyright: Rename a few variables for clarity.
37035         Tweak syntax.  List Joel E. Denny as coauthor.
37036
37037 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37038
37039         update-copyright: fix bug for 2-digit last year and add tests
37040         * build-aux/update-copyright: Fix bug.
37041         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37042         specified.
37043         * modules/update-copyright-tests: New
37044         * tests/test-update-copyright.sh: New.
37045
37046 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37047
37048         update-copyright: handle leading tabs in line prefix
37049         * build-aux/update-copyright: Count leading tabs as 8 spaces
37050         when computing margin.  This helps with the formatting of
37051         ChangeLogs, for example.
37052         Fix documentation a little.
37053
37054 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37055
37056         update-copyright: support EOL=\r\n
37057         * build-aux/update-copyright: Implement that.
37058
37059 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37060
37061         update-copyright: automatically format copyright statements
37062         * build-aux/update-copyright: Implement that.
37063         Also, be a little more predictable and safer by always failing
37064         when the full copyright format is not perfectly recognized as an
37065         unbroken whole.  Discussed at
37066         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37067         Rewrite documentation.
37068
37069 2009-08-03  Bruno Haible  <bruno@clisp.org>
37070
37071         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37072
37073 2009-08-02  Bruno Haible  <bruno@clisp.org>
37074
37075         Tests for module 'uname'.
37076         * modules/uname-tests: New file.
37077         * tests/test-uname.c: New file.
37078
37079         New module 'uname'.
37080         * lib/uname.c: New file.
37081         * m4/uname.m4: New file.
37082         * modules/uname: New file.
37083         * doc/posix-functions/uname.texi: Mention the new module.
37084
37085 2009-08-02  Bruno Haible  <bruno@clisp.org>
37086
37087         Tests for module 'sys_utsname'.
37088         * modules/sys_utsname-tests: New file.
37089         * tests/test-sys_utsname.c: New file.
37090
37091         New module 'sys_utsname'.
37092         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37093         * m4/sys_utsname_h.m4: New file.
37094         * modules/sys_utsname: New file.
37095         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37096
37097 2009-08-02  Bruno Haible  <bruno@clisp.org>
37098
37099         Implicitly initialize the sockets library.
37100         * lib/gethostname.c: Include sockets.h.
37101         (rpl_gethostname): Invoke gl_sockets_startup.
37102         * lib/socket.c: Include sockets.h.
37103         (rpl_socket): Invoke gl_sockets_startup.
37104         * modules/gethostname (Depends-on): Add sockets.
37105         * modules/socket (Depends-on): Likewise.
37106         * tests/test-poll.c: Don't include sockets.h.
37107         (main): Don't invoke gl_sockets_startup.
37108         * tests/test-select.c: Don't include sockets.h.
37109         (main): Don't invoke gl_sockets_startup.
37110
37111 2009-08-02  Bruno Haible  <bruno@clisp.org>
37112
37113         Allow multiple calls to gl_sockets_startup.
37114         * lib/sockets.c (initialized_sockets_version): New variable.
37115         (gl_sockets_startup): Do nothing if already called for this or a higher
37116         version.
37117         (gl_sockets_cleanup): Reset initialized_sockets_version.
37118
37119 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37120
37121         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37122         different project/version.
37123
37124 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37125             Bruno Haible  <bruno@clisp.org>
37126
37127         Tests for module 'pipe-filter-gi'.
37128         * modules/pipe-filter-gi-tests: New file.
37129         * tests/test-pipe-filter-gi1.sh: New file.
37130         * tests/test-pipe-filter-gi1.c: New file.
37131         * tests/test-pipe-filter-gi2.sh: New file.
37132         * tests/test-pipe-filter-gi2-main.c: New file.
37133         * tests/test-pipe-filter-gi2-child.c: New file.
37134
37135         New module 'pipe-filter-gi'.
37136         * lib/pipe-filter-gi.c: New file.
37137         * modules/pipe-filter-gi: New file.
37138
37139 2009-08-02  Bruno Haible  <bruno@clisp.org>
37140             Paolo Bonzini  <bonzini@gnu.org>
37141
37142         Tests for module 'pipe-filter-ii'.
37143         * modules/pipe-filter-ii-tests: New file.
37144         * tests/test-pipe-filter-ii1.sh: New file.
37145         * tests/test-pipe-filter-ii1.c: New file.
37146         * tests/test-pipe-filter-ii2.sh: New file.
37147         * tests/test-pipe-filter-ii2-main.c: New file.
37148         * tests/test-pipe-filter-ii2-child.c: New file.
37149
37150         New module 'pipe-filter-ii'.
37151         * lib/pipe-filter.h: New file.
37152         * lib/pipe-filter-ii.c: New file.
37153         * lib/pipe-filter-aux.h: New file.
37154         * modules/pipe-filter-ii: New file.
37155
37156 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37157
37158         * lib/gc-libgcrypt.c: Change copyright to FSF.
37159         * lib/gc-gnulib.c: Likewise.
37160
37161 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37162
37163         * lib/gethostname.c: Include limits.h.
37164
37165 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37166             Bruno Haible  <bruno@clisp.org>
37167
37168         Ensure HOST_NAME_MAX as part of the gethostname module.
37169         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37170         define also HOST_NAME_MAX.
37171         * tests/test-gethostname.c: Include <limits.h>.
37172         (main): Check also HOST_NAME_MAX.
37173         * doc/posix-headers/limits.texi: Document the mingw problem.
37174
37175 2009-08-02  Bruno Haible  <bruno@clisp.org>
37176
37177         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37178         Add comments.
37179
37180 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37181
37182         * lib/gethostname.c: Add Windows wrapper.
37183         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37184         * modules/gethostname: Depend on sys_socket & errno, for also
37185         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37186         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37187
37188 2009-07-31  Jim Meyering  <meyering@redhat.com>
37189
37190         getloadavg: fix symbol name in comment
37191         * lib/getloadavg.c: Correct a typo I introduced when adding
37192         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37193         Matt Kraai spotted the problem.
37194
37195 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37196
37197         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37198         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37199         code also if ! defined N_NAME_POINTER.
37200         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37201         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37202         but the n_name member is a 12-byte array.
37203
37204 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37205
37206         update-copyright: generalize comment handling
37207         * build-aux/update-copyright: Handle copyright statements
37208         within more comment styles.
37209         Document usage.
37210         Report any file with an external copyright holder or parse failure.
37211
37212 2009-07-29  Jim Meyering  <meyering@redhat.com>
37213
37214         mktime: correct setting of REPLACE_MKTIME
37215         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37216
37217         update-copyright: new module
37218         * modules/update-copyright: New file.
37219         * build-aux/update-copyright: New file.
37220         * MODULES.html.sh (maint+release support): Add update-copyright.
37221
37222 2009-07-27  Bruno Haible  <bruno@clisp.org>
37223
37224         Fix compilation error when <ctime> is used and mktime is replaced.
37225         * lib/time.in.h (mktime): New declaration.
37226         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37227         REPLACE_MKTIME instead of defining mktime in config.h.
37228         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37229         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37230         Reported by Ross McFarland <rwmcfa1@neces.com>.
37231
37232 2009-07-27  Bruno Haible  <bruno@clisp.org>
37233
37234         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37235         Reported by Matt Kraai <mkraai@beckman.com>.
37236
37237 2009-07-25  Jim Meyering  <meyering@redhat.com>
37238
37239         maint.mk: avoid warnings about missing files
37240         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37241         diagnostic when .prev-version does not exist.
37242         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37243         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37244         nonexistent cfg.mk.
37245         Suggestions from Simon Josefsson.
37246
37247 2009-07-25  Bruno Haible  <bruno@clisp.org>
37248
37249         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37250         defined as macros. Needed on QNX 6.4.1.
37251         Reported by Matt Kraai <mkraai@beckman.com>.
37252
37253 2009-07-23  Jim Meyering  <meyering@redhat.com>
37254
37255         maint.mk: invoke "make dist" with a working value of XZ_OPT
37256         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37257
37258 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37259
37260         Make fseeko.c compile on QNX.
37261         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37262
37263 2009-07-22  Peter Simons  <simons@cryp.to>
37264
37265         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37266         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37267         * lib/md4.h: Likewise.
37268         * lib/md5.h: Likewise.
37269         * lib/sha1.h: Likewise.
37270         * lib/sha256.h: Likewise.
37271         * lib/sha512.h: Likewise.
37272
37273         tests-sha1: don't assign literal string to 'char *' variable
37274         * tests/test-sha1.c (main): Declare locals with "const" to match
37275         attributes of the right hand side.
37276
37277 2009-07-21  Eric Blake  <ebb9@byu.net>
37278
37279         dup2: fix more mingw problems
37280         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37281         fd to itself.
37282         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37283         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37284         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37285         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37286         care of mingw bugs.
37287
37288 2009-07-21  Jim Meyering  <meyering@redhat.com>
37289
37290         vc-list-files: avoid failure when /bin/sh is dash
37291         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37292         On some Debian based systems, /bin/sh is a symlink to dash, and running
37293         this command would omit the "/" following each 'tests' prefix:
37294           dash -x build-aux/vc-list-files -C . tests
37295         That is because bash and dash work differently:
37296           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37297           bash ok
37298           dash odd
37299
37300 2009-07-21  Eric Blake  <ebb9@byu.net>
37301
37302         dup2-tests: test previous patch
37303         * modules/dup2-tests: New file.
37304         * tests/test-dup2.c: Likewise.
37305         * tests/test-open.c (main): Avoid unspecified behavior.
37306         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37307         test.
37308
37309         dup2: work around mingw and cygwin 1.5 bug
37310         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37312         * modules/unistd (Makefile.am): Substitute it.
37313         * lib/unistd.in.h (dup2): Declare the replacement.
37314         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37315         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37316         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37317         * modules/execute (Depends-on): Add dup2.
37318         * modules/fseterr (Depends-on): Likewise.
37319         * modules/pipe (Depends-on): Likewise.
37320         * modules/posix_spawn-internal (Depends-on): Likewise.
37321
37322 2009-07-21  Bruno Haible  <bruno@clisp.org>
37323
37324         * modules/.gitattributes: New file.
37325
37326 2009-07-20  Bruno Haible  <bruno@clisp.org>
37327
37328         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37329         (main): Use it.
37330
37331 2009-07-20  Eric Blake  <ebb9@byu.net>
37332
37333         test-pipe: make a bit more robust.
37334         * tests/test-pipe.c (myerr): Allow error messages regardless of
37335         what we do to stderr.
37336         (test_pipe): Rearrange to avoid deadlock.
37337         (child_main): Try a larger read, to ensure we avoided deadlock.
37338         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37339         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37340         if misused.
37341
37342 2009-07-19  Jim Meyering  <meyering@redhat.com>
37343
37344         fts: avoid false-positive cycle-detection
37345         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37346         for each new command line argument.
37347
37348 2009-07-19  Bruno Haible  <bruno@clisp.org>
37349
37350         Fix build error on mingw with the modules sys_select and unistd.
37351         * modules/acl-tests (Depends-on): Add close.
37352         * modules/binary-io-tests (Depends-on): Likewise.
37353         * modules/closein-tests (Depends-on): Likewise.
37354         * modules/flock-tests (Depends-on): Likewise.
37355         * modules/fsync-tests (Depends-on): Likewise.
37356         * modules/lseek-tests (Depends-on): Likewise.
37357         * modules/pipe-tests (Depends-on): Likewise.
37358         * modules/posix_spawn-tests (Depends-on): Likewise.
37359         * modules/posix_spawnp-tests (Depends-on): Likewise.
37360         * modules/stat-time-tests (Depends-on): Likewise.
37361         * modules/yesno-tests (Depends-on): Likewise.
37362
37363 2009-07-19  Bruno Haible  <bruno@clisp.org>
37364
37365         Unify conditionals.
37366         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37367         macros, not at the compiler macros.
37368         * lib/pipe.c: Likewise.
37369         * lib/execute.c: Likewise.
37370         * lib/spawni.c: Likewise.
37371
37372 2009-07-19  Bruno Haible  <bruno@clisp.org>
37373
37374         Fix handling of closed stdin/stdout/stderr on mingw.
37375         * lib/w32spawn.h: Include unistd.h.
37376         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37377         file descriptor with O_NOINHERIT flag.
37378         (fd_safer_noinherit): New function, based on fd-safer.c.
37379         (dup_safer_noinherit): New function, based on dup-safer.c.
37380         (undup_safer_noinherit): New function.
37381         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37382         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37383         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37384         instead of fd_safer.
37385         * tests/test-pipe.c: Include <windows.h>.
37386         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37387         result.
37388
37389         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37390         from main.
37391         (test_pipe): Pass an extra argument for disambiguation.
37392         (main): Invoke parent_main or child_main.
37393
37394         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37395         consistently.
37396
37397 2009-07-18  Eric Blake  <ebb9@byu.net>
37398
37399         test-pipe: fix mingw build
37400         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37401
37402 2009-07-18  Bruno Haible  <bruno@clisp.org>
37403
37404         * modules/pipe-tests (Makefile.am): Fix typo.
37405
37406 2009-07-18  Eric Blake  <ebb9@byu.net>
37407
37408         error: fix mingw build
37409         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37410         Reported by Bruno Haible.
37411
37412         error: avoid undefined use of stdout
37413         * lib/error.c (error, error_at_line): Check that fd 1 is open
37414         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37415         is handling faults and the close_stdout module wants to report the
37416         detection of closed stdout as an error.
37417
37418 2009-07-17  Eric Blake  <ebb9@byu.net>
37419
37420         pipe: be robust in face of closed fds
37421         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37422         should cause child to misbehave.
37423         * modules/pipe-tests: New module.
37424         * tests/test-pipe.c: New file.
37425         * tests/test-pipe.sh: New file.
37426         Reported by Akim Demaille.
37427
37428 2009-07-14  Bruno Haible  <bruno@clisp.org>
37429
37430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37431         Reported by anonymous kc.
37432
37433 2009-07-07  Jim Meyering  <meyering@redhat.com>
37434
37435         maint.mk: don't look for translatable strings in *.m4 or *.mk
37436         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37437         when searching for translatable strings.
37438
37439 2009-07-05  Jim Meyering  <meyering@redhat.com>
37440
37441         remove superfluous parentheses in STREQ definition
37442         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37443         * lib/getugroups.c (STREQ): Likewise.
37444         * lib/fnmatch.c (STREQ): Likewise.
37445         Spotted by Bruno Haible.
37446
37447 2009-07-04  Jim Meyering  <meyering@redhat.com>
37448
37449         argv-iter: new module
37450         * MODULES.html.sh: Add argv-iter.
37451         * lib/argv-iter.c, lib/argv-iter.h: New files.
37452         * modules/argv-iter: New file.
37453         * modules/argv-iter-tests: New file.
37454         * tests/test-argv-iter.c: Test it.
37455
37456 2009-07-04  Bruno Haible  <bruno@clisp.org>
37457
37458         Fix assertion.
37459         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37460         contains more exact copies of a given entry than file2, leave the extra
37461         copies unpaired rather than aborting.
37462         Reported by Eric Blake.
37463
37464 2009-07-02  Bruno Haible  <bruno@clisp.org>
37465
37466         Speedup git-merge-changelog for git cherry-pick.
37467         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37468         (entries_mapping_get): New function, extracted from compute_mapping.
37469         (entries_mapping_reverse_get): New function.
37470         (compute_mapping): Add a 'full' argument. Return the result in a
37471         'struct entries_mapping'.
37472         (main): Update. Access the mappings through entries_mapping_get.
37473         Reported by Eric Blake.
37474
37475 2009-07-02  Bruno Haible  <bruno@clisp.org>
37476
37477         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37478         best_i.
37479
37480 2009-07-02  Bruno Haible  <bruno@clisp.org>
37481
37482         Speed up approximate search for matching ChangeLog entries.
37483         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37484         argument. Call fstrcmp_bounded instead of fstrcmp.
37485         (compute_mapping, try_split_merged_entry, main): Update callers.
37486
37487 2009-07-02  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37490
37491 2009-06-30  Bruno Haible  <bruno@clisp.org>
37492
37493         Reduce the number of uc_is_cased calls.
37494         * lib/unicase.h (casing_suffix_context_t): Add
37495         'first_char_except_ignorable' field.
37496         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37497         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37498         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37499         Update initializer.
37500         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37501         case-ignorable characters.
37502         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37503         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37504         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37505         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37506         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37507
37508 2009-06-30  Bruno Haible  <bruno@clisp.org>
37509
37510         Tests for module 'unicase/ignorable'.
37511         * modules/unicase/ignorable-tests: New file.
37512         * tests/unicase/test-ignorable.c: New file, generated by
37513         gen-uni-tables.
37514
37515         Tests for module 'unicase/cased'.
37516         * modules/unicase/cased-tests: New file.
37517         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37518         * tests/unicase/test-predicate-part1.h: New file, derived from
37519         tests/unictype/test-predicate-part1.h.
37520         * tests/unicase/test-predicate-part2.h: New file, same as
37521         tests/unictype/test-predicate-part2.h.
37522
37523         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37524         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37525         (output_casing_properties): New function.
37526         (main): Call it.
37527         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37528         * lib/unicase/cased.c: Include unictype/bitmap.h.
37529         (uc_is_cased): Define through a bitmap lookup.
37530         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37531         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37532         (uc_is_case_ignorable): Define through a bitmap lookup.
37533         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37534         lib/unictype/bitmap.h.
37535         (Depends-on): Add inline. Clean up.
37536         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37537         lib/unictype/bitmap.h.
37538         (Depends-on): Add inline. Clean up.
37539         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37540         recognition.
37541         * tests/unicase/test-u16-tolower.c (main): Likewise.
37542         * tests/unicase/test-u32-tolower.c (main): Likewise.
37543
37544 2009-06-30  Bruno Haible  <bruno@clisp.org>
37545
37546         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37547         * lib/unicase/u16-casemap.c: Likewise.
37548         * lib/unicase/u32-casemap.c: Likewise.
37549
37550 2009-06-29  Bruno Haible  <bruno@clisp.org>
37551
37552         Define u32_casefold as a wrapper around u32_ct_casefold.
37553         * lib/unicase/u32-casefold.c: Update.
37554         * modules/unicase/u32-casefold (Depends-on): Add
37555         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37556         unicase/empty-suffix-context. Clean up.
37557
37558         Define u16_casefold as a wrapper around u16_ct_casefold.
37559         * lib/unicase/u16-casefold.c: Update.
37560         * modules/unicase/u16-casefold (Depends-on): Add
37561         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37562         unicase/empty-suffix-context. Clean up.
37563
37564         Define u8_casefold as a wrapper around u8_ct_casefold.
37565         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37566         * lib/unicase/u8-casefold.c: Update.
37567         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37568         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37569
37570         Define u32_totitle as a wrapper around u32_ct_totitle.
37571         * lib/unicase/u32-totitle.c: Update.
37572         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37573         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37574
37575         Define u16_totitle as a wrapper around u16_ct_totitle.
37576         * lib/unicase/u16-totitle.c: Update.
37577         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37578         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37579
37580         Define u8_totitle as a wrapper around u8_ct_totitle.
37581         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37582         functions.
37583         (FUNC): Delegate to U_CT_TOTITLE.
37584         * lib/unicase/u8-totitle.c: Update.
37585         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37586         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37587
37588         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37589         invocation.
37590         * modules/unicase/u32-tolower (Depends-on): Add
37591         unicase/empty-prefix-context, unicase/empty-suffix-context.
37592
37593         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37594         invocation.
37595         * modules/unicase/u16-tolower (Depends-on): Add
37596         unicase/empty-prefix-context, unicase/empty-suffix-context.
37597
37598         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37599         * modules/unicase/u8-tolower (Depends-on): Add
37600         unicase/empty-prefix-context, unicase/empty-suffix-context.
37601
37602         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37603         invocation.
37604         * modules/unicase/u32-toupper (Depends-on): Add
37605         unicase/empty-prefix-context, unicase/empty-suffix-context.
37606
37607         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37608         invocation.
37609         * modules/unicase/u16-toupper (Depends-on): Add
37610         unicase/empty-prefix-context, unicase/empty-suffix-context.
37611
37612         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37613         * modules/unicase/u8-toupper (Depends-on): Add
37614         unicase/empty-prefix-context, unicase/empty-suffix-context.
37615
37616         New module 'unicase/u32-ct-casefold'.
37617         * lib/unicase/u32-ct-casefold.c: New file.
37618         * modules/unicase/u32-ct-casefold: New file.
37619
37620         New module 'unicase/u16-ct-casefold'.
37621         * lib/unicase/u16-ct-casefold.c: New file.
37622         * modules/unicase/u16-ct-casefold: New file.
37623
37624         New module 'unicase/u8-ct-casefold'.
37625         * lib/unicase/u8-ct-casefold.c: New file.
37626         * lib/unicase/u-ct-casefold.h: New file, derived from
37627         lib/unicase/u-casefold.h.
37628         * modules/unicase/u8-ct-casefold: New file.
37629
37630         New module 'unicase/u32-ct-totitle'.
37631         * lib/unicase/u32-ct-totitle.c: New file.
37632         * modules/unicase/u32-ct-totitle: New file.
37633
37634         New module 'unicase/u16-ct-totitle'.
37635         * lib/unicase/u16-ct-totitle.c: New file.
37636         * modules/unicase/u16-ct-totitle: New file.
37637
37638         New module 'unicase/u8-ct-totitle'.
37639         * lib/unicase/u8-ct-totitle.c: New file.
37640         * lib/unicase/u-ct-totitle.h: New file, derived from
37641         lib/unicase/u-totitle.h.
37642         * modules/unicase/u8-ct-totitle: New file.
37643
37644         New module 'unicase/u32-ct-tolower'.
37645         * lib/unicase/u32-ct-tolower.c: New file.
37646         * modules/unicase/u32-ct-tolower: New file.
37647
37648         New module 'unicase/u16-ct-tolower'.
37649         * lib/unicase/u16-ct-tolower.c: New file.
37650         * modules/unicase/u16-ct-tolower: New file.
37651
37652         New module 'unicase/u8-ct-tolower'.
37653         * lib/unicase/u8-ct-tolower.c: New file.
37654         * modules/unicase/u8-ct-tolower: New file.
37655
37656         New module 'unicase/u32-ct-toupper'.
37657         * lib/unicase/u32-ct-toupper.c: New file.
37658         * modules/unicase/u32-ct-toupper: New file.
37659
37660         New module 'unicase/u16-ct-toupper'.
37661         * lib/unicase/u16-ct-toupper.c: New file.
37662         * modules/unicase/u16-ct-toupper: New file.
37663
37664         New module 'unicase/u8-ct-toupper'.
37665         * lib/unicase/u8-ct-toupper.c: New file.
37666         * modules/unicase/u8-ct-toupper: New file.
37667
37668         Add context arguments to u*_casemap functions.
37669         * lib/unicase/unicasemap.h: Include unicase.h.
37670         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37671         suffix_context arguments.
37672         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37673         functions.
37674         (FUNC): Add prefix_context and suffix_context arguments. Use
37675         uc_is_cased and uc_is_case_ignorable.
37676         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37677         * lib/unicase/u16-casemap.c: Likewise.
37678         * lib/unicase/u32-casemap.c: Likewise.
37679         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37680         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37681         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37682         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37683         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37684         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37685
37686         New module 'unicase/u32-suffix-context'.
37687         * lib/unicase/u32-suffix-context.c: New file.
37688         * modules/unicase/u32-suffix-context: New file.
37689
37690         New module 'unicase/u16-suffix-context'.
37691         * lib/unicase/u16-suffix-context.c: New file.
37692         * modules/unicase/u16-suffix-context: New file.
37693
37694         New module 'unicase/u8-suffix-context'.
37695         * lib/unicase/u8-suffix-context.c: New file.
37696         * lib/unicase/u-suffix-context.h: New file.
37697         * modules/unicase/u8-suffix-context: New file.
37698
37699         New module 'unicase/empty-suffix-context'.
37700         * lib/unicase/empty-suffix-context.c: New file.
37701         * modules/unicase/empty-suffix-context: New file.
37702
37703         New module 'unicase/u32-prefix-context'.
37704         * lib/unicase/u32-prefix-context.c: New file.
37705         * modules/unicase/u32-prefix-context: New file.
37706
37707         New module 'unicase/u16-prefix-context'.
37708         * lib/unicase/u16-prefix-context.c: New file.
37709         * modules/unicase/u16-prefix-context: New file.
37710
37711         New module 'unicase/u8-prefix-context'.
37712         * lib/unicase/u8-prefix-context.c: New file.
37713         * lib/unicase/u-prefix-context.h: New file.
37714         * lib/unicase/context.h: New file.
37715         * modules/unicase/u8-prefix-context: New file.
37716
37717         New module 'unicase/empty-prefix-context'.
37718         * lib/unicase/empty-prefix-context.c: New file.
37719         * modules/unicase/empty-prefix-context: New file.
37720
37721         New module 'unicase/ignorable'.
37722         * lib/unicase/ignorable.c: New file.
37723         * modules/unicase/ignorable: New file.
37724
37725         New module 'unicase/cased'.
37726         * lib/unicase/caseprop.h: New file.
37727         * lib/unicase/cased.c: New file.
37728         * modules/unicase/cased: New file.
37729
37730         New functions for case mapping of substrings.
37731         * lib/unicase.h (casing_prefix_context_t): New type.
37732         (unicase_empty_prefix_context): New variable.
37733         (u8_casing_prefix_context, u16_casing_prefix_context,
37734         u32_casing_prefix_context, u8_casing_prefixes_context,
37735         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37736         declarations.
37737         (casing_suffix_context_t): New type.
37738         (unicase_empty_suffix_context): New variable.
37739         (u8_casing_suffix_context, u16_casing_suffix_context,
37740         u32_casing_suffix_context, u8_casing_suffixes_context,
37741         u16_casing_suffixes_context, u32_casing_suffixes_context,
37742         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37743         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37744         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37745         declarations.
37746
37747 2009-06-28  Jim Meyering  <meyering@redhat.com>
37748
37749         boostrap: indent only with spaces
37750         * build-aux/bootstrap: Indent only with spaces, never TABs.
37751
37752         bootstrap: split long lines
37753         * build-aux/bootstrap: Keep line length < 80.
37754
37755         bootstrap: sync from coreutils
37756         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37757         just as autoreconf does.  Verify a list of prerequisite
37758         package-name,version-number pairs if defined in bootstrap.conf.
37759         Refer to README-prereq, if prerequisites are not satisfied.
37760
37761 2009-06-27  Eric Blake  <ebb9@byu.net>
37762
37763         tests: add test for bogus NULL definition
37764         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37765         * tests/test-stdlib.c: Likewise.
37766         * tests/test-string.c: Likewise.
37767         * tests/test-locale.c: Likewise.
37768         * tests/test-unistd.c: Likewise.
37769         * modules/stdio-tests (Depends-on): Add verify.
37770         * modules/stdlib-tests (Depends-on): Likewise.
37771         * modules/string-tests (Depends-on): Likewise.
37772         * modules/locale-tests (Depends-on): Likewise.
37773         * modules/unistd-tests (Depends-on): Likewise.
37774
37775 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37776
37777         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37778         self-explaining comment.
37779         * m4/selinux-selinux-h: Update serial.
37780         (gl_LIBSELINUX): New macro, adding a warning for missing development
37781         packages to code extracted from...
37782         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37783         Add warning for missing development packages here, too.
37784
37785 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37786
37787         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37788
37789 2009-06-25  Eric Blake  <ebb9@byu.net>
37790
37791         version-etc: fix regression
37792         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37793         gcc.
37794         (version_etc): Use it, to catch bugs with trailing NULL.
37795         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37796         (version_etc_va): Fix logic bug.
37797         * modules/version-etc-tests: Add test.
37798         * tests/test-version-etc.c: New file.
37799         * tests/test-version-etc.sh: Likewise.
37800
37801 2009-06-25  Sam Steingold  <sds@gnu.org>
37802
37803         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37804         mbtowc declaration.
37805
37806 2009-06-25  Eric Blake  <ebb9@byu.net>
37807
37808         fpurge: migrate into <stdio.h>
37809         * lib/fpurge.h: Delete...
37810         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37811         * lib/fpurge.c (fpurge): Change declaring header.
37812         * modules/fpurge (Files): Drop deleted file.
37813         (Depends-on): Add stdio.
37814         (configure.ac): Set witness.
37815         * modules/stdio (Makefile.am): Support fpurge macros.
37816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37817         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37818         * lib/fflush.c: Update client.
37819         * tests/test-fpurge.c: Likewise.
37820         * NEWS: Mention the change.
37821
37822 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37823
37824         * lib/argp-version-etc.c (program_authors): Add const
37825         qualifier.
37826         * lib/version-etc.c: Fix typos in the comments.
37827         * modules/argp-version-etc: Depends on version-etc.
37828
37829 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37830
37831         argp-version-etc: new module.
37832
37833         * lib/argp-version-etc.c: New file.
37834         * lib/argp-version-etc.h: New file.
37835         * modules/argp-version-etc: New file.
37836         * modules/argp-version-etc-tests: New file.
37837         * tests/test-argp-version-etc.c: New test.
37838         * tests/test-argp-version-etc-1.sh: New test.
37839
37840 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37841
37842         Provide additional interfaces and documentation for version-etc
37843         module.
37844
37845         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37846         interfaces.
37847         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37848         prototypes.
37849
37850 2009-06-24  Bruno Haible  <bruno@clisp.org>
37851
37852         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37853         HAVE_LIB${NAME} macro.
37854         Reported by Sam Steingold <sds@gnu.org>.
37855
37856 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37857
37858         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37859         needed.
37860
37861 2009-06-21  Bruno Haible  <bruno@clisp.org>
37862
37863         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37864         work.
37865         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37866         together with LIB${NAME}, LTLIB${NAME}.
37867         Reported by Sam Steingold <sds@gnu.org>.
37868
37869 2009-06-20  Jim Meyering  <meyering@redhat.com>
37870
37871         tests: make sc_require_test_exit_idiom more generic
37872         * top/maint.mk (Exit_witness_file): New overridable variable.
37873         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37874         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37875
37876 2009-06-19  Jim Meyering  <meyering@redhat.com>
37877
37878         hash: reverse order of src/dst parameters in an internal interface
37879         * lib/hash.c (transfer_entries): Reverse order of parameters to
37880         put DST before SRC.  Adjust callers.
37881
37882         tests: test-hash: avoid wholesale duplication
37883         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37884         Instead, use a loop and add a single conditional.
37885
37886         tests: test-hash: allow seed selection via a command line argument
37887         * tests/test-hash.c (get_seed): New function.
37888         (main): Use it.
37889
37890 2009-06-19  Eric Blake  <ebb9@byu.net>
37891
37892         hash: avoid memory leak on allocation failure
37893         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37894         failure.  Factor repeated algorithm...
37895         (transfer_entries): ...into new helper routine.
37896         (hash_delete): React to hash_rehash return value.
37897
37898         hash: reduce memory pressure in hash_rehash no-op case
37899         * lib/hash.c (next_prime): Avoid overflow.
37900         (hash_initialize): Factor bucket size computation...
37901         (compute_bucket_size): ...into new helper function.
37902         (hash_rehash): Use new function and open coding to reduce memory
37903         pressure, and avoid a memory leak in USE_OBSTACK code.
37904         Reported by Jim Meyering.
37905
37906 2009-06-18  Eric Blake  <ebb9@byu.net>
37907
37908         hash: make rotation more obvious
37909         * modules/hash (Depends-on): Add bitrotate and stdint.
37910         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37911         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37912         (SIZE_MAX): Rely on headers for definition.
37913         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37914         (raw_hasher): Use rotr_sz.
37915         Suggested by Jim Meyering.
37916
37917         hash: fix memory leak in last patch
37918         * lib/hash.c (hash_rehash): Avoid memory leak.
37919
37920         hash: avoid no-op rehashing
37921         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37922
37923         hash: provide default callback functions
37924         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37925         (hash_initialize): Use them as defaults.
37926         * tests/test-hash.c (main): Test this.
37927
37928         hash: minor optimization
37929         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37930         when possible.
37931         (hash_initialize): Document this promise.
37932         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37933         * tests/test-hash.c (hash_compare_strings): Test this.
37934
37935 2009-06-18  Bruno Haible  <bruno@clisp.org>
37936
37937         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37938         going to be replaced anyway.
37939
37940 2009-06-18  Bruno Haible  <bruno@clisp.org>
37941
37942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37943         in one place.
37944         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37945         be replaced anyway.
37946
37947 2009-06-18  Eric Blake  <ebb9@byu.net>
37948
37949         hash: check for resize before insertion
37950         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37951         threshold before insertion, so that a pathological hash_rehash
37952         that fills every bucket can still trigger another rehash.
37953
37954 2009-06-18  Jim Meyering  <meyering@redhat.com>
37955
37956         hash-tests: add a loop around the small tests
37957         * tests/test-hash.c (main): Repeat small tests with selected
37958         small initial table sizes.
37959
37960 2009-06-17  Eric Blake  <ebb9@byu.net>
37961
37962         hash: minor cleanups
37963         * lib/hash.h (hash_entry): Make opaque, by moving...
37964         * lib/hash.c (hash_entry): ...here.
37965         (hash_insert): Clarify restrictions on what can be inserted.
37966         (hash_get_next): Clarify when it is safe to remove an element
37967         during traversal.
37968         (check_tuning): Skip verification when tuning is known safe.
37969         (hash_initialize): Clarify restrictions on tuning.
37970
37971 2009-06-17  Jim Meyering  <jim@meyering.net>
37972         and Eric Blake  <ebb9@byu.net>
37973
37974         hash-tests: new module
37975         * modules/hash-tests: New file.
37976         * tests/test-hash.c: New file.
37977
37978 2009-06-17  Eric Blake  <ebb9@byu.net>
37979
37980         strstr-simple: document new module
37981         * MODULES.html.sh: Document new module.
37982
37983         strstr, strcasestr: replace on platforms with broken memchr
37984         * modules/strstr: Split into...
37985         * modules/strstr-simple: ...new module that does not care about
37986         performance, but does care about glibc bug.
37987         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37988         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37989         if platform memchr is broken, per Debian bug 521737.
37990         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37991         memchr.
37992         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37993         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37994         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37995         * modules/mountlist (Depends-on): Add strstr-simple.
37996         * modules/gen-uni-tables (Depends-on): Likewise.
37997         * modules/argz (Depends-on): Add strstr.
37998
37999 2009-06-17  Bruno Haible  <bruno@clisp.org>
38000
38001         * modules/posix_spawn-internal (Depends-on): Add errno.
38002
38003 2009-06-17  Bruno Haible  <bruno@clisp.org>
38004
38005         Define missing ESTALE on Interix 3.5.
38006         * lib/errno.in.h (ESTALE): Assign a value if missing.
38007         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38008         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38009         missing.
38010         * doc/posix-headers/errno.texi: Mention the Interix bug.
38011         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38012
38013 2009-06-15  Eric Blake  <ebb9@byu.net>
38014
38015         memchr, memchr2: add valgrind exception
38016         * lib/memchr.valgrind: New file.
38017         * lib/memchr2.valgrind: New file.
38018         * modules/memchr (Files): Distribute valgrind file.
38019         * modules/memchr2 (Files): Likewise.
38020
38021         docs: memchr is no longer obsolete
38022         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38023         * lib/string.in.h (memchr): Simplify logic.
38024
38025 2009-06-14  Jim Meyering  <meyering@redhat.com>
38026
38027         link-follow: fix the "checking..." message to not mention trailing slash
38028         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38029         never considered trailing slashes.
38030
38031 2009-06-14  Bruno Haible  <bruno@clisp.org>
38032
38033         * m4/memchr.m4: Mention also the bug on IA-64.
38034         * doc/posix-functions/memchr.texi: Likewise.
38035
38036 2009-06-12  Eric Blake  <ebb9@byu.net>
38037
38038         memchr: detect broken x86_64 and alpha implementations
38039         * modules/memchr-tests (Depends-on): Move mmap detection...
38040         * modules/memchr (Depends-on): ...here.
38041         (configure.ac): Set indicator.
38042         * lib/string.in.h (memchr): Declare replacement.
38043         * modules/string (Makefile.am): Trigger replacement.
38044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38045         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38046         bugs.
38047         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38048         * modules/getpagesize (License): Relax license.
38049
38050 2009-06-11  Bruno Haible  <bruno@clisp.org>
38051
38052         * lib/idpriv.h: Add more references.
38053
38054 2009-06-08  Bruno Haible  <bruno@clisp.org>
38055
38056         Tests for module 'idpriv-droptemp'.
38057         * modules/idpriv-droptemp-tests: New file.
38058         * tests/test-idpriv-droptemp.sh: New file.
38059         * tests/test-idpriv-droptemp.su.sh: New file.
38060         * tests/test-idpriv-droptemp.c: New file.
38061
38062         New module 'idpriv-droptemp'.
38063         * lib/idpriv-droptemp.c: New file.
38064         * modules/idpriv-droptemp: New file.
38065
38066 2009-06-08  Bruno Haible  <bruno@clisp.org>
38067
38068         Tests for module 'idpriv-drop'.
38069         * modules/idpriv-drop-tests: New file.
38070         * tests/test-idpriv-drop.sh: New file.
38071         * tests/test-idpriv-drop.su.sh: New file.
38072         * tests/test-idpriv-drop.c: New file.
38073
38074         New module 'idpriv-drop'.
38075         * lib/idpriv.h: New file.
38076         * lib-idpriv-drop.c: New file.
38077         * m4/idpriv.m4: New file.
38078         * modules/idpriv-drop: New file.
38079
38080 2009-06-08  Bruno Haible  <bruno@clisp.org>
38081
38082         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38083         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38084         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38085         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38086         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38087         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38088         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38089
38090 2009-06-08  Eric Blake  <ebb9@byu.net>
38091
38092         test-strstr: use memory fence, when possible
38093         * tests/test-strstr.c (main): Use memory fence, in order to be
38094         more likely to trigger Debian bug 521737.
38095         * modules/strstr-tests (Files): Pull in additional files.
38096
38097         memchr: no longer obsolete, for wider field testing
38098         * modules/memchr (Status, Notice): Delete, this module is no
38099         longer obsolete.
38100         * modules/vasnprintf (Depends-on): Add memchr.
38101
38102 2009-06-07  Jim Meyering  <meyering@redhat.com>
38103
38104         hash: declare some functions with the warn_unused_result attribute
38105         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38106
38107 2009-06-07  Bruno Haible  <bruno@clisp.org>
38108
38109         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38110         Reported by Eric Blake.
38111
38112 2009-06-06  Eric Blake  <ebb9@byu.net>
38113
38114         test-alignof: fix typo with long double
38115         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38116         compiler error.
38117
38118 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38119
38120         Escape non-texinfo { and }s.
38121         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38122         markup error.
38123
38124 2009-06-04  Jim Meyering  <meyering@redhat.com>
38125
38126         gitlog-to-changelog: don't infloop on an empty commit log
38127         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38128         Reported by Boris Petersen <transacid@centerim.org>.
38129
38130 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38131
38132         version-etc: extend for packagers
38133         Add three new configure options, intended for packagers:
38134           --with-packager="packager name"
38135           --with-packager-version="packager-specific version"
38136           --with-packager-bug-reports="packager bug reporting"
38137         An example with coreutils:
38138           $ ./configure \
38139             --with-packager=Gentoo \
38140             --with-packager-bug-report=http://bugs.gentoo.org/ \
38141             --with-packager-version="patchset 1.6"
38142           $ ./src/ls --version | head -n2
38143           ls (GNU coreutils) 7.1-dirty
38144           Packaged by Gentoo (patchset 1.6)
38145         Note that the bug reporting info via --help doesn't show up because
38146         coreutils uses its own custom emit_bug_reporting_address() implementation
38147         in src/system.h.  If it didn't, it'd look like:
38148           $ ./src/ls --help | tail -n4
38149           Report bugs to <bug-coreutils@gnu.org>.
38150           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38151           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38152           General help using GNU software: <http://www.gnu.org/gethelp/>.
38153         * lib/version-etc.c: Print new information, if provided.
38154         * m4/version-etc.m4: New file.
38155         * modules/version-etc (Files): Add m4/version-etc.m4.
38156         (configure.ac): Add gl_VERSION_ETC.
38157
38158 2009-05-31  Bruno Haible  <bruno@clisp.org>
38159
38160         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38161         and 'int64_t'.
38162         * modules/alignof-tests (Dependencies): Add stdint.
38163         Reported by Eric Blake.
38164
38165 2009-05-31  Bruno Haible  <bruno@clisp.org>
38166
38167         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38168         restriction due to compiler bugs.
38169         Reported by Eric Blake.
38170
38171 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38172             Bruno Haible  <bruno@clisp.org>
38173
38174         Fix test-alignof failure.
38175         * lib/alignof.h (alignof_slot): New macro.
38176         (alignof_type): New macro, with the same semantics as the previous
38177         'alignof'.
38178         (alignof): Alias to alignof_slot.
38179         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38180         check that the results are usable as constant expressions.
38181
38182 2009-05-31  Bruno Haible  <bruno@clisp.org>
38183
38184         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38185         * tests/test-memchr.c (main): Check that memchr does not read past the
38186         first occurrence of the byte.
38187         * tests/test-strstr.c (main): Update comment.
38188         Suggested by Eric Blake.
38189
38190 2009-05-30  Bruno Haible  <bruno@clisp.org>
38191
38192         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38193         detail how to use dumpbin.
38194         Reported by David Byron <dbyron@dbyron.com>.
38195
38196 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38197
38198         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38199
38200 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38201
38202         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38203
38204 2009-05-28  Bruno Haible  <bruno@clisp.org>
38205
38206         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38207         build-aux/ files.
38208
38209 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38210
38211         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38212
38213 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38214
38215         * gnulib-tool (sed_transform_main_lib_file)
38216         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38217         regexps.
38218
38219 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38220
38221         * tests/test-strstr.c: Add another self-test.
38222         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38223         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38224
38225 2009-05-23  Bruno Haible  <bruno@clisp.org>
38226
38227         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38228         change.
38229
38230 2009-05-21  Bruno Haible  <bruno@clisp.org>
38231
38232         Simplify use of mode_t varargs.
38233         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38234         uses 'mode_t' or 'int'.
38235         * lib/openat.c (openat): Likewise.
38236         * lib/open-safer.c (open_safer): Likewise.
38237         * m4/mode_t.m4: New file.
38238         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38239         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38240         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38241         * modules/open (Files): Add m4/mode_t.m4.
38242         * modules/openat (Files): Likewise.
38243         * modules/fcntl-safer (Files): Likewise.
38244         Suggested by Eric Blake.
38245
38246 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38247
38248         * doc/glibc-functions/fallocate.texi: New file.
38249         * doc/gnulib.texi: Include it.
38250
38251 2009-05-21  Eric Blake  <ebb9@byu.net>
38252             Bruno Haible  <bruno@clisp.org>
38253
38254         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38255         invocations.
38256         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38257
38258 2009-05-21  Eric Blake  <ebb9@byu.net>
38259             Bruno Haible  <bruno@clisp.org>
38260
38261         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38262         include_next. Fix of 2008-11-20 commit.
38263         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38264         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38265         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38266         NEXT_MATH_H.
38267         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38268         instead of NEXT_MATH_H.
38269
38270 2009-05-21  Bruno Haible  <bruno@clisp.org>
38271
38272         Avoid redefinition warnings for SIZE_MAX.
38273         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38274         Reported by Simon Josefsson.
38275
38276 2009-05-21  Bruno Haible  <bruno@clisp.org>
38277
38278         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38279         AC_CACHE_VAL.
38280
38281 2009-05-20  Bruno Haible  <bruno@clisp.org>
38282
38283         Make zeroptr.h work on mingw.
38284         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38285         mprotect.
38286         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38287         * modules/memchr2-tests (configure.ac): Likewise.
38288         * modules/memcmp-tests (configure.ac): Likewise.
38289         * modules/memmem-tests (configure.ac): Likewise.
38290         * modules/memrchr-tests (configure.ac): Likewise.
38291         Reported by Simon Josefsson.
38292
38293 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38294
38295         * tests/test-glob.c: Include string.h for strcmp prototype.
38296
38297 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38298
38299         * modules/getdelim (Depends-on): Add explicit stdint, although it
38300         was implicitly already pulled in via realloc-posix.
38301         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38302
38303 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38304
38305         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38306         G. Christensen" <tgc@jupiterrise.com>.
38307         * m4/sys_socket_h.m4: Check for sa_family_t.
38308         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38309         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38310         * tests/test-sys_socket.c: Check that sa_family_t works.
38311
38312 2009-05-18  Eric Blake  <ebb9@byu.net>
38313
38314         maint.mk: allow gnulib_dir in VPATH build
38315         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38316
38317 2009-05-15  Jim Meyering  <meyering@redhat.com>
38318
38319         maint.mk: Give gnulib_dir a default definition.
38320         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38321         Thus, most packages no longer need to specify this variable in cfg.mk
38322
38323 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38324
38325         rename.m4: fix typos that would make non-mingw cross-configure fail
38326         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38327
38328 2009-05-13  Eric Blake  <ebb9@byu.net>
38329
38330         mmap-anon: avoid out-of-order autoconf expansion
38331         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38332         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38333         * modules/memchr-tests (Depends-on): Add extensions.
38334         * modules/memchr2-tests (Depends-on): Add extensions.
38335         * modules/memcmp-tests (Depends-on): Add extensions.
38336         * modules/memmem-tests (Depends-on): Add extensions.
38337         * modules/memrchr-tests (Depends-on): Add extensions.
38338
38339 2009-05-13  Bruno Haible  <bruno@clisp.org>
38340
38341         Make some tests ISO C 99 compliant.
38342         * tests/zerosize-ptr.h: New file.
38343         * tests/test-memchr.c: Include zerosize-ptr.h.
38344         (main): Use a zero-size object pointer instead of NULL.
38345         * tests/test-memchr2.c: Include zerosize-ptr.h.
38346         (main): Use a zero-size object pointer instead of NULL.
38347         * tests/test-memcmp.c: Include zerosize-ptr.h.
38348         (main): Use a zero-size object pointer instead of NULL.
38349         * tests/test-memmem.c: Include zerosize-ptr.h.
38350         (main): Use a zero-size object pointer instead of NULL.
38351         * tests/test-memrchr.c: Include zerosize-ptr.h.
38352         (main): Use a zero-size object pointer instead of NULL.
38353         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38354         m4/mmap-anon.m4.
38355         (Depends-on): Add getpagesize.
38356         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38357         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38358         m4/mmap-anon.m4.
38359         (Depends-on): Add getpagesize.
38360         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38361         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38362         m4/mmap-anon.m4.
38363         (Depends-on): Add getpagesize.
38364         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38365         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38366         m4/mmap-anon.m4.
38367         (Depends-on): Add getpagesize.
38368         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38369         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38370         m4/mmap-anon.m4.
38371         (Depends-on): Add getpagesize.
38372         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38373
38374 2009-05-12  Bruno Haible  <bruno@clisp.org>
38375
38376         Tests for module 'alignof'.
38377         * modules/alignof-tests: New file.
38378         * tests/test-alignof.c: New file.
38379
38380 2009-05-12  Bruno Haible  <bruno@clisp.org>
38381
38382         Fix alignof macro.
38383         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38384         vendor compilers that are always correct.
38385
38386 2009-05-12  Bruno Haible  <bruno@clisp.org>
38387
38388         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38389         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38390         not whether its fully works.
38391
38392 2009-05-12  Bruno Haible  <bruno@clisp.org>
38393
38394         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38395
38396 2009-05-12  Jim Meyering  <meyering@redhat.com>
38397
38398         * top/maint.mk: Adjust backslash alignment.
38399
38400 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38401
38402         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38403
38404 2009-05-11  Eric Blake  <ebb9@byu.net>
38405
38406         argp: avoid undefined behavior
38407         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38408         macros.
38409
38410 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38411
38412         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38413         user.name to prevent git commit from complaining.
38414
38415 2009-05-10  Bruno Haible  <bruno@clisp.org>
38416
38417         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38418         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38419         it rewrites every file name only once.
38420         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38421
38422 2009-05-08  Bruno Haible  <bruno@clisp.org>
38423
38424         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38425         instead of 'max'.
38426
38427 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38428
38429         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38430         sockaddr_storage test.
38431
38432 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38433
38434         * modules/sys_socket (Makefile.am): Substitute
38435         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38436         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38437         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38438         * tests/test-sys_socket.c: Check sockaddr_storage.
38439
38440 2009-05-08  Bruno Haible  <bruno@clisp.org>
38441
38442         New module 'alignof'.
38443         * lib/alignof.h: New file.
38444         * modules/alignof: New file.
38445
38446 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38447             Bruno Haible  <bruno@clisp.org>
38448
38449         Fix test-file-has-acl on FreeBSD.
38450         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38451         mask is implicitly added.
38452         * tests/test-file-has-acl.c: Include <signal.h>.
38453         (main): Terminate the test after 5 seconds.
38454         * modules/acl-tests (configure.ac): Check for alarm function.
38455
38456 2009-05-04  Bruno Haible  <bruno@clisp.org>
38457
38458         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38459         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38460         * modules/errno (configure.ac): Drop AC_REQUIRE.
38461         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38462         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38463
38464 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38465
38466         * modules/glob-tests: New module.
38467         * tests/test-glob.c: Add.
38468
38469 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38470
38471         * modules/fnmatch-tests: New module.
38472         * tests/test-fnmatch.c: Add.
38473
38474 2009-05-04  Eric Blake  <ebb9@byu.net>
38475
38476         maint: make the new no-submodule-changes rule VPATH-safe
38477         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38478
38479 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38480             Bruno Haible  <bruno@clisp.org>
38481
38482         acl: Fix infinite loop on FreeBSD.
38483         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38484         of return value from acl_get_entry.
38485         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38486         Likewise.
38487
38488 2009-05-03  Bruno Haible  <bruno@clisp.org>
38489
38490         * lib/acl-internal.h (acl_entries): Clarify return value.
38491         * lib/acl_entries.c (acl_entries): Likewise.
38492
38493 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38494
38495         Bug fix in acl module.
38496         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38497
38498 2009-05-03  Bruno Haible  <bruno@clisp.org>
38499
38500         Create gperf-generated file in the source dir, not in the build dir.
38501         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38502         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38503         * modules/unicase/locale-language (unicase/locale-languages.h):
38504         Likewise.
38505         * modules/unicase/special-casing (unicase/special-casing-table.h):
38506         Likewise.
38507         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38508         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38509         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38510         Reported by Ralf Wildenhues.
38511
38512 2009-05-03  Bruno Haible  <bruno@clisp.org>
38513
38514         * modules/fnmatch (Description, configure.ac): Taken from
38515         fnmatch-posix.
38516         * modules/fnmatch-posix: Turn into a symbolic reference to the
38517         'fnmatch' module, and deprecate.
38518         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38519
38520 2009-05-03  Bruno Haible  <bruno@clisp.org>
38521
38522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38523         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38524         Reported by Ralf Wildenhues.
38525
38526 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38527
38528         * m4/fnmatch.m4: Fix fnmatch re-define.
38529
38530 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38531
38532         priv-set: new module and tests; adapt write-any-file
38533         * lib/priv-set.c: New file.
38534         * lib/priv-set.h: New file.
38535         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38536         * lib/write-any-file.c: Simplify by using priv-set module.
38537         * m4/priv-set.m4: New file.
38538         * modules/priv-set: New file.
38539         * modules/unlinkdir: Add dependency on priv-set module.
38540         * modules/write-any-file: Likewise.
38541
38542         Tests for module 'priv-set'.
38543         * modules/priv-set-tests: New file.
38544         * tests/test-priv-set.c: New file.
38545
38546 2009-05-03  Jim Meyering  <meyering@redhat.com>
38547             Bruno Haible  <bruno@clisp.org>
38548
38549         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38550         use the converted UTF-8 variant of the name instead.
38551
38552 2009-05-03  Jim Meyering  <meyering@redhat.com>
38553
38554         tests: tighten some getdate tests
38555         * tests/test-getdate.c (main): Tighten tests: require equality,
38556         not just greater than.  Set TZ envvar to UTC0.
38557
38558 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38559
38560         getdate: correctly interpret "next monday" when run on a Monday
38561         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38562         that e.g., "next tues" (when run on a tuesday) results in a date
38563         that is one week in the future, and not today's date.
38564         I.e., add a week when the wday is the same as the current one.
38565         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38566         and earlier by Martin Bernreuther and Jan Minář.
38567         * tests/test-getdate.c (main): Check that "next DAY" is always in
38568         the future and that "last DAY" is always in the past.
38569
38570 2009-05-02  Jim Meyering  <meyering@redhat.com>
38571
38572         build: ensure that a release build fails when a submodule is unclean
38573         * top/maint.mk (no-submodule-changes): New rule.
38574         (alpha beta major): Depend on it.
38575
38576 2009-05-02  Bruno Haible  <bruno@clisp.org>
38577
38578         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38579         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38580         shell variable gl_fnmatch_required to detect which variant is
38581         requested.
38582         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38583         gl_FUNC_FNMATCH_POSIX.
38584         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38585         exclude fnmatch-posix.
38586
38587 2009-05-02  Bruno Haible  <bruno@clisp.org>
38588
38589         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38590         * modules/mbsrtowcs (License): Change to LGPLv2+.
38591         * modules/strnlen1 (License): Likewise.
38592         Reported by Simon Josefsson.
38593
38594 2009-05-02  Bruno Haible  <bruno@clisp.org>
38595
38596         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38597         "cross".
38598         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38599         gnulib-tool was called with option --source-base=lib.
38600
38601 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38602
38603         Use automake *-local hooks without commands, for extensibility.
38604         * modules/localcharset (Makefile.am): Rename install-exec-local
38605         rule to install-exec-localcharset, and make it a prerequisite of
38606         install-exec-local.  Likewise, rename the uninstall-local rule to
38607         uninstall-localcharset, and make it a prerequisite of the former.
38608
38609 2009-05-01  Bruno Haible  <bruno@clisp.org>
38610
38611         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38612         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38613         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38614         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38615         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38616         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38617         m4/locale-zh.m4, m4/codeset.m4.
38618
38619         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38620         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38621         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38622         m4/locale-zh.m4.
38623
38624         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38625         REPLACE_WCRTOMB if mbstate_t must be replaced.
38626         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38627         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38628
38629 2009-05-01  Bruno Haible  <bruno@clisp.org>
38630
38631         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38632         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38633         dngettext, dcngettext, textdomain, bindtextdomain,
38634         bind_textdomain_codeset): Undefine before redefining.
38635
38636 2009-04-30  Bruno Haible  <bruno@clisp.org>
38637
38638         Fix bug introduced on 2009-04-25.
38639         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38640         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38641         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38642         is defined.
38643         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38644         is defined.
38645         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38646         is defined.
38647         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38648
38649 2009-04-28  Bruno Haible  <bruno@clisp.org>
38650
38651         Comment tweaks.
38652         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38653         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38654         * lib/unicase.h (u*_casexfrm): Likewise.
38655         Reported by Paolo Bonzini.
38656
38657 2009-04-28  Bruno Haible  <bruno@clisp.org>
38658
38659         Fix a compilation error.
38660         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38661         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38662         Reported by Jim Meyering.
38663
38664 2009-04-27  Bruno Haible  <bruno@clisp.org>
38665
38666         New module 'libunistring'.
38667         * modules/libunistring: New file.
38668         * m4/libunistring.m4: New file.
38669         * MODULES.html.sh (Unicode string functions): Add it.
38670
38671 2009-04-27  Eric Blake  <ebb9@byu.net>
38672
38673         maint.mk: allow package-specific header to provide <config.h>
38674         * top/maint.mk (sc_require_config_h): New variable.
38675         (sc_require_config_h, sc_require_config_h_first): Use it.
38676
38677 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38678
38679         * top/maint.mk (sc_avoid_if_before_free): Except
38680         useless-if-before-free script.
38681
38682 2009-04-27  Eric Blake  <ebb9@byu.net>
38683
38684         maintainer-makefile: depend on all required helper scripts
38685         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38686         useless-if-before-free.
38687         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38688         version, rather than assuming gnulib checkout is available.
38689         Reported by Simen Josefsson.
38690
38691 2009-04-26  Bruno Haible  <bruno@clisp.org>
38692
38693         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38694         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38695         "../" or "..".
38696
38697 2009-04-26  Bruno Haible  <bruno@clisp.org>
38698
38699         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38700         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38701         AC_LIB_HAVE_LINKFLAGS.
38702
38703 2009-04-26  Bruno Haible  <bruno@clisp.org>
38704
38705         Simplify calling convention of u*_conv_from_encoding.
38706         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38707         u32_conv_from_encoding): Expect a resultbuf argument and return the
38708         result directly as a pointer.
38709         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38710         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38711         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38712         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38713         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38714         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38715         Update.
38716         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38717         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38718         * lib/vasnprintf.c (VASNPRINTF): Update.
38719         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38720         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38721         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38722         * NEWS: Mention the change.
38723
38724 2009-04-26  Bruno Haible  <bruno@clisp.org>
38725
38726         Simplify calling convention of u*_conv_to_encoding.
38727         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38728         u32_conv_to_encoding): Expect a resultbuf argument and return the
38729         result directly as a pointer.
38730         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38731         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38732         freeing scaled_offsets if mem_iconveha failed.
38733         * lib/unicase/u-casexfrm.h (FUNC): Update.
38734         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38735         * lib/vasnprintf.c (VASNPRINTF): Update.
38736         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38737         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38738         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38739         * NEWS: Mention the change.
38740
38741 2009-04-26  Bruno Haible  <bruno@clisp.org>
38742
38743         Avoid test failures on AIX and OSF/1.
38744         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38745         malloc(0).
38746         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38747         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38748         Likewise.
38749         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38750         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38751         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38752         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38753         * doc/posix-functions/malloc.texi: Document the portability problem
38754         related to malloc(0).
38755
38756 2009-04-26  Bruno Haible  <bruno@clisp.org>
38757
38758         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38759         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38760         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38761
38762 2009-04-25  Bruno Haible  <bruno@clisp.org>
38763
38764         Avoid link error when creating a namespace clean library.
38765         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38766         as macro with arguments if already defined as an alias.
38767         * lib/signbitf.c (gl_signbitf): Don't undefine.
38768         * lib/signbitd.c (gl_signbitd): Don't undefine.
38769         * lib/signbitl.c (gl_signbitl): Don't undefine.
38770
38771 2009-04-25  Jim Meyering  <meyering@redhat.com>
38772
38773         vc-list-files: fix another quoting bug
38774         * build-aux/vc-list-files: Avoid sed backslash expansion
38775         of pathological directory names.
38776
38777 2009-04-25  Eric Blake  <ebb9@byu.net>
38778
38779         vc-list-files: fix shell quoting error
38780         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38781         timestamp.
38782
38783 2009-04-25  Jim Meyering  <meyering@redhat.com>
38784
38785         vc-list-files: restore lost functionality with subdir argument
38786         * build-aux/vc-list-files: When given a non-"." sub-directory
38787         argument, substitute the $dir/ prefix back onto each resulting name.
38788         Otherwise, coreutils' root_tests check would fail.
38789
38790 2009-04-24  Eric Blake  <ebb9@byu.net>
38791
38792         vc-list-files: ignore git symlinks
38793         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38794         than ls-files, to ignore git symlinks.
38795
38796         maint.mk: import improvements from m4
38797         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38798         (move_if_change): Delete unused macro.
38799         (news-date-check, vc-diff-check): Support VPATH builds.
38800         (announcement): Likewise.  Split --bootstrap-tools list...
38801         (boostrap-tools): ...into separate list, which can be overridden
38802         in cfg.mk.
38803         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38804         requiring dependency on useless-if-before-free module.
38805         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38806         Support VPATH builds.
38807
38808 2009-04-24  Jim Meyering  <meyering@redhat.com>
38809
38810         maint.mk: remove coreutils-specific rules and variables
38811         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38812         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38813         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38814
38815         maint.mk: remove obsolete rule
38816         * top/maint.mk (rel-check): Remove rule.
38817         (WGET, WGETFLAGS): Remove now-unused variables.
38818
38819 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38820
38821         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38822         consistency.
38823
38824         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38825         '$(PATH_SEPARATOR)' instead of ':'.
38826
38827 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38828
38829         * lib/getopt1.c (main): Use 'const' for static array.
38830
38831 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38832
38833         * top/maint.mk: Sync with coreutils.
38834         * NEWS: Explain incompatibilities.
38835
38836 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38837             Bruno Haible  <bruno@clisp.org>
38838
38839         Fix cross-compilation results.
38840         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38841         statement, as third argument of AC_TRY_RUN.
38842         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38843         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38844         Likewise.
38845         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38846         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38847         Likewise.
38848         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38849         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38850         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38851
38852 2009-04-20  Bruno Haible  <bruno@clisp.org>
38853
38854         Avoid test failure on mingw.
38855         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38856
38857 2009-04-20  Bruno Haible  <bruno@clisp.org>
38858
38859         Avoid compilation error on mingw.
38860         * modules/localename-tests (Depends-on): Add locale.
38861
38862 2009-04-19  Bruno Haible  <bruno@clisp.org>
38863
38864         Support for building a shared library on Windows platforms.
38865         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38866         (main): Test the presence of UNINORM_NFC here.
38867         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38868         (main): Test the presence of UNINORM_NFD here.
38869         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38870         (main): Test the presence of UNINORM_NFKC here.
38871         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38872         (main): Test the presence of UNINORM_NFKD here.
38873
38874 2009-04-19  Bruno Haible  <bruno@clisp.org>
38875
38876         Avoid a compiler warning.
38877         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38878         Change type of variable 'sequence'.
38879
38880 2009-04-19  Bruno Haible  <bruno@clisp.org>
38881
38882         * modules/configmake (Makefile.am): When the contents of configmake.h
38883         does not change, arrange to preserve its modification time.
38884
38885 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38886
38887         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38888         gettext domain.
38889
38890 2009-04-16  Jim Meyering  <meyering@redhat.com>
38891
38892         useless-if-before-free: improve conversion code
38893         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38894         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38895
38896 2009-04-14  Bruno Haible  <bruno@clisp.org>
38897
38898         * modules/fcntl (Depends-on): Add extensions.
38899         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38900
38901 2009-04-12  Ben Pfaff  <blp@gnu.org>
38902
38903         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38904         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38905
38906 2009-03-20  Ben Pfaff  <blp@gnu.org>
38907
38908         Make rename replace existing destinations on Windows.
38909         * m4/rename.m4: Add test for Mingw.
38910         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38911         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38912         * doc/posix-functions/rename.texi: Document.
38913
38914 2009-04-10  Bruno Haible  <bruno@clisp.org>
38915
38916         New include file "iconveh.h".
38917         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38918         * lib/striconveh.h: Include it.
38919         (enum iconv_ilseq_handler): Remove definition.
38920         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38921         striconveh.h.
38922         * lib/striconveha.c: Include striconveh.h.
38923         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38924         * modules/striconveh (Files): Add lib/iconveh.h.
38925         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38926         lib/striconveh.h.
38927
38928 2009-04-10  Bruno Haible  <bruno@clisp.org>
38929
38930         * lib/uniconv.h: Update comment.
38931
38932 2009-04-10  Bruno Haible  <bruno@clisp.org>
38933
38934         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38935         always.
38936         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38937         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38938         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38939         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38940         "unistring-notinline.h", so that the function gets defined always.
38941         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38942         * lib/unistr/u8-uctomb.c: Likewise.
38943         * lib/unistr/u16-mbtouc.c: Likewise.
38944         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38945         * lib/unistr/u16-uctomb.c: Likewise.
38946         * lib/unistr/u32-mbtouc.c: Likewise.
38947         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38948         * lib/unistr/u32-uctomb.c: Likewise.
38949
38950 2009-04-10  Bruno Haible  <bruno@clisp.org>
38951
38952         Mark 'utime' obsolete.
38953         * modules/utime (Status, Notice): New sections.
38954         Suggested by Jim Meyering.
38955
38956         Fix cross-compile guess for utime test.
38957         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38958         autoconf.
38959         * doc/posix-functions/utime.texi: Give more precisions.
38960         Reported by Jan <ipif@ymail.com>.
38961
38962 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38963
38964         filevercmp: correct today's change
38965         * lib/filevercmp.c: Also handle coreutils' test inputs.
38966         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38967
38968         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38969         for reporting it.
38970         * lib/filevercmp.c: Special handle for "", "." and "..".
38971         * tests/test-filevercmp.c: Enlarge the set suite.
38972
38973 2009-04-07  Jim Meyering  <meyering@redhat.com>
38974
38975         useless-if-before-free: show how to remove braced useless free, too
38976         * build-aux/useless-if-before-free: still only in a comment, though.
38977
38978 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38979
38980         maint.mk: import changes to syntax-check macros from coreutils
38981         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38982         Use them in the relevant macros.
38983
38984 2009-04-06  Bruno Haible  <bruno@clisp.org>
38985
38986         Fix unportable use of bit-fields.
38987         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38988         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38989         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38990
38991 2009-04-06  Bruno Haible  <bruno@clisp.org>
38992
38993         Avoid test failures on AIX and OSF/1.
38994         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38995         that malloc(0) = NULL.
38996         * tests/unicase/test-u8-tolower.c (check): Likewise.
38997         * tests/unicase/test-u8-totitle.c (check): Likewise.
38998         * tests/unicase/test-u8-toupper.c (check): Likewise.
38999         * tests/unicase/test-u16-casefold.c (check): Likewise.
39000         * tests/unicase/test-u16-tolower.c (check): Likewise.
39001         * tests/unicase/test-u16-totitle.c (check): Likewise.
39002         * tests/unicase/test-u16-toupper.c (check): Likewise.
39003         * tests/unicase/test-u32-casefold.c (check): Likewise.
39004         * tests/unicase/test-u32-tolower.c (check): Likewise.
39005         * tests/unicase/test-u32-totitle.c (check): Likewise.
39006         * tests/unicase/test-u32-toupper.c (check): Likewise.
39007         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39008         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39009         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39010         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39011         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39012         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39013         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39014         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39015         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39016         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39017         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39018         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39019
39020 2009-04-05  Bruno Haible  <bruno@clisp.org>
39021
39022         Work around an autoconf limitation.
39023         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39024         comment line if it would be longer than 3 KB.
39025
39026 2009-04-05  Bruno Haible  <bruno@clisp.org>
39027
39028         Avoid test failure with libiconv-1.13.
39029         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39030         of the expected test results.
39031
39032 2009-04-05  Bruno Haible  <bruno@clisp.org>
39033
39034         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39035         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39036         that it should be installed.
39037
39038 2009-04-05  Bruno Haible  <bruno@clisp.org>
39039
39040         * gnulib-tool: New option --copy-file.
39041         (func_usage): Document it.
39042         (func_dest_tmpfilename): Moved out of func_import.
39043         (func_add_file, func_update_file): New functions, extracted from
39044         func_import.
39045         (func_import): Update.
39046
39047 2009-04-05  Karl Berry  <karl@gnu.org>
39048
39049         * README: prominently mention gnulib-tool.
39050         Rearrange sections so getting the code is near the top.
39051
39052 2009-04-05  Bruno Haible  <bruno@clisp.org>
39053
39054         * lib/unicase.h: Mention u*_cmp2.
39055         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39056         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39057         * lib/unicase/ulc-casecmp.c: Likewise.
39058         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39059         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39060         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39061         unistr/u8-cmp.
39062         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39063         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39064         unistr/u16-cmp.
39065         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39066         unistr/u32-cmp.
39067
39068         * lib/uninorm.h: Mention u*_cmp2.
39069         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39070         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39071         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39072         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39073         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39074         unistr/u8-cmp.
39075         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39076         unistr/u16-cmp.
39077         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39078         unistr/u32-cmp.
39079
39080         New module 'unistr/u32-cmp2'.
39081         * lib/unistr/u32-cmp2.c: New file.
39082         * modules/unistr/u32-cmp2: New file.
39083
39084         New module 'unistr/u16-cmp2'.
39085         * lib/unistr/u16-cmp2.c: New file.
39086         * modules/unistr/u16-cmp2: New file.
39087
39088         New module 'unistr/u8-cmp2'.
39089         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39090         * lib/unistr/u8-cmp2.c: New file.
39091         * lib/unistr/u-cmp2.h: New file.
39092         * modules/unistr/u8-cmp2: New file.
39093
39094 2009-04-05  Bruno Haible  <bruno@clisp.org>
39095
39096         * lib/unictype.h (uc_property_is_valid): New macro.
39097         * tests/unictype/test-pr_byname.c (main): Use it.
39098
39099         * lib/unistr.h: Doc fixes.
39100         * lib/uniconv.h: Doc fixes.
39101         * lib/unictype.h: Doc fixes.
39102
39103 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39104
39105         Port coreutils 7.2 to Solaris 8.
39106
39107         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39108         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39109         for Solaris 8.  This is a bit of a hack, as it means it's the
39110         caller's responsibility to add -lnsl if needed, but most likely it
39111         won't be needed since only getaddrinfo uses this and getaddrinfo
39112         isn't needed on Solaris 8.
39113
39114         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39115         problem to Solaris 8 encountered with coreutils 7.2, which
39116         resulted in a message "fnmatch.c:292: warning: passing argument 4
39117         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39118         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39119
39120 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39121
39122         * m4/ld-version-script.m4: Add FIXME comment.
39123
39124 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39125
39126         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39127         SOVERSION variable.
39128
39129 2009-04-02  Bruno Haible  <bruno@clisp.org>
39130
39131         * Makefile (info, html, dvi, pdf): Combine the rules.
39132         Suggested by Jim Meyering.
39133
39134 2009-04-01  Bruno Haible  <bruno@clisp.org>
39135
39136         * Makefile (info, html, dvi, pdf): New targets.
39137         Reported by Reuben Thomas <rrt@sc3d.org>.
39138
39139 2009-04-01  Bruno Haible  <bruno@clisp.org>
39140
39141         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39142         can be put into PATH.
39143         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39144
39145 2009-04-01  Bruno Haible  <bruno@clisp.org>
39146
39147         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39148
39149 2009-04-01  Bruno Haible  <bruno@clisp.org>
39150
39151         Rename module 'visibility'.
39152         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39153         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39154         * doc/gnulib.texi: Update.
39155         * MODULES.html.sh (Misc): Update.
39156         * NEWS: Mention the change.
39157
39158 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39159
39160         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39161         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39162         Eric Blake <ebb9@byu.net> for review.
39163         * MODULES.html.sh: Add lib-msvc-compat.
39164         * doc/gnulib.texi: Link to new section.
39165         * m4/ld-output-def.m4: New file.
39166         * doc/ld-output-def.texi: New file.
39167
39168 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39169
39170         Rename ld-version-script to lib-symbol-versions.  Suggested by
39171         Bruno Haible <bruno@clisp.org>.
39172         * modules/ld-version-script: Renamed to lib-symbol-versions.
39173         * doc/ld-version-script.texi: Fix module name.
39174         * MODULES.html.sh: Add lib-symbol-versions.
39175
39176 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39177
39178         * modules/u64-tests: New file.
39179         * tests/test-u64.c: New file.
39180
39181 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39182
39183         * MODULES.html.sh: Mention u64.
39184         * modules/u64: New module.
39185         * modules/crypto/sha512: Depend on u64 module instead of providing
39186         u64.h.
39187
39188 2009-03-27  Eric Blake  <ebb9@byu.net>
39189
39190         test-strerror: make debugging EAI_SYSTEM easier
39191         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39192         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39193         failure was EAI_SYSTEM.
39194
39195 2009-03-25  Bruno Haible  <bruno@clisp.org>
39196
39197         Fix a problem with --enable-relocatable on Solaris 7.
39198         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39199         since 2008-02-24.
39200
39201 2009-03-25  Eric Blake  <ebb9@byu.net>
39202
39203         test-sockets: avoid gcc warning
39204         * tests/test-sockets.c (main): Silence compiler warning.
39205
39206 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39207
39208         New modules nproc, pthread, contributed by Glen Lenker.
39209
39210         * MODULES.html.sh: Add pthread, nproc.
39211         * lib/nproc.c: New file.
39212         * lib/nproc.h: New file.
39213         * lib/pthread.in.h: New file.
39214         * m4/pthread.m4: New file.
39215         * modules/nproc: New file.
39216         * modules/pthread: New file.
39217
39218 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39219
39220         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39221         New variable.
39222
39223 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39224
39225         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39226         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39227         * tests/test-filevercmp.c: Add tests for backup suffixes.
39228
39229 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39230
39231         * modules/stdlib (Depends-on): Add stdint, needed when defining
39232         struct random_data on, for example, HP-UX 10.20.  Reported by
39233         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39234
39235 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39236
39237         * lib/readline.c (readline): Call fflush on stdout after printing
39238         prompt.
39239
39240 2009-03-20  Bruno Haible  <bruno@clisp.org>
39241
39242         Remove dependency from 'close' module to -lws2_32 on native Windows.
39243         * lib/close-hook.h: New file.
39244         * lib/close-hook.c: New file.
39245         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39246         w32sock.h.
39247         (_gl_close_fd_maybe_socket): Remove function.
39248         (rpl_close): Invoke execute_all_close_hooks instead of
39249         _gl_close_fd_maybe_socket.
39250         * lib/sockets.c: Include close-hook.h, w32sock.h.
39251         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39252         (close_sockets_hook): New variable.
39253         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39254         (gl_sockets_cleanup): Unregister it.
39255         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39256         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39257         * modules/close-hook: New file.
39258         * modules/close (Files): Remove lib/w32sock.h.
39259         (Depends-on): Add close-hook.
39260         (Link): Remove section.
39261         * modules/sockets (Files): Add lib/w32sock.h.
39262         (Depends-on): Add close-hook.
39263         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39264         invocation.
39265         * NEWS: Mention that LIB_CLOSE is gone.
39266
39267 2009-03-23  Eric Blake  <ebb9@byu.net>
39268
39269         signal-tests: test previous patch
39270         * tests/test-signal.c: New file.
39271         * modules/signal-tests: Likewise.
39272
39273         signal.h: always support 'volatile sig_atomic_t'
39274         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39275         (gl_SIGNAL_H_DEFAULTS): Add a default.
39276         * modules/signal (Makefile.am): Substitute if needed.
39277         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39278         users can blindly add volatile.
39279         * doc/posix-headers/signal.texi (signal.h): Document it.
39280         Reported by Matthew Woehlke.
39281
39282 2009-03-23  Jim Meyering  <meyering@redhat.com>
39283
39284         pathmax: PATH_MAX: use pathconf only when available
39285         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39286         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39287         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39288         This avoids a link failure in a PSP cross-compilation environment
39289         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39290
39291         * lib/vasnprintf.c (divide): Fix typo in comment.
39292
39293 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39294
39295         * gnulib-tool (func_filter_filelist): Fix comment.
39296
39297 2009-03-20  Bruno Haible  <bruno@clisp.org>
39298
39299         Make sockets.h self-contained.
39300         * lib/sockets.c: Include sockets.h first.
39301         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39302
39303 2009-03-19  Eric Blake  <ebb9@byu.net>
39304
39305         doc: mention more functions added in cygwin 1.7.0
39306         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39307         addition.
39308         * doc/posix-functions/log2f.texi: Likewise.
39309
39310 2009-03-19  Jim Meyering  <meyering@redhat.com>
39311
39312         fsusage: avoid syntax error due to statement-before-declaration
39313         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39314         after all declarations.  Reported by Matthew Woehlke in
39315         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39316
39317 2009-03-18  Eric Blake  <ebb9@byu.net>
39318
39319         build-aux/compile: sync from automake
39320         * build-aux/compile: New file, from automake.
39321         * config/srclist.txt: Mention build-aux/compile.
39322
39323 2009-03-17  Bruno Haible  <bruno@clisp.org>
39324
39325         * lib/git-merge-changelog.c: Fix typo in comment.
39326         Reported by Reuben Thomas <rrt@sc3d.org>.
39327
39328 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39329
39330         * m4/regex.m4: update and improve help for
39331         --without-included-regex.
39332
39333 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39334
39335         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39336         failure on missing include files.
39337
39338 2009-03-17  Eric Blake  <ebb9@byu.net>
39339
39340         doc: mention more functions added in cygwin 1.7.0
39341         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39342         addition.
39343         * doc/posix-functions/fwscanf.texi: Likewise.
39344         * doc/posix-functions/swprintf.texi: Likewise.
39345         * doc/posix-functions/swscanf.texi: Likewise.
39346         * doc/posix-functions/vfwprintf.texi: Likewise.
39347         * doc/posix-functions/vfwscanf.texi: Likewise.
39348         * doc/posix-functions/vswprintf.texi: Likewise.
39349         * doc/posix-functions/vswscanf.texi: Likewise.
39350         * doc/posix-functions/vwprintf.texi: Likewise.
39351         * doc/posix-functions/vwscanf.texi: Likewise.
39352         * doc/posix-functions/wcscasecmp.texi: Likewise.
39353         * doc/posix-functions/wcsdup.texi: Likewise.
39354         * doc/posix-functions/wcsftime.texi: Likewise.
39355         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39356         * doc/posix-functions/wprintf.texi: Likewise.
39357         * doc/posix-functions/wscanf.texi: Likewise.
39358         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39359
39360 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39361
39362         maint.mk: really add $(AM_MAKEFLAGS)
39363         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39364         was inadvertently omitted in the last commit.
39365         Spotted by Bruno Haible.
39366
39367         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39368         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39369         $(AM_MAKEFLAGS)' rather than plain `make'.
39370
39371         gnulib-tool: execute $MAKE not make
39372         * gnulib-tool: Default $MAKE to 'make'.
39373         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39374         than make.  Initialize $MAKE in the do-autobuild script.
39375
39376         gnulib-tool: use $MAKE not make in generated files
39377         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39378         make, in generated files.  Initialize $MAKE in the do-autobuild
39379         script.
39380
39381         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39382
39383         GNUmakefile: disable parallelism only for multiple, recursive targets
39384         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39385         additions in the Makefile.
39386         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39387         by Automake.
39388         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39389         are listed on the command line and at least one of them is
39390         listed in $(ALL_RECURSIVE_TARGETS).
39391
39392 2009-03-14  Bruno Haible  <bruno@clisp.org>
39393
39394         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39395         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39396         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39397         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39398         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39399         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39400         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39401         unistr/u8-uctomb.
39402         * modules/unistr/u8-strchr (Depends-on): Likewise.
39403         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39404         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39405         unistr/u16-uctomb.
39406         * modules/unistr/u16-strchr (Depends-on): Likewise.
39407         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39408
39409 2009-03-12  Bruno Haible  <bruno@clisp.org>
39410
39411         Work around select() bug on Interix 3.5.
39412         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39413         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39414         * m4/select.m4: New file.
39415         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39416         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39417         * modules/select (Files): Add m4/select.m4.
39418         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39419         * modules/nanosleep (Depends-on): Add select.
39420         * modules/poll (Depends-on): Likewise.
39421         * doc/posix-functions/select.texi: Mention the Interix bug.
39422         Reported by Markus Duft <mduft@gentoo.org>.
39423
39424         * lib/select.c: Renamed from lib/winsock-select.c.
39425         * modules/select (Files): Add lib/select.c, remove
39426         lib/winsock-select.c.
39427         (configure.ac): Update.
39428
39429 2009-03-12  Jim Meyering  <meyering@redhat.com>
39430
39431         avoid gcc warnings about unused macro definitions
39432         * lib/readtokens.c (STREQ): Remove unused definition.
39433         * lib/xmalloc.c (SIZE_MAX): Likewise.
39434         * lib/openat-die.c (N_): Likewise.
39435         * lib/mountlist.c (SIZE_MAX): Remove definition.
39436         Instead, include <stdint.h>.
39437         * lib/readutmp.c: Likewise.
39438         * modules/readutmp (Depends-on): Add stdint.
39439         * modules/mountlist (Depends-on): Add stdint.
39440         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39441
39442 2009-03-10  Bruno Haible  <bruno@clisp.org>
39443
39444         Tests for module 'mbmemcasecoll'.
39445         * modules/mbmemcasecoll-tests: New file.
39446         * tests/test-mbmemcasecoll1.sh: New file.
39447         * tests/test-mbmemcasecoll2.sh: New file.
39448         * tests/test-mbmemcasecoll3.sh: New file.
39449         * tests/test-mbmemcasecoll.c: New file.
39450
39451         New module 'mbmemcasecoll'.
39452         * lib/mbmemcasecoll.h: New file.
39453         * lib/mbmemcasecoll.c: New file.
39454         * modules/mbmemcasecoll: New file.
39455
39456         * tests/test-mbmemcasecmp.h: New file, extracted from
39457         tests/test-mbmemcasecmp.c.
39458         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39459         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39460         (main): Update.
39461         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39462
39463 2009-03-09  Bruno Haible  <bruno@clisp.org>
39464
39465         Tests for module 'mbmemcasecmp'.
39466         * modules/mbmemcasecmp-tests: New file.
39467         * tests/test-mbmemcasecmp1.sh: New file.
39468         * tests/test-mbmemcasecmp2.sh: New file.
39469         * tests/test-mbmemcasecmp3.sh: New file.
39470         * tests/test-mbmemcasecmp.c: New file.
39471
39472         New module 'mbmemcasecmp'.
39473         * lib/mbmemcasecmp.h: New file.
39474         * lib/mbmemcasecmp.c: New file.
39475         * modules/mbmemcasecmp: New file.
39476
39477 2009-03-09  Bruno Haible  <bruno@clisp.org>
39478
39479         Tests for module 'unicase/ulc-casecoll'.
39480         * modules/unicase/ulc-casecoll-tests: New file.
39481         * tests/unicase/test-ulc-casecoll1.sh: New file.
39482         * tests/unicase/test-ulc-casecoll2.sh: New file.
39483         * tests/unicase/test-ulc-casecoll.c: New file.
39484
39485         New module 'unicase/ulc-casecoll'.
39486         * lib/unicase.h (ulc_casecoll): New declaration.
39487         * lib/unicase/ulc-casecoll.c: New file.
39488         * modules/unicase/ulc-casecoll: New file.
39489
39490         New module 'unicase/ulc-casexfrm'.
39491         * lib/unicase.h (ulc_casexfrm): New declaration.
39492         * lib/unicase/ulc-casexfrm.c: New file.
39493         * modules/unicase/ulc-casexfrm: New file.
39494
39495 2009-03-09  Bruno Haible  <bruno@clisp.org>
39496
39497         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39498         invocations.
39499
39500         * m4/mbscasecmp.m4: Remove file.
39501         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39502         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39503
39504         * m4/mbscasestr.m4: Remove file.
39505         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39506         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39507
39508         * m4/mbschr.m4: Remove file.
39509         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39510         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39511
39512         * m4/mbscspn.m4: Remove file.
39513         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39514         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39515
39516         * m4/mbslen.m4: Remove file.
39517         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39518         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39519
39520         * m4/mbsncasecmp.m4: Remove file.
39521         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39522         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39523
39524         * m4/mbsnlen.m4: Remove file.
39525         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39526         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39527
39528         * m4/mbspbrk.m4: Remove file.
39529         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39530         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39531
39532         * m4/mbspcasecmp.m4: Remove file.
39533         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39534         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39535
39536         * m4/mbsrchr.m4: Remove file.
39537         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39538         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39539
39540         * m4/mbssep.m4: Remove file.
39541         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39542         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39543
39544         * m4/mbsspn.m4: Remove file.
39545         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39546         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39547
39548         * m4/mbsstr.m4: Remove file.
39549         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39550         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39551
39552         * m4/mbstok_r.m4: Remove file.
39553         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39554         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39555
39556         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39557
39558         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39559         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39560
39561         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39562
39563 2009-03-08  Bruno Haible  <bruno@clisp.org>
39564
39565         Tests for module 'unicase/ulc-casecmp'.
39566         * modules/unicase/ulc-casecmp-tests: New file.
39567         * tests/unicase/test-ulc-casecmp1.sh: New file.
39568         * tests/unicase/test-ulc-casecmp2.sh: New file.
39569         * tests/unicase/test-ulc-casecmp.c: New file.
39570
39571         New module 'unicase/ulc-casecmp'.
39572         * lib/unicase.h (ulc_casecmp): New declaration.
39573         * lib/unicase/ulc-casecmp.c: New file.
39574         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39575         'const SRC_UNIT *'.
39576         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39577         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39578         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39579         * modules/unicase/ulc-casecmp: New file.
39580
39581         Tests for module 'unicase/u32-is-cased'.
39582         * modules/unicase/u32-is-cased-tests: New file.
39583         * tests/unicase/test-u32-is-cased.c: New file.
39584
39585         Tests for module 'unicase/u16-is-cased'.
39586         * modules/unicase/u16-is-cased-tests: New file.
39587         * tests/unicase/test-u16-is-cased.c: New file.
39588
39589         Tests for module 'unicase/u8-is-cased'.
39590         * modules/unicase/u8-is-cased-tests: New file.
39591         * tests/unicase/test-u8-is-cased.c: New file.
39592         * tests/unicase/test-is-cased.h: New file.
39593
39594         New module 'unicase/u32-is-cased'.
39595         * lib/unicase/u32-is-cased.c: New file.
39596         * modules/unicase/u32-is-cased: New file.
39597
39598         New module 'unicase/u16-is-cased'.
39599         * lib/unicase/u16-is-cased.c: New file.
39600         * modules/unicase/u16-is-cased: New file.
39601
39602         New module 'unicase/u8-is-cased'.
39603         * lib/unicase/u8-is-cased.c: New file.
39604         * lib/unicase/u-is-cased.h: New file.
39605         * modules/unicase/u8-is-cased: New file.
39606
39607         Tests for module 'unicase/u32-is-casefolded'.
39608         * modules/unicase/u32-is-casefolded-tests: New file.
39609         * tests/unicase/test-u32-is-casefolded.c: New file.
39610
39611         Tests for module 'unicase/u16-is-casefolded'.
39612         * modules/unicase/u16-is-casefolded-tests: New file.
39613         * tests/unicase/test-u16-is-casefolded.c: New file.
39614
39615         Tests for module 'unicase/u8-is-casefolded'.
39616         * modules/unicase/u8-is-casefolded-tests: New file.
39617         * tests/unicase/test-u8-is-casefolded.c: New file.
39618         * tests/unicase/test-is-casefolded.h: New file.
39619
39620         New module 'unicase/u32-is-casefolded'.
39621         * lib/unicase/u32-is-casefolded.c: New file.
39622         * modules/unicase/u32-is-casefolded: New file.
39623
39624         New module 'unicase/u16-is-casefolded'.
39625         * lib/unicase/u16-is-casefolded.c: New file.
39626         * modules/unicase/u16-is-casefolded: New file.
39627
39628         New module 'unicase/u8-is-casefolded'.
39629         * lib/unicase/u8-is-casefolded.c: New file.
39630         * modules/unicase/u8-is-casefolded: New file.
39631
39632         Tests for module 'unicase/u32-is-titlecase'.
39633         * modules/unicase/u32-is-titlecase-tests: New file.
39634         * tests/unicase/test-u32-is-titlecase.c: New file.
39635
39636         Tests for module 'unicase/u16-is-titlecase'.
39637         * modules/unicase/u16-is-titlecase-tests: New file.
39638         * tests/unicase/test-u16-is-titlecase.c: New file.
39639
39640         Tests for module 'unicase/u8-is-titlecase'.
39641         * modules/unicase/u8-is-titlecase-tests: New file.
39642         * tests/unicase/test-u8-is-titlecase.c: New file.
39643         * tests/unicase/test-is-titlecase.h: New file.
39644
39645         New module 'unicase/u32-is-titlecase'.
39646         * lib/unicase/u32-is-titlecase.c: New file.
39647         * modules/unicase/u32-is-titlecase: New file.
39648
39649         New module 'unicase/u16-is-titlecase'.
39650         * lib/unicase/u16-is-titlecase.c: New file.
39651         * modules/unicase/u16-is-titlecase: New file.
39652
39653         New module 'unicase/u8-is-titlecase'.
39654         * lib/unicase/u8-is-titlecase.c: New file.
39655         * modules/unicase/u8-is-titlecase: New file.
39656
39657         Tests for module 'unicase/u32-is-lowercase'.
39658         * modules/unicase/u32-is-lowercase-tests: New file.
39659         * tests/unicase/test-u32-is-lowercase.c: New file.
39660
39661         Tests for module 'unicase/u16-is-lowercase'.
39662         * modules/unicase/u16-is-lowercase-tests: New file.
39663         * tests/unicase/test-u16-is-lowercase.c: New file.
39664
39665         Tests for module 'unicase/u8-is-lowercase'.
39666         * modules/unicase/u8-is-lowercase-tests: New file.
39667         * tests/unicase/test-u8-is-lowercase.c: New file.
39668         * tests/unicase/test-is-lowercase.h: New file.
39669
39670         New module 'unicase/u32-is-lowercase'.
39671         * lib/unicase/u32-is-lowercase.c: New file.
39672         * modules/unicase/u32-is-lowercase: New file.
39673
39674         New module 'unicase/u16-is-lowercase'.
39675         * lib/unicase/u16-is-lowercase.c: New file.
39676         * modules/unicase/u16-is-lowercase: New file.
39677
39678         New module 'unicase/u8-is-lowercase'.
39679         * lib/unicase/u8-is-lowercase.c: New file.
39680         * modules/unicase/u8-is-lowercase: New file.
39681
39682         Tests for module 'unicase/u32-is-uppercase'.
39683         * modules/unicase/u32-is-uppercase-tests: New file.
39684         * tests/unicase/test-u32-is-uppercase.c: New file.
39685
39686         Tests for module 'unicase/u16-is-uppercase'.
39687         * modules/unicase/u16-is-uppercase-tests: New file.
39688         * tests/unicase/test-u16-is-uppercase.c: New file.
39689
39690         Tests for module 'unicase/u8-is-uppercase'.
39691         * modules/unicase/u8-is-uppercase-tests: New file.
39692         * tests/unicase/test-u8-is-uppercase.c: New file.
39693         * tests/unicase/test-is-uppercase.h: New file.
39694
39695         New module 'unicase/u32-is-uppercase'.
39696         * lib/unicase/u32-is-uppercase.c: New file.
39697         * modules/unicase/u32-is-uppercase: New file.
39698
39699         New module 'unicase/u16-is-uppercase'.
39700         * lib/unicase/u16-is-uppercase.c: New file.
39701         * modules/unicase/u16-is-uppercase: New file.
39702
39703         New module 'unicase/u8-is-uppercase'.
39704         * lib/unicase/u8-is-uppercase.c: New file.
39705         * modules/unicase/u8-is-uppercase: New file.
39706
39707         New module 'unicase/u32-is-invariant'.
39708         * lib/unicase/u32-is-invariant.c: New file.
39709         * modules/unicase/u32-is-invariant: New file.
39710
39711         New module 'unicase/u16-is-invariant'.
39712         * lib/unicase/u16-is-invariant.c: New file.
39713         * modules/unicase/u16-is-invariant: New file.
39714
39715         New module 'unicase/u8-is-invariant'.
39716         * lib/unicase/u8-is-invariant.c: New file.
39717         * lib/unicase/invariant.h: New file.
39718         * lib/unicase/u-is-invariant.h: New file.
39719         * modules/unicase/u8-is-invariant: New file.
39720
39721         Tests for module 'unicase/u32-casecoll'.
39722         * modules/unicase/u32-casecoll-tests: New file.
39723         * tests/unicase/test-u32-casecoll.c: New file.
39724
39725         Tests for module 'unicase/u16-casecoll'.
39726         * modules/unicase/u16-casecoll-tests: New file.
39727         * tests/unicase/test-u16-casecoll.c: New file.
39728
39729         Tests for module 'unicase/u8-casecoll'.
39730         * modules/unicase/u8-casecoll-tests: New file.
39731         * tests/unicase/test-u8-casecoll.c: New file.
39732
39733         New module 'unicase/u32-casecoll'.
39734         * lib/unicase/u32-casecoll.c: New file.
39735         * modules/unicase/u32-casecoll: New file.
39736
39737         New module 'unicase/u16-casecoll'.
39738         * lib/unicase/u16-casecoll.c: New file.
39739         * modules/unicase/u16-casecoll: New file.
39740
39741         New module 'unicase/u8-casecoll'.
39742         * lib/unicase/u8-casecoll.c: New file.
39743         * lib/unicase/u-casecoll.h: New file.
39744         * modules/unicase/u8-casecoll: New file.
39745
39746         New module 'unicase/u32-casexfrm'.
39747         * lib/unicase/u32-casexfrm.c: New file.
39748         * modules/unicase/u32-casexfrm: New file.
39749
39750         New module 'unicase/u16-casexfrm'.
39751         * lib/unicase/u16-casexfrm.c: New file.
39752         * modules/unicase/u16-casexfrm: New file.
39753
39754         New module 'unicase/u8-casexfrm'.
39755         * lib/unicase/u8-casexfrm.c: New file.
39756         * lib/unicase/u-casexfrm.h: New file.
39757         * modules/unicase/u8-casexfrm: New file.
39758
39759         Tests for module 'unicase/u32-casecmp'.
39760         * modules/unicase/u32-casecmp-tests: New file.
39761         * tests/unicase/test-u32-casecmp.c: New file.
39762
39763         Tests for module 'unicase/u16-casecmp'.
39764         * modules/unicase/u16-casecmp-tests: New file.
39765         * tests/unicase/test-u16-casecmp.c: New file.
39766
39767         Tests for module 'unicase/u8-casecmp'.
39768         * modules/unicase/u8-casecmp-tests: New file.
39769         * tests/unicase/test-u8-casecmp.c: New file.
39770         * tests/unicase/test-casecmp.h: New file.
39771
39772         New module 'unicase/u32-casecmp'.
39773         * lib/unicase/u32-casecmp.c: New file.
39774         * modules/unicase/u32-casecmp: New file.
39775
39776         New module 'unicase/u16-casecmp'.
39777         * lib/unicase/u16-casecmp.c: New file.
39778         * modules/unicase/u16-casecmp: New file.
39779
39780         New module 'unicase/u8-casecmp'.
39781         * lib/unicase/u8-casecmp.c: New file.
39782         * lib/unicase/u-casecmp.h: New file.
39783         * modules/unicase/u8-casecmp: New file.
39784
39785         Tests for module 'unicase/u32-casefold'.
39786         * modules/unicase/u32-casefold-tests: New file.
39787         * tests/unicase/test-u32-casefold.c: New file.
39788
39789         Tests for module 'unicase/u16-casefold'.
39790         * modules/unicase/u16-casefold-tests: New file.
39791         * tests/unicase/test-u16-casefold.c: New file.
39792
39793         Tests for module 'unicase/u8-casefold'.
39794         * modules/unicase/u8-casefold-tests: New file.
39795         * tests/unicase/test-u8-casefold.c: New file.
39796
39797         New module 'unicase/u32-casefold'.
39798         * lib/unicase/u32-casefold.c: New file.
39799         * modules/unicase/u32-casefold: New file.
39800
39801         New module 'unicase/u16-casefold'.
39802         * lib/unicase/u16-casefold.c: New file.
39803         * modules/unicase/u16-casefold: New file.
39804
39805         New module 'unicase/u8-casefold'.
39806         * lib/unicase/u8-casefold.c: New file.
39807         * lib/unicase/u-casefold.h: New file.
39808         * modules/unicase/u8-casefold: New file.
39809
39810         New module 'unicase/tocasefold'.
39811         * lib/unicase/casefold.h: New file.
39812         * lib/unicase/tocasefold.c: New file.
39813         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39814         * modules/unicase/tocasefold: New file.
39815
39816         Tests for module 'unicase/u32-totitle'.
39817         * modules/unicase/u32-totitle-tests: New file.
39818         * tests/unicase/test-u32-totitle.c: New file.
39819
39820         Tests for module 'unicase/u16-totitle'.
39821         * modules/unicase/u16-totitle-tests: New file.
39822         * tests/unicase/test-u16-totitle.c: New file.
39823
39824         Tests for module 'unicase/u8-totitle'.
39825         * modules/unicase/u8-totitle-tests: New file.
39826         * tests/unicase/test-u8-totitle.c: New file.
39827
39828         New module 'unicase/u32-totitle'.
39829         * lib/unicase/u32-totitle.c: New file.
39830         * modules/unicase/u32-totitle: New file.
39831
39832         New module 'unicase/u16-totitle'.
39833         * lib/unicase/u16-totitle.c: New file.
39834         * modules/unicase/u16-totitle: New file.
39835
39836         New module 'unicase/u8-totitle'.
39837         * lib/unicase/u8-totitle.c: New file.
39838         * lib/unicase/u-totitle.h: New file.
39839         * modules/unicase/u8-totitle: New file.
39840
39841         Tests for module 'unicase/u32-tolower'.
39842         * modules/unicase/u32-tolower-tests: New file.
39843         * tests/unicase/test-u32-tolower.c: New file.
39844
39845         Tests for module 'unicase/u16-tolower'.
39846         * modules/unicase/u16-tolower-tests: New file.
39847         * tests/unicase/test-u16-tolower.c: New file.
39848
39849         Tests for module 'unicase/u8-tolower'.
39850         * modules/unicase/u8-tolower-tests: New file.
39851         * tests/unicase/test-u8-tolower.c: New file.
39852
39853         New module 'unicase/u32-tolower'.
39854         * lib/unicase/u32-tolower.c: New file.
39855         * modules/unicase/u32-tolower: New file.
39856
39857         New module 'unicase/u16-tolower'.
39858         * lib/unicase/u16-tolower.c: New file.
39859         * modules/unicase/u16-tolower: New file.
39860
39861         New module 'unicase/u8-tolower'.
39862         * lib/unicase/u8-tolower.c: New file.
39863         * modules/unicase/u8-tolower: New file.
39864
39865         Tests for module 'unicase/u32-toupper'.
39866         * modules/unicase/u32-toupper-tests: New file.
39867         * tests/unicase/test-u32-toupper.c: New file.
39868
39869         Tests for module 'unicase/u16-toupper'.
39870         * modules/unicase/u16-toupper-tests: New file.
39871         * tests/unicase/test-u16-toupper.c: New file.
39872
39873         Tests for module 'unicase/u8-toupper'.
39874         * modules/unicase/u8-toupper-tests: New file.
39875         * tests/unicase/test-u8-toupper.c: New file.
39876
39877         New module 'unicase/u32-toupper'.
39878         * lib/unicase/u32-toupper.c: New file.
39879         * modules/unicase/u32-toupper: New file.
39880
39881         New module 'unicase/u16-toupper'.
39882         * lib/unicase/u16-toupper.c: New file.
39883         * modules/unicase/u16-toupper: New file.
39884
39885         New module 'unicase/u8-toupper'.
39886         * lib/unicase/u8-toupper.c: New file.
39887         * modules/unicase/u8-toupper: New file.
39888
39889         New module 'unicase/u32-casemap'.
39890         * lib/unicase/u32-casemap.c: New file.
39891         * modules/unicase/u32-casemap: New file.
39892
39893         New module 'unicase/u16-casemap'.
39894         * lib/unicase/u16-casemap.c: New file.
39895         * modules/unicase/u16-casemap: New file.
39896
39897         New module 'unicase/u8-casemap'.
39898         * lib/unicase/unicasemap.h: New file.
39899         * lib/unicase/u8-casemap.c: New file.
39900         * lib/unicase/u-casemap.h: New file.
39901         * modules/unicase/u8-casemap: New file.
39902
39903         New module 'unicase/special-casing'.
39904         * lib/unicase/special-casing.h: New file.
39905         * lib/unicase/special-casing.c: New file.
39906         * lib/unicase/special-casing-table.gperf: New file, generated by
39907         gen-uni-tables.c.
39908         * modules/unicase/special-casing: New file.
39909
39910         Tests for module 'unicase/locale-language'.
39911         * modules/unicase/locale-language-tests: New file.
39912         * tests/unicase/test-locale-language.sh: New file.
39913         * tests/unicase/test-locale-language.c: New file.
39914
39915         New module 'unicase/locale-language'.
39916         * lib/unicase/locale-language.c: New file.
39917         * lib/unicase/locale-languages.gperf: New file.
39918         * modules/unicase/locale-language: New file.
39919
39920         Generate more tables for case conversion and case folding.
39921         * lib/gen-uni-tables.c (SCC_*): New enum items.
39922         (struct special_casing_rule): New type.
39923         (casing_rules, num_casing_rules, allocated_casing_rules): New
39924         variables.
39925         (add_casing_rule, fill_casing_rules): New functions.
39926         (struct casefold_rule): New type.
39927         (casefolding_rules, num_casefolding_rules,
39928         allocated_casefolding_rules): New variables.
39929         (fill_casefolding_rules): New function.
39930         (unicode_casefold): New variable.
39931         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39932         sort_casing_rules, output_casing_rules): New functions.
39933         (main): Accept to more arguments: SpecialCasing.txt and
39934         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39935         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39936         Output mapping for casefolding.
39937
39938         * lib/unicase.h: Include stdbool.h, uninorm.h.
39939         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39940         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39941         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39942         arguments.
39943         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39944         resultp arguments.
39945         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39946         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39947         resultp arguments.
39948         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39949         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39950         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39951         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39952         declarations.
39953         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39954
39955 2009-03-08  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39958         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39959         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39960         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39961
39962 2009-03-07  Bruno Haible  <bruno@clisp.org>
39963
39964         Adjust u*_normcmp, u*_normcoll API.
39965         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39966         u16_normcoll, u32_normcoll): Change failure conventions.
39967         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39968         errno and return -1.
39969         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39970
39971 2009-03-07  Bruno Haible  <bruno@clisp.org>
39972
39973         Tests for module 'uninorm/u32-normcoll'.
39974         * modules/uninorm/u32-normcoll-tests: New file.
39975         * tests/uninorm/test-u32-normcoll.c: New file.
39976
39977         Tests for module 'uninorm/u16-normcoll'.
39978         * modules/uninorm/u16-normcoll-tests: New file.
39979         * tests/uninorm/test-u16-normcoll.c: New file.
39980
39981         Tests for module 'uninorm/u8-normcoll'.
39982         * modules/uninorm/u8-normcoll-tests: New file.
39983         * tests/uninorm/test-u8-normcoll.c: New file.
39984
39985 2009-03-07  Bruno Haible  <bruno@clisp.org>
39986
39987         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39988         tests/uninorm/test-u32-normcmp.c.
39989         * tests/uninorm/test-u32-normcmp.c: Include it.
39990         (test_nonascii): New function, extracted from main. Add some more
39991         tests.
39992         (main): Invoke test_ascii and test_nonascii.
39993         * modules/uninorm/u32-normcmp-tests (Files): Add
39994         tests/uninorm/test-u32-normcmp.h.
39995         (Depends-on): Remove uninorm/u32-normcmp.
39996
39997         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39998         tests/uninorm/test-u16-normcmp.c.
39999         * tests/uninorm/test-u16-normcmp.c: Include it.
40000         (test_nonascii): New function, extracted from main. Add some more
40001         tests.
40002         (main): Invoke test_ascii and test_nonascii.
40003         * modules/uninorm/u16-normcmp-tests (Files): Add
40004         tests/uninorm/test-u16-normcmp.h.
40005         (Depends-on): Remove uninorm/u16-normcmp.
40006
40007         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40008         tests/uninorm/test-u8-normcmp.c.
40009         * tests/uninorm/test-u8-normcmp.c: Include it.
40010         (test_nonascii): New function, extracted from main. Add some more
40011         tests.
40012         (main): Invoke test_ascii and test_nonascii.
40013         * modules/uninorm/u8-normcmp-tests (Files): Add
40014         tests/uninorm/test-u8-normcmp.h.
40015         (Depends-on): Remove uninorm/u8-normcmp.
40016
40017 2009-03-07  Bruno Haible  <bruno@clisp.org>
40018
40019         New module 'uninorm/u32-normcoll'.
40020         * lib/uninorm/u32-normcoll.c: New file.
40021         * modules/uninorm/u32-normcoll: New file.
40022
40023         New module 'uninorm/u16-normcoll'.
40024         * lib/uninorm/u16-normcoll.c: New file.
40025         * modules/uninorm/u16-normcoll: New file.
40026
40027         New module 'uninorm/u8-normcoll'.
40028         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40029         declarations.
40030         * lib/uninorm/u8-normcoll.c: New file.
40031         * lib/uninorm/u-normcoll.h: New file.
40032         * modules/uninorm/u8-normcoll: New file.
40033
40034         New module 'uninorm/u32-normxfrm'.
40035         * lib/uninorm/u32-normxfrm.c: New file.
40036         * modules/uninorm/u32-normxfrm: New file.
40037
40038         New module 'uninorm/u16-normxfrm'.
40039         * lib/uninorm/u16-normxfrm.c: New file.
40040         * modules/uninorm/u16-normxfrm: New file.
40041
40042         New module 'uninorm/u8-normxfrm'.
40043         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40044         declarations.
40045         * lib/uninorm/u8-normxfrm.c: New file.
40046         * lib/uninorm/u-normxfrm.h: New file.
40047         * modules/uninorm/u8-normxfrm: New file.
40048
40049 2009-03-07  Bruno Haible  <bruno@clisp.org>
40050
40051         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40052         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40053         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40054
40055 2009-03-07  Bruno Haible  <bruno@clisp.org>
40056
40057         New module 'memxfrm'.
40058         * lib/memxfrm.h: New file.
40059         * lib/memxfrm.c: New file.
40060         * modules/memxfrm: New file.
40061
40062 2009-03-07  Bruno Haible  <bruno@clisp.org>
40063
40064         New module 'memcmp2'.
40065         * lib/memcmp2.h: New file.
40066         * lib/memcmp2.c: New file.
40067         * modules/memcmp2: New file.
40068
40069 2009-03-07  Bruno Haible  <bruno@clisp.org>
40070
40071         Tests for module 'uninorm/decomposing-form'.
40072         * modules/uninorm/decomposing-form-tests: New file.
40073         * tests/uninorm/test-decomposing-form.c: New file.
40074
40075         New module 'uninorm/decomposing-form'.
40076         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40077         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40078         Add 'decomposing_variant' field.
40079         * lib/uninorm/decomposing-form.c: New file.
40080         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40081         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40082         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40083         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40084         * modules/uninorm/decomposing-form: New file.
40085         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40086         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40087
40088 2009-03-07  Bruno Haible  <bruno@clisp.org>
40089
40090         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40091         strings.
40092
40093 2009-03-06  Bruno Haible  <bruno@clisp.org>
40094
40095         Tests for module 'uninorm/u32-normcmp'.
40096         * tests/uninorm/test-u32-normcmp.c: New file.
40097         * modules/uninorm/u32-normcmp-tests: New file.
40098
40099         Tests for module 'uninorm/u16-normcmp'.
40100         * tests/uninorm/test-u16-normcmp.c: New file.
40101         * modules/uninorm/u16-normcmp-tests: New file.
40102
40103         Tests for module 'uninorm/u8-normcmp'.
40104         * tests/uninorm/test-u8-normcmp.c: New file.
40105         * modules/uninorm/u8-normcmp-tests: New file.
40106
40107         New module 'uninorm/u32-normcmp'.
40108         * lib/uninorm/u32-normcmp.c: New file.
40109         * modules/uninorm/u32-normcmp: New file.
40110
40111         New module 'uninorm/u16-normcmp'.
40112         * lib/uninorm/u16-normcmp.c: New file.
40113         * modules/uninorm/u16-normcmp: New file.
40114
40115         New module 'uninorm/u8-normcmp'.
40116         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40117         declarations.
40118         * lib/uninorm/u8-normcmp.c: New file.
40119         * lib/uninorm/u-normcmp.h: New file.
40120         * modules/uninorm/u8-normcmp: New file.
40121
40122 2009-03-06  Bruno Haible  <bruno@clisp.org>
40123
40124         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40125         Reported by Eric Blake.
40126
40127 2009-03-06  Eric Blake  <ebb9@byu.net>
40128             Bruno Haible  <bruno@clisp.org>
40129
40130         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40131         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40132         condition.
40133         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40134         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40135         condition.
40136         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40137
40138 2009-03-06  Eric Blake  <ebb9@byu.net>
40139
40140         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40141         to avoid compiler warnings.
40142         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40143
40144 2009-03-05  Bruno Haible  <bruno@clisp.org>
40145
40146         * tests/test-ftell.c (main): Disable test beyond end of file on
40147         FreeMiNT.
40148         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40149
40150 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40151
40152         * lib/filevercmp.c: Move hidden files up in ordering.
40153         * tests/test-filevercmp.c: Add tests for hidden files.
40154
40155 2009-03-04  Bruno Haible  <bruno@clisp.org>
40156
40157         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40158         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40159         AM_CFLAGS.
40160         Reported by Simon Josefsson.
40161
40162 2009-03-03  Bruno Haible  <bruno@clisp.org>
40163
40164         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40165         Reported by Simon Josefsson.
40166
40167         * doc/ld-version-script.texi: Update node reference.
40168
40169 2009-03-03  Bruno Haible  <bruno@clisp.org>
40170
40171         * modules/visibility (License): Change to 'unlimited'.
40172         Suggested by Simon Josefsson.
40173
40174 2009-03-03  Jim Meyering  <meyering@redhat.com>
40175
40176         unlinkdir: cannot_unlink_dir may modify process state
40177         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40178         it's neither thread-safe nor appropriate for use in a library.
40179
40180 2009-03-03  Eric Blake  <ebb9@byu.net>
40181
40182         test-closein: silence test under Darwin
40183         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40184         care if it dies from EPIPE or EBADF.
40185
40186 2009-03-03  Bruno Haible  <bruno@clisp.org>
40187
40188         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40189         earlier.
40190         * doc/visibility.texi: Fix @node and @section.
40191
40192 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40193
40194         * doc/gnulib.texi: Link to sections for ld version script and
40195         visibility.
40196         * doc/visibility.texi: Add @node and @section.
40197         * modules/ld-version-script: New module.
40198         * m4/ld-version-script.m4: New file.
40199         * doc/ld-version-script.texi: New file.
40200
40201 2009-03-02  David Lutterkort  <lutter@redhat.com>
40202
40203         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40204         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40205
40206 2009-03-02  Bruno Haible  <bruno@clisp.org>
40207
40208         * doc/visibility.texi: Mention libtool's -export-symbols option.
40209
40210 2009-03-02  Jim Meyering  <meyering@redhat.com>
40211
40212         announce-gen: new option: --no-print-checksums
40213         * build-aux/announce-gen (usage): Describe it.
40214         (print_checksums): Print a newline here, not in the [*] footnote.
40215         (main): Honor it.
40216
40217 2009-03-01  Bruno Haible  <bruno@clisp.org>
40218
40219         Use socklen_t in the native Windows replacements prototypes.
40220         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40221         instead of 'int'.
40222         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40223         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40224         * modules/getsockopt (Depends-on): Add socklen.
40225         * modules/setsockopt (Depends-on): Add socklen.
40226
40227 2009-03-01  Bruno Haible  <bruno@clisp.org>
40228
40229         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40230         least 4.2.
40231
40232 2009-03-01  Eric Blake  <ebb9@byu.net>
40233             Bruno Haible  <bruno@clisp.org>
40234
40235         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40236         error messages.
40237         * lib/wait-process.c (wait_subprocess): Omit error message about
40238         deadly signal sent to the child of termsigp != NULL.
40239
40240 2009-03-01  Eric Blake  <ebb9@byu.net>
40241
40242         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40243
40244 2009-03-01  Bruno Haible  <bruno@clisp.org>
40245
40246         Avoid a gcc warning.
40247         * tests/test-sched.c (b): Make global.
40248         Reported by Eric Blake.
40249
40250 2009-01-19  Martin Lambers  <marlam@marlam.de>
40251
40252         Provide POSIX semantics for socket timeout options on W32.
40253         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40254         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40255         * modules/setsockopt: Depend on sys_time module for struct timeval.
40256         * modules/getsockopt: Depend on sys_time module for struct timeval.
40257
40258 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40259
40260         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40261         __USE_GNU, for consistency with netdb.in.h.
40262         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40263
40264 2009-03-01  Bruno Haible  <bruno@clisp.org>
40265
40266         More support for FreeMiNT.
40267         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40268         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40269
40270 2009-03-01  Bruno Haible  <bruno@clisp.org>
40271
40272         More support for FreeMiNT.
40273         * lib/fpurge.c (fpurge): Correct last commit.
40274         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40275
40276 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40277
40278         Fix unportable awk script in vc-list-files.
40279         * build-aux/vc-list-files: In the replacement awk script, use
40280         substr with a second argument of 1, not zero.
40281         Report by Simon Josefsson.
40282
40283 2009-02-28  Bruno Haible  <bruno@clisp.org>
40284
40285         More support for FreeMiNT.
40286         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40287         to FreeMiNT today.
40288         * lib/fwriting.c (fwriting): Likewise.
40289         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40290
40291 2009-02-28  Bruno Haible  <bruno@clisp.org>
40292
40293         * tests/test-freadseek.c (main): Disable test beyond end of file on
40294         FreeMiNT.
40295         * tests/test-ftello.c (main): Likewise.
40296         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40297
40298 2009-02-28  Bruno Haible  <bruno@clisp.org>
40299
40300         Add tentative support for FreeMiNT.
40301         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40302         * lib/fpurge.c (fpurge): Likewise.
40303         * lib/freadable.c (freadable): Likewise.
40304         * lib/freading.c (freading): Likewise.
40305         * lib/freadptr.c (freadptr): Likewise.
40306         * lib/freadseek.c (freadptrinc): Likewise.
40307         * lib/fseeko.c (rpl_fseeko): Likewise.
40308         * lib/fseterr.c (fseterr): Likewise.
40309         * lib/fwritable.c (fwritable): Likewise.
40310         * lib/fwriting.c (fwriting): Likewise.
40311         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40312         Hourihane.
40313         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40314
40315 2009-02-28  Bruno Haible  <bruno@clisp.org>
40316
40317         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40318         SIGCHLD.
40319         Reported by Jim Meyering.
40320
40321 2009-02-28  Bruno Haible  <bruno@clisp.org>
40322
40323         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40324         Mention the results of these tests on various platforms.
40325         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40326         order.
40327         * doc/posix-functions/printf.texi: Likewise.
40328         * doc/posix-functions/snprintf.texi: Likewise.
40329         * doc/posix-functions/sprintf.texi: Likewise.
40330         * doc/posix-functions/vfprintf.texi: Likewise.
40331         * doc/posix-functions/vprintf.texi: Likewise.
40332         * doc/posix-functions/vsnprintf.texi: Likewise.
40333         * doc/posix-functions/vsprintf.texi: Likewise.
40334         * doc/glibc-functions/obstack_printf.texi: Likewise.
40335         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40336
40337 2009-02-28  Bruno Haible  <bruno@clisp.org>
40338
40339         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40340         Reported by Loïc Minier <lool@dooz.org>.
40341
40342 2009-02-27  Bruno Haible  <bruno@clisp.org>
40343
40344         * gnulib-tool (func_import): Make the sed expression used to create the
40345         sed script for updating the .gitignore file POSIX compliant.
40346         Reported by Eric Blake.
40347
40348 2009-02-27  Bruno Haible  <bruno@clisp.org>
40349
40350         * gnulib-tool (sed): Don't alias as "sed --posix".
40351         Reported by Eric Blake.
40352
40353 2009-02-27  Bruno Haible  <bruno@clisp.org>
40354
40355         Avoid test link errors.
40356         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40357         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40358         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40359         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40361
40362 2009-02-27  Bruno Haible  <bruno@clisp.org>
40363
40364         Avoid spurious "(cached)" in configure output.
40365         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40366         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40367         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40368         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40369         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40370         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40371         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40372         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40373         Reported by Eric Blake.
40374
40375 2009-02-27  Eric Blake  <ebb9@byu.net>
40376
40377         printf: fix regression in previous patch
40378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40379
40380 2009-02-27  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40383         value.
40384         * lib/stdint.in.h: Likewise.
40385         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40386
40387 2009-02-27  Eric Blake  <ebb9@byu.net>
40388
40389         doc: mention more functions added in cygwin 1.7.0
40390         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40391         addition.
40392         * doc/posix-functions/open_wmemstream.texi: Likewise.
40393         * doc/posix-functions/wcsnlen.texi: Likewise.
40394         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40395         * doc/posix-functions/wcstod.texi: Likewise.
40396         * doc/posix-functions/wcstof.texi: Likewise.
40397         * doc/posix-functions/wcstoimax.texi: Likewise.
40398         * doc/posix-functions/wcstok.texi: Likewise.
40399         * doc/posix-functions/wcstoumax.texi: Likewise.
40400
40401         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40402         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40403         * doc/posix-functions/fprintf.texi: Update.
40404         * doc/posix-functions/printf.texi: Update.
40405         * doc/posix-functions/snprintf.texi: Update.
40406         * doc/posix-functions/sprintf.texi: Update.
40407         * doc/posix-functions/vfprintf.texi: Update.
40408         * doc/posix-functions/vprintf.texi: Update.
40409         * doc/posix-functions/vsnprintf.texi: Update.
40410         * doc/posix-functions/vsprintf.texi: Update.
40411         * doc/glibc-functions/obstack_printf.texi: Update.
40412         * doc/glibc-functions/obstack_vprintf.texi: Update.
40413
40414 2009-02-26  Eric Blake  <ebb9@byu.net>
40415
40416         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40417         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40418         compilation bug by using runtime conversion.
40419         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40420         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40421         * modules/ceill-tests (Files): Use nan.h.
40422         * modules/floorl-tests (Files): Likewise.
40423         * modules/frexpl-tests (Files): Likewise.
40424         * modules/isnanl-tests (Files): Likewise.
40425         * modules/ldexpl-tests (Files): Likewise.
40426         * modules/roundl-tests (Files): Likewise.
40427         * modules/truncl-tests (Files): Likewise.
40428         * tests/test-ceill.c (main): Use a working NaN.
40429         * tests/test-floorl.c (main): Likewise.
40430         * tests/test-frexpl.c (main): Likewise.
40431         * tests/test-isnan.c (test_long_double): Likewise.
40432         * tests/test-isnanl.h (main): Likewise.
40433         * tests/test-ldexpl.h (main): Likewise.
40434         * tests/test-roundl.h (main): Likewise.
40435         * tests/test-truncl.h (main): Likewise.
40436         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40437
40438 2009-02-26  Eric Blake  <ebb9@byu.net>
40439             Bruno Haible  <bruno@clisp.org>
40440
40441         Work around a *printf bug with %ls on Solaris.
40442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40443         precision is specified, sprintf stops converting the wide string
40444         argument when the number of bytes that have been produced by this
40445         conversion equals or exceeds the precision.
40446         * doc/posix-functions/fprintf.texi: Update.
40447         * doc/posix-functions/printf.texi: Update.
40448         * doc/posix-functions/snprintf.texi: Update.
40449         * doc/posix-functions/sprintf.texi: Update.
40450         * doc/posix-functions/vfprintf.texi: Update.
40451         * doc/posix-functions/vprintf.texi: Update.
40452         * doc/posix-functions/vsnprintf.texi: Update.
40453         * doc/posix-functions/vsprintf.texi: Update.
40454         * doc/glibc-functions/obstack_printf.texi: Update.
40455         * doc/glibc-functions/obstack_vprintf.texi: Update.
40456
40457 2009-02-26  Eric Blake  <ebb9@byu.net>
40458
40459         stdlib: favor compiler check of random.h
40460         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40461         to avoid an ObjC random.h installed by Swarm.
40462
40463 2009-02-26  Bruno Haible  <bruno@clisp.org>
40464
40465         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40466         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40467         Reported by Gary V. Vaughan <gary@gnu.org>.
40468
40469 2009-02-26  Bruno Haible  <bruno@clisp.org>
40470
40471         Fix *printf behaviour regarding the %ls directive.
40472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40473         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40474         NEED_PRINTF_DIRECTIVE_LS.
40475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40476         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40477         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40478         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40479         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40480         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40481         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40483         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40484         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40486         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40490         * doc/posix-functions/fprintf.texi: Update.
40491         * doc/posix-functions/printf.texi: Update.
40492         * doc/posix-functions/snprintf.texi: Update.
40493         * doc/posix-functions/sprintf.texi: Update.
40494         * doc/posix-functions/vfprintf.texi: Update.
40495         * doc/posix-functions/vprintf.texi: Update.
40496         * doc/posix-functions/vsnprintf.texi: Update.
40497         * doc/posix-functions/vsprintf.texi: Update.
40498         * doc/glibc-functions/obstack_printf.texi: Update.
40499         * doc/glibc-functions/obstack_vprintf.texi: Update.
40500         Reported by Eric Blake.
40501
40502 2009-02-25  Bruno Haible  <bruno@clisp.org>
40503
40504         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40505         with known value.
40506         Reported by Gary V. Vaughan <gary@gnu.org>.
40507
40508 2009-02-25  Bruno Haible  <bruno@clisp.org>
40509
40510         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40511         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40512         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40513         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40514         Reported by Gary V. Vaughan <gary@gnu.org>.
40515
40516 2009-02-25  Bruno Haible  <bruno@clisp.org>
40517
40518         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40519         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40520         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40521         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40522         Reported by Gary V. Vaughan <gary@gnu.org>.
40523
40524 2009-02-25  Eric Blake  <ebb9@byu.net>
40525
40526         tests: skip fseek/ftell tests if ungetc is broken
40527         * m4/ungetc.m4: New file.
40528         * modules/fseek-tests: Split test, so ungetc dependency is
40529         separate from rest of test.
40530         * modules/fseeko-tests: Likewise.
40531         * modules/ftell-tests: Likewise.
40532         * modules/ftello-tests: Likewise.
40533         * tests/test-fseek.c (main): Isolate ungetc dependency.
40534         * tests/test-fseeko.c (main): Likewise.
40535         * tests/test-ftell.c (main): Likewise.
40536         * tests/test-ftello.c (main): Likewise.
40537         * tests/test-fseek2.sh: New file.
40538         * tests/test-fseeko2.sh: Likewise.
40539         * tests/test-ftell2.sh: Likewise.
40540         * tests/test-ftello2.sh: Likewise.
40541
40542 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
40543
40544         test-getaddrinfo: fix usage of skip return code 77
40545         * tests/test-gettaddrinfo.c: Return skip code 77 only
40546         for first occurance of skip (4x77 is not 77)
40547
40548 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40549
40550         strtod: avoid C99 decl-after-statement
40551         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40552
40553 2009-02-24  Eric Blake  <ebb9@byu.net>
40554
40555         strtod: detect HP-UX 11.31 bug
40556         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40557         Reported by Gary V. Vaughan.
40558
40559 2009-02-23  Bruno Haible  <bruno@clisp.org>
40560
40561         Fix invalid read past end of memory block.
40562         * lib/vasnprintf.c (DCHAR_SET): Define.
40563         (local_wcslen): Define only when needed.
40564         (local_strnlen, local_wcsnlen): New functions.
40565         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40566         directives that involve a conversion ourselves.
40567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40568         wcsnlen, mbrtowc, wcrtomb.
40569         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40570         * tests/test-vasprintf-posix.c (test_function): Likewise.
40571         * tests/test-snprintf-posix.h (test_function): Likewise.
40572         * tests/test-sprintf-posix.h (test_function): Likewise.
40573         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40574
40575 2009-02-22  Bruno Haible  <bruno@clisp.org>
40576
40577         Implement new clarified decomposition of Hangul syllables.
40578         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40579         of type LTV, return only a pairwise decomposition.
40580         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40581         Likewise.
40582         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40583         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40584         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40585
40586 2009-02-22  Bruno Haible  <bruno@clisp.org>
40587
40588         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40589         zero-length results and shrink excess allocated memory.
40590         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40591         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40592         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40593         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40594         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40595         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40596         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40597         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40598         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40599         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40600         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40601         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40602
40603 2009-02-21  Bruno Haible  <bruno@clisp.org>
40604
40605         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40606         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40607         spaces after a period. Put a space between a macro name and its
40608         argument list. Trivial rewordings.
40609         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40610         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40611         (main): Return 0 explicitly.
40612
40613 2009-02-21  Bruno Haible  <bruno@clisp.org>
40614
40615         Tests for module 'uninorm/filter'.
40616         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40617         * modules/uninorm/filter-tests: New file.
40618
40619         New module 'uninorm/filter'.
40620         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40621         uninorm_filter_flush, uninorm_filter_free): New declarations.
40622         * lib/uninorm/uninorm-filter.c: New file.
40623         * modules/uninorm/filter: New file.
40624
40625 2009-02-21  Bruno Haible  <bruno@clisp.org>
40626
40627         Tests for module 'uninorm/nfkc'.
40628         * tests/uninorm/test-nfkc.c: New file.
40629         * tests/uninorm/test-u8-nfkc.c: New file.
40630         * tests/uninorm/test-u16-nfkc.c: New file.
40631         * tests/uninorm/test-u32-nfkc.c: New file.
40632         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40633         * tests/uninorm/test-u32-nfkc-big.c: New file.
40634         * modules/uninorm/nfkc-tests: New file.
40635
40636         New module 'uninorm/nfkc'.
40637         * lib/uninorm/nfkc.c: New file.
40638         * modules/uninorm/nfkc: New file.
40639
40640         Tests for module 'uninorm/nfkd'.
40641         * tests/uninorm/test-nfkd.c: New file.
40642         * tests/uninorm/test-u8-nfkd.c: New file.
40643         * tests/uninorm/test-u16-nfkd.c: New file.
40644         * tests/uninorm/test-u32-nfkd.c: New file.
40645         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40646         * tests/uninorm/test-u32-nfkd-big.c: New file.
40647         * modules/uninorm/nfkd-tests: New file.
40648
40649         New module 'uninorm/nfkd'.
40650         * lib/uninorm/nfkd.c: New file.
40651         * modules/uninorm/nfkd: New file.
40652
40653         Tests for module 'uninorm/nfc'.
40654         * tests/uninorm/test-nfc.c: New file.
40655         * tests/uninorm/test-u8-nfc.c: New file.
40656         * tests/uninorm/test-u16-nfc.c: New file.
40657         * tests/uninorm/test-u32-nfc.c: New file.
40658         * tests/uninorm/test-u32-nfc-big.sh: New file.
40659         * tests/uninorm/test-u32-nfc-big.c: New file.
40660         * modules/uninorm/nfc-tests: New file.
40661
40662         New module 'uninorm/nfc'.
40663         * lib/uninorm/nfc.c: New file.
40664         * modules/uninorm/nfc: New file.
40665
40666         Tests for module 'uninorm/nfd'.
40667         * tests/uninorm/test-nfd.c: New file.
40668         * tests/uninorm/test-u8-nfd.c: New file.
40669         * tests/uninorm/test-u16-nfd.c: New file.
40670         * tests/uninorm/test-u32-nfd.c: New file.
40671         * tests/uninorm/test-u32-nfd-big.sh: New file.
40672         * tests/uninorm/test-u32-nfd-big.c: New file.
40673         * tests/uninorm/test-u32-normalize-big.h: New file.
40674         * tests/uninorm/test-u32-normalize-big.c: New file.
40675         * tests/uninorm/NormalizationTest.txt: New file, created from
40676         Unicode 5.1.0 NormalizationTest.txt.
40677         * modules/uninorm/nfd-tests: New file.
40678
40679         New module 'uninorm/nfd'.
40680         * lib/uninorm/nfd.c: New file.
40681         * modules/uninorm/nfd: New file.
40682
40683         New module 'uninorm/u32-normalize'.
40684         * lib/uninorm/u32-normalize.c: New file.
40685         * modules/uninorm/u32-normalize: New file.
40686
40687         New module 'uninorm/u16-normalize'.
40688         * lib/uninorm/u16-normalize.c: New file.
40689         * modules/uninorm/u16-normalize: New file.
40690
40691         New module 'uninorm/u8-normalize'.
40692         * lib/uninorm/u8-normalize.c: New file.
40693         * lib/uninorm/normalize-internal.h: New file.
40694         * lib/uninorm/u-normalize-internal.h: New file.
40695         * modules/uninorm/u8-normalize: New file.
40696
40697         New module 'uninorm/decompose-internal'.
40698         * lib/uninorm/decompose-internal.c: New file.
40699         * modules/uninorm/decompose-internal: New file.
40700
40701         Tests for module 'uninorm/composition'.
40702         * tests/uninorm/test-composition.c: New file.
40703         * modules/uninorm/composition-tests: New file.
40704
40705         New module 'uninorm/composition'.
40706         * lib/uninorm/composition.c: New file.
40707         * lib/uninorm/composition-table.gperf: New file, generated by
40708         gen-uni-tables.
40709         * modules/uninorm/composition: New file.
40710
40711         Tests for module 'uninorm/compat-decomposition'.
40712         * tests/uninorm/test-compat-decomposition.c: New file.
40713         * modules/uninorm/compat-decomposition-tests: New file.
40714
40715         New module 'uninorm/compat-decomposition'.
40716         * lib/uninorm/decompose-internal.h: New file.
40717         * lib/uninorm/compat-decomposition.c: New file.
40718         * modules/uninorm/compat-decomposition: New file.
40719
40720         Tests for module 'uninorm/canonical-decomposition'.
40721         * tests/uninorm/test-canonical-decomposition.c: New file.
40722         * modules/uninorm/canonical-decomposition-tests: New file.
40723
40724         New module 'uninorm/canonical-decomposition'.
40725         * lib/uninorm/canonical-decomposition.c: New file.
40726         * modules/uninorm/canonical-decomposition: New file.
40727
40728         Tests for module 'uninorm/decomposition'.
40729         * tests/uninorm/test-decomposition.c: New file.
40730         * modules/uninorm/decomposition-tests: New file.
40731
40732         New module 'uninorm/decomposition'.
40733         * lib/uninorm/decomposition.c: New file.
40734         * modules/uninorm/decomposition: New file.
40735
40736         New module 'uninorm/decomposition-table'.
40737         * lib/uninorm/decomposition-table.h: New file.
40738         * lib/uninorm/decomposition-table.c: New file.
40739         * lib/uninorm/decomposition-table1.h: New file, generated by
40740         gen-uni-tables.
40741         * lib/uninorm/decomposition-table2.h: New file, generated by
40742         gen-uni-tables.
40743         * modules/uninorm/decomposition-table: New file.
40744
40745         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40746         (UC_DECOMP_*): New enumeration items.
40747         (get_decomposition): New function.
40748         (struct decomp_table): New type.
40749         (output_decomposition, output_decomposition_tables): New functions.
40750         (unicode_composition_exclusions): New variable.
40751         (fill_composition_exclusions, debug_output_composition_tables): New
40752         functions.
40753         (main): Accept one more argument. Invoke fill_composition_exclusions.
40754         Output decomposition and composition tables.
40755
40756         New module 'uninorm/base'.
40757         * lib/uninorm.h: New file.
40758         * lib/unictype.h: Update comment.
40759         * modules/uninorm/base: New file.
40760
40761 2009-02-21  David Lutterkort  <lutter@redhat.com>
40762
40763         Tests for module 'safe-alloc'.
40764         * tests/test-safe-alloc.c: New file.
40765         * modules/safe-alloc-tests: New file.
40766
40767         New module 'safe-alloc'.
40768         * lib/safe-alloc.h: New file.
40769         * lib/safe-alloc.c: New file.
40770         * m4/safe-alloc.m4: New file.
40771         * modules/safe-alloc: New file.
40772         * doc/safe-alloc.texi: New file.
40773         * doc/gnulib.texi: Include it.
40774         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40775         safe-alloc.
40776
40777 2009-02-18  Bruno Haible  <bruno@clisp.org>
40778
40779         Fix link error on non-glibc systems.
40780         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40781         variable.
40782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40783
40784 2009-02-18  Jim Meyering  <meyering@redhat.com>
40785
40786         fts: avoid used-uninitialized error due to recent change
40787         * lib/fts.c (fts_read): Guard uses of the new member,
40788         parent->fts_n_dirs_remaining, since it's not relevant for
40789         the parent of a directory specified on the command-line.
40790
40791 2009-02-17  James Youngman  <jay@gnu.org>
40792             Bruno Haible  <bruno@clisp.org>
40793
40794         * m4/include_next.m4: Reformulate comment.
40795
40796 2009-02-16  Jim Meyering  <meyering@redhat.com>
40797
40798         fts: add #if guards so that the fts_lgpl module still builds
40799         * lib/fts.c: Guard just-added hash-table-using parts with
40800         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40801         Reported by Simon Josefsson.
40802
40803 2009-02-15  Bruno Haible  <bruno@clisp.org>
40804
40805         * modules/array-mergesort-tests: New file.
40806         * tests/test-array-mergesort.c: New file.
40807
40808         New module 'array-mergesort'.
40809         * modules/array-mergesort: New file.
40810         * lib/array-mergesort.h: New file.
40811
40812 2009-02-15  Bruno Haible  <bruno@clisp.org>
40813
40814         Fix 2009-02-07 commit.
40815         * lib/gen-uni-tables.c (output_predicate, output_category,
40816         output_combclass, output_bidi_category, output_decimal_digit,
40817         output_digit, output_numeric, output_mirror, output_scripts,
40818         output_ident_category, output_simple_mapping): Fix format directives.
40819         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40820
40821 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40822
40823         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40824         fixes are available from IBM.
40825
40826 2009-02-13  Jim Meyering  <meyering@redhat.com>
40827
40828         fts: arrange not to stat non-directories in more cases
40829         This makes GNU find (when it doesn't need to stat each file)
40830         *much* more efficient at traversing reiserfs file systems.
40831         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40832         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40833         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40834         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40835         (leaf_optimization_applies): New function.
40836         (LCO_hash, LCO_compare): New helper functions.
40837         (link_count_optimize_ok): New function.
40838         (fts_stat): Initialize new member (if dir).
40839         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40840         we've just stat'ed a directory.  Skip the stat call when possible.
40841         ---
40842         Note this AFS-related exchange:
40843         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40844         and note find's pioctl call in find/fstype.c.
40845         But that is necessary only if you want to enable the
40846         optimization for AFS, and for now, I don't.
40847
40848         fts: move a function definition "up" (no semantic change)
40849         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40850         "up" to precede upcoming use of a related function.
40851
40852 2009-02-11  Jim Meyering  <meyering@redhat.com>
40853
40854         fts: correct internal computation of nlinks (optimization-related)
40855         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40856         whether the current entry is a directory, so don't test it.
40857
40858 2009-02-10  Bruno Haible  <bruno@clisp.org>
40859
40860         Tests for module 'uniwbrk/ulc-wordbreaks'.
40861         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40862         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40863         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40864
40865         Tests for module 'uniwbrk/u32-wordbreaks'.
40866         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40867         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40868
40869         Tests for module 'uniwbrk/u16-wordbreaks'.
40870         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40871         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40872
40873         Tests for module 'uniwbrk/u8-wordbreaks'.
40874         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40875         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40876
40877 2009-02-10  Bruno Haible  <bruno@clisp.org>
40878
40879         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40880         property.
40881         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40882         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40883         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40884
40885 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40886
40887         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40888         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40889
40890 2009-02-10  Bruno Haible  <bruno@clisp.org>
40891
40892         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40893         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40894         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40895         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40896         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40897         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40898
40899 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40900
40901         * lib/sockets.h (gl_fd_to_handle): New function.
40902
40903         * tests/test-sockets.c: Call gl_fd_to_handle.
40904
40905 2009-02-09  Bruno Haible  <bruno@clisp.org>
40906
40907         * doc/havelib.texi: Document the conventions on bi-arch systems.
40908
40909 2009-02-08  Bruno Haible  <bruno@clisp.org>
40910
40911         Document the AC_LIB_LINKFLAGS macro.
40912         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40913         * doc/gnulib.texi: Include it.
40914
40915 2009-02-08  Bruno Haible  <bruno@clisp.org>
40916
40917         Fix wrong order of sections, compared to TOC.
40918         * doc/gnulib.texi: Include relocatable-maint.texi after the
40919         "Regular expressions" node, not before.
40920
40921 2009-02-08  Bruno Haible  <bruno@clisp.org>
40922
40923         Tests for module 'unicase/totitle'.
40924         * modules/unicase/totitle-tests: New file.
40925
40926         Tests for module 'unicase/tolower'.
40927         * modules/unicase/tolower-tests: New file.
40928
40929         Tests for module 'unicase/toupper'.
40930         * modules/unicase/toupper-tests: New file.
40931         * tests/unicase/test-mapping-part1.h: New file.
40932         * tests/unicase/test-mapping-part2.h: New file.
40933
40934         New module 'unicase/totitle'.
40935         * modules/unicase/totitle: New file.
40936         * lib/unicase/totitle.c: New file.
40937
40938         New module 'unicase/tolower'.
40939         * modules/unicase/tolower: New file.
40940         * lib/unicase/tolower.c: New file.
40941
40942         New module 'unicase/toupper'.
40943         * modules/unicase/toupper: New file.
40944         * lib/unicase/toupper.c: New file.
40945         * lib/unicase/simple-mapping.h: New file.
40946
40947         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40948         (mapping_table): New structure.
40949         (output_simple_mapping): New function.
40950         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40951         * modules/gen-uni-tables (Description): Update.
40952         * lib/unicase/toupper.h: New file, automatically generated by
40953         gen-uni-tables.
40954         * lib/unicase/tolower.h: New file, automatically generated by
40955         gen-uni-tables.
40956         * lib/unicase/totitle.h: New file, automatically generated by
40957         gen-uni-tables.
40958         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40959         gen-uni-tables.
40960         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40961         gen-uni-tables.
40962         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40963         gen-uni-tables.
40964
40965         New module 'unicase/base'.
40966         * modules/unicase/base: New file.
40967         * lib/unicase.h: New file.
40968
40969 2009-02-08  Bruno Haible  <bruno@clisp.org>
40970
40971         New module 'uniwbrk/ulc-wordbreaks'.
40972         * modules/uniwbrk/ulc-wordbreaks: New file.
40973         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40974
40975         New module 'uniwbrk/u32-wordbreaks'.
40976         * modules/uniwbrk/u32-wordbreaks: New file.
40977         * lib/uniwbrk/u32-wordbreaks.c: New file.
40978
40979         New module 'uniwbrk/u16-wordbreaks'.
40980         * modules/uniwbrk/u16-wordbreaks: New file.
40981         * lib/uniwbrk/u16-wordbreaks.c: New file.
40982
40983         New module 'uniwbrk/u8-wordbreaks'.
40984         * modules/uniwbrk/u8-wordbreaks: New file.
40985         * lib/uniwbrk/u8-wordbreaks.c: New file.
40986         * lib/uniwbrk/u-wordbreaks.h: New file.
40987
40988         New module 'uniwbrk/table'.
40989         * modules/uniwbrk/table: New file.
40990         * lib/uniwbrk/wbrktable.h: New file.
40991         * lib/uniwbrk/wbrktable.c: New file.
40992
40993         New module 'uniwbrk/wordbreak-property'.
40994         * modules/uniwbrk/wordbreak-property: New file.
40995         * lib/uniwbrk/wordbreak-property.c: New file.
40996
40997         * lib/gen-uni-tables.c (WBP_*): New enum items.
40998         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40999         (unicode_org_wbp): New variable.
41000         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41001         New functions.
41002         (wbp_table): New structure.
41003         (output_wbp, output_wbrk_tables): New functions.
41004         (main): Accept additional argument. Invoke fill_org_wbp,
41005         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41006         output_wbrk_tables.
41007         * modules/gen-uni-tables (Description): Update.
41008         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41009         gen-uni-tables.
41010
41011         New module 'uniwbrk/base'.
41012         * modules/uniwbrk/base: New file.
41013         * lib/uniwbrk.h: New file.
41014
41015 2009-02-08  Bruno Haible  <bruno@clisp.org>
41016
41017         Update to Unicode 5.1.0.
41018         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41019         U+2185..U+2188.
41020         (is_property_default_ignorable_code_point): Don't include characters
41021         of category Cc or Cs and not-a-characters.
41022         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41023         U+0D79, U+109E, U+109F, U+A60C.
41024         * lib/unictype/bidi_of.h: Regenerated.
41025         * lib/unictype/blocks.h: Regenerated.
41026         * lib/unictype/categ_C.h: Regenerated.
41027         * lib/unictype/categ_Cf.h: Regenerated.
41028         * lib/unictype/categ_Cn.h: Regenerated.
41029         * lib/unictype/categ_L.h: Regenerated.
41030         * lib/unictype/categ_Ll.h: Regenerated.
41031         * lib/unictype/categ_Lm.h: Regenerated.
41032         * lib/unictype/categ_Lo.h: Regenerated.
41033         * lib/unictype/categ_Lu.h: Regenerated.
41034         * lib/unictype/categ_M.h: Regenerated.
41035         * lib/unictype/categ_Mc.h: Regenerated.
41036         * lib/unictype/categ_Me.h: Regenerated.
41037         * lib/unictype/categ_Mn.h: Regenerated.
41038         * lib/unictype/categ_N.h: Regenerated.
41039         * lib/unictype/categ_Nd.h: Regenerated.
41040         * lib/unictype/categ_Nl.h: Regenerated.
41041         * lib/unictype/categ_No.h: Regenerated.
41042         * lib/unictype/categ_P.h: Regenerated.
41043         * lib/unictype/categ_Pd.h: Regenerated.
41044         * lib/unictype/categ_Pe.h: Regenerated.
41045         * lib/unictype/categ_Pf.h: Regenerated.
41046         * lib/unictype/categ_Pi.h: Regenerated.
41047         * lib/unictype/categ_Po.h: Regenerated.
41048         * lib/unictype/categ_Ps.h: Regenerated.
41049         * lib/unictype/categ_S.h: Regenerated.
41050         * lib/unictype/categ_Sk.h: Regenerated.
41051         * lib/unictype/categ_Sm.h: Regenerated.
41052         * lib/unictype/categ_So.h: Regenerated.
41053         * lib/unictype/categ_of.h: Regenerated.
41054         * lib/unictype/combining.h: Regenerated.
41055         * lib/unictype/ctype_alnum.h: Regenerated.
41056         * lib/unictype/ctype_alpha.h: Regenerated.
41057         * lib/unictype/ctype_graph.h: Regenerated.
41058         * lib/unictype/ctype_lower.h: Regenerated.
41059         * lib/unictype/ctype_print.h: Regenerated.
41060         * lib/unictype/ctype_punct.h: Regenerated.
41061         * lib/unictype/ctype_upper.h: Regenerated.
41062         * lib/unictype/decdigit.h: Regenerated.
41063         * lib/unictype/digit.h: Regenerated.
41064         * lib/unictype/mirror.h: Regenerated.
41065         * lib/unictype/numeric.h: Regenerated.
41066         * lib/unictype/pr_alphabetic.h: Regenerated.
41067         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41068         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41069         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41070         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41071         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41072         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41073         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41074         * lib/unictype/pr_combining.h: Regenerated.
41075         * lib/unictype/pr_dash.h: Regenerated.
41076         * lib/unictype/pr_decimal_digit.h: Regenerated.
41077         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41078         * lib/unictype/pr_deprecated.h: Regenerated.
41079         * lib/unictype/pr_diacritic.h: Regenerated.
41080         * lib/unictype/pr_extender.h: Regenerated.
41081         * lib/unictype/pr_format_control.h: Regenerated.
41082         * lib/unictype/pr_grapheme_base.h: Regenerated.
41083         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41084         * lib/unictype/pr_grapheme_link.h: Regenerated.
41085         * lib/unictype/pr_id_continue.h: Regenerated.
41086         * lib/unictype/pr_id_start.h: Regenerated.
41087         * lib/unictype/pr_ideographic.h: Regenerated.
41088         * lib/unictype/pr_ignorable_control.h: Regenerated.
41089         * lib/unictype/pr_lowercase.h: Regenerated.
41090         * lib/unictype/pr_math.h: Regenerated.
41091         * lib/unictype/pr_numeric.h: Regenerated.
41092         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41093         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41094         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41095         * lib/unictype/pr_other_id_continue.h: Regenerated.
41096         * lib/unictype/pr_other_lowercase.h: Regenerated.
41097         * lib/unictype/pr_other_math.h: Regenerated.
41098         * lib/unictype/pr_punctuation.h: Regenerated.
41099         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41100         * lib/unictype/pr_soft_dotted.h: Regenerated.
41101         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41102         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41103         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41104         * lib/unictype/pr_uppercase.h: Regenerated.
41105         * lib/unictype/pr_xid_continue.h: Regenerated.
41106         * lib/unictype/pr_xid_start.h: Regenerated.
41107         * lib/unictype/pr_zero_width.h: Regenerated.
41108         * lib/unictype/scripts.h: Regenerated.
41109         * lib/unictype/scripts_byname.gperf: Regenerated.
41110         * lib/unictype/sy_java_ident.h: Regenerated.
41111         * lib/unilbrk/lbrkprop1.h: Regenerated.
41112         * lib/unilbrk/lbrkprop2.h: Regenerated.
41113         * tests/unictype/test-categ_C.c: Regenerated.
41114         * tests/unictype/test-categ_Cf.c: Regenerated.
41115         * tests/unictype/test-categ_Cn.c: Regenerated.
41116         * tests/unictype/test-categ_L.c: Regenerated.
41117         * tests/unictype/test-categ_Ll.c: Regenerated.
41118         * tests/unictype/test-categ_Lm.c: Regenerated.
41119         * tests/unictype/test-categ_Lo.c: Regenerated.
41120         * tests/unictype/test-categ_Lu.c: Regenerated.
41121         * tests/unictype/test-categ_M.c: Regenerated.
41122         * tests/unictype/test-categ_Mc.c: Regenerated.
41123         * tests/unictype/test-categ_Me.c: Regenerated.
41124         * tests/unictype/test-categ_Mn.c: Regenerated.
41125         * tests/unictype/test-categ_N.c: Regenerated.
41126         * tests/unictype/test-categ_Nd.c: Regenerated.
41127         * tests/unictype/test-categ_Nl.c: Regenerated.
41128         * tests/unictype/test-categ_No.c: Regenerated.
41129         * tests/unictype/test-categ_P.c: Regenerated.
41130         * tests/unictype/test-categ_Pd.c: Regenerated.
41131         * tests/unictype/test-categ_Pe.c: Regenerated.
41132         * tests/unictype/test-categ_Pf.c: Regenerated.
41133         * tests/unictype/test-categ_Pi.c: Regenerated.
41134         * tests/unictype/test-categ_Po.c: Regenerated.
41135         * tests/unictype/test-categ_Ps.c: Regenerated.
41136         * tests/unictype/test-categ_S.c: Regenerated.
41137         * tests/unictype/test-categ_Sk.c: Regenerated.
41138         * tests/unictype/test-categ_Sm.c: Regenerated.
41139         * tests/unictype/test-categ_So.c: Regenerated.
41140         * tests/unictype/test-ctype_alnum.c: Regenerated.
41141         * tests/unictype/test-ctype_alpha.c: Regenerated.
41142         * tests/unictype/test-ctype_graph.c: Regenerated.
41143         * tests/unictype/test-ctype_lower.c: Regenerated.
41144         * tests/unictype/test-ctype_print.c: Regenerated.
41145         * tests/unictype/test-ctype_punct.c: Regenerated.
41146         * tests/unictype/test-ctype_upper.c: Regenerated.
41147         * tests/unictype/test-decdigit.h: Regenerated.
41148         * tests/unictype/test-digit.h: Regenerated.
41149         * tests/unictype/test-numeric.h: Regenerated.
41150         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41151         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41152         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41153         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41154         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41155         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41156         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41157         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41158         * tests/unictype/test-pr_combining.c: Regenerated.
41159         * tests/unictype/test-pr_dash.c: Regenerated.
41160         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41161         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41162         * tests/unictype/test-pr_deprecated.c: Regenerated.
41163         * tests/unictype/test-pr_diacritic.c: Regenerated.
41164         * tests/unictype/test-pr_extender.c: Regenerated.
41165         * tests/unictype/test-pr_format_control.c: Regenerated.
41166         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41167         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41168         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41169         * tests/unictype/test-pr_id_continue.c: Regenerated.
41170         * tests/unictype/test-pr_id_start.c: Regenerated.
41171         * tests/unictype/test-pr_ideographic.c: Regenerated.
41172         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41173         * tests/unictype/test-pr_lowercase.c: Regenerated.
41174         * tests/unictype/test-pr_math.c: Regenerated.
41175         * tests/unictype/test-pr_numeric.c: Regenerated.
41176         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41177         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41178         Regenerated.
41179         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41180         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41181         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41182         * tests/unictype/test-pr_other_math.c: Regenerated.
41183         * tests/unictype/test-pr_punctuation.c: Regenerated.
41184         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41185         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41186         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41187         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41188         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41189         * tests/unictype/test-pr_uppercase.c: Regenerated.
41190         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41191         * tests/unictype/test-pr_xid_start.c: Regenerated.
41192         * tests/unictype/test-pr_zero_width.c: Regenerated.
41193
41194         Update to Unicode 5.1.0.
41195         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41196         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41197         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41198         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41199         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41200         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41201         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41202         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41203         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41204         (nonspacing_table_ind): Update.
41205         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41206
41207         Update to Unicode 5.1.0.
41208         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41209         code transform.
41210         * lib/uniname/uniname.c (unicode_character_name,
41211         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41212         * lib/uniname/uninames.h: Regenerated.
41213         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41214
41215 2009-02-07  Bruno Haible  <bruno@clisp.org>
41216
41217         Merge gen-ctype and gen-lbrk into a single program.
41218         * lib/gen-uni-tables.c: New file, incorporating
41219         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41220         Add directory prefixes to the names of the generated files.
41221         * lib/unictype/gen-ctype.c: Remove file.
41222         * lib/unilbrk/gen-lbrk.c: Remove file.
41223         * modules/gen-uni-tables: New file.
41224         * modules/unictype/gen-ctype: Remove file.
41225         * modules/unilbrk/gen-lbrk: Remove file.
41226
41227 2009-02-07  Bruno Haible  <bruno@clisp.org>
41228
41229         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41230
41231         New module 'unistr/u32-strcoll'.
41232         * modules/unistr/u32-strcoll: New file.
41233         * lib/unistr/u32-strcoll.c: New file.
41234
41235         New module 'unistr/u16-strcoll'.
41236         * modules/unistr/u16-strcoll: New file.
41237         * lib/unistr/u16-strcoll.c: New file.
41238
41239         New module 'unistr/u8-strcoll'.
41240         * modules/unistr/u8-strcoll: New file.
41241         * lib/unistr/u8-strcoll.c: New file.
41242         * lib/unistr/u-strcoll.h: New file.
41243
41244 2009-02-07  Bruno Haible  <bruno@clisp.org>
41245
41246         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41247         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41248         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41249         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41250         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41251         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41252
41253 2009-02-07  Bruno Haible  <bruno@clisp.org>
41254
41255         Make 64-bit clean.
41256         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41257         output_combclass, output_bidi_category, output_decimal_digit,
41258         output_digit, output_numeric, output_mirror, output_scripts,
41259         output_ident_category): Use proper width specifier in format strings.
41260
41261 2009-02-07  Bruno Haible  <bruno@clisp.org>
41262
41263         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41264         failure behaviour.
41265
41266 2009-02-07  Jim Meyering  <meyering@redhat.com>
41267
41268         regex: avoid compilation failure with upcoming gcc-4.4
41269         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41270         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41271         "... error: integer overflow in preprocessor expression".
41272
41273 2009-02-05  Ben Pfaff  <blp@gnu.org>
41274
41275         Fix link errors on Windows when close module is used.
41276         * modules/close: Add $(LIB_CLOSE) to Link section.
41277         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41278         $(LIB_CLOSE) on Windows.
41279
41280 2009-02-05  Jim Meyering  <meyering@redhat.com>
41281
41282         still avoid unused-parameter warnings, but do it cleanly
41283         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41284         (get_fs_usage): Cast to void instead.
41285         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41286         (dev_from_mount_options, read_file_system_list): Cast to void.
41287         Prompted by Bruno Haible.
41288
41289 2009-02-04  Jim Meyering  <meyering@redhat.com>
41290
41291         fsusage.c: correct copyright year
41292         * lib/fsusage.c: Reflect year in which the change is pushed into
41293
41294         avoid misc. warnings
41295         * lib/fsusage.c (UNUSED_PARAM): Define.
41296         (get_fs_usage): Mark parameter "disk" as unused.
41297         * lib/getugroups.c (getgrent): Use "void" in prototype.
41298         * lib/mountlist.c: Mark unused parameters.
41299         (read_file_system_list): Declare a local with "const".
41300         * lib/nanosleep.c (getnow): Declare static.
41301         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41302
41303         dirfd: set errno upon failure
41304         * lib/dirfd.c: Include <errno.h>.
41305         Set errno to ENOTSUP when returning -1.
41306         * modules/dirfd (Depends-on): Add errno.
41307         Suggested by John Kodis <kodis@comcast.net>.
41308
41309 2009-02-01  Bruno Haible  <bruno@clisp.org>
41310
41311         Don't assume sizeof (long) >= sizeof (void *).
41312         * lib/memcmp.c: Include stdint.h.
41313         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41314         srcp2 to 'const byte *'.
41315         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41316         types to uintptr_t.
41317         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41318         * modules/memcmp (Depends-on): Add stdint.
41319         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41320
41321 2009-01-30  Eric Blake  <ebb9@byu.net>
41322
41323         fix more require-before-expand issues
41324         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41325         expand, AC_PROG_AWK.
41326         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41327
41328 2009-01-28  Eric Blake  <ebb9@byu.net>
41329
41330         version-etc: use consistent URL formatting
41331         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41332         Improve formatting.  Use fputs for string without %.
41333
41334 2009-01-28  Jim Meyering  <meyering@redhat.com>
41335
41336         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41337         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41338         "underquoted definition of NAME" from autoconf-2.59.
41339
41340 2009-01-28  Bruno Haible  <bruno@clisp.org>
41341
41342         * doc/gnulib.texi: Add "Obsolete modules" to index.
41343
41344 2009-01-28  Jim Meyering  <meyering@redhat.com>
41345
41346         useless-if-before-free: recognize more variants
41347         * build-aux/useless-if-before-free: Also recognize e.g.,
41348         if (NULL != p) free (p);
41349
41350 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41351
41352         test-getaddrinfo: skip (don't fail) this test when there's no network
41353         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41354         on the presumption that it means you lack network access.
41355
41356 2009-01-26  Jim Meyering  <meyering@redhat.com>
41357
41358         fflush: avoid warnings on modern systems
41359         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41360         pos and result, into scopes where they're used.
41361
41362 2009-01-26  Eric Blake  <ebb9@byu.net>
41363
41364         Silence warning reintroduced by recent extensions patch.
41365         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41366         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41367         autoconf.
41368
41369         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41370         * m4/00gnulib.m4: New file.
41371         * gnulib-tool (func_get_filelist): Always use it.
41372         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41373         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41374
41375 2009-01-25  Bruno Haible  <bruno@clisp.org>
41376
41377         Make test-quotearg work on MacOS X and AIX.
41378         * tests/test-quotearg.sh: New file.
41379         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41380         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41381         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41382         include <libintl.h>.
41383         (fake_locale): Remove variable.
41384         (gettext, dgettext, dcgettext): Remove functions.
41385         (main): Instead of setting a fake locale, set a real locale. Call
41386         textdomain and bindtextdomain.
41387         * modules/quotearg-tests (Files): Add the new files.
41388         (Depends-on): Add gettext, setenv, unsetenv.
41389         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41390         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41391         Augment TESTS_ENVIRONMENT.
41392
41393 2009-01-25  Bruno Haible  <bruno@clisp.org>
41394
41395         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41396         fr_FR.ISO8859-1 locale on MacOS X.
41397         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41398         ja_JP.eucJP locale on MacOS X.
41399         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41400         zh_CN.GB18030 locale on MacOS X.
41401
41402 2009-01-25  Bruno Haible  <bruno@clisp.org>
41403
41404         Avoid link errors on MacOS X 10.3.
41405         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41406         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41407
41408 2009-01-25  Bruno Haible  <bruno@clisp.org>
41409
41410         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41411         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41412         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41413         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41414         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41415         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41416         posix_spawnattr_init, posix_spawnattr_setsigmask,
41417         posix_spawnattr_setflags, posix_spawnattr_destroy.
41418
41419         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41420         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41421         * modules/execute (Files): Remove m4/posix_spawn.m4.
41422         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41423         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41424         posix_spawnattr_init, posix_spawnattr_setsigmask,
41425         posix_spawnattr_setflags, posix_spawnattr_destroy.
41426
41427 2009-01-25  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/glthread/threadlib.c: Include <stdlib.h>.
41430
41431 2009-01-25  Bruno Haible  <bruno@clisp.org>
41432
41433         * lib/glthread/threadlib.c (dummy): New declaration.
41434
41435 2009-01-25  Bruno Haible  <bruno@clisp.org>
41436
41437         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41438         multibyte characters also for the GB18030 encoding. Don't crash when
41439         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41440
41441 2009-01-25  Bruno Haible  <bruno@clisp.org>
41442
41443         Avoid redefining 'struct random_data' on OSF/1 5.1.
41444         * lib/stdlib.in.h: Include <random.h> if it exists.
41445         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41446         HAVE_RANDOM_H. Include <random.h> when testing whether
41447         'struct random_data' exists.
41448         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41449
41450 2009-01-25  Bruno Haible  <bruno@clisp.org>
41451
41452         Don't install charset.alias on MacOS X >= 10.3.
41453         * lib/localcharset.c (DARWIN7): New macro.
41454         (get_charset_aliases): Hardcode the result for Darwin7.
41455         * modules/localcharset (install-exec-local): Don't install
41456         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41457
41458 2009-01-25  Bruno Haible  <bruno@clisp.org>
41459
41460         Don't install charset.alias on mingw and Cygwin.
41461         * modules/localcharset (install-exec-local): Don't install
41462         charset.alias on mingw and Cygwin, if the file does not yet exist.
41463         The result for these platforms is hardcoded in localcharset.c.
41464
41465 2009-01-25  Bruno Haible  <bruno@clisp.org>
41466
41467         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41468         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41469         before requiring AC_USE_SYSTEM_EXTENSIONS.
41470
41471 2009-01-25  Jim Meyering  <meyering@redhat.com>
41472
41473         c-strtod: avoid warnings
41474         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41475         "assignment discards qualifiers from pointer target type" warnings.
41476
41477 2009-01-24  Bruno Haible  <bruno@clisp.org>
41478
41479         Add support for non-UTF-8 locales on MacOS X.
41480         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41481         canonical encodings. For Darwin 7 and newer, don't map traditional
41482         encodings to UTF-8.
41483         Reported by Vincent Lefevre <vincent@vinc17.org>
41484         at <http://savannah.gnu.org/bugs/?25235>.
41485
41486 2009-01-24  Bruno Haible  <bruno@clisp.org>
41487
41488         * doc/gnulib.texi (Obsolete modules): New section.
41489         Reported by Mike Frysinger <vapier@gentoo.org>.
41490
41491 2009-01-24  Bruno Haible  <bruno@clisp.org>
41492
41493         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41494         (%.dvi): New rule.
41495
41496 2009-01-24  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41499         Reported by Eric Blake.
41500
41501 2009-01-24  Bruno Haible  <bruno@clisp.org>
41502
41503         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41504         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41505         Reported by Gary V. Vaughan <gary@gnu.org>.
41506
41507 2009-01-24  Bruno Haible  <bruno@clisp.org>
41508
41509         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41510
41511 2009-01-23  Bruno Haible  <bruno@clisp.org>
41512
41513         Make c-strtod, c-strtold usable in libraries.
41514         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41515         (C_STRTOD): Call strdup instead of xstrdup.
41516         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41517         * modules/c-strtold (Depends-on): Likewise.
41518         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41519         * NEWS: Mention the change.
41520         Reported by Michael Gold <mgold@ncf.ca>.
41521
41522 2009-01-23  Jim Meyering  <meyering@redhat.com>
41523
41524         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41525         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41526         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41527
41528 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41529
41530         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41531         GNU CoreUtils.
41532         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41533         * modules/version-etc (Description): Update.
41534
41535 2009-01-22  Bruno Haible  <bruno@clisp.org>
41536
41537         Cache the C locale object.
41538         * lib/c-strtod.c (c_locale_cache): New variable.
41539         (c_locale): New function.
41540         (C_STRTOD): Use it, and don't call freelocale.
41541         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41542         Suggested by Paolo Bonzini.
41543
41544 2009-01-21  Bruno Haible  <bruno@clisp.org>
41545
41546         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41547         conditions other than overflow.
41548
41549 2009-01-21  Bruno Haible  <bruno@clisp.org>
41550
41551         * lib/c-strtod.c: Include errno.h.
41552         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41553         value from STRTOD_L and STRTOD.
41554
41555 2009-01-21  Bruno Haible  <bruno@clisp.org>
41556         and Jim Meyering  <meyering@redhat.com>
41557
41558         nanosleep: skip configure test (fail it) for apple universal builds
41559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41560         universal builds, assume that nanosleep does not work.
41561         * modules/nanosleep (Depends-on): Add multiarch.
41562
41563         mktime: skip configure test (fail it) for apple universal builds
41564         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41565         universal builds, assume that mktime does not work.
41566         * modules/mktime (Depends-on): Add multiarch.
41567
41568 2009-01-21  Eric Blake  <ebb9@byu.net>
41569
41570         multiarch: avoid expand-before-require warning
41571         * modules/multiarch (configure.ac): Require, rather than expand,
41572         gl_MULTIARCH.
41573         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41574         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41575         enforce that all clients require it.  Partial reversion of
41576         2008-12-29 patch.
41577
41578         error: avoid expand-before-require warning
41579         * modules/errno (configure.ac): Require, rather than expand,
41580         gl_HEADER_ERRNO_H.
41581         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41582         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41583         enforce that all clients require it.
41584
41585         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41586         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41587         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41588         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41589
41590 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41591
41592         Revert:
41593         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41594
41595         regex: do not depend on obsolete modules.
41596         * modules/regex: Remove memcmp and memmove.
41597
41598 2009-01-20  Bruno Haible  <bruno@clisp.org>
41599
41600         Make the 'link' module link on Windows NT 4.
41601         * lib/link.c (_WIN32_WINNT): Don't define.
41602         (CreateHardLinkFuncType): New type.
41603         (CreateHardLinkFunc, initialized): New variables.
41604         (initialize): New function.
41605         (link): Invoke CreateHardLink indirectly through the function pointer.
41606
41607 2009-01-20  Bruno Haible  <bruno@clisp.org>
41608
41609         Fix compilation failure on mingw.
41610         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41611
41612 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41613
41614         * doc/c-strtod.texi: Mention a couple of restrictions.
41615
41616 2009-01-20  Jim Meyering  <meyering@redhat.com>
41617
41618         gettimeofday: move more declarations out of functions
41619         * lib/gettimeofday.c: Move extern declarations of tzset and
41620         gmtime out of containing functions.  Prompted by Bruno Haible.
41621
41622 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41623
41624         regex: do not depend on obsolete modules.
41625         * modules/regex: Remove memcmp and memmove.
41626
41627 2009-01-19  Bruno Haible  <bruno@clisp.org>
41628
41629         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41630         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41631         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41632         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41633         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41634
41635 2009-01-19  Bruno Haible  <bruno@clisp.org>
41636
41637         * tests/test-link.c: Include <errno.h>.
41638         (main): Exit with code 77 when a hard link cannot be created due to
41639         the file system.
41640         * tests/test-link.sh: Skip test when a hard link cannot be created due
41641         to the file system.
41642         Suggested by Eric Blake.
41643
41644 2009-01-19  Martin Lambers  <marlam@marlam.de>
41645
41646         * modules/link-tests: New file.
41647         * tests/test-link.sh: New file.
41648         * tests/test-link.c: New file.
41649
41650 2009-01-19  Eric Blake  <ebb9@byu.net>
41651
41652         doc: mention another function added in cygwin 1.7.0
41653         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41654         Another new function in cygwin 1.7.
41655
41656 2009-01-19  Bruno Haible  <bruno@clisp.org>
41657
41658         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41659         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41660         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41661         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41662         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41663         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41664         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41665         * m4/md4.m4 (gl_MD4): Likewise.
41666         * m4/md5.m4 (gl_MD5): Likewise.
41667         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41668         * m4/sha1.m4 (gl_SHA1): Likewise.
41669         * m4/sha256.m4 (gl_SHA256): Likewise.
41670         * m4/sha512.m4 (gl_SHA512): Likewise.
41671
41672 2009-01-19  Bruno Haible  <bruno@clisp.org>
41673
41674         * modules/uniname/uniname-tests (Depends-on): Add progname.
41675         * tests/uniname/test-uninames.c: Include progname.h.
41676         (main): Call set_program_name.
41677
41678         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41679         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41680         (main): Call set_program_name.
41681
41682         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41683         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41684         (main): Call set_program_name.
41685
41686         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41687         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41688         (main): Call set_program_name.
41689
41690         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41691         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41692         (main): Call set_program_name.
41693
41694         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41695         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41696         (main): Call set_program_name.
41697
41698         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41699         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41700         (main): Call set_program_name.
41701
41702         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41703         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41704         (main): Call set_program_name.
41705
41706         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41707         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41708         (main): Call set_program_name.
41709
41710 2009-01-19  Eric Blake  <ebb9@byu.net>
41711
41712         test-unistd: test previous patch
41713         * tests/test-unistd.c: Test *_FILENO macros.
41714
41715         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41716         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41717         Guarantee a definition.
41718         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41719         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41720         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41721         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41722         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41723         Likewise.
41724         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41725         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41726         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41727         Likewise.
41728         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41729         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41730         (STDERR_FILENO): Likewise.
41731         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41732         (STDERR_FILENO): Likewise.
41733         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41734         (STDERR_FILENO): Likewise.
41735         Reported by Elbert Pol.
41736
41737 2009-01-19  Eric Blake  <ebb9@byu.net>
41738
41739         doc: mention more functions added in cygwin 1.7.0
41740         * doc/posix-functions/abort.texi (abort): Update wording related
41741         to cygwin.
41742         * doc/posix-functions/daylight.texi (daylight): Likewise.
41743         * doc/posix-functions/optarg.texi (optarg): Likewise.
41744         * doc/posix-functions/optarg.texi (opterr): Likewise.
41745         * doc/posix-functions/optarg.texi (optind): Likewise.
41746         * doc/posix-functions/optarg.texi (optopt): Likewise.
41747         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41748         worked in 1.5.x, and was withdrawn in 1.7.
41749         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41750         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41751         cygwin versions.
41752         * doc/posix-functions/perror.texi (perror): Likewise.
41753         * doc/posix-functions/printf.texi (printf): Likewise.
41754         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41755         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41756         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41757         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41758         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41759         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41760         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41761         Likewise.
41762         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41763         Likewise.
41764         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41765         this function.
41766         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41767         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41768         Likewise.
41769         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41770         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41771         * doc/posix-functions/confstr.texi (confstr): Likewise.
41772         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41773         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41774         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41775         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41776         * doc/posix-functions/fputws.texi (fputws): Likewise.
41777         * doc/posix-functions/fwide.texi (fwide): Likewise.
41778         * doc/posix-functions/getwc.texi (getwc): Likewise.
41779         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41780         * doc/posix-functions/putwc.texi (putwc): Likewise.
41781         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41782         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41783         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41784         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41785         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41786         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41787         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41788         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41789         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41790         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41791         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41792
41793 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41794
41795         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41796         * lib/ioctl.c: Include <sys/ioctl.h>.
41797
41798 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41799
41800         * modules/getdate-tests (Depends-on): Add progname.
41801         * tests/test-getdate.c: Use progname module, to avoid link errors
41802         on non-glibc systems.
41803
41804 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41805
41806         * modules/filenamecat-tests (Depends-on): Add progname.
41807         * modules/fstrcmp-tests (Depends-on): Likewise.
41808
41809         * tests/test-filenamecat.c: Use progname module, to avoid link
41810         errors on non-glibc systems.
41811         * tests/test-fstrcmp.c: Likewise.
41812
41813 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41814
41815         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41816         * lib/gettimeofday.c: Move extern declaration out of function.
41817
41818 2009-01-18  Bruno Haible  <bruno@clisp.org>
41819
41820         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41821         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41822         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41823
41824 2009-01-18  Bruno Haible  <bruno@clisp.org>
41825
41826         * lib/strftime.c (MEMPCPY): Remove unused macro.
41827         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41828
41829 2009-01-18  Martin Lambers  <marlam@marlam.de>
41830
41831         New module 'link'.
41832         * lib/unistd.in.h (link): New declaration.
41833         * lib/link.c: New file.
41834         * m4/link.m4: New file.
41835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41836         HAVE_LINK.
41837         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41838         * modules/link: New file.
41839         * doc/posix-functions/link.texi: Mention the new module.
41840
41841 2009-01-18  Bruno Haible  <bruno@clisp.org>
41842
41843         * tests/test-avltree_list.c (main): Call set_program_name.
41844         * tests/test-avltree_oset.c (main): Likewise.
41845         * tests/test-obstack-printf.c: Include progname.h.
41846         (main): Call set_program_name.
41847         * tests/test-quotearg.c: Include progname.h.
41848         (main): Call set_program_name.
41849         * tests/test-xmemdup0.c: Include progname.h.
41850         (main): Call set_program_name.
41851
41852 2009-01-18  Bruno Haible  <bruno@clisp.org>
41853
41854         New module 'alphasort'.
41855         * lib/dirent.in.h (alphasort): New declaration.
41856         * lib/alphasort.c: New file, from glibc with modifications.
41857         * m4/alphasort.m4: New file.
41858         * modules/alphasort: New file.
41859         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41860         HAVE_ALPHASORT.
41861         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41862         HAVE_ALPHASORT.
41863         * doc/posix-functions/alphasort.texi: Mention the new module and the
41864         portability problems.
41865
41866 2009-01-18  Bruno Haible  <bruno@clisp.org>
41867
41868         New module 'scandir'.
41869         * lib/dirent.in.h (scandir): New declaration.
41870         * lib/scandir.c: New file, from glibc with modifications.
41871         * m4/scandir.m4: New file.
41872         * modules/scandir: New file.
41873         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41874         HAVE_SCANDIR.
41875         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41876         HAVE_SCANDIR.
41877         * doc/posix-functions/scandir.texi: Mention the new module and the
41878         portability problems.
41879
41880 2009-01-17  Bruno Haible  <bruno@clisp.org>
41881
41882         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41883         Update documentation.
41884         (func_remove_suffix): Escape all dots in the suffix. Update
41885         documentation.
41886         (func_filter_filelist): Update documentation.
41887         Reported by Ralf Wildenhues.
41888
41889 2009-01-17  Bruno Haible  <bruno@clisp.org>
41890
41891         * modules/dprintf-posix-tests: New file.
41892         * tests/test-dprintf-posix.sh: New file.
41893         * tests/test-dprintf-posix.c: New file.
41894
41895         New modules 'dprintf', 'dprintf-posix'.
41896         * lib/stdio.in.h (dprintf): New declaration.
41897         * lib/dprintf.c: New file.
41898         * m4/dprintf.m4: New file.
41899         * m4/dprintf-posix.m4: New file.
41900         * modules/dprintf: New file.
41901         * modules/dprintf-posix: New file.
41902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41903         HAVE_DPRINTF, REPLACE_DPRINTF.
41904         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41905         HAVE_DPRINTF, REPLACE_DPRINTF.
41906         * doc/posix-functions/dprintf.texi: Mention the new modules.
41907
41908 2009-01-17  Bruno Haible  <bruno@clisp.org>
41909
41910         * modules/vdprintf-posix-tests: New file.
41911         * tests/test-vdprintf-posix.sh: New file.
41912         * tests/test-vdprintf-posix.c: New file.
41913
41914         New modules 'vdprintf', 'vdprintf-posix'.
41915         * lib/stdio.in.h (vdprintf): New declaration.
41916         * lib/vdprintf.c: New file.
41917         * m4/vdprintf.m4: New file.
41918         * m4/vdprintf-posix.m4: New file.
41919         * modules/vdprintf: New file.
41920         * modules/vdprintf-posix: New file.
41921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41922         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41923         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41924         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41925         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41926
41927 2009-01-17  Bruno Haible  <bruno@clisp.org>
41928
41929         Fix replacement of fopen on mingw.
41930         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41931         mingw.
41932
41933 2009-01-17  Bruno Haible  <bruno@clisp.org>
41934
41935         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41936         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41937
41938 2009-01-17  Bruno Haible  <bruno@clisp.org>
41939
41940         Avoid test-fflush2.sh failure on mingw.
41941         * tests/test-fflush2.c: Include binary-io.h.
41942         (main): Put standard input into binary mode.
41943         * modules/fflush-tests (Depends-on): Add binary-io.
41944
41945 2009-01-17  Bruno Haible  <bruno@clisp.org>
41946
41947         * lib/wchar.in.h: In another particular situation, include only the
41948         system's <wchar.h> file.
41949         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41950         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41951         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41952
41953 2009-01-17  Bruno Haible  <bruno@clisp.org>
41954
41955         Support for stripping executables in --enable-relocatable.
41956         * build-aux/install-reloc: Expect one more argument, or an environment
41957         variable RELOC_STRIP_PROG. If set, strip the destination program and
41958         its wrapper.
41959         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41960         RELOC_STRIP_PROG.
41961         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41962         to set RELOCATABLE_STRIP.
41963         * NEWS: Mention the new Makefile requirement.
41964
41965 2009-01-17  Bruno Haible  <bruno@clisp.org>
41966
41967         * build-aux/install-reloc: Remove debugging information left over by
41968         C compiler on MacOS X.
41969
41970 2009-01-17  Bruno Haible  <bruno@clisp.org>
41971
41972         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41973         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41974         _NSGetExecutablePath.
41975
41976 2009-01-16  Jim Meyering  <meyering@redhat.com>
41977
41978         strerror: avoid warnings about discarding "const"
41979         * lib/strerror.c (rpl_strerror): Instead of returning a const
41980         string from each and every "case", use a variable, and add a single
41981         cast after the switch.
41982
41983 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41984
41985         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41986
41987 2009-01-16  Bruno Haible  <bruno@clisp.org>
41988
41989         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41990         array initializer syntax that also works in C++ mode.
41991         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41992
41993 2009-01-16  Jim Meyering  <meyering@redhat.com>
41994
41995         poll: suppress a warning
41996         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41997         to ignore "...unsigned expression < 0 is always false" warnings.
41998
41999 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42000
42001         poll: remove declarations of unused variables
42002         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42003         sockbuf and optlen.
42004
42005 2009-01-15  Bruno Haible  <bruno@clisp.org>
42006
42007         Make fflush-after-ungetc POSIX compliant on BSD systems.
42008         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42009         (clear_ungetc_buffer): Implement also for other systems.
42010         (rpl_fflush): On glibc systems, invoke
42011         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42012         clear_ungetc_buffer after fetching the stream's position, not before.
42013
42014 2009-01-15  Bruno Haible  <bruno@clisp.org>
42015
42016         Make fflush-after-ungetc POSIX compliant on glibc systems.
42017         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42018         after ungetc.
42019         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42020         (rpl_fflush): On glibc systems, simply call the system's fflush
42021         function after clearing the ungetc buffer.
42022         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42023         Instead, lseek only to the end of file, then use the system's fseeko
42024         for the rest. On glibc systems, reset the EOF indicator bit.
42025
42026 2009-01-15  Jim Meyering  <meyering@redhat.com>
42027
42028         openmp.m4: revert quote-adding change, for portability to older autoconf
42029         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42030         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42031         Simon Josefsson noticed the problem when using autoconf-2.61.
42032
42033 2009-01-15  Bruno Haible  <bruno@clisp.org>
42034
42035         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42036         * tests/test-fflush2.c (ASSERT): Always fail.
42037         (main): Add two tests for fflush() after ungetc(), taking into account
42038         the Austin Group's clarification.
42039         Suggested by Eric Blake.
42040
42041 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42042
42043         mktime.m4: remove K&R-style function prototypes
42044         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42045         for the Sun C++ compiler.
42046
42047 2009-01-14  Bruno Haible  <bruno@clisp.org>
42048
42049         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42050         while including <wchar.h>.
42051         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42052         the system's <wchar.h> file.
42053         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42054
42055 2009-01-14  Bruno Haible  <bruno@clisp.org>
42056
42057         * m4/csharp.m4: Don't mention gettext on the serial number line.
42058         * m4/csharpexec.m4: Likewise.
42059         * m4/eaccess.m4: Likewise.
42060         * m4/javaexec.m4: Likewise.
42061         * m4/sig_atomic_t.m4: Likewise.
42062         * m4/tmpdir.m4: Likewise.
42063         * m4/intldir.m4: Bump gettext version.
42064         * m4/lib-ld.m4: Likewise.
42065
42066 2009-01-14  Bruno Haible  <bruno@clisp.org>
42067
42068         * lib/progname.c (set_program_name): Add more comments.
42069         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42070
42071 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42072
42073         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42074         were sys/stat.h does not define it.
42075
42076 2009-01-14  Jim Meyering  <meyering@redhat.com>
42077
42078         many *.m4 files: improve m4 quoting
42079         99% of this change was performed by running the following commands:
42080         git ls-files | grep '\.m4$' | xargs perl -pi \
42081           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42082           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42083           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42084           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42085         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42086         The remainder were to add Copyright dates, increment serial numbers,
42087         undo some changes in comments, exclude m4/intl.m4, and add quotes
42088         around the "1" in ",1" where the unusual spacing prohibited the
42089         above regexps from doing the job.  For more details, see
42090         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42091         * m4/acl.m4: Modified.
42092         * m4/afs.m4: Likewise.
42093         * m4/alloca.m4: Likewise.
42094         * m4/argp.m4: Likewise.
42095         * m4/argz.m4: Likewise.
42096         * m4/atexit.m4: Likewise.
42097         * m4/bison-i18n.m4: Likewise.
42098         * m4/bison.m4: Likewise.
42099         * m4/byteswap.m4: Likewise.
42100         * m4/c-stack.m4: Likewise.
42101         * m4/c-strtod.m4: Likewise.
42102         * m4/calloc.m4: Likewise.
42103         * m4/canonicalize-lgpl.m4: Likewise.
42104         * m4/chown.m4: Likewise.
42105         * m4/clock_time.m4: Likewise.
42106         * m4/codeset.m4: Likewise.
42107         * m4/copy-file.m4: Likewise.
42108         * m4/csharp.m4: Likewise.
42109         * m4/csharpcomp.m4: Likewise.
42110         * m4/csharpexec.m4: Likewise.
42111         * m4/d-ino.m4: Likewise.
42112         * m4/d-type.m4: Likewise.
42113         * m4/dirfd.m4: Likewise.
42114         * m4/double-slash-root.m4: Likewise.
42115         * m4/eaccess.m4: Likewise.
42116         * m4/eealloc.m4: Likewise.
42117         * m4/environ.m4: Likewise.
42118         * m4/errno_h.m4: Likewise.
42119         * m4/euidaccess.m4: Likewise.
42120         * m4/execute.m4: Likewise.
42121         * m4/fatal-signal.m4: Likewise.
42122         * m4/fchdir.m4: Likewise.
42123         * m4/fcntl_h.m4: Likewise.
42124         * m4/fileblocks.m4: Likewise.
42125         * m4/filenamecat.m4: Likewise.
42126         * m4/findprog.m4: Likewise.
42127         * m4/flexmember.m4: Likewise.
42128         * m4/fnmatch.m4: Likewise.
42129         * m4/fopen.m4: Likewise.
42130         * m4/fpending.m4: Likewise.
42131         * m4/fprintf-posix.m4: Likewise.
42132         * m4/free.m4: Likewise.
42133         * m4/frexp.m4: Likewise.
42134         * m4/frexpl.m4: Likewise.
42135         * m4/fsusage.m4: Likewise.
42136         * m4/ftruncate.m4: Likewise.
42137         * m4/gc-camellia.m4: Likewise.
42138         * m4/gc-random.m4: Likewise.
42139         * m4/gc.m4: Likewise.
42140         * m4/getaddrinfo.m4: Likewise.
42141         * m4/getcwd-abort-bug.m4: Likewise.
42142         * m4/getcwd-path-max.m4: Likewise.
42143         * m4/getdate.m4: Likewise.
42144         * m4/getdomainname.m4: Likewise.
42145         * m4/getgroups.m4: Likewise.
42146         * m4/gethostname.m4: Likewise.
42147         * m4/gethrxtime.m4: Likewise.
42148         * m4/getline.m4: Likewise.
42149         * m4/getloadavg.m4: Likewise.
42150         * m4/getndelim2.m4: Likewise.
42151         * m4/getpass.m4: Likewise.
42152         * m4/gettext.m4: Likewise.
42153         * m4/gettime.m4: Likewise.
42154         * m4/gettimeofday.m4: Likewise.
42155         * m4/gnulib-common.m4: Likewise.
42156         * m4/group-member.m4: Likewise.
42157         * m4/host-os.m4: Likewise.
42158         * m4/iconv.m4: Likewise.
42159         * m4/iconv_open.m4: Likewise.
42160         * m4/inet_ntop.m4: Likewise.
42161         * m4/inet_pton.m4: Likewise.
42162         * m4/inline.m4: Likewise.
42163         * m4/intldir.m4: Likewise.
42164         * m4/intlmacosx.m4: Likewise.
42165         * m4/intmax.m4: Likewise.
42166         * m4/intmax_t.m4: Likewise.
42167         * m4/inttypes.m4: Likewise.
42168         * m4/inttypes_h.m4: Likewise.
42169         * m4/inttypes-pri.m4: Likewise.
42170         * m4/isapipe.m4: Likewise.
42171         * m4/isnand.m4: Likewise.
42172         * m4/isnanf.m4: Likewise.
42173         * m4/isnanl.m4: Likewise.
42174         * m4/javacomp.m4: Likewise.
42175         * m4/javaexec.m4: Likewise.
42176         * m4/jm-winsz1.m4: Likewise.
42177         * m4/jm-winsz2.m4: Likewise.
42178         * m4/lchown.m4: Likewise.
42179         * m4/lcmessage.m4: Likewise.
42180         * m4/ldexpl.m4: Likewise.
42181         * m4/lib-ld.m4: Likewise.
42182         * m4/lib-link.m4: Likewise.
42183         * m4/libsigsegv.m4: Likewise.
42184         * m4/link-follow.m4: Likewise.
42185         * m4/localcharset.m4: Likewise.
42186         * m4/locale-fr.m4: Likewise.
42187         * m4/locale-ja.m4: Likewise.
42188         * m4/locale-tr.m4: Likewise.
42189         * m4/locale-zh.m4: Likewise.
42190         * m4/lock.m4: Likewise.
42191         * m4/longlong.m4: Likewise.
42192         * m4/ls-mntd-fs.m4: Likewise.
42193         * m4/lstat.m4: Likewise.
42194         * m4/malloc.m4: Likewise.
42195         * m4/mathl.m4: Likewise.
42196         * m4/mbrtowc.m4: Likewise.
42197         * m4/mbstate_t.m4: Likewise.
42198         * m4/mbswidth.m4: Likewise.
42199         * m4/memchr.m4: Likewise.
42200         * m4/memcmp.m4: Likewise.
42201         * m4/memcpy.m4: Likewise.
42202         * m4/memmem.m4: Likewise.
42203         * m4/memmove.m4: Likewise.
42204         * m4/mempcpy.m4: Likewise.
42205         * m4/memrchr.m4: Likewise.
42206         * m4/memset.m4: Likewise.
42207         * m4/minmax.m4: Likewise.
42208         * m4/mkdir-slash.m4: Likewise.
42209         * m4/mkdtemp.m4: Likewise.
42210         * m4/mktime.m4: Likewise.
42211         * m4/mmap-anon.m4: Likewise.
42212         * m4/mountlist.m4: Likewise.
42213         * m4/nanosleep.m4: Likewise.
42214         * m4/nls.m4: Likewise.
42215         * m4/nocrash.m4: Likewise.
42216         * m4/open.m4: Likewise.
42217         * m4/openat.m4: Likewise.
42218         * m4/openmp.m4: Likewise.
42219         * m4/pathmax.m4: Likewise.
42220         * m4/perl.m4: Likewise.
42221         * m4/physmem.m4: Likewise.
42222         * m4/pipe.m4: Likewise.
42223         * m4/po.m4: Likewise.
42224         * m4/poll.m4: Likewise.
42225         * m4/posixtm.m4: Likewise.
42226         * m4/posixver.m4: Likewise.
42227         * m4/printf-frexp.m4: Likewise.
42228         * m4/printf-frexpl.m4: Likewise.
42229         * m4/printf-posix.m4: Likewise.
42230         * m4/printf-posix-rpl.m4: Likewise.
42231         * m4/printf.m4: Likewise.
42232         * m4/progtest.m4: Likewise.
42233         * m4/putenv.m4: Likewise.
42234         * m4/readline.m4: Likewise.
42235         * m4/readlink.m4: Likewise.
42236         * m4/readutmp.m4: Likewise.
42237         * m4/realloc.m4: Likewise.
42238         * m4/regex.m4: Likewise.
42239         * m4/relocatable.m4: Likewise.
42240         * m4/relocatable-lib.m4: Likewise.
42241         * m4/rename-dest-slash.m4: Likewise.
42242         * m4/rename.m4: Likewise.
42243         * m4/rmdir-errno.m4: Likewise.
42244         * m4/rmdir.m4: Likewise.
42245         * m4/roundf.m4: Likewise.
42246         * m4/roundl.m4: Likewise.
42247         * m4/rpmatch.m4: Likewise.
42248         * m4/save-cwd.m4: Likewise.
42249         * m4/selinux-selinux-h.m4: Likewise.
42250         * m4/setenv.m4: Likewise.
42251         * m4/settime.m4: Likewise.
42252         * m4/sig2str.m4: Likewise.
42253         * m4/sig_atomic_t.m4: Likewise.
42254         * m4/signalblocking.m4: Likewise.
42255         * m4/signbit.m4: Likewise.
42256         * m4/sigpipe.m4: Likewise.
42257         * m4/sockets.m4: Likewise.
42258         * m4/sockpfaf.m4: Likewise.
42259         * m4/st_dm_mode.m4: Likewise.
42260         * m4/stat-time.m4: Likewise.
42261         * m4/stdbool.m4: Likewise.
42262         * m4/stdint.m4: Likewise.
42263         * m4/stdint_h.m4: Likewise.
42264         * m4/stpcpy.m4: Likewise.
42265         * m4/stpncpy.m4: Likewise.
42266         * m4/strcase.m4: Likewise.
42267         * m4/strchrnul.m4: Likewise.
42268         * m4/strcspn.m4: Likewise.
42269         * m4/strdup.m4: Likewise.
42270         * m4/strftime.m4: Likewise.
42271         * m4/strndup.m4: Likewise.
42272         * m4/strnlen.m4: Likewise.
42273         * m4/strpbrk.m4: Likewise.
42274         * m4/strptime.m4: Likewise.
42275         * m4/strsep.m4: Likewise.
42276         * m4/strtod.m4: Likewise.
42277         * m4/strtoimax.m4: Likewise.
42278         * m4/strtok_r.m4: Likewise.
42279         * m4/strtol.m4: Likewise.
42280         * m4/strtoll.m4: Likewise.
42281         * m4/strtoul.m4: Likewise.
42282         * m4/strtoull.m4: Likewise.
42283         * m4/strtoumax.m4: Likewise.
42284         * m4/strverscmp.m4: Likewise.
42285         * m4/threadlib.m4: Likewise.
42286         * m4/timegm.m4: Likewise.
42287         * m4/tm_gmtoff.m4: Likewise.
42288         * m4/tmpdir.m4: Likewise.
42289         * m4/tmpfile.m4: Likewise.
42290         * m4/tzset.m4: Likewise.
42291         * m4/uintmax_t.m4: Likewise.
42292         * m4/unlinkdir.m4: Likewise.
42293         * m4/unlocked-io.m4: Likewise.
42294         * m4/uptime.m4: Likewise.
42295         * m4/userspec.m4: Likewise.
42296         * m4/utimbuf.m4: Likewise.
42297         * m4/utime.m4: Likewise.
42298         * m4/utimes-null.m4: Likewise.
42299         * m4/utimes.m4: Likewise.
42300         * m4/vararrays.m4: Likewise.
42301         * m4/vasnprintf.m4: Likewise.
42302         * m4/vfprintf-posix.m4: Likewise.
42303         * m4/vprintf-posix.m4: Likewise.
42304         * m4/wait-process.m4: Likewise.
42305         * m4/wchar_t.m4: Likewise.
42306         * m4/wint_t.m4: Likewise.
42307         * m4/write-any-file.m4: Likewise.
42308         * m4/yield.m4: Likewise.
42309
42310 2009-01-13  Bruno Haible  <bruno@clisp.org>
42311
42312         Avoid test-copy-file.sh failures when ACL support insufficient.
42313         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42314         TESTS_ENVIRONMENT.
42315         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42316         Reported by Jim Meyering.
42317
42318 2009-01-13  Bruno Haible  <bruno@clisp.org>
42319
42320         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42321         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42322         * modules/unistdio/u8-printf-parse (Files): Likewise.
42323         * modules/unistdio/u32-printf-parse (Files): Likewise.
42324         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42325
42326 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42327
42328         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42329         and m4/inttypes_h.m4 too.
42330
42331 2009-01-12  Eric Blake  <ebb9@byu.net>
42332
42333         tests: IRIX 6.2 cc can't compile -0.0 into .data
42334         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42335         rather than at compile-time.
42336         * tests/test-floorl.c (minus_zero): Likewise.
42337         * tests/test-frexpl.c (minus_zero): Likewise.
42338         * tests/test-isnan.c (minus_zerol): Likewise.
42339         * tests/test-isnanl.h (minus_zero): Likewise.
42340         * tests/test-ldexpl.c (minus_zero): Likewise.
42341         * tests/test-roundl.c (minus_zero): Likewise.
42342         * tests/test-signbit.c (minus_zerol): Likewise.
42343         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42344         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42345         * tests/test-truncl.c (minus_zero): Likewise.
42346         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42347         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42348         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42349
42350 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42351
42352         regex: fix glibc bug 9697
42353         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42354         handling.
42355
42356 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42357
42358         regex: fix glibc bug 697
42359         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42360         being NULL also if there are no backreferences.
42361
42362 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42363
42364         regex: merge glibc changes
42365         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42366         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42367         re_string_skip_chars, re_string_reconstruct): Likewise.
42368         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42369
42370 2009-01-07  Jim Meyering  <meyering@redhat.com>
42371
42372         poll: filter through cppi
42373         * lib/poll.c: Indent cpp directives to reflect nesting.
42374
42375 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42376
42377         poll: don't return uninitialized
42378         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42379
42380 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42381
42382         avoid compile failure on AIX 6.1
42383         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42384         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42385
42386 2009-01-04  Jim Meyering  <meyering@redhat.com>
42387
42388         remove duplicate inclusion of <stdio.h>
42389         * tests/test-fprintf-posix.c: Likewise.
42390         * tests/test-printf-posix.c: Likewise.
42391         * tests/test-snprintf-posix.c: Likewise.
42392         * tests/test-sprintf-posix.c: Likewise.
42393         * tests/test-vasprintf-posix.c: Likewise.
42394         * tests/test-vfprintf-posix.c: Likewise.
42395         * tests/test-vprintf-posix.c: Likewise.
42396         * tests/test-vsnprintf-posix.c: Likewise.
42397         * tests/test-vsprintf-posix.c: Likewise.
42398
42399 2009-01-03  Jim Meyering  <meyering@redhat.com>
42400
42401         gnulib-tool: fix sed-based filtering
42402         * gnulib-tool (func_filter_filelist): Remove extra backslash
42403         in sed_fff_filter definition.
42404
42405 2009-01-02  Jim Meyering  <meyering@redhat.com>
42406
42407         strftime: avoid compilation failure on Solaris 2.6
42408         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42409         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42410         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42411         be available.  Reported by Tom G. Christensen.  Details in
42412         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42413
42414 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42415             Bruno Haible  <bruno@clisp.org>
42416
42417         Speed up gnulib-tool by doing more string processing through shell
42418         built-ins.
42419         * gnulib-tool (fast_func_append): New variable.
42420         (func_remove_prefix, func_remove_suffix): New functions.
42421         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42422         (func_filter_filelist): New function.
42423         (func_get_dependencies): Use func_remove_suffix instead of sed.
42424         (func_get_automake_snippet): Use func_filter_filelist instead of a
42425         subshell and sed invocation.
42426
42427 2009-01-01  Bruno Haible  <bruno@clisp.org>
42428
42429         Fix a security bug.
42430         * gnulib-tool (func_import, import, update): Don't allow the characters
42431         '"', '$', '`', '\' in macro arguments that become part of commands that
42432         are evaluated.
42433
42434 2009-01-01  Bruno Haible  <bruno@clisp.org>
42435
42436         * gnulib-tool (func_reset_sigpipe): Add more comments.
42437
42438 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42439
42440         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42441         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42442         already know the answer.
42443
42444 2009-01-01  Jim Meyering  <meyering@redhat.com>
42445
42446         * lib/version-etc.c (version_etc_va): Update copyright year.
42447
42448 2008-12-30  Bruno Haible  <bruno@clisp.org>
42449
42450         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42451         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42452         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42453
42454 2008-12-29  Eric Blake  <ebb9@byu.net>
42455
42456         multiarch: avoid autoconf AC_REQUIRE bug
42457         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42458         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42459         2.63 and older.
42460         Reported by Bruno Haible, and analyzed in
42461         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42462
42463 2008-12-29  Bruno Haible  <bruno@clisp.org>
42464
42465         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42466         files in subdirectories correctly.
42467         Reported by Ralf Wildenhues.
42468
42469 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42470
42471         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42472         rather than 'join FILE -', for Solaris join.
42473
42474 2008-12-29  Bruno Haible  <bruno@clisp.org>
42475
42476         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42477         quoting.
42478         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42479         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42480         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42481         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42482         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42483         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42484         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42485         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42486         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42487         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42488         * m4/nls.m4 (AM_NLS): Likewise.
42489         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42490         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42491         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42492         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42493         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42494         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42495         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42496         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42497         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42498         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42499         * m4/xsize.m4 (gl_XSIZE): Likewise.
42500         Suggested by Jim Meyering.
42501
42502 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42503
42504         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42505         * lib/parse-duration.c: use a switch instead of cascading if's.
42506
42507 2008-12-29  Eric Blake  <ebb9@byu.net>
42508
42509         wchar.h: supply WEOF on Irix 5.3
42510         * lib/wchar.in.h (wint_t): Also supply WEOF.
42511         * lib/wctype.in.h (wint_t): Likewise.
42512         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42513         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42514         Reported by Tom G. Christensen.
42515
42516 2008-12-26  Bruno Haible  <bruno@clisp.org>
42517
42518         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42519         i486, i586, i686.
42520
42521 2008-12-26  Bruno Haible  <bruno@clisp.org>
42522
42523         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42524
42525 2008-12-26  Bruno Haible  <bruno@clisp.org>
42526
42527         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42528         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42529         not __STDC_CONSTANT_MACROS.
42530         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42531
42532 2008-12-25  Bruno Haible  <bruno@clisp.org>
42533
42534         Add support for universal builds to vasnprintf.
42535         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42536         universal builds, guess no.
42537         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42538         * modules/vasprintf-posix (Depends-on): Likewise.
42539         * modules/fprintf-posix (Depends-on): Likewise.
42540         * modules/vfprintf-posix (Depends-on): Likewise.
42541         * modules/snprintf-posix (Depends-on): Likewise.
42542         * modules/vsnprintf-posix (Depends-on): Likewise.
42543         * modules/sprintf-posix (Depends-on): Likewise.
42544         * modules/vsprintf-posix (Depends-on): Likewise.
42545         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42546         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42547         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42548         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42549         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42550         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42551         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42552
42553         Add support for universal builds to <inttypes.h>.
42554         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42555         _SCNu64_PREFIX): In Apple
42556         universal builds, define directly, using _LP64.
42557         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42558         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42559         * modules/inttypes (Depends-on): Add multiarch.
42560         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42561
42562         Add support for universal builds to <stdint.h>.
42563         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42564         universal builds, define directly, using _LP64.
42565         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42566         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42567         and size_t.
42568         * modules/stdint (Depends-on): Add multiarch.
42569         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42570
42571         New module 'multiarch'.
42572         * modules/multiarch: New file.
42573         * m4/multiarch.m4: New file.
42574
42575 2008-12-25  Bruno Haible  <bruno@clisp.org>
42576
42577         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42578
42579 2008-12-25  Bruno Haible  <bruno@clisp.org>
42580
42581         * modules/btowc (License): Relicense under LGPLv2+.
42582         * modules/mbsinit (License): Likewise.
42583         * modules/mbrtowc (License): Likewise.
42584         * modules/wcrtomb (License): Likewise.
42585         * modules/streq (License): Likewise.
42586         Reported by David Lutterkort <lutter@redhat.com>.
42587
42588 2008-12-23  Bruno Haible  <bruno@clisp.org>
42589
42590         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42591
42592 2008-12-23  Bruno Haible  <bruno@clisp.org>
42593
42594         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42595         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42596         GETADDRINFO_LIB, not in LIBS.
42597         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42598         * modules/canon-host (Link): Likewise.
42599         * NEWS: Mention the change.
42600         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42601         GETADDRINFO_LIB.
42602
42603 2008-12-22  Bruno Haible  <bruno@clisp.org>
42604
42605         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42606         * doc/posix-functions/iswalpha_l.texi: Likewise.
42607         * doc/posix-functions/iswblank_l.texi: Likewise.
42608         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42609         * doc/posix-functions/iswctype_l.texi: Likewise.
42610         * doc/posix-functions/iswdigit_l.texi: Likewise.
42611         * doc/posix-functions/iswgraph_l.texi: Likewise.
42612         * doc/posix-functions/iswlower_l.texi: Likewise.
42613         * doc/posix-functions/iswprint_l.texi: Likewise.
42614         * doc/posix-functions/iswpunct_l.texi: Likewise.
42615         * doc/posix-functions/iswspace_l.texi: Likewise.
42616         * doc/posix-functions/iswupper_l.texi: Likewise.
42617         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42618         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42619         * doc/posix-functions/open_wmemstream.texi: Likewise.
42620         * doc/posix-functions/swscanf.texi: Likewise.
42621         * doc/posix-functions/towctrans_l.texi: Likewise.
42622         * doc/posix-functions/towlower.texi: Likewise.
42623         * doc/posix-functions/towlower_l.texi: Likewise.
42624         * doc/posix-functions/towupper.texi: Likewise.
42625         * doc/posix-functions/towupper_l.texi: Likewise.
42626         * doc/posix-functions/vfwprintf.texi: Likewise.
42627         * doc/posix-functions/vfwscanf.texi: Likewise.
42628         * doc/posix-functions/vswscanf.texi: Likewise.
42629         * doc/posix-functions/vwprintf.texi: Likewise.
42630         * doc/posix-functions/vwscanf.texi: Likewise.
42631         * doc/posix-functions/wcpcpy.texi: Likewise.
42632         * doc/posix-functions/wcpncpy.texi: Likewise.
42633         * doc/posix-functions/wcscasecmp.texi: Likewise.
42634         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42635         * doc/posix-functions/wcscoll_l.texi: Likewise.
42636         * doc/posix-functions/wcsdup.texi: Likewise.
42637         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42638         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42639         * doc/posix-functions/wcsnlen.texi: Likewise.
42640         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42641         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42642         * doc/posix-functions/wctrans_l.texi: Likewise.
42643         * doc/posix-functions/wctype_l.texi: Likewise.
42644         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42645         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42646         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42647         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42648         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42649         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42650         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42651         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42652         * doc/glibc-functions/wcschrnul.texi: Likewise.
42653         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42654         * doc/glibc-functions/wcstod_l.texi: Likewise.
42655         * doc/glibc-functions/wcstof_l.texi: Likewise.
42656         * doc/glibc-functions/wcstol_l.texi: Likewise.
42657         * doc/glibc-functions/wcstold_l.texi: Likewise.
42658         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42659         * doc/glibc-functions/wcstoq.texi: Likewise.
42660         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42661         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42662         * doc/glibc-functions/wcstouq.texi: Likewise.
42663         * doc/glibc-functions/wmempcpy.texi: Likewise.
42664
42665 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42666             Eric Blake  <ebb9@byu.net>
42667             Paolo Bonzini  <bonzini@gnu.org>
42668             Bruno Haible  <bruno@clisp.org>
42669
42670         Make c-stack work on Haiku.
42671         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42672         (c_stack_action): Use SA_ONSTACK flag.
42673
42674 2008-12-22  Bruno Haible  <bruno@clisp.org>
42675
42676         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42677
42678 2008-12-22  Bruno Haible  <bruno@clisp.org>
42679
42680         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42681         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42682         being overridden.
42683         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42684         New macros.
42685         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42686         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42687         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42688         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42689
42690 2008-12-22  Bruno Haible  <bruno@clisp.org>
42691
42692         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42693         from test code.
42694
42695 2008-12-22  Eric Blake  <ebb9@byu.net>
42696
42697         Avoid gcc warnings on cygwin.
42698         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42699         Avoid unused variable.
42700         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42701         Likewise.
42702
42703 2008-12-22  Bruno Haible  <bruno@clisp.org>
42704
42705         Remove HAVE_MBRTOWC conditionals.
42706         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42707         (mbscasecmp): Assume mbrtowc function.
42708         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42709         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42710         * lib/mbschr.c: Include mbuiter.h unconditionally.
42711         (mbschr): Assume mbrtowc function.
42712         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42713         (mbscspn): Assume mbrtowc function.
42714         * lib/mbslen.c: Include mbuiter.h unconditionally.
42715         (mbslen): Assume mbrtowc function.
42716         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42717         (mbsncasecmp): Assume mbrtowc function.
42718         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42719         (mbsnlen): Assume mbrtowc function.
42720         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42721         (mbspbrk): Assume mbrtowc function.
42722         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42723         (mbspcasecmp): Assume mbrtowc function.
42724         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42725         (mbsrchr): Assume mbrtowc function.
42726         * lib/mbssep.c: Include mbuiter.h unconditionally.
42727         (mbssep): Assume mbrtowc function.
42728         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42729         (mbsspn): Assume mbrtowc function.
42730         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42731         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42732         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42733         (mbstok_r): Assume mbrtowc function.
42734         * lib/propername.c: Include mbuiter.h unconditionally.
42735         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42736         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42737         (trim2): Assume mbrtowc function.
42738         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42739         (mbsnwidth): Assume mbrtowc function.
42740         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42741         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42742         fallback definitions.
42743         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42744
42745 2008-12-22  Bruno Haible  <bruno@clisp.org>
42746
42747         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42748
42749 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42750
42751         * modules/regex: Request emulations for the mb*/wc* functions we need.
42752         * m4/regex.m4: Don't look for those functions here.
42753         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42754
42755 2008-12-22  Bruno Haible  <bruno@clisp.org>
42756
42757         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42758
42759 2008-12-21  Bruno Haible  <bruno@clisp.org>
42760
42761         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42762         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42763         (Include): Remove conditionalization.
42764         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42765         (Include): Remove conditionalization.
42766         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42767         (Include): Remove conditionalization.
42768         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42769         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42770         * NEWS: Mention the change.
42771         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42772         via Sergey Poznyakoff <gray@gnu.org.ua>.
42773
42774 2008-12-21  Bruno Haible  <bruno@clisp.org>
42775
42776         * MODULES.html.sh (Extended multibyte and wide character utilities
42777         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42778         wcrtomb, wcsrtombs.
42779         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42780         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42781         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42782         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42783
42784 2008-12-21  Bruno Haible  <bruno@clisp.org>
42785
42786         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42787
42788 2008-12-21  Bruno Haible  <bruno@clisp.org>
42789
42790         * modules/wcsnrtombs-tests: New file.
42791         * tests/test-wcsnrtombs1.sh: New file.
42792         * tests/test-wcsnrtombs2.sh: New file.
42793         * tests/test-wcsnrtombs3.sh: New file.
42794         * tests/test-wcsnrtombs4.sh: New file.
42795         * tests/test-wcsnrtombs.c: New file.
42796
42797         New module 'wcsnrtombs'.
42798         * lib/wchar.in.h (wcsnrtombs): New declaration.
42799         * lib/wcsnrtombs.c: New file.
42800         * lib/wcsrtombs-state.c: New file.
42801         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42802         (internal_state): Remove variable.
42803         * m4/wcsnrtombs.m4: New file.
42804         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42805         compilation units.
42806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42807         HAVE_WCSNRTOMBS.
42808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42809         HAVE_WCSNRTOMBS.
42810         * modules/wcsnrtombs: New file.
42811         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42812         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42813
42814 2008-12-21  Bruno Haible  <bruno@clisp.org>
42815
42816         * modules/wcsrtombs-tests: New file.
42817         * tests/test-wcsrtombs1.sh: New file.
42818         * tests/test-wcsrtombs2.sh: New file.
42819         * tests/test-wcsrtombs3.sh: New file.
42820         * tests/test-wcsrtombs4.sh: New file.
42821         * tests/test-wcsrtombs.c: New file.
42822
42823         New module 'wcsrtombs'.
42824         * lib/wchar.in.h (wcsrtombs): New declaration.
42825         * lib/wcsrtombs.c: New file.
42826         * m4/wcsrtombs.m4: New file.
42827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42828         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42830         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42831         * modules/wcsrtombs: New file.
42832         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42833         bugs.
42834
42835 2008-12-21  Bruno Haible  <bruno@clisp.org>
42836
42837         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42838         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42839         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42840         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42841         if not correct.
42842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42843         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42844         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42845         m4/locale-zh.m4, m4/codeset.m4.
42846         * doc/posix-functions/wcrtomb.texi: Document the bug.
42847
42848 2008-12-21  Bruno Haible  <bruno@clisp.org>
42849
42850         Work around a btowc() bug on IRIX 6.5.
42851         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42852         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42853         REPLACE_WTOBC if not.
42854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42855         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42856         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42857
42858 2008-12-21  Bruno Haible  <bruno@clisp.org>
42859
42860         * modules/wcrtomb-tests: New file.
42861         * tests/test-wcrtomb.sh: New file.
42862         * tests/test-wcrtomb.c: New file.
42863
42864         New module 'wcrtomb'.
42865         * lib/wchar.in.h (wcrtomb): New declaration.
42866         * lib/wcrtomb.c: New file.
42867         * m4/wcrtomb.m4: New file.
42868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42869         HAVE_WCRTOMB.
42870         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42871         HAVE_WCRTOMB.
42872         * modules/wcrtomb: New file.
42873         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42874
42875 2008-12-21  Bruno Haible  <bruno@clisp.org>
42876
42877         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42878         * modules/mbsrtowcs (Files): Likewise.
42879         * modules/wctob (Files): Likewise.
42880         * modules/c-strcase-tests (Files): Likewise.
42881         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42882         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42883         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42884         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42885         * modules/vasnprintf-posix-tests (Files): Likewise.
42886
42887 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42888
42889         gitlog-to-changelog: pass all command-line arguments to git-log
42890         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42891         it is sometimes convenient to filter the commits in various ways.
42892         gitlog-to-changelog only allows --since to specify a start date,
42893         but git-log itself supports many other filtering mechanisms.
42894         At the moment, I want to filter by branch name.  Rather than
42895         adding a --branch option to gitlog-to-changelog, it seems more
42896         flexible to simply pass all options directly to git-log and let
42897         git do the work.  Notice that this effectively makes --since a
42898         redundant option for gitlog-to-changelog, but removing it would
42899         require current usage to change since calls would then require
42900         an additional '--'.
42901
42902 2008-12-21  Bruno Haible  <bruno@clisp.org>
42903
42904         * modules/mbsnrtowcs-tests: New file.
42905         * tests/test-mbsnrtowcs1.sh: New file.
42906         * tests/test-mbsnrtowcs2.sh: New file.
42907         * tests/test-mbsnrtowcs3.sh: New file.
42908         * tests/test-mbsnrtowcs4.sh: New file.
42909         * tests/test-mbsnrtowcs.c: New file.
42910
42911         New module 'mbsnrtowcs'.
42912         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42913         * lib/mbsnrtowcs.c: New file.
42914         * lib/mbsrtowcs-state.c: New file.
42915         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42916         (internal_state): Remove variable.
42917         * m4/mbsnrtowcs.m4: New file.
42918         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42919         compilation units.
42920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42921         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42922         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42923         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42924         * modules/mbsnrtowcs: New file.
42925         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42926         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42927         portability problem.
42928
42929 2008-12-21  Bruno Haible  <bruno@clisp.org>
42930
42931         Work around mbsrtowcs bug.
42932         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42933         (gl_FUNC_MBSRTOWCS): Invoke it.
42934         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42935         m4/locale-zh.m4.
42936         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42937
42938 2008-12-21  Bruno Haible  <bruno@clisp.org>
42939
42940         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42941
42942 2008-12-21  Bruno Haible  <bruno@clisp.org>
42943
42944         Update doc for AIX.
42945         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42946         16-bit wchar_t type.
42947         * doc/posix-functions/btowc.texi: Likewise.
42948         * doc/posix-functions/fgetwc.texi: Likewise.
42949         * doc/posix-functions/fgetws.texi: Likewise.
42950         * doc/posix-functions/fputwc.texi: Likewise.
42951         * doc/posix-functions/fputws.texi: Likewise.
42952         * doc/posix-functions/fwide.texi: Likewise.
42953         * doc/posix-functions/fwprintf.texi: Likewise.
42954         * doc/posix-functions/fwscanf.texi: Likewise.
42955         * doc/posix-functions/getwchar.texi: Likewise.
42956         * doc/posix-functions/getwc.texi: Likewise.
42957         * doc/posix-functions/iswalnum.texi: Likewise.
42958         * doc/posix-functions/iswalpha.texi: Likewise.
42959         * doc/posix-functions/iswblank.texi: Likewise.
42960         * doc/posix-functions/iswcntrl.texi: Likewise.
42961         * doc/posix-functions/iswctype.texi: Likewise.
42962         * doc/posix-functions/iswdigit.texi: Likewise.
42963         * doc/posix-functions/iswgraph.texi: Likewise.
42964         * doc/posix-functions/iswlower.texi: Likewise.
42965         * doc/posix-functions/iswprint.texi: Likewise.
42966         * doc/posix-functions/iswpunct.texi: Likewise.
42967         * doc/posix-functions/iswspace.texi: Likewise.
42968         * doc/posix-functions/iswupper.texi: Likewise.
42969         * doc/posix-functions/iswxdigit.texi: Likewise.
42970         * doc/posix-functions/mbrtowc.texi: Likewise.
42971         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42972         * doc/posix-functions/mbstowcs.texi: Likewise.
42973         * doc/posix-functions/mbtowc.texi: Likewise.
42974         * doc/posix-functions/putwchar.texi: Likewise.
42975         * doc/posix-functions/putwc.texi: Likewise.
42976         * doc/posix-functions/swprintf.texi: Likewise.
42977         * doc/posix-functions/tolower.texi: Likewise.
42978         * doc/posix-functions/toupper.texi: Likewise.
42979         * doc/posix-functions/towctrans.texi: Likewise.
42980         * doc/posix-functions/ungetwc.texi: Likewise.
42981         * doc/posix-functions/vswprintf.texi: Likewise.
42982         * doc/posix-functions/wcrtomb.texi: Likewise.
42983         * doc/posix-functions/wcscat.texi: Likewise.
42984         * doc/posix-functions/wcschr.texi: Likewise.
42985         * doc/posix-functions/wcscmp.texi: Likewise.
42986         * doc/posix-functions/wcscoll.texi: Likewise.
42987         * doc/posix-functions/wcscpy.texi: Likewise.
42988         * doc/posix-functions/wcscspn.texi: Likewise.
42989         * doc/posix-functions/wcsftime.texi: Likewise.
42990         * doc/posix-functions/wcslen.texi: Likewise.
42991         * doc/posix-functions/wcsncat.texi: Likewise.
42992         * doc/posix-functions/wcsncmp.texi: Likewise.
42993         * doc/posix-functions/wcsncpy.texi: Likewise.
42994         * doc/posix-functions/wcspbrk.texi: Likewise.
42995         * doc/posix-functions/wcsrchr.texi: Likewise.
42996         * doc/posix-functions/wcsrtombs.texi: Likewise.
42997         * doc/posix-functions/wcsspn.texi: Likewise.
42998         * doc/posix-functions/wcsstr.texi: Likewise.
42999         * doc/posix-functions/wcstod.texi: Likewise.
43000         * doc/posix-functions/wcstof.texi: Likewise.
43001         * doc/posix-functions/wcstoimax.texi: Likewise.
43002         * doc/posix-functions/wcstok.texi: Likewise.
43003         * doc/posix-functions/wcstold.texi: Likewise.
43004         * doc/posix-functions/wcstoll.texi: Likewise.
43005         * doc/posix-functions/wcstol.texi: Likewise.
43006         * doc/posix-functions/wcstombs.texi: Likewise.
43007         * doc/posix-functions/wcstoull.texi: Likewise.
43008         * doc/posix-functions/wcstoul.texi: Likewise.
43009         * doc/posix-functions/wcstoumax.texi: Likewise.
43010         * doc/posix-functions/wcswidth.texi: Likewise.
43011         * doc/posix-functions/wcsxfrm.texi: Likewise.
43012         * doc/posix-functions/wctob.texi: Likewise.
43013         * doc/posix-functions/wctomb.texi: Likewise.
43014         * doc/posix-functions/wctrans.texi: Likewise.
43015         * doc/posix-functions/wctype.texi: Likewise.
43016         * doc/posix-functions/wcwidth.texi: Likewise.
43017         * doc/posix-functions/wmemchr.texi: Likewise.
43018         * doc/posix-functions/wmemcmp.texi: Likewise.
43019         * doc/posix-functions/wmemcpy.texi: Likewise.
43020         * doc/posix-functions/wmemmove.texi: Likewise.
43021         * doc/posix-functions/wmemset.texi: Likewise.
43022         * doc/posix-functions/wprintf.texi: Likewise.
43023         * doc/posix-functions/wscanf.texi: Likewise.
43024
43025 2008-12-21  Bruno Haible  <bruno@clisp.org>
43026
43027         Update doc for HP-UX 11.11.
43028         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43029         in HP-UX version 11.00, not in all versions of HP-UX 11.
43030         * doc/posix-functions/fwide.texi: Likewise.
43031         * doc/posix-functions/fwprintf.texi: Likewise.
43032         * doc/posix-functions/fwscanf.texi: Likewise.
43033         * doc/posix-functions/inet_ntop.texi: Likewise.
43034         * doc/posix-functions/inet_pton.texi: Likewise.
43035         * doc/posix-functions/mbrlen.texi: Likewise.
43036         * doc/posix-functions/mbrtowc.texi: Likewise.
43037         * doc/posix-functions/mbsinit.texi: Likewise.
43038         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43039         * doc/posix-functions/swprintf.texi: Likewise.
43040         * doc/posix-functions/swscanf.texi: Likewise.
43041         * doc/posix-functions/towctrans.texi: Likewise.
43042         * doc/posix-functions/vfwprintf.texi: Likewise.
43043         * doc/posix-functions/vswprintf.texi: Likewise.
43044         * doc/posix-functions/vwprintf.texi: Likewise.
43045         * doc/posix-functions/wcrtomb.texi: Likewise.
43046         * doc/posix-functions/wcsrtombs.texi: Likewise.
43047         * doc/posix-functions/wcsstr.texi: Likewise.
43048         * doc/posix-functions/wctob.texi: Likewise.
43049         * doc/posix-functions/wctrans.texi: Likewise.
43050         * doc/posix-functions/wmemchr.texi: Likewise.
43051         * doc/posix-functions/wmemcmp.texi: Likewise.
43052         * doc/posix-functions/wmemcpy.texi: Likewise.
43053         * doc/posix-functions/wmemmove.texi: Likewise.
43054         * doc/posix-functions/wmemset.texi: Likewise.
43055         * doc/posix-functions/wprintf.texi: Likewise.
43056         * doc/posix-functions/wscanf.texi: Likewise.
43057
43058 2008-12-21  Bruno Haible  <bruno@clisp.org>
43059
43060         Work around a portability problem.
43061         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43062         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43063
43064 2008-12-20  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43067         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43068         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43070         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43071
43072         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43073         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43074         set.
43075         (GNULIB_defined_mbstate_t): New macro.
43076         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43077         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43078         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43079         reuses the system's mbrtowc function but works around the bugs.
43080         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43081         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43082         macros.
43083         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43084         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43085         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43086         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43087         REPLACE_MBSINIT if mbsinit needs to be overridden.
43088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43089         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43090         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43091         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43092         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43093         m4/locale-zh.m4.
43094         (Depends): Add mbsinit.
43095         * modules/mbsinit (Depends): Add mbrtowc.
43096         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43097
43098 2008-12-20  Bruno Haible  <bruno@clisp.org>
43099
43100         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43101         so that there are no conversion errors on AIX.
43102         * tests/test-mbsrtowcs.c (main): LIkewise.
43103
43104 2008-12-20  Bruno Haible  <bruno@clisp.org>
43105
43106         Work around wctob bug on Solaris <= 9.
43107         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43108         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43110         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43111         * modules/wctob (Files): Add m4/locale-fr.m4.
43112         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43113
43114 2008-12-20  Bruno Haible  <bruno@clisp.org>
43115
43116         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43117         /dev/null.
43118         * tests/test-select-in.sh: Likewise.
43119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43120
43121 2008-12-20  Bruno Haible  <bruno@clisp.org>
43122
43123         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43124         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43125         Cygwin 1.5.x.
43126
43127 2008-12-20  Bruno Haible  <bruno@clisp.org>
43128
43129         Ensure mbstate_t is defined on HP-UX 11.11.
43130         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43131         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43132         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43133         AC_USE_SYSTEM_EXTENSIONS.
43134         * modules/fnmatch (Depends-on): Add extensions.
43135         * modules/mbrlen (Depends-on): Likewise.
43136         * modules/mbrtowc (Depends-on): Likewise.
43137         * modules/mbsinit (Depends-on): Likewise.
43138         * modules/mbsrtowcs (Depends-on): Likewise.
43139         * modules/mbswidth (Depends-on): Likewise.
43140         * modules/quotearg (Depends-on): Likewise.
43141         * modules/strftime (Depends-on): Likewise.
43142
43143 2008-12-20  Bruno Haible  <bruno@clisp.org>
43144
43145         Ensure wctob is declared on IRIX 6.5.
43146         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43147         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43148         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43150         of HAVE_WCTOB.
43151         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43152         HAVE_WCTOB.
43153         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43154
43155 2008-12-19  Bruno Haible  <bruno@clisp.org>
43156
43157         * modules/mbsrtowcs-tests: New file.
43158         * tests/test-mbsrtowcs1.sh: New file.
43159         * tests/test-mbsrtowcs2.sh: New file.
43160         * tests/test-mbsrtowcs3.sh: New file.
43161         * tests/test-mbsrtowcs4.sh: New file.
43162         * tests/test-mbsrtowcs.c: New file.
43163
43164         New module 'mbsrtowcs'.
43165         * lib/wchar.in.h (mbsrtowcs): New declaration.
43166         * lib/mbsrtowcs.c: New file.
43167         * m4/mbsrtowcs.m4: New file.
43168         * modules/mbsrtowcs: New file.
43169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43170         HAVE_MBSRTOWCS.
43171         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43172         HAVE_MBSRTOWCS.
43173         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43174
43175 2008-12-19  Bruno Haible  <bruno@clisp.org>
43176
43177         New module 'mbrlen'.
43178         * lib/wchar.in.h (mbrlen): New declaration.
43179         * lib/mbrlen.c: New file.
43180         * m4/mbrlen.m4: New file.
43181         * modules/mbrlen: New file.
43182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43183         HAVE_MBRLEN.
43184         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43185         HAVE_MBRLEN.
43186         * doc/posix-functions/mbrlen.texi: Document the new module.
43187
43188 2008-12-19  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43191         * modules/mbrtowc (Depends-on): Add verify.
43192         Suggested by Paul Eggert.
43193
43194 2008-12-18  Bruno Haible  <bruno@clisp.org>
43195
43196         * modules/mbsinit-tests: New file.
43197         * tests/test-mbsinit.sh: New file.
43198         * tests/test-mbsinit.c: New file.
43199
43200 2008-12-18  Bruno Haible  <bruno@clisp.org>
43201
43202         * modules/mbrtowc-tests: New file.
43203         * tests/test-mbrtowc1.sh: New file.
43204         * tests/test-mbrtowc2.sh: New file.
43205         * tests/test-mbrtowc3.sh: New file.
43206         * tests/test-mbrtowc4.sh: New file.
43207         * tests/test-mbrtowc.c: New file.
43208
43209         New module 'mbrtowc'.
43210         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43211         mbsinit and mbrtowc.
43212         (mbrtowc): New declaration.
43213         * lib/mbrtowc.c: New file.
43214         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43215         * modules/mbrtowc: New file.
43216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43217         HAVE_MBRTOWC.
43218         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43219         HAVE_MBRTOWC.
43220         * doc/posix-functions/mbrtowc.texi: Document the new module.
43221
43222 2008-12-18  Bruno Haible  <bruno@clisp.org>
43223
43224         New module 'wctob'.
43225         * lib/wchar.in.h (wctob): New declaration.
43226         * lib/wctob.c: New file.
43227         * m4/wctob.m4: New file.
43228         * modules/wctob: New file.
43229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43230         HAVE_WCTOB.
43231         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43232         * doc/posix-functions/wctob.texi: Document the new module.
43233
43234 2008-12-18  Bruno Haible  <bruno@clisp.org>
43235
43236         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43237         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43238
43239 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43240
43241         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43242         G. Christensen" <tgc@jupiterrise.com>.
43243
43244         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43245         G. Christensen" <tgc@jupiterrise.com>.
43246
43247         * lib/flock.c: Need to include string.h.  Reported by "Tom
43248         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43249         <ebb9@byu.net>.
43250
43251 2008-12-18  Bruno Haible  <bruno@clisp.org>
43252
43253         * m4/locale-ja.m4: New file, from GNU gettext.
43254
43255 2008-12-17  Bruno Haible  <bruno@clisp.org>
43256
43257         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43258         Suggested by Eric Blake.
43259
43260 2008-12-17  Bruno Haible  <bruno@clisp.org>
43261
43262         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43263
43264 2008-12-17  Bruno Haible  <bruno@clisp.org>
43265
43266         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43267         * modules/mbsinit (Depends-on): Add verify.
43268         Suggested by Paul Eggert.
43269
43270 2008-12-17  Bruno Haible  <bruno@clisp.org>
43271
43272         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43273         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43274         gl_FUNC_MBRTOWC.
43275         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43276         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43277         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43278         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43279         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43280         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43281         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43282         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43283         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43284         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43285         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43286         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43287         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43288         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43289         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43290         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43291         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43292         * modules/trim (configure.ac): Likewise.
43293
43294 2008-12-17  Bruno Haible  <bruno@clisp.org>
43295
43296         * modules/btowc-tests: New file.
43297         * tests/test-btowc1.sh: New file.
43298         * tests/test-btowc2.sh: New file.
43299         * tests/test-btowc.c: New file.
43300
43301         New module 'btowc'.
43302         * lib/wchar.in.h (btowc): New declaration.
43303         * lib/btowc.c: New file.
43304         * m4/btowc.m4: New file.
43305         * modules/btowc: New file.
43306         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43307         HAVE_BTOWC.
43308         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43309         * doc/posix-functions/btowc.texi: Document the new module.
43310
43311 2008-12-17  Bruno Haible  <bruno@clisp.org>
43312
43313         New module 'mbsinit'.
43314         * lib/wchar.in.h (mbsinit): New declaration.
43315         * lib/mbsinit.c: New file.
43316         * m4/mbsinit.m4: New file.
43317         * modules/mbsinit: New file.
43318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43319         HAVE_MBSINIT.
43320         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43321         HAVE_MBSINIT.
43322         * doc/posix-functions/mbsinit.texi: Document the new module.
43323
43324 2008-12-16  Bruno Haible  <bruno@clisp.org>
43325
43326         * lib/unistd.in.h: Add comment.
43327         * tests/test-environ.c: Don't include <stdlib.h>.
43328
43329 2008-12-16  Bruno Haible  <bruno@clisp.org>
43330
43331         * lib/parse-duration.h (parse_duration): Document return value
43332         convention.
43333         * lib/parse-duration.c: Include specification header first. Add
43334         comments.
43335         (_): Remove macro.
43336         (parse_year_month_day, parse_hour_minute_second): Move side effects
43337         outside of strchr call.
43338         (parse_non_iso8601): Move side effects outside of isspace call.
43339         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43340         call.
43341
43342 2008-12-16  Bruno Haible  <bruno@clisp.org>
43343
43344         * tests/test-parse-duration.sh: Produce no output when the test
43345         succeeds.
43346
43347 2008-12-16  Bruno Haible  <bruno@clisp.org>
43348
43349         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43350         expressions.
43351
43352 2008-12-15  Bruno Haible  <bruno@clisp.org>
43353
43354         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43355         * doc/glibc-functions/flistxattr.texi: Likewise.
43356         * doc/glibc-functions/fopencookie.texi: Likewise.
43357         * doc/glibc-functions/fremovexattr.texi: Likewise.
43358         * doc/glibc-functions/fsetxattr.texi: Likewise.
43359         * doc/glibc-functions/getxattr.texi: Likewise.
43360         * doc/glibc-functions/lgetxattr.texi: Likewise.
43361         * doc/glibc-functions/listxattr.texi: Likewise.
43362         * doc/glibc-functions/llistxattr.texi: Likewise.
43363         * doc/glibc-functions/lremovexattr.texi: Likewise.
43364         * doc/glibc-functions/lsetxattr.texi: Likewise.
43365         * doc/glibc-functions/removexattr.texi: Likewise.
43366         * doc/glibc-functions/setxattr.texi: Likewise.
43367         * doc/posix-functions/open_memstream.texi: Likewise.
43368
43369 2008-12-15  Eric Blake  <ebb9@byu.net>
43370
43371         Update doc for cygwin 1.7.
43372         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43373         functions.
43374         * doc/posix-functions/fchmodat.texi: Likewise.
43375         * doc/posix-functions/fchownat.texi: Likewise.
43376         * doc/posix-functions/fdopendir.texi: Likewise.
43377         * doc/posix-functions/fmemopen.texi: Likewise.
43378         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43379         * doc/posix-functions/fstatat.texi: Likewise.
43380         * doc/posix-functions/futimens.texi: Likewise.
43381         * doc/posix-functions/gai_strerror.texi: Likewise.
43382         * doc/posix-functions/getaddrinfo.texi: Likewise.
43383         * doc/posix-functions/getnameinfo.texi: Likewise.
43384         * doc/posix-functions/if_freenameindex.texi: Likewise.
43385         * doc/posix-functions/if_indextoname.texi: Likewise.
43386         * doc/posix-functions/if_nameindex.texi: Likewise.
43387         * doc/posix-functions/if_nametoindex.texi: Likewise.
43388         * doc/posix-functions/insque.texi: Likewise.
43389         * doc/posix-functions/linkat.texi: Likewise.
43390         * doc/posix-functions/llrint.texi: Likewise.
43391         * doc/posix-functions/llrintf.texi: Likewise.
43392         * doc/posix-functions/llrintl.texi: Likewise.
43393         * doc/posix-functions/lockf.texi: Likewise.
43394         * doc/posix-functions/lrintl.texi: Likewise.
43395         * doc/posix-functions/mkdirat.texi: Likewise.
43396         * doc/posix-functions/mkfifoat.texi: Likewise.
43397         * doc/posix-functions/mknodat.texi: Likewise.
43398         * doc/posix-functions/mq_close.texi: Likewise.
43399         * doc/posix-functions/mq_getattr.texi: Likewise.
43400         * doc/posix-functions/mq_notify.texi: Likewise.
43401         * doc/posix-functions/mq_open.texi: Likewise.
43402         * doc/posix-functions/mq_receive.texi: Likewise.
43403         * doc/posix-functions/mq_send.texi: Likewise.
43404         * doc/posix-functions/mq_setattr.texi: Likewise.
43405         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43406         * doc/posix-functions/mq_timedsend.texi: Likewise.
43407         * doc/posix-functions/mq_unlink.texi: Likewise.
43408         * doc/posix-functions/open_memstream.texi: Likewise.
43409         * doc/posix-functions/openat.texi: Likewise.
43410         * doc/posix-functions/posix_fadvise.texi: Likewise.
43411         * doc/posix-functions/posix_fallocate.texi: Likewise.
43412         * doc/posix-functions/posix_madvise.texi: Likewise.
43413         * doc/posix-functions/posix_memalign.texi: Likewise.
43414         * doc/posix-functions/posix_openpt.texi: Likewise.
43415         * doc/posix-functions/readlinkat.texi: Likewise.
43416         * doc/posix-functions/remque.texi: Likewise.
43417         * doc/posix-functions/renameat.texi: Likewise.
43418         * doc/posix-functions/rintl.texi: Likewise.
43419         * doc/posix-functions/sem_unlink.texi: Likewise.
43420         * doc/posix-functions/shm_open.texi: Likewise.
43421         * doc/posix-functions/shm_unlink.texi: Likewise.
43422         * doc/posix-functions/signgam.texi: Likewise.
43423         * doc/posix-functions/sigset.texi: Likewise.
43424         * doc/posix-functions/stpcpy.texi: Likewise.
43425         * doc/posix-functions/stpncpy.texi: Likewise.
43426         * doc/posix-functions/strerror.texi: Likewise.
43427         * doc/posix-functions/strtod.texi: Likewise.
43428         * doc/posix-functions/symlinkat.texi: Likewise.
43429         * doc/posix-functions/unlinkat.texi: Likewise.
43430         * doc/posix-functions/utimensat.texi: Likewise.
43431         * doc/glibc-functions/bindresvport.texi: Likewise.
43432         * doc/glibc-functions/dn_expand.texi: Likewise.
43433         * doc/glibc-functions/exp10.texi: Likewise.
43434         * doc/glibc-functions/exp10f.texi: Likewise.
43435         * doc/glibc-functions/fgetxattr.texi: Likewise.
43436         * doc/glibc-functions/flistxattr.texi: Likewise.
43437         * doc/glibc-functions/fopencookie.texi: Likewise.
43438         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43439         * doc/glibc-functions/fremovexattr.texi: Likewise.
43440         * doc/glibc-functions/fsetxattr.texi: Likewise.
43441         * doc/glibc-functions/getifaddrs.texi: Likewise.
43442         * doc/glibc-functions/getxattr.texi: Likewise.
43443         * doc/glibc-functions/lgetxattr.texi: Likewise.
43444         * doc/glibc-functions/listxattr.texi: Likewise.
43445         * doc/glibc-functions/llistxattr.texi: Likewise.
43446         * doc/glibc-functions/lremovexattr.texi: Likewise.
43447         * doc/glibc-functions/lsetxattr.texi: Likewise.
43448         * doc/glibc-functions/pow10.texi: Likewise.
43449         * doc/glibc-functions/pow10f.texi: Likewise.
43450         * doc/glibc-functions/rcmd_af.texi: Likewise.
43451         * doc/glibc-functions/removexattr.texi: Likewise.
43452         * doc/glibc-functions/res_init.texi: Likewise.
43453         * doc/glibc-functions/res_mkquery.texi: Likewise.
43454         * doc/glibc-functions/res_query.texi: Likewise.
43455         * doc/glibc-functions/res_querydomain.texi: Likewise.
43456         * doc/glibc-functions/res_send.texi: Likewise.
43457         * doc/glibc-functions/rresvport_af.texi: Likewise.
43458         * doc/glibc-functions/setxattr.texi: Likewise.
43459         * doc/glibc-functions/strcasestr.texi: Likewise.
43460
43461 2008-12-15  Bruno Haible  <bruno@clisp.org>
43462
43463         Fix compilation error on OSF/1 4.0.
43464         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43465         <sys/time.h>, simply delegate to the system header.
43466         Reported by Daniel Richard G. <oss@teragram.com>.
43467
43468 2008-12-15  Bruno Haible  <bruno@clisp.org>
43469
43470         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43471         * doc/posix-functions/fchmodat.texi: Likewise.
43472         * doc/posix-functions/fchownat.texi: Likewise.
43473         * doc/posix-functions/fdopendir.texi: Likewise.
43474         * doc/posix-functions/fstatat.texi: Likewise.
43475         * doc/posix-functions/mkdirat.texi: Likewise.
43476         * doc/posix-functions/unlinkat.texi: Likewise.
43477
43478 2008-12-14  Bruno Haible  <bruno@clisp.org>
43479
43480         Update doc for POSIX:2008.
43481         * doc/posix-functions/faccessat.texi: New file.
43482         * doc/posix-functions/fchmodat.texi: New file.
43483         * doc/posix-functions/fchownat.texi: New file.
43484         * doc/posix-functions/fdopendir.texi: New file.
43485         * doc/posix-functions/fstatat.texi: New file.
43486         * doc/posix-functions/futimens.texi: New file.
43487         * doc/posix-functions/linkat.texi: New file.
43488         * doc/posix-functions/mkdirat.texi: New file.
43489         * doc/posix-functions/mkfifoat.texi: New file.
43490         * doc/posix-functions/mknodat.texi: New file.
43491         * doc/posix-functions/open_wmemstream.texi: New file.
43492         * doc/posix-functions/openat.texi: New file.
43493         * doc/posix-functions/psiginfo.texi: New file.
43494         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43495         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43496         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43497         * doc/posix-functions/readlinkat.texi: New file.
43498         * doc/posix-functions/renameat.texi: New file.
43499         * doc/posix-functions/strerror_l.texi: New file.
43500         * doc/posix-functions/symlinkat.texi: New file.
43501         * doc/posix-functions/unlinkat.texi: New file.
43502         * doc/posix-functions/utimensat.texi: New file.
43503         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43504
43505 2008-12-14  Bruno Haible  <bruno@clisp.org>
43506
43507         Update doc for POSIX:2008.
43508         * doc/posix-functions/alphasort.texi: Renamed from
43509         doc/glibc-functions/alphasort.texi.
43510         * doc/posix-functions/dirfd.texi: Renamed from
43511         doc/glibc-functions/dirfd.texi.
43512         * doc/posix-functions/dprintf.texi: Renamed from
43513         doc/glibc-functions/dprintf.texi.
43514         * doc/posix-functions/duplocale.texi: Renamed from
43515         doc/glibc-functions/duplocale.texi.
43516         * doc/posix-functions/fexecve.texi: Renamed from
43517         doc/glibc-functions/fexecve.texi.
43518         * doc/posix-functions/fmemopen.texi: Renamed from
43519         doc/glibc-functions/fmemopen.texi.
43520         * doc/posix-functions/freelocale.texi: Renamed from
43521         doc/glibc-functions/freelocale.texi.
43522         * doc/posix-functions/getdate_err.texi: Renamed from
43523         doc/glibc-functions/getdate_err.texi.
43524         * doc/posix-functions/isalnum_l.texi: Renamed from
43525         doc/glibc-functions/isalnum_l.texi.
43526         * doc/posix-functions/isalpha_l.texi: Renamed from
43527         doc/glibc-functions/isalpha_l.texi.
43528         * doc/posix-functions/isblank_l.texi: Renamed from
43529         doc/glibc-functions/isblank_l.texi.
43530         * doc/posix-functions/iscntrl_l.texi: Renamed from
43531         doc/glibc-functions/iscntrl_l.texi.
43532         * doc/posix-functions/isdigit_l.texi: Renamed from
43533         doc/glibc-functions/isdigit_l.texi.
43534         * doc/posix-functions/isgraph_l.texi: Renamed from
43535         doc/glibc-functions/isgraph_l.texi.
43536         * doc/posix-functions/islower_l.texi: Renamed from
43537         doc/glibc-functions/islower_l.texi.
43538         * doc/posix-functions/isprint_l.texi: Renamed from
43539         doc/glibc-functions/isprint_l.texi.
43540         * doc/posix-functions/ispunct_l.texi: Renamed from
43541         doc/glibc-functions/ispunct_l.texi.
43542         * doc/posix-functions/isspace_l.texi: Renamed from
43543         doc/glibc-functions/isspace_l.texi.
43544         * doc/posix-functions/isupper_l.texi: Renamed from
43545         doc/glibc-functions/isupper_l.texi.
43546         * doc/posix-functions/iswalnum_l.texi: Renamed from
43547         doc/glibc-functions/iswalnum_l.texi.
43548         * doc/posix-functions/iswalpha_l.texi: Renamed from
43549         doc/glibc-functions/iswalpha_l.texi.
43550         * doc/posix-functions/iswblank_l.texi: Renamed from
43551         doc/glibc-functions/iswblank_l.texi.
43552         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43553         doc/glibc-functions/iswcntrl_l.texi.
43554         * doc/posix-functions/iswctype_l.texi: Renamed from
43555         doc/glibc-functions/iswctype_l.texi.
43556         * doc/posix-functions/iswdigit_l.texi: Renamed from
43557         doc/glibc-functions/iswdigit_l.texi.
43558         * doc/posix-functions/iswgraph_l.texi: Renamed from
43559         doc/glibc-functions/iswgraph_l.texi.
43560         * doc/posix-functions/iswlower_l.texi: Renamed from
43561         doc/glibc-functions/iswlower_l.texi.
43562         * doc/posix-functions/iswprint_l.texi: Renamed from
43563         doc/glibc-functions/iswprint_l.texi.
43564         * doc/posix-functions/iswpunct_l.texi: Renamed from
43565         doc/glibc-functions/iswpunct_l.texi.
43566         * doc/posix-functions/iswspace_l.texi: Renamed from
43567         doc/glibc-functions/iswspace_l.texi.
43568         * doc/posix-functions/iswupper_l.texi: Renamed from
43569         doc/glibc-functions/iswupper_l.texi.
43570         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43571         doc/glibc-functions/iswxdigit_l.texi.
43572         * doc/posix-functions/isxdigit_l.texi: Renamed from
43573         doc/glibc-functions/isxdigit_l.texi.
43574         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43575         doc/glibc-functions/mbsnrtowcs.texi.
43576         * doc/posix-functions/mkdtemp.texi: Renamed from
43577         doc/glibc-functions/mkdtemp.texi.
43578         * doc/posix-functions/newlocale.texi: Renamed from
43579         doc/glibc-functions/newlocale.texi.
43580         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43581         doc/glibc-functions/nl_langinfo_l.texi.
43582         * doc/posix-functions/open_memstream.texi: Renamed from
43583         doc/glibc-functions/open_memstream.texi.
43584         * doc/posix-functions/opterr.texi: Renamed from
43585         doc/glibc-functions/opterr.texi.
43586         * doc/posix-functions/optind.texi: Renamed from
43587         doc/glibc-functions/optind.texi.
43588         * doc/posix-functions/optopt.texi: Renamed from
43589         doc/glibc-functions/optopt.texi.
43590         * doc/posix-functions/psignal.texi: Renamed from
43591         doc/glibc-functions/psignal.texi.
43592         * doc/posix-functions/scandir.texi: Renamed from
43593         doc/glibc-functions/scandir.texi.
43594         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43595         doc/glibc-functions/sched_get_priority_min.texi.
43596         * doc/posix-functions/signgam.texi: Renamed from
43597         doc/glibc-functions/signgam.texi.
43598         * doc/posix-functions/stpcpy.texi: Renamed from
43599         doc/glibc-functions/stpcpy.texi.
43600         * doc/posix-functions/stpncpy.texi: Renamed from
43601         doc/glibc-functions/stpncpy.texi.
43602         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43603         doc/glibc-functions/strcasecmp_l.texi.
43604         * doc/posix-functions/strcoll_l.texi: Renamed from
43605         doc/glibc-functions/strcoll_l.texi.
43606         * doc/posix-functions/strfmon_l.texi: Renamed from
43607         doc/glibc-functions/strfmon_l.texi.
43608         * doc/posix-functions/strftime_l.texi: Renamed from
43609         doc/glibc-functions/strftime_l.texi.
43610         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43611         doc/glibc-functions/strncasecmp_l.texi.
43612         * doc/posix-functions/strndup.texi: Renamed from
43613         doc/glibc-functions/strndup.texi.
43614         * doc/posix-functions/strnlen.texi: Renamed from
43615         doc/glibc-functions/strnlen.texi.
43616         * doc/posix-functions/strsignal.texi: Renamed from
43617         doc/glibc-functions/strsignal.texi.
43618         * doc/posix-functions/strxfrm_l.texi: Renamed from
43619         doc/glibc-functions/strxfrm_l.texi.
43620         * doc/posix-functions/timer_gettime.texi: Renamed from
43621         doc/glibc-functions/timer_gettime.texi.
43622         * doc/posix-functions/tolower_l.texi: Renamed from
43623         doc/glibc-functions/tolower_l.texi.
43624         * doc/posix-functions/toupper_l.texi: Renamed from
43625         doc/glibc-functions/toupper_l.texi.
43626         * doc/posix-functions/towctrans_l.texi: Renamed from
43627         doc/glibc-functions/towctrans_l.texi.
43628         * doc/posix-functions/towlower_l.texi: Renamed from
43629         doc/glibc-functions/towlower_l.texi.
43630         * doc/posix-functions/towupper_l.texi: Renamed from
43631         doc/glibc-functions/towupper_l.texi.
43632         * doc/posix-functions/uselocale.texi: Renamed from
43633         doc/glibc-functions/uselocale.texi.
43634         * doc/posix-functions/vdprintf.texi: Renamed from
43635         doc/glibc-functions/vdprintf.texi.
43636         * doc/posix-functions/wcpcpy.texi:
43637         Renamed from doc/glibc-functions/wcpcpy.texi.
43638         * doc/posix-functions/wcpncpy.texi: Renamed from
43639         doc/glibc-functions/wcpncpy.texi.
43640         * doc/posix-functions/wcscasecmp.texi: Renamed from
43641         doc/glibc-functions/wcscasecmp.texi.
43642         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43643         doc/glibc-functions/wcscasecmp_l.texi.
43644         * doc/posix-functions/wcscoll_l.texi: Renamed from
43645         doc/glibc-functions/wcscoll_l.texi.
43646         * doc/posix-functions/wcsdup.texi: Renamed from
43647         doc/glibc-functions/wcsdup.texi.
43648         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43649         doc/glibc-functions/wcsncasecmp.texi.
43650         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43651         doc/glibc-functions/wcsncasecmp_l.texi.
43652         * doc/posix-functions/wcsnlen.texi: Renamed from
43653         doc/glibc-functions/wcsnlen.texi.
43654         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43655         doc/glibc-functions/wcsnrtombs.texi.
43656         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43657         doc/glibc-functions/wcsxfrm_l.texi.
43658         * doc/posix-functions/wctrans_l.texi: Renamed from
43659         doc/glibc-functions/wctrans_l.texi.
43660         * doc/posix-functions/wctype_l.texi: Renamed from
43661         doc/glibc-functions/wctype_l.texi.
43662         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43663         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43664         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43665         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43666         these subsections.
43667         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43668         Remove sections.
43669
43670 2008-12-14  Bruno Haible  <bruno@clisp.org>
43671
43672         Update doc for POSIX:2008.
43673         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43674
43675 2008-12-14  Bruno Haible  <bruno@clisp.org>
43676
43677         Update doc for POSIX:2008.
43678         * doc/pastposix-functions/bcmp.texi: Renamed from
43679         doc/posix-functions/bcmp.texi.
43680         * doc/pastposix-functions/bcopy.texi: Renamed from
43681         doc/posix-functions/bcopy.texi.
43682         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43683         doc/posix-functions/bsd_signal.texi.
43684         * doc/pastposix-functions/bzero.texi: Renamed from
43685         doc/posix-functions/bzero.texi.
43686         * doc/pastposix-functions/ecvt.texi: Renamed from
43687         doc/posix-functions/ecvt.texi.
43688         * doc/pastposix-functions/fcvt.texi: Renamed from
43689         doc/posix-functions/fcvt.texi.
43690         * doc/pastposix-functions/ftime.texi: Renamed from
43691         doc/posix-functions/ftime.texi.
43692         * doc/pastposix-functions/gcvt.texi: Renamed from
43693         doc/posix-functions/gcvt.texi.
43694         * doc/pastposix-functions/getcontext.texi: Renamed from
43695         doc/posix-functions/getcontext.texi.
43696         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43697         doc/posix-functions/gethostbyaddr.texi.
43698         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43699         doc/posix-functions/gethostbyname.texi.
43700         * doc/pastposix-functions/getwd.texi: Renamed from
43701         doc/posix-functions/getwd.texi.
43702         * doc/pastposix-functions/h_errno.texi: Renamed from
43703         doc/posix-functions/h_errno.texi.
43704         * doc/pastposix-functions/index.texi: Renamed from
43705         doc/posix-functions/index.texi.
43706         * doc/pastposix-functions/makecontext.texi: Renamed from
43707         doc/posix-functions/makecontext.texi.
43708         * doc/pastposix-functions/mktemp.texi: Renamed from
43709         doc/posix-functions/mktemp.texi.
43710         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43711         doc/posix-functions/pthread_attr_getstackaddr.texi.
43712         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43713         doc/posix-functions/pthread_attr_setstackaddr.texi.
43714         * doc/pastposix-functions/rindex.texi: Renamed from
43715         doc/posix-functions/rindex.texi.
43716         * doc/pastposix-functions/scalb.texi: Renamed from
43717         doc/posix-functions/scalb.texi.
43718         * doc/pastposix-functions/setcontext.texi: Renamed from
43719         doc/posix-functions/setcontext.texi.
43720         * doc/pastposix-functions/swapcontext.texi: Renamed from
43721         doc/posix-functions/swapcontext.texi.
43722         * doc/pastposix-functions/ualarm.texi: Renamed from
43723         doc/posix-functions/ualarm.texi.
43724         * doc/pastposix-functions/usleep.texi: Renamed from
43725         doc/posix-functions/usleep.texi.
43726         * doc/pastposix-functions/vfork.texi: Renamed from
43727         doc/posix-functions/vfork.texi.
43728         * doc/pastposix-functions/wcswcs.texi: Renamed from
43729         doc/posix-functions/wcswcs.texi.
43730         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43731         (Function Substitutes): Update.
43732
43733 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43734
43735         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43736         m4/strerror.m4.
43737
43738 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43739             Bruno Haible  <bruno@clisp.org>
43740
43741         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43742
43743 2008-12-13  Bruno Haible  <bruno@clisp.org>
43744
43745         * modules/strtoull (Depends-on): Remove unistd.
43746
43747 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43748
43749         * modules/strtoull (Depends-on): Add stdlib.
43750
43751 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43752
43753         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43754
43755 2008-12-10  Jim Meyering  <meyering@redhat.com>
43756
43757         gl_ASSERT: don't say assertions are disabled when they're not
43758         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43759         "checking whether to enable assertions... no", when they are in
43760         fact enabled.  This is solely a bug in the output of configure.
43761         In spite of saying "no", NDEBUG was not defined in that case.
43762         Also, as noted by Eric Blake, leave assertions enabled upon
43763         --enable-assert=INVALID.
43764
43765 2008-12-10  Bruno Haible  <bruno@clisp.org>
43766
43767         Change MODULES.html to refer to POSIX:2008 where possible.
43768         * MODULES.html.sh (POSIX2008_URL): New variable.
43769         (posix_headers): Remove sys/timeb, ucontext.
43770         (posix2001_headers): New variable.
43771         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43772         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43773         index, makecontext, mktemp, pthread_attr_getstackaddr,
43774         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43775         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43776         (posix2001_functions): New variable.
43777         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43778         otherwise.
43779
43780 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43781
43782         add missing include to parse-duration.c
43783         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43784         * modules/parse-duration (Depends-on): Add xalloc.
43785
43786         fix sed script reading maint.mk
43787         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43788         (syntax-check-rules): Use it.
43789
43790 2008-12-09  Bruno Haible  <bruno@clisp.org>
43791
43792         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43793         MacOS X 10.4/PowerPC.
43794         Reported by Simon Josefsson.
43795
43796 2008-12-08  Jim Meyering  <meyering@redhat.com>
43797
43798         work around mingw's lack of some S_IF definitions
43799         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43800         Reported by Simon Josefsson.
43801
43802 2008-12-08  Bruno Haible  <bruno@clisp.org>
43803
43804         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43805         applied to variables. Needed on MacOS X 10.4/PowerPC.
43806         Reported by Simon Josefsson.
43807
43808 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43809         and Eric Blake  <ebb9@byu.net>
43810
43811         assert: honor --enable-assert
43812         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43813         order to honor --enable-assert, rather than treating it as a
43814         synonym for --disable-assert.
43815
43816 2008-12-08  Jim Meyering  <meyering@redhat.com>
43817
43818         * lib/posixtm.c: Remove now-useless declaration of mktime.
43819
43820         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43821
43822 2008-12-07  Bruno Haible  <bruno@clisp.org>
43823
43824         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43825         test_once): Mark functions as static.
43826         * tests/test-tls.c (test_tls): Likewise.
43827
43828 2008-12-07  Bruno Haible  <bruno@clisp.org>
43829
43830         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43831         iconv_register_autodetect.
43832
43833 2008-12-07  Jim Meyering  <meyering@redhat.com>
43834
43835         posixtm.c: avoid a warning
43836         * lib/posixtm.c (posixtime): Don't initialize tm0.
43837         It's no longer needed to placate gcc4's -Wuninitialized,
43838         and the attempt to placate would elicit a new warning.
43839
43840         unicodeio.c: mark unused parameters
43841         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43842         (fallback_failure_callback): Likewise.
43843
43844 2008-12-07  Bruno Haible  <bruno@clisp.org>
43845
43846         * gnulib-tool (func_create_testdir): When building the tests
43847         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43848         Reported by Simon Josefsson.
43849
43850 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43851
43852         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43853
43854 2008-12-06  Bruno Haible  <bruno@clisp.org>
43855
43856         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43857         Suggested by Eric Blake.
43858
43859 2008-12-06  Bruno Haible  <bruno@clisp.org>
43860
43861         Fix a c-stack test failure on MacOS X.
43862         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43863         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43864         handler for SIGBUS as well.
43865         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43866         install a signal handler for SIGBUS as well.
43867         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43868
43869 2008-12-06  Bruno Haible  <bruno@clisp.org>
43870
43871         Advocacy documentation.
43872         * doc/gnulib-intro.texi (Benefits): New section.
43873         * doc/gnulib.texi: Update.
43874
43875 2008-12-06  Bruno Haible  <bruno@clisp.org>
43876
43877         Document the 'manywarnings' module.
43878         * doc/manywarnings.texi: New file.
43879         * doc/gnulib.texi: Include it.
43880
43881 2008-12-05  Eric Blake  <ebb9@byu.net>
43882
43883         tests: silence some gcc warnings
43884         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43885         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43886         type mismatches.
43887
43888 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43889             Bruno Haible  <bruno@clisp.org>
43890
43891         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43892
43893 2008-11-29  Jim Meyering  <meyering@redhat.com>
43894
43895         unicodeio.c: mark unused parameters
43896         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43897         (fallback_failure_callback): Likewise.
43898
43899         fts: fix a thinko
43900         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43901         (set_stat_type): Return S_IF*-valued "type" directly.
43902         Prompted by James Youngman's spotting a related bug.
43903         Confirmed by further testing through find.
43904
43905         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43906         * lib/fts.c (D_TYPE): Define.
43907         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43908         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43909         (s_ifmt_shift_bits): New function.
43910         (set_stat_type): New function.
43911         (fts_build): When not calling fts_stat, call set_stat_type
43912         to propagate dirent.d_type info to fts_read caller.
43913         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43914         fts_statp->st_mode type information may be valid.
43915
43916 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43917
43918         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43919         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43920         <sds@gnu.org>.
43921
43922 2008-11-20  Bruno Haible  <bruno@clisp.org>
43923
43924         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43925         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43926         INCLUDE_NEXT.
43927         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43928         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43929         * modules/math (Makefile.am): Substitute
43930         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43931         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43932
43933 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43934             Bruno Haible  <bruno@clisp.org>
43935
43936         * lib/stdint.in.h: Define all type macros so that their expansion is
43937         a single typedef'ed token. Fixes a compilation failure in Boost which
43938         does "using ::int8_t;".
43939
43940 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43941
43942         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43943         gl_MANYWARN_ALL_GCC.
43944         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43945         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43946         * modules/manywarnings: New file.
43947         * MODULES.html.sh: Mention manywarnings module.
43948
43949 2008-11-18  Bruno Haible  <bruno@clisp.org>
43950
43951         * doc/gnulib-tool.texi (Unit tests): New section.
43952
43953 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43954
43955         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43956         paths like 'lib/po/foo.po'.
43957
43958 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43959
43960         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43961         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43962
43963 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43964
43965         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43966         parameter works.
43967
43968 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43969
43970         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43971
43972 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43973
43974         * modules/parse-duration-tests: New file.
43975         * tests/test-parse-duration.sh: New file.
43976         * tests/test-parse-duration.c: New file.
43977
43978         New module 'parse-duration'.
43979         * lib/parse-duration.h: New file.
43980         * lib/parse-duration.c: New file.
43981         * modules/parse-duration: New file.
43982
43983 2008-11-17  Bruno Haible  <bruno@clisp.org>
43984
43985         * tests/test-select-out.sh: Comment out the first pipe test.
43986         Reported by Simon Josefsson.
43987
43988 2008-11-17  Bruno Haible  <bruno@clisp.org>
43989
43990         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43991         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43992         gl_HOSTENT.
43993
43994 2008-11-17  Bruno Haible  <bruno@clisp.org>
43995
43996         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43997         -lnetwork and -lnet. Needed for Haiku and BeOS.
43998
43999 2008-11-16  Bruno Haible  <bruno@clisp.org>
44000
44001         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44002
44003 2008-11-16  Bruno Haible  <bruno@clisp.org>
44004
44005         Avoid test failure on Haiku.
44006         * tests/test-fsync.c: Include <errno.h>.
44007         (main): Don't require that fsync (0) fails.
44008
44009 2008-11-15  Bruno Haible  <bruno@clisp.org>
44010
44011         New module 'hostent'.
44012         * modules/hostent: New file.
44013         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44014
44015 2008-11-15  Bruno Haible  <bruno@clisp.org>
44016
44017         New module 'servent'.
44018         * modules/servent: New file.
44019         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44020
44021 2008-11-15  Bruno Haible  <bruno@clisp.org>
44022
44023         Avoid generating same test program with two different rules.
44024         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44025         test-frexp to test-frexp-nolibm.
44026         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44027         test-frexpl to test-frexpl-nolibm.
44028
44029 2008-11-15  Bruno Haible  <bruno@clisp.org>
44030
44031         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44032         $(FREXPL_LIBM).
44033
44034 2008-11-15  Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/netdb.in.h: Activate the definitions also when the system's
44037         <netdb.h> has 'struct addrinfo'.
44038         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44039         EAI_OVERFLOW or AI_NUMERICSERV.
44040         * doc/posix-headers/netdb.texi: Document the problem.
44041
44042 2008-11-15  Bruno Haible  <bruno@clisp.org>
44043
44044         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44045
44046         Make the 'sched' module work on platforms where <sched.h> exists but
44047         is incomplete (such as Haiku).
44048         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44049         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44050         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44051         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44052         HAVE_STRUCT_SCHED_PARAM.
44053         * modules/sched (Depends-on): Add include_next.
44054         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44055         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44056         * doc/posix-headers/sched.texi: Document the issue.
44057
44058 2008-11-13  Jim Meyering  <meyering@redhat.com>
44059
44060         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44061         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44062         test would fail due to the difference in the Report bugs to ...
44063         line.  The expected address is empty, "<>", while the actual
44064         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44065
44066 2008-11-12  Bruno Haible  <bruno@clisp.org>
44067
44068         lstat: don't compile lstat.c on systems lacking lstat
44069         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44070         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44071         Reported by Daniel P. Berrange via Jim Meyering.
44072
44073 2008-11-12  Jim Meyering  <meyering@redhat.com>
44074
44075         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44076
44077 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44078
44079         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44080         instead.
44081
44082 2008-11-12  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/unicodeio.c: Include unistr.h.
44085         (utf8_wctomb): Remove function.
44086         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44087
44088 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44089
44090         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44091         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44092         <bruno@clisp.org>.
44093         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44094
44095 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44096
44097         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44098         * doc/gnulib.texi: Add section for warnings.
44099
44100 2008-11-11  Bruno Haible  <bruno@clisp.org>
44101
44102         * lib/sockets.h: Add a comment.
44103
44104 2008-11-11  Karl Berry  <karl@gnu.org>
44105
44106         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44107
44108 2008-11-11  Eric Blake  <ebb9@byu.net>
44109
44110         fdl.texi: avoid git symlinks
44111         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44112
44113 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44114
44115         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44116
44117 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44118
44119         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44120         (gl_WARN_ADD): Substitute $2 if literal.
44121
44122 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44123
44124         * m4/warning.m4: Remove.
44125
44126 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44127
44128         * m4/warnings.m4: Almost complete rewrite. :-)
44129
44130 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44131
44132         * modules/warnings: New module.
44133         * m4/warnings.m4: New file.
44134         * MODULES.html.sh: Mention warnings module.
44135         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44136         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44137
44138 2008-11-10  Eric Blake  <ebb9@byu.net>
44139
44140         fdl.texi: make a symlink to the latest version
44141         * doc/standards.texi: Revert today's earlier change.
44142         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44143         * doc/fdl.texi: ...and replace this with a symlink to the newer
44144         fdl-1.3.texi.
44145
44146 2008-11-10  Bruno Haible  <bruno@clisp.org>
44147
44148         * tests/test-select-fd.c (main): Accept the result file name as fourth
44149         argument.
44150         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44151         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44152
44153 2008-11-10  Bruno Haible  <bruno@clisp.org>
44154
44155         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44156         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44157         as autoconf-substituted macros.
44158         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44160         gl_NETDB_H_DEFAULTS. Set these variables.
44161         * modules/netdb (Makefile.am): Substitute these variables.
44162
44163 2008-11-10  Eric Blake  <ebb9@byu.net>
44164
44165         standards.texi: include correct file for FDL 1.3
44166         * doc/standards.texi (GNU Free Documentation License): Change
44167         include file to pull in FDL 1.3, not 1.2.
44168
44169         fdl.texi: revert accidental change to license
44170         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44171
44172 2008-11-10  Bruno Haible  <bruno@clisp.org>
44173
44174         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44175         cross-compiling guesses also when the native compile gives no result.
44176
44177 2008-11-10  Bruno Haible  <bruno@clisp.org>
44178
44179         * lib/spawni.c (__spawni): Force variable into the stack.
44180
44181 2008-11-10  Bruno Haible  <bruno@clisp.org>
44182
44183         Add support for Haiku.
44184         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44185         glibc and BeOS, but also on Haiku.
44186         * lib/fpurge.c (fpurge): Likewise.
44187         * lib/freadable.c (freadable): Likewise.
44188         * lib/freadahead.c (freadahead): Likewise.
44189         * lib/freading.c (freading): Likewise.
44190         * lib/freadptr.c (freadptr): Likewise.
44191         * lib/freadseek.c (freadptrinc): Likewise.
44192         * lib/fseeko.c (rpl_fseeko): Likewise.
44193         * lib/fseterr.c (fseterr): Likewise.
44194         * lib/fwritable.c (fwritable): Likewise.
44195         * lib/fwriting.c (fwriting): Likewise.
44196         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44197
44198 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44199
44200         * lib/config.charset: Treat Haiku like BeOS.
44201
44202 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44203
44204         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44205         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44206
44207 2008-11-08  Bruno Haible  <bruno@clisp.org>
44208
44209         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44210         AC_CACHE_CHECK.
44211
44212 2008-11-08  Bruno Haible  <bruno@clisp.org>
44213
44214         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44215
44216 2008-11-08  Bruno Haible  <bruno@clisp.org>
44217
44218         * tests/test-select-fd.c: New file.
44219         * tests/test-select-in.sh: New file.
44220         * tests/test-select-out.sh: New file.
44221         * tests/test-select-stdin.c: New file.
44222         * modules/select-tests (Files): Add the new files.
44223         (Depends-on): Add gettimeofday.
44224         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44225         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44226         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44227
44228 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44229             Bruno Haible  <bruno@clisp.org>
44230
44231         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44232
44233 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44234
44235         * build-aux/pmccabe2html: Added support for C++ source files.
44236
44237 2008-11-05  Ben Pfaff  <blp@gnu.org>
44238
44239         Fix lib/close.c build on Windows.
44240         * modules/close (Files): Add lib/w32sock.h.
44241
44242 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44243
44244         Accept Bison's NEWS format.
44245         * build-aux/announce-gen (print_news_deltas): Tweak
44246         $re_prefix.
44247
44248 2008-11-04  Bruno Haible  <bruno@clisp.org>
44249
44250         * modules/random_r (Maintainer): Add glibc.
44251
44252 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44253
44254         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44255         by karl@freefriends.org (Karl Berry).
44256         * doc/alloca.texi: Likewise.
44257         * doc/c-ctype.texi: Likewise.
44258         * doc/c-strcase.texi: Likewise.
44259         * doc/c-strcaseeq.texi: Likewise.
44260         * doc/c-strcasestr.texi: Likewise.
44261         * doc/c-strstr.texi: Likewise.
44262         * doc/c-strtod.texi: Likewise.
44263         * doc/c-strtold.texi: Likewise.
44264         * doc/ctime.texi: Likewise.
44265         * doc/error.texi: Likewise.
44266         * doc/fdl.texi: Likewise.
44267         * doc/gcd.texi: Likewise.
44268         * doc/getdate.texi: Likewise.
44269         * doc/gnulib-intro.texi: Likewise.
44270         * doc/gnulib-tool.texi: Likewise.
44271         * doc/gnulib.texi: Likewise.
44272         * doc/inet_ntoa.texi: Likewise.
44273         * doc/maintain.texi: Likewise.
44274         * doc/make-stds.texi: Likewise.
44275         * doc/quote.texi: Likewise.
44276         * doc/regexprops-generic.texi: Likewise.
44277         * doc/standards.texi: Likewise.
44278         * doc/verify.texi: Likewise.
44279         * doc/visibility.texi: Likewise.
44280         * doc/gnulib.texi (GNU Free Documentation License): Include
44281         fdl-1.3.texi instead of fdl.texi.
44282
44283 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44284
44285         * doc/fdl-1.3.texi: New file, from
44286         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44287         * modules/fdl-1.3: Add.
44288         * MODULES.html.sh: Add fdl-1.3.
44289
44290 2008-11-03  Bruno Haible  <bruno@clisp.org>
44291
44292         Make determination of absolute name of header file work with AIX xlc.
44293         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44294         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44295         preprocessing.
44296         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44297         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44298
44299 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44300
44301         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44302         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44303         <ludo@gnu.org>.
44304
44305 2008-11-02  Bruno Haible  <bruno@clisp.org>
44306
44307         Mark 'strpbrk' obsolete.
44308         * modules/strpbrk (Status, Notice): New sections.
44309         * modules/strtok_r (Depends-on): Add strpbrk.
44310
44311 2008-11-02  Bruno Haible  <bruno@clisp.org>
44312
44313         Mark 'strdup' obsolete.
44314         * modules/strdup (Status, Notice): New sections.
44315         * modules/findprog (Depends-on): Add strdup.
44316         * modules/getaddrinfo (Depends-on): Likewise.
44317         * modules/localename (Depends-on): Likewise.
44318         * modules/relocatable-lib (Depends-on): Likewise.
44319         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44320         * modules/relocatable-prog (Depends-on): Likewise.
44321         * modules/trim (Depends-on): Likewise.
44322         * modules/unictype/gen-ctype (Depends-on): Likewise.
44323         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44324
44325 2008-11-02  Bruno Haible  <bruno@clisp.org>
44326
44327         Mark 'strcspn' obsolete.
44328         * modules/strcspn (Status, Notice): New sections.
44329
44330 2008-11-02  Bruno Haible  <bruno@clisp.org>
44331
44332         Mark 'rmdir' obsolete.
44333         * modules/rmdir (Status, Notice): New sections.
44334         * modules/clean-temp (Depends-on): Add rmdir.
44335         * modules/openat (Depends-on): Likewise.
44336
44337 2008-11-02  Bruno Haible  <bruno@clisp.org>
44338
44339         Mark 'raise' obsolete.
44340         * modules/raise (Status, Notice): New sections.
44341         (Include): Specify <signal.h>.
44342         * modules/stdio (Depends-on): Add raise.
44343         * modules/write (Depends-on): Likewise.
44344
44345 2008-11-02  Bruno Haible  <bruno@clisp.org>
44346
44347         Mark 'memset' obsolete.
44348         * modules/memset (Status, Notice): New sections.
44349
44350 2008-11-02  Bruno Haible  <bruno@clisp.org>
44351
44352         Mark 'memmove' obsolete.
44353         * modules/memmove (Status, Notice): New sections.
44354         * modules/argp (Depends-on): Add memmove.
44355         * modules/argz (Depends-on): Likewise.
44356         * modules/canonicalize (Depends-on): Likewise.
44357         * modules/canonicalize-lgpl (Depends-on): Likewise.
44358         * modules/fts (Depends-on): Likewise.
44359         * modules/getcwd (Depends-on): Likewise.
44360         * modules/human (Depends-on): Likewise.
44361         * modules/regex (Depends-on): Likewise.
44362         * modules/striconveh (Depends-on): Likewise.
44363         * modules/trim (Depends-on): Likewise.
44364         * modules/unistr/u8-move (Depends-on): Likewise.
44365         * modules/unistr/u16-move (Depends-on): Likewise.
44366         * modules/unistr/u32-move (Depends-on): Likewise.
44367
44368 2008-11-02  Bruno Haible  <bruno@clisp.org>
44369
44370         Mark 'memcpy' obsolete.
44371         * modules/memcpy (Status, Notice): New sections.
44372
44373 2008-11-02  Bruno Haible  <bruno@clisp.org>
44374
44375         Mark 'memcmp' obsolete.
44376         * modules/memcmp (Status, Notice): New sections.
44377         * modules/argmatch (Depends-on): Add memchr.
44378         * modules/backupfile (Depends-on): Likewise.
44379         * modules/c-strcasestr (Depends-on): Likewise.
44380         * modules/crypto/des (Depends-on): Likewise.
44381         * modules/csharpcomp (Depends-on): Likewise.
44382         * modules/fnmatch (Depends-on): Likewise.
44383         * modules/git-merge-changelog (Depends-on): Likewise.
44384         * modules/isnand (Depends-on): Likewise.
44385         * modules/isnand-nolibm (Depends-on): Likewise.
44386         * modules/isnanf (Depends-on): Likewise.
44387         * modules/isnanf-nolibm (Depends-on): Likewise.
44388         * modules/isnanl (Depends-on): Likewise.
44389         * modules/isnanl-nolibm (Depends-on): Likewise.
44390         * modules/mbchar (Depends-on): Likewise.
44391         * modules/memcoll (Depends-on): Likewise.
44392         * modules/quotearg (Depends-on): Likewise.
44393         * modules/regex (Depends-on): Likewise.
44394         * modules/relocatable-prog (Depends-on): Likewise.
44395         * modules/same (Depends-on): Likewise.
44396         * modules/signbit (Depends-on): Likewise.
44397         * modules/strcasestr-simple (Depends-on): Likewise.
44398         * modules/unictype/gen-ctype (Depends-on): Likewise.
44399         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44400         * modules/uniname/uniname (Depends-on): Likewise.
44401         * modules/unistr/u8-cmp (Depends-on): Likewise.
44402
44403 2008-11-02  Bruno Haible  <bruno@clisp.org>
44404
44405         Mark 'memchr' obsolete.
44406         * modules/memchr (Status, Notice): New sections.
44407         * modules/argp (Depends-on): Add memchr.
44408         * modules/base64 (Depends-on): Likewise.
44409         * modules/c-strcasestr (Depends-on): Likewise.
44410         * modules/chdir-long (Depends-on): Likewise.
44411         * modules/fnmatch (Depends-on): Likewise.
44412         * modules/getsubopt (Depends-on): Likewise.
44413         * modules/git-merge-changelog (Depends-on): Likewise.
44414         * modules/glob (Depends-on): Likewise.
44415         * modules/strcasestr-simple (Depends-on): Likewise.
44416         * modules/strnlen (Depends-on): Likewise.
44417
44418 2008-11-02  Bruno Haible  <bruno@clisp.org>
44419
44420         Mark 'atexit' obsolete.
44421         * modules/atexit (Status, Notice): New sections.
44422         * modules/chdir-long (Depends-on): Add atexit.
44423         * modules/wait-process (Depends-on): Likewise.
44424
44425 2008-11-02  Bruno Haible  <bruno@clisp.org>
44426
44427         * gnulib-tool: New option --with-obsolete.
44428         (func_usage): Document it.
44429         (func_modules_transitive_closure): Drop obsolete dependencies if
44430         incobsolete is not true.
44431         (func_import): Read and save the incobsolete variable to the cache.
44432
44433 2008-11-02  Bruno Haible  <bruno@clisp.org>
44434
44435         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44436         * gnulib-tool: New option --extract-status.
44437         (func_usage): Document it.
44438         (sed_extract_prog): Recognize it.
44439         (func_get_status): New function.
44440
44441 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44442
44443         * modules/sockets (License): Change from LGPL to LGPLv2+.
44444
44445 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44446
44447         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44448
44449 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44450
44451         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44452         Mention times and sys_times.
44453         * modules/sys_times, modules/sys_times-tests: New modules.
44454         * modules/times, modules/times-tests: Likewise
44455         * m4/sys_times_h.m4: New file.
44456         * lib/sys_times.in.h: Likewise
44457         * lib/times.c: Likewise.
44458         * tests/test-sys_times.c: Likewise.
44459         * tests/test-times.c: Likewise.
44460         * doc/posix-headers/sys_times.texi: Update.
44461         * doc/posix-functions/times.texi: Update.
44462
44463 2008-10-28  Jim Meyering  <meyering@redhat.com>
44464
44465         * modules/tempname (Depends-on): Add lstat.
44466
44467         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44468
44469 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44470
44471         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44472         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44473         using idiom used elsewhere in gnulib.
44474
44475 2008-10-27  Jim Meyering  <meyering@redhat.com>
44476
44477         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44478
44479 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44480
44481         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44482         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44483         programs.
44484         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44485
44486 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44487
44488         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44489
44490 2008-10-27  Bruno Haible  <bruno@clisp.org>
44491
44492         * tests/test-lstat.c: Include <stdio.h>.
44493
44494 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44495
44496         * modules/lstat-tests: New module.
44497         * tests/test-lstat.c: New file.
44498
44499 2008-10-26  Jim Meyering  <meyering@redhat.com>
44500
44501         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44502
44503 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44504             Bruno Haible  <bruno@clisp.org>
44505
44506         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44507         * modules/configmake (Include): Add a note that the include must come
44508         after all system headers.
44509         * lib/javaversion.c: Include configmake.h after all other includes.
44510
44511 2008-10-26  Bruno Haible  <bruno@clisp.org>
44512
44513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44514         HAVE_STRUCT_RANDOM_DATA to 1.
44515         (gl_STDLIB_H): Simplify.
44516
44517 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44518
44519         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44520         substitute HAVE_STRUCT_RANDOM_DATA.
44521         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44522         random_data.
44523         * modules/stdlib (Makefile.am): Substitute
44524         HAVE_STRUCT_RANDOM_DATA.
44525
44526 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44527
44528         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44529         * doc/gnulib-intro.texi (Copyright): Likewise.
44530
44531 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44532
44533         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44534         findings.
44535
44536 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44537             Bruno Haible  <bruno@clisp.org>
44538
44539         * lib/unistd.in.h: Include <winsock2.h>.
44540         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44541         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44542         Provide dummy declarations.
44543         (gethostname): Override.
44544         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44545         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44546         gl_PREREQ_SYS_H_WINSOCK2.
44547         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44548         * doc/posix-functions/gethostname.texi: More details.
44549
44550 2008-10-25  Bruno Haible  <bruno@clisp.org>
44551
44552         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44553         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44554         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44555
44556         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44557         here ...
44558         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44559         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44560         gl_UNISTD_H_DEFAULTS.
44561
44562 2008-10-25  Eric Blake  <ebb9@byu.net>
44563
44564         signbit: avoid spurious compiler failure
44565         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44566         declarations inside function.
44567
44568 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44569             Bruno Haible  <bruno@clisp.org>
44570
44571         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44572         * modules/random_r (Depends-on): Add stdint.
44573
44574 2008-10-24  Bruno Haible  <bruno@clisp.org>
44575
44576         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44577         Eggert.
44578         * modules/strerror (License): Likewise.
44579
44580 2008-10-24  Jim Meyering  <meyering@redhat.com>
44581
44582         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44583         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44584
44585 2008-10-24  Eric Blake  <ebb9@byu.net>
44586
44587         getgroups: fix compilation when getgroups is available
44588         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44589         but with <config.h> override of getgroups disabled.
44590
44591 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44592
44593         * doc/gnulib.texi (Header files): Add note about C++ problems.
44594         Explained by Bruno Haible <bruno@clisp.org>.
44595
44596 2008-10-23  Bruno Haible  <bruno@clisp.org>
44597
44598         Define a dummy SA_NODEFER macro on Interix.
44599         * lib/signal.in.h (SA_NODEFER): Define fallback.
44600         Reported by Aleksey Cheusov <cheusov@tut.by> via
44601         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44602
44603 2008-10-23  Bruno Haible  <bruno@clisp.org>
44604
44605         * modules/freadahead (License): Change to LGPLv2+.
44606         Suggested by Simon Josefsson.
44607
44608 2008-10-23  Jim Meyering  <meyering@redhat.com>
44609
44610         random_r: new module
44611         * modules/random_r: New file.
44612         * m4/random_r.m4: New file.
44613         * lib/random_r.c: New file, from glibc.
44614         * modules/random_r-tests: New file.
44615         * tests/test-random_r.c: New file.
44616         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44617          Declare.
44618         (RAND_MAX): Define.
44619         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44620         * modules/stdlib: Substitute them, too.
44621         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44622         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44623         * doc/glibc-functions/random_r.texi: Likewise.
44624         * doc/glibc-functions/setstate_r.texi: Likewise.
44625         * doc/glibc-functions/srandom_r.texi: Likewise.
44626         * config/srclist.txt: Mention it.
44627
44628 2008-10-23  David Lutterkort  <lutter@redhat.com>
44629
44630         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44631         link requirement
44632
44633 2008-10-23  Jim Meyering  <meyering@redhat.com>
44634
44635         selinux-h: mark parameters of stub functions as intentionally unused
44636         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44637         * lib/se-context.in.h: Likewise.
44638
44639 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44640
44641         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44642
44643 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44644
44645         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44646
44647 2008-10-22  Eric Blake  <ebb9@byu.net>
44648
44649         glthread/thread: avoid compiler warning
44650         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44651         Add unreachable abort to silence compiler.
44652
44653 2008-10-22  Eric Blake  <ebb9@byu.net>
44654
44655         netdb: also supply struct addrinfo for cygwin 1.5.x
44656         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44657         older cygwin.
44658         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44659         cygwin.
44660         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44661
44662 2008-10-22  Bruno Haible  <bruno@clisp.org>
44663
44664         * users.txt: Update entry about pspp.
44665
44666 2008-10-21  Bruno Haible  <bruno@clisp.org>
44667
44668         Simplification.
44669         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44670         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44671
44672         Simplification.
44673         * lib/ioctl.c (ioctl): Don't undefine.
44674         * lib/socket.c (socket): Don't undefine.
44675
44676         Remove unused module indicator macros.
44677         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44678         GNULIB_$1 as a C macro.
44679
44680         * doc/posix-functions/close.texi: Undo last change.
44681         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44682         Windows platforms.
44683
44684 2008-10-21  Bruno Haible  <bruno@clisp.org>
44685
44686         Add gethostname() declaration to <unistd.h>.
44687         * lib/unistd.in.h (gethostname): New declaration.
44688         * lib/gethostname.c: Include <unistd.h>.
44689         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44690         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44692         and HAVE_GETHOSTNAME.
44693         * modules/gethostname (Depends-on): Add unistd.
44694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44695         (Include): Specify <unistd.h>.
44696         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44697         HAVE_GETHOSTNAME.
44698         * tests/test-gethostname.c: Include <unistd.h> first.
44699
44700 2008-10-21  Bruno Haible  <bruno@clisp.org>
44701
44702         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44703         * modules/select-tests (Depends-on): Likewise.
44704         Reported by Simon Josefsson.
44705
44706 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44707
44708         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44709         * lib/accept.c: New file, based on winsock.c.
44710         * lib/bind.c: New file, based on winsock.c.
44711         * lib/connect.c: New file, based on winsock.c.
44712         * lib/getpeername.c: New file, based on winsock.c.
44713         * lib/getsockname.c: New file, based on winsock.c.
44714         * lib/getsockopt.c: New file, based on winsock.c.
44715         * lib/ioctl.c: New file, based on winsock.c.
44716         * lib/listen.c: New file, based on winsock.c.
44717         * lib/recv.c: New file, based on winsock.c.
44718         * lib/recvfrom.c: New file, based on winsock.c.
44719         * lib/send.c: New file, based on winsock.c.
44720         * lib/sendto.c: New file, based on winsock.c.
44721         * lib/setsockopt.c: New file, based on winsock.c.
44722         * lib/shutdown.c: New file, based on winsock.c.
44723         * lib/socket.c: New file, based on winsock.c.
44724         * lib/w32sock.h: New file, based on winsock.c.
44725         * lib/winsock.c: Remove file.
44726         * modules/accept: Likewise.
44727         * modules/bind: Likewise.
44728         * modules/connect: Likewise.
44729         * modules/getpeername: Likewise.
44730         * modules/getsockname: Likewise.
44731         * modules/getsockopt: Likewise.
44732         * modules/ioctl: Likewise.
44733         * modules/listen: Likewise.
44734         * modules/recv: Likewise.
44735         * modules/recvfrom: Likewise.
44736         * modules/send: Likewise.
44737         * modules/sendto: Likewise.
44738         * modules/setsockopt: Likewise.
44739         * modules/shutdown: Likewise.
44740         * modules/socket: Use socket.c instead of winsock.c.
44741         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44742         * doc/posix-functions/accept.texi: Doc fix.
44743         * doc/posix-functions/bind.texi: Doc fix.
44744         * doc/posix-functions/close.texi: Doc fix.
44745         * doc/posix-functions/connect.texi: Doc fix.
44746         * doc/posix-functions/getpeername.texi: Doc fix.
44747         * doc/posix-functions/getsockname.texi: Doc fix.
44748         * doc/posix-functions/getsockopt.texi: Doc fix.
44749         * doc/posix-functions/ioctl.texi: Doc fix.
44750         * doc/posix-functions/listen.texi: Doc fix.
44751         * doc/posix-functions/recv.texi: Doc fix.
44752         * doc/posix-functions/recvfrom.texi: Doc fix.
44753         * doc/posix-functions/send.texi: Doc fix.
44754         * doc/posix-functions/sendto.texi: Doc fix.
44755         * doc/posix-functions/setsockopt.texi: Doc fix.
44756         * doc/posix-functions/shutdown.texi: Doc fix.
44757         * doc/posix-functions/socket.texi: Doc fix.
44758
44759 2008-10-20  Bruno Haible  <bruno@clisp.org>
44760
44761         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44762         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44763         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44764         as an alias for SIGABRT.
44765         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44766         (sigaction): Map it to SIGABRT.
44767         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44768
44769 2008-10-20  Bruno Haible  <bruno@clisp.org>
44770
44771         * lib/fts.c: Don't include lstat.h.
44772         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44773
44774         Move the lstat() declaration to <sys/stat.h>.
44775         * lib/lstat.h: Remove file.
44776         * lib/sys_stat.in.h: Add special invocation convention.
44777         (lstat): New declaration.
44778         * lib/lstat.c (orig_lstat): New function.
44779         (rpl_lstat): Use orig_lstat instead of lstat.
44780         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44781         AC_C_INLINE. Set REPLACE_LSTAT.
44782         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44783         and REPLACE_LSTAT.
44784         * modules/lstat (Files): Remove lib/lstat.h.
44785         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44786         (Include): Specify <sys/stat.h> instead of lstat.h.
44787         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44788         REPLACE_LSTAT.
44789         * NEWS: Mention the change.
44790
44791 2008-10-20  Bruno Haible  <bruno@clisp.org>
44792
44793         * modules/posix_spawn-tests: New file.
44794         * tests/test-posix_spawn3.c: New file.
44795
44796 2008-10-20  Bruno Haible  <bruno@clisp.org>
44797
44798         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44799         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44800         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44801         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44802         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44803
44804 2008-10-20  Bruno Haible  <bruno@clisp.org>
44805
44806         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44807         of posix_spawn on AIX 5.3.
44808
44809 2008-10-20  Bruno Haible  <bruno@clisp.org>
44810
44811         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44812
44813 2008-10-20  Bruno Haible  <bruno@clisp.org>
44814
44815         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44816         of AC_LANG_PROGRAM.
44817
44818 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44819
44820         * lib/netdb.in.h: Don't define GNU specific constants until they
44821         are supported or needed.  Reported by Bruno Haible
44822         <bruno@clisp.org>.
44823
44824 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44825
44826         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44827
44828 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44829
44830         * lib/getaddrinfo.h: Remove file.
44831         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44832         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44833         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44834         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44835         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44836         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44837         * tests/test-getaddrinfo.c: Likewise.
44838         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44839         * NEWS: Mention change.
44840
44841 2008-10-19  Bruno Haible  <bruno@clisp.org>
44842
44843         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44844
44845 2008-10-19  Bruno Haible  <bruno@clisp.org>
44846
44847         * lib/wait-process.c: Include simply <sys/wait.h>.
44848         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44849         WIFSTOPPED): Remove fallback definitions.
44850         * modules/wait-process (Depends-on): Add sys_wait.
44851
44852         New module 'sys_wait'.
44853         * modules/sys_wait: New file.
44854         * lib/sys_wait.in.h: New file, partially copied from
44855         lib/wait-process.c.
44856         * m4/sys_wait_h.m4: New file.
44857         * doc/posix-headers/sys_wait.texi: Mention the new module.
44858
44859 2008-10-19  Bruno Haible  <bruno@clisp.org>
44860
44861         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44862
44863 2008-10-19  Bruno Haible  <bruno@clisp.org>
44864
44865         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44866         * lib/wait-process.c (WAIT_T): Remove type.
44867         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44868         (wait_subprocess): Update.
44869
44870 2008-10-19  Bruno Haible  <bruno@clisp.org>
44871
44872         New module 'atoll'.
44873         * modules/atoll: New file.
44874         * lib/stdlib.in.h (atoll): New declaration.
44875         * lib/atoll.c: New file, from glibc with modifications.
44876         * m4/atoll.m4: New file.
44877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44878         HAVE_ATOLL.
44879         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44880         * doc/posix-functions/atoll.texi: Mention the new module.
44881
44882 2008-10-19  Bruno Haible  <bruno@clisp.org>
44883
44884         Add strtoull() declaration to <stdlib.h>.
44885         * lib/stdlib.in.h (strtoull): New declaration.
44886         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44887         Set HAVE_STRTOULL.
44888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44889         HAVE_STRTOULL.
44890         * modules/strtoull (Depends-on): Add stdlib.
44891         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44892         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44893         HAVE_STRTOULL.
44894
44895 2008-10-19  Bruno Haible  <bruno@clisp.org>
44896
44897         Add strtoll() declaration to <stdlib.h>.
44898         * lib/stdlib.in.h (strtoll): New declaration.
44899         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44900         Set HAVE_STRTOLL.
44901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44902         HAVE_STRTOLL.
44903         * modules/strtoll (Depends-on): Add stdlib.
44904         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44905         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44906
44907 2008-10-19  Bruno Haible  <bruno@clisp.org>
44908
44909         * modules/bcopy (Depends-on): Add strings.
44910         (Include): Specify <strings.h>.
44911
44912 2008-10-19  Bruno Haible  <bruno@clisp.org>
44913
44914         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44915
44916 2008-10-19  Bruno Haible  <bruno@clisp.org>
44917
44918         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44919         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44920         mingw.
44921
44922 2008-10-19  Bruno Haible  <bruno@clisp.org>
44923
44924         * lib/atanl.c: Don't include isnanl.h.
44925         * lib/cosl.c: Likewise.
44926         * lib/ldexpl.c: Likewise.
44927         * lib/logl.c: Likewise.
44928         * lib/sinl.c: Likewise.
44929         * lib/sqrtl.c: Likewise.
44930         * lib/tanl.c: Likewise.
44931
44932         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44933         * lib/isnanf.h: Remove file.
44934         * lib/isnand.h: Remove file.
44935         * lib/isnanl.h: Remove file.
44936         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44937         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44938         macros.
44939         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44940         HAVE_ISNANF, don't define it as a C macro.
44941         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44942         HAVE_ISNAND, don't define it as a C macro.
44943         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44944         HAVE_ISNANL, don't define it as a C macro.
44945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44946         HAVE_ISNAN[FDL].
44947         * modules/isnanf (Files): Remove lib/isnanf.h.
44948         (Depends-on): Add math.
44949         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44950         (Include): Specify <math.h> instead of isnanf.h.
44951         * modules/isnand (Files): Remove lib/isnand.h.
44952         (Depends-on): Add math.
44953         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44954         (Include): Specify <math.h> instead of isnand.h.
44955         * modules/isnanl (Files): Remove lib/isnanl.h.
44956         (Depends-on): Add math.
44957         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44958         (Include): Specify <math.h> instead of isnanl.h.
44959         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44960         HAVE_ISNAN[FDL].
44961         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44962         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44963         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44964         * NEWS: Mention the change.
44965
44966 2008-10-18  Bruno Haible  <bruno@clisp.org>
44967
44968         Add getusershell(), setusershell(), endusershell() declarations to
44969         <unistd.h>.
44970         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44971         declarations.
44972         * lib/getusershell.c: Include unistd.h.
44973         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44974         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44975         HAVE_GETUSERSHELL.
44976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44977         and HAVE_GETUSERSHELL.
44978         * modules/getusershell (Depends-on): Add unistd, extensions.
44979         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44980         (Include): Specify <unistd.h>.
44981         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44982         HAVE_GETUSERSHELL.
44983
44984 2008-10-18  Bruno Haible  <bruno@clisp.org>
44985
44986         Add a getloadavg() declaration to <stdlib.h>.
44987         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44988         getloadavg declaration.
44989         (getloadavg): New declaration.
44990         * lib/getloadavg.c: Include <stdlib.h> first.
44991         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44992         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44993         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44995         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44996         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44997         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44998         (Include): Specify <stdlib.h>.
44999         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45000         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45001
45002 2008-10-18  Bruno Haible  <bruno@clisp.org>
45003
45004         * lib/dirchownmod.c: Don't include lchmod.h.
45005
45006         Move the lchmod() declaration to <sys/stat.h>.
45007         * lib/lchmod.h: Remove file.
45008         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45009         (lchmod): New declaration, moved here from lib/lchown.h.
45010         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45011         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45012         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45013         and HAVE_LCHMOD.
45014         * modules/lchmod (Files): Remove lib/lchmod.h.
45015         (Depends-on): Add sys_stat, extensions.
45016         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45017         (Include): Specify <sys/stat.h> instead of lchmod.h.
45018         * modules/sys_stat (Depends-on): Add link-warning.
45019         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45020         definition of GL_LINK_WARNING.
45021         * NEWS: Mention the change.
45022
45023 2008-10-18  Bruno Haible  <bruno@clisp.org>
45024
45025         * lib/fchdir.c: Don't include dirfd.h.
45026         * lib/fts.c: Likewise.
45027         * lib/getcwd.c: Likewise.
45028         * lib/glob.c: Likewise.
45029
45030         Move the dirfd() declaration to <dirent.h>.
45031         * lib/dirfd.h: Remove file.
45032         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45033         (dirfd): New declaration.
45034         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45035         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45036         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45037         HAVE_DECL_DIRFD.
45038         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45039         HAVE_DECL_DIRFD.
45040         * modules/dirfd (Files): Remove lib/dirfd.h.
45041         (Depends-on): Add dirent, extensions.
45042         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45043         (Include): Specify <dirent.h> instead of dirfd.h.
45044         * modules/dirent (Depends-on): Add link-warning.
45045         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45046         definition of GL_LINK_WARNING.
45047         * NEWS: Mention the change.
45048
45049 2008-10-18  Bruno Haible  <bruno@clisp.org>
45050
45051         Move the euidaccess() declaration to <unistd.h>.
45052         * lib/euidaccess.h: Remove file.
45053         * lib/unistd.in.h (euidaccess): New declaration.
45054         * lib/euidaccess.c: Don't include euidaccess.h.
45055         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45056         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45058         and HAVE_EUIDACCESS.
45059         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45060         (Depends-on): Add unistd.
45061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45062         (Include): Specify <unistd.h> instead of euidaccess.h.
45063         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45064         HAVE_EUIDACCESS.
45065         * NEWS: Mention the change.
45066
45067 2008-10-18  Bruno Haible  <bruno@clisp.org>
45068
45069         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45070
45071         Move the getdomainname() declaration to <unistd.h>.
45072         * lib/getdomainname.h: Remove file.
45073         * lib/unistd.in.h (getdomainname): New declaration.
45074         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45075         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45076         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45077         HAVE_GETDOMAINNAME.
45078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45079         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45080         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45081         (Depends-on): Add unistd, extensions.
45082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45083         (Includes): Specify <unistd.h> instead of getdomainname.h.
45084         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45085         HAVE_GETDOMAINNAME.
45086         * NEWS: Mention the change.
45087
45088 2008-10-18  Bruno Haible  <bruno@clisp.org>
45089
45090         * modules/dirent: New file.
45091         * m4/dirent_h.m4: New file.
45092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45093         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45094         * modules/fchdir (Files): Remove lib/dirent.in.h.
45095         (Depends-on): Add dirent.
45096         (Makefile.am): Move rules to modules/dirent.
45097         * doc/posix-headers/dirent.texi: Mention the new module.
45098
45099 2008-10-18  Bruno Haible  <bruno@clisp.org>
45100
45101         Avoid -Wunused-parameter warnings in public gnulib header files.
45102         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45103         macro.
45104         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45105
45106 2008-10-18  Bruno Haible  <bruno@clisp.org>
45107
45108         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45109         * doc/glibc-functions/error.texi: Mention the module 'error'.
45110         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45111         * doc/glibc-functions/getdomainname.texi: Mention the module
45112         'getdomainname'.
45113         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45114         * doc/glibc-functions/getpagesize.texi: Mention the module
45115         'getpagesize'.
45116         * doc/glibc-functions/getusershell.texi: Mention the module
45117         'getusershell'.
45118         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45119         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45120         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45121         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45122         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45123         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45124         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45125         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45126         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45127         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45128         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45129         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45130         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45131         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45132
45133 2008-10-17  Bruno Haible  <bruno@clisp.org>
45134
45135         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45136         HP-UX and IRIX, use -0.0L.
45137         * tests/test-ceill.c (minus_zero): Likewise.
45138         * tests/test-floorl.c (minus_zero): Likewise.
45139         * tests/test-frexpl.c (minus_zero): Likewise.
45140         * tests/test-isnan.c (minus_zerol): Likewise.
45141         * tests/test-isnanl.h (minus_zero): Likewise.
45142         * tests/test-ldexpl.c (minus_zero): Likewise.
45143         * tests/test-roundl.c (minus_zero): Likewise.
45144         * tests/test-signbit.c (minus_zerol): Likewise.
45145         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45146         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45147         * tests/test-truncl.c (minus_zero): Likewise.
45148         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45149         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45150         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45151         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45152
45153 2008-10-17  Bruno Haible  <bruno@clisp.org>
45154
45155         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45156         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45157         that it gets activated only for gcc >= 3.0.
45158         * lib/dirent.in.h: Likewise.
45159         * lib/errno.in.h: Likewise.
45160         * lib/fcntl.in.h: Likewise.
45161         * lib/float.in.h: Likewise.
45162         * lib/iconv.in.h: Likewise.
45163         * lib/inttypes.in.h: Likewise.
45164         * lib/locale.in.h: Likewise.
45165         * lib/math.in.h: Likewise.
45166         * lib/netdb.in.h: Likewise.
45167         * lib/netinet_in.in.h: Likewise.
45168         * lib/search.in.h: Likewise.
45169         * lib/signal.in.h: Likewise.
45170         * lib/spawn.in.h: Likewise.
45171         * lib/stdarg.in.h: Likewise.
45172         * lib/stdint.in.h: Likewise.
45173         * lib/stdio.in.h: Likewise.
45174         * lib/stdlib.in.h: Likewise.
45175         * lib/string.in.h: Likewise.
45176         * lib/strings.in.h: Likewise.
45177         * lib/sys_file.in.h: Likewise.
45178         * lib/sys_ioctl.in.h: Likewise.
45179         * lib/sys_select.in.h: Likewise.
45180         * lib/sys_socket.in.h: Likewise.
45181         * lib/sys_stat.in.h: Likewise.
45182         * lib/sys_time.in.h: Likewise.
45183         * lib/sysexits.in.h: Likewise.
45184         * lib/time.in.h: Likewise.
45185         * lib/unistd.in.h: Likewise.
45186         * lib/wchar.in.h: Likewise.
45187         * lib/wctype.in.h: Likewise.
45188         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45189
45190 2008-10-17  Jim Meyering  <meyering@redhat.com>
45191
45192         ignore-value: don't depend on inline module
45193         * modules/ignore-value (Depends-on): Remove 'inline'.
45194         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45195         Suggestion from Bruno Haible.
45196
45197 2008-10-17  Bruno Haible  <bruno@clisp.org>
45198
45199         New implementation of condition variables for Win32.
45200         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45201         (gl_linked_waitqueue_t): New type.
45202         (gl_cond_t): Use it.
45203         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45204         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45205         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45206         (glthread_cond_init_func, glthread_cond_wait_func,
45207         glthread_cond_timedwait_func, glthread_cond_signal_func,
45208         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45209         Reimplemented on the basis of gl_linked_waitqueue_t.
45210         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45211         gl_waitqueue_t.
45212         (gl_rwlock_t): Update.
45213         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45214
45215 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45216
45217         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45218         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45219
45220 2008-10-17  Jim Meyering  <meyering@redhat.com>
45221
45222         ignore-value: new module
45223         * modules/ignore-value: New file.
45224         * lib/ignore-value.h: New file.
45225         * MODULES.html.sh (Compiler warning management): New section,
45226         just for this module.  More to come.
45227
45228 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45229
45230         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45231         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45232         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45233
45234 2008-10-16  Jim Meyering  <meyering@redhat.com>
45235
45236         openat-die.c: avoid 'no previous prototype' warning
45237         * lib/openat-die.c: Include "openat.h".
45238         Reported by Reuben Thomas <rrt@sc3d.org>.
45239
45240 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45241
45242         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45243         * lib/netdb.in.h: Fix typo.
45244         Reported by Bruno Haible  <bruno@clisp.org>
45245
45246         * lib/netdb.in.h: Include sys/socket.h for platforms without
45247         netdb.h, to get structures like hostent on MinGW.
45248         * modules/netdb (Depends-on): Add sys_socket.
45249
45250 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45251
45252         * modules/netdb, modules/netdb-tests: New file.
45253         * m4/netdb_h.m4: New file.
45254         * lib/netdb.in.h: Add, currently just an empty file pending
45255         definitions.
45256         * tests/test-netdb.c: New file.
45257         * doc/posix-headers/netdb.texi: Mention that we replace it if
45258         needed.
45259         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45260         netdb.
45261
45262 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45263
45264         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45265         with code.
45266
45267 2008-10-13  Bruno Haible  <bruno@clisp.org>
45268
45269         * lib/glthread/cond.c (glthread_cond_wait_func,
45270         glthread_cond_timedwait_func): Add a comment.
45271
45272 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45273
45274         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45275         * tests/test-select.c: Likewise,
45276
45277 2008-10-13  Bruno Haible  <bruno@clisp.org>
45278
45279         * lib/glthread/cond.c (glthread_cond_wait_func,
45280         glthread_cond_timedwait_func): Fix variable name.
45281         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45282
45283 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45284
45285         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45286         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45287         struct sockaddr.sa_len.
45288         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45289
45290 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45291
45292         * build-aux/pmccabe2html: Add css and css_url parameters.
45293
45294 2008-10-12  Bruno Haible  <bruno@clisp.org>
45295
45296         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45297         calling aclx_get.
45298         Reported by Rainer Tammer <tammer@tammer.net>.
45299
45300 2008-10-12  Bruno Haible  <bruno@clisp.org>
45301
45302         Use msvcrt aware primitives for creation/termination of Win32 threads.
45303         * lib/glthread/thread.c: Include <process.h>.
45304         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45305         (wrapper_func): Update signature.
45306         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45307
45308 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45309             Bruno Haible  <bruno@clisp.org>
45310
45311         Provide a Win32 implementation of the 'cond' module.
45312         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45313         * lib/glthread/cond.c (glthread_cond_init_func,
45314         glthread_cond_wait_func, glthread_cond_timedwait_func,
45315         glthread_cond_signal_func, glthread_cond_broadcast_func,
45316         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45317         * modules/cond (Dependencies): Add gettimeofday.
45318
45319 2008-10-11  Bruno Haible  <bruno@clisp.org>
45320
45321         Make sleep work on older versions of mingw.
45322         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45323         only whether it exists.
45324         * doc/posix-functions/sleep.texi: Mention the problem with older
45325         versions of mingw.
45326
45327 2008-10-11  Bruno Haible  <bruno@clisp.org>
45328
45329         New module 'shutdown'.
45330         * modules/shutdown: New file.
45331         * lib/sys_socket.in.h (shutdown): New declaration.
45332         * lib/winsock.c (shutdown): New function.
45333         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45334         GNULIB_SHUTDOWN.
45335         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45336         * doc/posix-functions/shutdown.texi: Document the new module.
45337
45338 2008-10-11  Jim Meyering  <meyering@redhat.com>
45339
45340         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45341
45342 2008-10-11  Bruno Haible  <bruno@clisp.org>
45343
45344         New module 'fclose'.
45345         * modules/fclose: New file.
45346         * lib/stdio.in.h (fclose): New declaration.
45347         * lib/fclose.c: New file.
45348         * m4/fclose.m4: New file.
45349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45350         REPLACE_FCLOSE.
45351         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45352         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45353         REPLACE_FCLOSE.
45354         * modules/close (Depends-on): fclose.
45355         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45356
45357 2008-10-11  Bruno Haible  <bruno@clisp.org>
45358
45359         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45360         set errno and don't call _close.
45361
45362 2008-10-10  Bruno Haible  <bruno@clisp.org>
45363
45364         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45365         ACL, not afterwards. Fixes test failure on Cygwin.
45366
45367 2008-10-09  Ben Pfaff  <blp@gnu.org>
45368
45369         * build-aux/announce-gen: Fix gnulib version related part of usage
45370         message.  Die with a useful error message if no tarballs are
45371         found.
45372
45373 2008-10-10  Jim Meyering  <meyering@redhat.com>
45374
45375         bootstrap: use git's --depth=N option only if it's supported
45376         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45377         recognize the --depth option.  Reported by Pádraig Brady.
45378
45379 2008-10-09  Bruno Haible  <bruno@clisp.org>
45380
45381         New module 'ioctl'.
45382         * modules/ioctl: New file.
45383         * lib/sys_socket.in.h (ioctl): Remove declaration.
45384         * lib/winsock.c: Include <sys/ioctl.h>.
45385         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45386         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45387         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45388         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45389         * doc/posix-functions/ioctl.texi: Mention the new module.
45390
45391 2008-10-09  Bruno Haible  <bruno@clisp.org>
45392
45393         New module 'sys_ioctl'.
45394         * lib/sys_ioctl.in.h: New file.
45395         * m4/sys_ioctl_h.m4: New file.
45396         * modules/sys_ioctl: New file.
45397         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45398
45399 2008-10-09  Bruno Haible  <bruno@clisp.org>
45400
45401         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45402         * lib/winsock.c: Include <stdarg.h>.
45403         (rpl_ioctl): Change to second argument 'int' and then varargs.
45404
45405 2008-10-09  Bruno Haible  <bruno@clisp.org>
45406
45407         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45408         when the sys_socket module is present and the system has <winsock2.h>.
45409
45410 2008-10-09  Bruno Haible  <bruno@clisp.org>
45411
45412         * doc/posix-functions/close.texi: Mention module 'close' instead of
45413         module 'sys_socket'.
45414
45415 2008-10-09  Bruno Haible  <bruno@clisp.org>
45416
45417         * doc/glibc-headers/sys_ioctl.texi: New file.
45418         * doc/gnulib.texi: Include it.
45419
45420 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45421             Bruno Haible  <bruno@clisp.org>
45422
45423         Combine the two replacements of 'close'.
45424         * lib/sys_socket.in.h (close): Define to a reminder to include
45425         <unistd.h>.
45426         (_gl_close_fd_maybe_socket): New declaration.
45427         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45428         * lib/winsock.c (close): Remove undefinition.
45429         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45430         needed for the gnulib module 'close'.
45431         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45432         define to an error symbol or to a warning, if suitable.
45433         * lib/close.c: Include <sys/socket.h>.
45434         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45435         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45436         UNISTD_H_HAVE_WINSOCK2_H.
45437         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45439         UNISTD_H_HAVE_WINSOCK2_H.
45440         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45441         (configure.ac): Set a module indicator.
45442         (Makefile.am): Substitute GNULIB_CLOSE.
45443         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45444         * modules/poll-tests (Depends-on): Add close.
45445         * modules/select-tests (Depends-on): Likewise.
45446
45447 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45448             Bruno Haible  <bruno@clisp.org>
45449
45450         New module 'close'.
45451         * modules/close: New file.
45452         * lib/unistd.in.h (close): Move declaration out of the
45453         FCHDIR_REPLACEMENT scope.
45454         (_gl_unregister_fd): New declaration.
45455         * lib/close.c: New file.
45456         * lib/fchdir.c (rpl_close): Remove function.
45457         * m4/close.m4: New file.
45458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45459         close.
45460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45461         REPLACE_CLOSE.
45462         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45463         REPLACE_CLOSE.
45464         * modules/fchdir (Depends-on): Add close.
45465
45466 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45467             Bruno Haible  <bruno@clisp.org>
45468
45469         * lib/fcntl.in.h (open): Simplify conditionals.
45470         (_gl_register_fd): New declaration.
45471         * lib/fchdir.c (rpl_open): Remove function.
45472         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45473         also.
45474         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45476         open.
45477
45478 2008-10-09  Jim Meyering  <meyering@redhat.com>
45479
45480         GNUmakefile: use the more name-space-friendly "_version"
45481         * top/GNUmakefile (_dummy): Update.
45482         (_version): Rename from "version".
45483
45484 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45485             Bruno Haible  <bruno@clisp.org>
45486
45487         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45488         rpl_close.
45489         (_gl_register_fd): New function, extracted from rpl_open.
45490         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45491         (rpl_open, rpl_opendir): Use _gl_register_fd.
45492
45493 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45494
45495         Fix organization of 'open' replacement.
45496         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45497         (gl_FUNC_OPEN): Use it.
45498         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45499
45500 2008-10-08  Bruno Haible  <bruno@clisp.org>
45501
45502         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45503
45504 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45505
45506         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45507         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45508         listen).
45509
45510 2008-10-08  Eric Blake  <ebb9@byu.net>
45511
45512         GNUmakefile: add 'make version' target
45513         * top/GNUmakefile (_curr-ver): Split version update rules...
45514         (version): ...into a target.
45515
45516 2008-10-07  Bruno Haible  <bruno@clisp.org>
45517
45518         Use a more portable replacement expression for -0.0L.
45519         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45520         instead of -0.0L. Fix m4 quotation.
45521
45522         * tests/test-signbit.c: Include <float.h>.
45523         (minus_zero): New variable.
45524         (test_signbitl): Use minus_zero instead of -zero.
45525         * modules/signbit-tests (Depends-on): Add float.
45526
45527         * tests/test-ceill.c: Include <float.h>.
45528         (zero): Remove variable.
45529         (minus_zero): New variable.
45530         (main): Use minus_zero instead of -zero.
45531         * modules/ceill-tests (Depends-on): Add float.
45532
45533         * tests/test-floorl.c: Include <float.h>.
45534         (zero): Remove variable.
45535         (minus_zero): New variable.
45536         (main): Use minus_zero instead of -zero.
45537         * modules/floorl-tests (Depends-on): Add float.
45538
45539         * tests/test-roundl.c: Include <float.h>.
45540         (zero): Remove variable.
45541         (minus_zero): New variable.
45542         (main): Use minus_zero instead of -zero.
45543         * modules/roundl-tests (Depends-on): Add float.
45544
45545         * tests/test-truncl.c: Include <float.h>.
45546         (zero): Remove variable.
45547         (minus_zero): New variable.
45548         (main): Use minus_zero instead of -zero.
45549         * modules/truncl-tests (Depends-on): Add float.
45550
45551         * tests/test-frexpl.c (zero): Remove variable.
45552         (minus_zero): New variable.
45553         (main): Use minus_zero instead of -zero.
45554         * modules/frexpl-tests (Depends-on): Add float.
45555
45556         * tests/test-isnan.c (zerol): Remove variable.
45557         (minus_zerol): New variable.
45558         (test_long_double): Use minus_zerol instead of -zerol.
45559         * modules/isnan-tests (Depends-on): Add float.
45560
45561         * tests/test-isnanl.h (zero): Remove variable.
45562         (minus_zero): New variable.
45563         (main): Use minus_zero instead of -zero.
45564         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45565         * modules/isnanl-tests (Depends-on): Add float.
45566
45567         * tests/test-ldexpl.c (zero): Remove variable.
45568         (minus_zero): New variable.
45569         (main): Use minus_zero instead of -zero.
45570         * modules/ldexpl-tests (Depends-on): Add float.
45571
45572         * tests/test-snprintf-posix.h (zerol): Remove variable.
45573         (minus_zerol): New variable.
45574         (test_function): Use minus_zerol instead of -zerol.
45575         * modules/snprintf-posix-tests (Depends-on): Add float.
45576         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45577
45578         * tests/test-sprintf-posix.h (zerol): Remove variable.
45579         (minus_zerol): New variable.
45580         (test_function): Use minus_zerol instead of -zerol.
45581         * modules/sprintf-posix-tests (Depends-on): Add float.
45582         * modules/vsprintf-posix-tests (Depends-on): Add float.
45583
45584         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45585         (minus_zerol): New variable.
45586         (test_function): Use minus_zerol instead of -zerol.
45587         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45588
45589         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45590         (minus_zerol): New variable.
45591         (test_function): Use minus_zerol instead of -zerol.
45592         * modules/vasprintf-posix-tests (Depends-on): Add float.
45593
45594 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45595
45596         * MODULES.html.sh (Support for building documentation): Mention
45597         pmccabe2html.  Sort entries.
45598
45599         Add pmccabe2html module, from gnupdf.
45600         * build-aux/pmccabe.css: New file.
45601         * build-aux/pmccabe2html: New file.
45602         * m4/pmccabe2html.m4: New file.
45603         * modules/pmccabe2html: New file.
45604
45605 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45606
45607         flock: new module
45608         * MODULES.html.sh: Add to list of modules.
45609         * lib/flock.c: flock implementation for Windows and Unix systems
45610         which have fcntl.
45611         * doc/glibc-functions/flock.texi: Update documentation.
45612         * lib/sys_file.in.h: <sys/file.h> header file.
45613         * m4/flock.m4: M4 macros.
45614         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45615         * modules/flock: flock module.
45616         * modules/flock-tests: flock tests module.
45617         * modules/sys_file: sys/file.h module.
45618         * tests/test-flock.c: test suite for flock.
45619
45620 2008-10-06  Jim Meyering  <meyering@redhat.com>
45621
45622         bootstrap: check for LT_INIT more portably still ;-)
45623         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45624         Spotted by Bruno Haible.
45625
45626 2008-10-06  Eric Blake  <ebb9@byu.net>
45627
45628         test-signbit: avoid tripping Irix cc bug on -0.0L
45629         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45630         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45631         entire testsuite consistent and avoids an Irix 6.2 bug.
45632
45633 2008-10-05  Bruno Haible  <bruno@clisp.org>
45634             Jim Meyering  <jim@meyering.net>
45635
45636         Add an option for ignoring EPIPE during close_stdout.
45637         * lib/closeout.h: Include <stdbool.h>.
45638         (close_stdout_set_ignore_EPIPE): New declaration.
45639         * lib/closeout.c: Include <stdbool.h>.
45640         (ignore_EPIPE): New variable.
45641         (close_stdout_set_ignore_EPIPE): New function.
45642         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45643         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45644         failure.
45645         * modules/closeout (Depends-on): Add stdbool.
45646
45647 2008-10-05  Bruno Haible  <bruno@clisp.org>
45648
45649         * modules/accept: New file.
45650         * modules/bind: New file.
45651         * modules/connect: New file.
45652         * modules/getpeername: New file.
45653         * modules/getsockname: New file.
45654         * modules/getsockopt: New file.
45655         * modules/listen: New file.
45656         * modules/recv: New file.
45657         * modules/recvfrom: New file.
45658         * modules/send: New file.
45659         * modules/sendto: New file.
45660         * modules/setsockopt: New file.
45661         * modules/socket: New file.
45662         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45663         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45664         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45665         the particular module is requested. Add a link warning when the
45666         particular module is not requested.
45667         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45668         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45669         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45670         the particular module is requested.
45671         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45672         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45673         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45674         * modules/sys_socket (Depends-on): Add link-warning.
45675         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45676         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45677         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45678         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45679         GL_LINK_WARNING.
45680         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45681         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45682         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45683         * doc/posix-functions/getpeername.texi: Mention the new module
45684         'getpeername'.
45685         * doc/posix-functions/getsockname.texi: Mention the new module
45686         'getsockname'.
45687         * doc/posix-functions/getsockopt.texi: Mention the new module
45688         'getsockopt'.
45689         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45690         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45691         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45692         * doc/posix-functions/send.texi: Mention the new module 'send'.
45693         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45694         * doc/posix-functions/setsockopt.texi: Mention the new module
45695         'setsockopt'.
45696         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45697         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45698         listen, connect, accept.
45699         * modules/select-tests (Depends-on): Likewise.
45700
45701 2008-10-05  Bruno Haible  <bruno@clisp.org>
45702
45703         * lib/winsock.c (strerror): Remove unused #undef.
45704         (rpl_close): Remove unused local variable.
45705
45706         * modules/sys_socket (Depends-on); Add errno.
45707
45708 2008-10-05  Bruno Haible  <bruno@clisp.org>
45709
45710         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45711         (select): Add a link warning when the 'select' module is not used.
45712         * modules/sys_select (Depends-on): Add link-warning.
45713         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45714         Suggested by Paolo Bonzini.
45715
45716 2008-10-05  Jim Meyering  <meyering@redhat.com>
45717
45718         bootstrap: check for LT_INIT more portably
45719         * build-aux/bootstrap: Avoid using grep -E, since it's not
45720         portable enough.  Suggestion from Bruno Haible.
45721
45722 2008-10-05  Bruno Haible  <bruno@clisp.org>
45723
45724         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45725         as being fixed by gnulib.
45726
45727 2008-10-05  Bruno Haible  <bruno@clisp.org>
45728
45729         * modules/select-tests: New file, mostly copied from
45730         modules/sys_select-tests.
45731         * tests/test-select.c: New file, mostly copied from
45732         tests/test-sys_select.c.
45733         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45734         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45735         (Makefile.am): Remove test_sys_select_LDADD.
45736
45737         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45738         to an undefined symbol, for an error message.
45739         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45740         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45741         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45742         winsock-select.c here.
45743         * modules/sys_select (Files): Remove lib/winsock-select.c.
45744         (Depends-on): Remove alloca.
45745         (Makefile.am): Substitute GNULIB_SELECT.
45746         * modules/select: New file.
45747         * doc/posix-functions/select.texi: Update.
45748
45749 2008-10-05  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45752         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45753         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45754         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45755         getdtablesize.
45756         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45757         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45758
45759 2008-10-05  Bruno Haible  <bruno@clisp.org>
45760
45761         * modules/getdtablesize-tests: New file.
45762         * tests/test-getdtablesize.c: New file.
45763
45764         New module 'getdtablesize'.
45765         * lib/unistd.in.h (getdtablesize): New declaration.
45766         * lib/getdtablesize.c: New file.
45767         * m4/getdtablesize.m4: New file.
45768         * modules/getdtablesize: New file.
45769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45770         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45771         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45772         HAVE_GETDTABLESIZE.
45773         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45774
45775 2008-10-05  Bruno Haible  <bruno@clisp.org>
45776
45777         * modules/sched (Makefile.am): Fix typo.
45778         Reported by Simon Josefsson.
45779
45780 2008-10-05  Jim Meyering  <meyering@redhat.com>
45781
45782         bootstrap: check for LT_INIT, too
45783         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45784         are deprecated.  Suggestion from Ralf Wildenhues.
45785
45786 2008-10-05  Bruno Haible  <bruno@clisp.org>
45787
45788         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45789         overriding them by ours.
45790         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45791
45792 2008-10-05  Jim Meyering  <meyering@redhat.com>
45793
45794         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45795         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45796         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45797
45798 2008-10-04  Bruno Haible  <bruno@clisp.org>
45799
45800         * modules/dup2 (License): Change to LGPLv2+.
45801         * modules/sleep (License): Likewise.
45802         * modules/perror (License): Likewise.
45803         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45804         Blake.
45805         * modules/signal (License): Likewise.
45806         * modules/sigprocmask (License): Likewise.
45807         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45808         Meyering.
45809
45810 2008-10-04  Bruno Haible  <bruno@clisp.org>
45811
45812         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45813         Reported by Rainer Tammer <tammer@tammer.net>.
45814
45815 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45816             Bruno Haible  <bruno@clisp.org>
45817
45818         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45819         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45820         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45821
45822 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45823
45824         filevercmp: new module
45825         * lib/filevercmp.h: New function filevercmp comparing version strings.
45826         * lib/filevercmp.c: Implementation of filevercmp function.
45827         * modules/filevercmp: Module metadata.
45828         * tests/test-filevercmp.c: Unit test for new module.
45829         * modules/filevercmp-tests: Unit test metadata.
45830         * MODULES.html.sh: Add filevercmp module.
45831
45832 2008-10-03  Bruno Haible  <bruno@clisp.org>
45833
45834         * lib/c-ctype.h: Add comment.
45835         Reported by Jim Meyering.
45836
45837 2008-10-02  Bruno Haible  <bruno@clisp.org>
45838
45839         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45840
45841 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45842
45843         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45844         name of bootstrap.conf accordingly.
45845
45846 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45847
45848         * build-aux/bootstrap: Install git-merge-changelog configuration
45849         items into .gitconfig if needed.
45850
45851 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45852
45853         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45854         git repository, and initialize/update it accordingly.
45855
45856 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45857
45858         * modules/fsync-tests: New file.
45859         * tests/test-fsync.c: New file.
45860
45861         New module 'fsync'.
45862         * lib/fsync.c: New file.
45863         * m4/fsync.m4: New file.
45864         * modules/fsync: New file.
45865         * lib/unistd.in.h (fsync): New declaration.
45866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45867         GNULIB_FSYNC and HAVE_FSYNC.
45868         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45869         * MODULES.html.sh (posix_functions): Add fsync.
45870         * doc/posix-functions/fsync.texi: Mention the new module.
45871
45872 2008-10-02  Jim Meyering  <meyering@redhat.com>
45873
45874         fts.c: sync with similar code from coreutils' remove.c
45875         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45876         Guard also with "#if defined __linux__", since for now at least,
45877         this code is Linux-kernel-specific.
45878
45879 2008-10-02  Jim Meyering  <meyering@redhat.com>
45880
45881         fts: bug fixes
45882         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45883         Include <sys/vfs.h>, not <sys/statfs.h>.
45884
45885         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45886         Include <sys/vfs.h>, not <sys/statfs.h>.
45887
45888 2008-10-01  Bruno Haible  <bruno@clisp.org>
45889
45890         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45892         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45893         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45894         * doc/posix-functions/posix_spawnp.texi: Likewise.
45895         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45896         whether posix_spawn actually works.
45897         * m4/pipe.m4 (gl_PIPE): Likewise.
45898         * modules/execute (Files): Add m4/posix_spawn.m4.
45899         * modules/pipe (Files): Add m4/posix_spawn.m4.
45900         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45901
45902 2008-10-01  Jim Meyering  <meyering@redhat.com>
45903
45904         remove trailing spaces
45905         * NEWS: Likewise.
45906         * lib/poll.c (poll): Likewise.
45907         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45908         * lib/winsock.c (rpl_close): Likewise.
45909         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45910         * modules/yield: Likewise.
45911         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45912         * tests/test-sys_select.c (connect_to_socket): Likewise.
45913
45914         fts.c: adjust a new interface to be more generally useful
45915         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45916         (fts_build): Adjust caller.
45917
45918 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45919
45920         * modules/cond-tests: New file.
45921         * tests/test-cond.c: New file.
45922
45923 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45924             Bruno Haible  <bruno@clisp.org>
45925
45926         * modules/cond (Dependencies): Add errno, time.
45927         * lib/glthread/cond.h: Include <time.h>.
45928         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45929         across platforms.
45930
45931 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45932             Bruno Haible  <bruno@clisp.org>
45933
45934         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45935
45936 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45937             Bruno Haible  <bruno@clisp.org>
45938
45939         * modules/tls-tests (Depends-on): Add thread, yield.
45940         (configure.ac): Remove all checks.
45941         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45942         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45943         gl_thread_self): Remove definitions. Include glthread/thread.h and
45944         glthread/yield.h instead.
45945         (test_tls): Pass an additional NULL argument to gl_thread_join.
45946
45947 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45948             Bruno Haible  <bruno@clisp.org>
45949
45950         * modules/lock-tests (Depends-on): Add thread, yield.
45951         (configure.ac): Remove all checks.
45952         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45953         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45954         gl_thread_self): Remove definitions. Include glthread/thread.h and
45955         glthread/yield.h instead.
45956         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45957         additional NULL argument to gl_thread_join.
45958
45959 2008-09-30  Bruno Haible  <bruno@clisp.org>
45960
45961         Fix the Win32 implementation of the 'thread' module.
45962         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45963         pointer type.
45964         (gl_thread_self): Invoke gl_thread_self_func.
45965         (gl_thread_self_func): New declaration.
45966         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45967         (do_init_self_key, init_self_key): New functions.
45968         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45969         Remove some fields.
45970         (running_threads, running_lock): Remove variables.
45971         (get_current_thread_handle): New function.
45972         (gl_thread_self_func, wrapper_func, glthread_create_func,
45973         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45974         simplified.
45975
45976 2008-09-30  Bruno Haible  <bruno@clisp.org>
45977
45978         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45979         files.
45980
45981 2008-09-30  Jim Meyering  <meyering@redhat.com>
45982
45983         fts.m4: correct the test for statfs.f_type
45984         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45985         when checking for statfs.f_type.
45986
45987 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45988
45989         tests: avoid some compiler warnings
45990         * tests/test-memchr.c (main): Pass NULL indirectly.
45991         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45992
45993 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
45994
45995         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45996         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45997         exactly specified dayshifts.
45998         (dayshift): New rule.
45999         (rel): Add dayshift.
46000         (relative_time_table) [tomorrow, yesterday, today, now]:
46001         Use tDAY_SHIFT in place of tDAY_UNIT.
46002         * tests/test-getdate.c: Add tests for now-disallowed countable
46003         dayshifts, e.g., "4 yesterday ago".
46004
46005 2008-09-29  Bruno Haible  <bruno@clisp.org>
46006
46007         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46008         * tests/test-posix_spawn1.in.sh: Renamed from
46009         tests/test-posix_spawn.in.sh.
46010         * tests/test-posix_spawn2.c: New file.
46011         * tests/test-posix_spawn2.in.sh: New file.
46012         * modules/posix_spawnp-tests (Files): Update.
46013         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46014
46015 2008-09-29  Bruno Haible  <bruno@clisp.org>
46016
46017         Propagate effects of putenv/setenv/unsetenv to child processes.
46018         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46019         * lib/pipe.c (create_pipe): Likewise.
46020
46021 2008-09-29  Bruno Haible  <bruno@clisp.org>
46022
46023         Enable use of shell scripts as executables in mingw.
46024         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46025         run the program as a shell script.
46026         * lib/pipe.c (create_pipe): Likewise.
46027         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46028         resulting array.
46029
46030 2008-09-29  Eric Blake  <ebb9@byu.net>
46031
46032         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46033
46034 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46035
46036         * doc/posix-functions/accept.texi: Update mingw problems.
46037         * doc/posix-functions/bind.texi: Update mingw problems.
46038         * doc/posix-functions/close.texi: Update mingw problems.
46039         * doc/posix-functions/connect.texi: Update mingw problems.
46040         * doc/posix-functions/getpeername.texi: Update mingw problems.
46041         * doc/posix-functions/getsockname.texi: Update mingw problems.
46042         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46043         * doc/posix-functions/ioctl.texi: Update mingw problems.
46044         * doc/posix-functions/listen.texi: Update mingw problems.
46045         * doc/posix-functions/recv.texi: Update mingw problems.
46046         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46047         * doc/posix-functions/select.texi: Update mingw problems.
46048         * doc/posix-functions/send.texi: Update mingw problems.
46049         * doc/posix-functions/sendto.texi: Update mingw problems.
46050         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46051         * doc/posix-functions/socket.texi: Update mingw problems.
46052
46053 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46054             Bruno Haible  <bruno@clisp.org>
46055
46056         * lib/sys_select.in.h: Include sys/time.h.
46057         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46058         * modules/sys_select: Depend on sys_time.
46059         * tests/test-sys_select.c: Test that sys/select.h defines struct
46060         timeval fully.
46061
46062 2008-09-29  Bruno Haible  <bruno@clisp.org>
46063
46064         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46065         * lib/sys_select.in.h: Likewise.
46066
46067 2008-09-29  Bruno Haible  <bruno@clisp.org>
46068
46069         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46070
46071 2008-09-29  Bruno Haible  <bruno@clisp.org>
46072
46073         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46074         Set LIBSOCKET instead of augmenting LIBS.
46075         * modules/sockets (Link): New section.
46076         * modules/sockets-tests (test_sockets_LDADD): New variable.
46077         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46078         * modules/poll-tests (test_poll_LDADD): New variable.
46079         * NEWS: Document the change.
46080
46081 2008-09-29  Bruno Haible  <bruno@clisp.org>
46082
46083         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46084         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46085         ARPA_INET_H directly.
46086         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46087
46088 2008-09-28  Bruno Haible  <bruno@clisp.org>
46089
46090         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46091         from gl_HEADER_SYS_SOCKET.
46092         (gl_HEADER_SYS_SOCKET): Invoke it.
46093         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46094
46095 2008-09-28  Bruno Haible  <bruno@clisp.org>
46096
46097         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46098         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46099         Needed on OSF/1 4.0.
46100
46101 2008-09-28  Bruno Haible  <bruno@clisp.org>
46102
46103         Override open more carefully.
46104         * lib/open.c (orig_open): New function.
46105         (rpl_open): Use orig_open instead of open.
46106         * lib/fcntl.in.h: Add special invocation convention.
46107         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46108         (gl_FUNC_OPEN): Invoke it.
46109
46110         Override freopen more carefully.
46111         * lib/freopen.c (orig_freopen): New function.
46112         (rpl_freopen): Use orig_freopen instead of freopen.
46113         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46114         (gl_FUNC_FREOPEN): Invoke it.
46115
46116         Override fopen more carefully.
46117         * lib/fopen.c (orig_fopen): New function.
46118         (rpl_fopen): Use orig_fopen instead of fopen.
46119         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46120         (gl_FUNC_FOPEN): Invoke it.
46121         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46122
46123 2008-09-28  Bruno Haible  <bruno@clisp.org>
46124
46125         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46126         SIGPIPE.
46127
46128 2008-09-28  Bruno Haible  <bruno@clisp.org>
46129
46130         * tests/test-sigaction.c (handler, main): Disable the check whether
46131         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46132         glibc systems with LinuxThreads.
46133
46134 2008-09-28  Bruno Haible  <bruno@clisp.org>
46135
46136         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46137
46138         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46139         with AIX xlc.
46140         * lib/fcntl.in.h (open): Likewise.
46141         Reported by Rainer Tammer <tammer@tammer.net>.
46142
46143 2008-09-28  Bruno Haible  <bruno@clisp.org>
46144
46145         * modules/posix_spawnp-tests: New file.
46146         * tests/test-posix_spawn.c: New file.
46147         * tests/test-posix_spawn.in.sh: New file.
46148
46149         New module 'posix_spawnp'.
46150         * modules/posix_spawnp: New file.
46151         * lib/spawnp.c: New file, from GNU libc with modifications.
46152         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46153
46154         New module 'posix_spawn'.
46155         * modules/posix_spawn: New file.
46156         * lib/spawn.c: New file, from GNU libc with modifications.
46157         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46158
46159         New module 'posix_spawnattr_destroy'.
46160         * modules/posix_spawnattr_destroy: New file.
46161         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46162         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46163         module.
46164
46165         New module 'posix_spawnattr_setsigmask'.
46166         * modules/posix_spawnattr_setsigmask: New file.
46167         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46168         modifications.
46169         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46170         new module.
46171
46172         New module 'posix_spawnattr_getsigmask'.
46173         * modules/posix_spawnattr_getsigmask: New file.
46174         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46175         modifications.
46176         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46177         new module.
46178
46179         New module 'posix_spawnattr_setsigdefault'.
46180         * modules/posix_spawnattr_setsigdefault: New file.
46181         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46182         modifications.
46183         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46184         new module.
46185
46186         New module 'posix_spawnattr_getsigdefault'.
46187         * modules/posix_spawnattr_getsigdefault: New file.
46188         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46189         modifications.
46190         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46191         new module.
46192
46193         New module 'posix_spawnattr_setschedpolicy'.
46194         * modules/posix_spawnattr_setschedpolicy: New file.
46195         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46196         modifications.
46197         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46198         new module.
46199
46200         New module 'posix_spawnattr_getschedpolicy'.
46201         * modules/posix_spawnattr_getschedpolicy: New file.
46202         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46203         modifications.
46204         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46205         new module.
46206
46207         New module 'posix_spawnattr_setschedparam'.
46208         * modules/posix_spawnattr_setschedparam: New file.
46209         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46210         modifications.
46211         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46212         new module.
46213
46214         New module 'posix_spawnattr_getschedparam'.
46215         * modules/posix_spawnattr_getschedparam: New file.
46216         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46217         modifications.
46218         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46219         new module.
46220
46221         New module 'posix_spawnattr_setpgroup'.
46222         * modules/posix_spawnattr_setpgroup: New file.
46223         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46224         modifications.
46225         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46226         module.
46227
46228         New module 'posix_spawnattr_getpgroup'.
46229         * modules/posix_spawnattr_getpgroup: New file.
46230         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46231         modifications.
46232         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46233         module.
46234
46235         New module 'posix_spawnattr_setflags'.
46236         * modules/posix_spawnattr_setflags: New file.
46237         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46238         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46239         module.
46240
46241         New module 'posix_spawnattr_getflags'.
46242         * modules/posix_spawnattr_getflags: New file.
46243         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46244         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46245         module.
46246
46247         New module 'posix_spawnattr_init'.
46248         * modules/posix_spawnattr_init: New file.
46249         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46250         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46251         module.
46252
46253         New module 'posix_spawn_file_actions_destroy'.
46254         * modules/posix_spawn_file_actions_destroy: New file.
46255         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46256         modifications.
46257         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46258         the new module.
46259
46260         New module 'posix_spawn_file_actions_addopen'.
46261         * modules/posix_spawn_file_actions_addopen: New file.
46262         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46263         modifications.
46264         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46265         the new module.
46266
46267         New module 'posix_spawn_file_actions_adddup2'.
46268         * modules/posix_spawn_file_actions_adddup2: New file.
46269         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46270         modifications.
46271         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46272         the new module.
46273
46274         New module 'posix_spawn_file_actions_addclose'.
46275         * modules/posix_spawn_file_actions_addclose: New file.
46276         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46277         modifications.
46278         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46279         the new module.
46280
46281         New module 'posix_spawn_file_actions_init'.
46282         * modules/posix_spawn_file_actions_init: New file.
46283         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46284         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46285         new module.
46286
46287         New module 'posix_spawn-internal'.
46288         * modules/posix_spawn-internal: New file.
46289         * lib/spawn_int.h: New file, from GNU libc with modifications.
46290         * lib/spawni.c: New file, from GNU libc with modifications.
46291         * m4/posix_spawn.m4: New file.
46292
46293         New module 'spawn'.
46294         * modules/spawn: New file.
46295         * lib/spawn.in.h: New file, from GNU libc with modifications.
46296         * m4/spawn_h.m4: New file.
46297         * doc/posix-headers/spawn.texi: Mention the new module.
46298
46299 2008-09-28  Bruno Haible  <bruno@clisp.org>
46300
46301         * modules/sched-tests: New file.
46302         * tests/test-sched.c: New file.
46303
46304         New module 'sched'.
46305         * modules/sched: New file.
46306         * lib/sched.in.h: New file.
46307         * m4/sched_h.m4: New file.
46308         * doc/posix-headers/sched.texi: Mention the new module.
46309
46310 2008-09-27  Eric Blake  <ebb9@byu.net>
46311
46312         Fix previous patch, and tweak references to $0.
46313         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46314         (func_version, func_gnulib_dir): Don't call this program
46315         gnulib-tool.
46316         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46317         with using $0 in function.
46318         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46319         (func_fatal_error): Reuse the name the user invoked us with.
46320
46321 2008-09-27  Bruno Haible  <bruno@clisp.org>
46322
46323         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46324         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46325         (gl_ICONV_H): Not here.
46326         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46327         instead of assigning ICONV_H directly.
46328
46329         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46331         WCHAR_H directly.
46332
46333 2008-09-27  Bruno Haible  <bruno@clisp.org>
46334
46335         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46336         * modules/arpa_inet (Depends-on): Add link-warning.
46337         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46338         * modules/unistd (Makefile.am): Likewise.
46339
46340 2008-09-26  Bruno Haible  <bruno@clisp.org>
46341
46342         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46343         variables.
46344         (func_version): Essentially copied from gnulib-tool.
46345         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46346         func_readlink): Copied from gnulib-tool.
46347
46348 2008-09-26  Bruno Haible  <bruno@clisp.org>
46349
46350         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46351         invoking git-version-gen.
46352
46353 2008-09-26  Bruno Haible  <bruno@clisp.org>
46354
46355         * posix-modules: Update to directory names changed on 2008-01-19.
46356         Remove commas in output before splitting into words. No more need to
46357         avoid 'ftruncate' since 2007-02-19.
46358
46359 2008-09-26  Bruno Haible  <bruno@clisp.org>
46360
46361         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46362
46363 2008-09-26  Bruno Haible  <bruno@clisp.org>
46364
46365         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46366         * modules/fwriteerror (Depends-on): Add errno.
46367
46368 2008-09-26  Bruno Haible  <bruno@clisp.org>
46369
46370         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46371         * tests/test-vc-list-files-cvs.sh: Likewise.
46372
46373 2008-09-26  Bruno Haible  <bruno@clisp.org>
46374
46375         * doc/posix-headers/sys_resource.texi: Reorder items.
46376
46377 2008-09-26  Jim Meyering  <meyering@redhat.com>
46378
46379         fts: tweak inode comparison function
46380         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46381         inode numbers, as documented.
46382
46383         fts: sort dirent entries on inode number before traversing
46384         This avoids a quadratic, seek-related performance penalty when
46385         operating on a directory containing many entries (measurable at 10k;
46386         3.5 hours at 2 million entries with a cold cache) on certain types
46387         of file systems, including ext3 and ext4, but not tmpfs.
46388         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46389         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46390         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46391         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46392         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46393         (fts_build): Set the stat.st_ino member from D_INO.
46394         If it is likely to be useful, sort dirent entries on inode number.
46395
46396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46397         and the struct statfs.f_type member.
46398         * modules/fts (Depends-on): Add d-ino.
46399
46400 2008-09-26  Bruno Haible  <bruno@clisp.org>
46401
46402         * modules/sigpipe-die (Depends-on): Add sigpipe.
46403
46404         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46405         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46406         and GNULIB_STDIO_H_SIGPIPE are set.
46407         * lib/stdio-write.c: New file.
46408         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46409         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46410         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46411         REPLACE_STDIO_WRITE_FUNCS.
46412         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46413         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46414         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46415         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46416         * modules/stdio (Files): Add lib/stdio-write.c.
46417         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46418         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46419         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46420         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46421         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46422         REPLACE_FPRINTF_POSIX.
46423         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46424         REPLACE_PRINTF_POSIX.
46425         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46426         REPLACE_VFPRINTF_POSIX.
46427         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46428         REPLACE_VPRINTF_POSIX.
46429         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46430         SIGPIPE issue.
46431         * doc/posix-functions/fputc.texi: Likewise.
46432         * doc/posix-functions/fputs.texi: Likewise.
46433         * doc/posix-functions/fwrite.texi: Likewise.
46434         * doc/posix-functions/printf.texi: Likewise.
46435         * doc/posix-functions/putc.texi: Likewise.
46436         * doc/posix-functions/putchar.texi: Likewise.
46437         * doc/posix-functions/puts.texi: Likewise.
46438         * doc/posix-functions/vfprintf.texi: Likewise.
46439         * doc/posix-functions/vprintf.texi: Likewise.
46440
46441         * modules/safe-write (Depends-on): Add write.
46442
46443         * modules/sigpipe-tests: New file.
46444         * tests/test-sigpipe.c: New file.
46445         * tests/test-sigpipe.sh: New file.
46446
46447         * modules/write: New file.
46448         * lib/unistd.in.h: Include <sys/types.h>.
46449         (write): New declaration.
46450         * lib/write.c: New file.
46451         * m4/write.m4: New file.
46452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46453         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46454         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46455         GNULIB_WRITE, REPLACE_WRITE.
46456         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46457         and the SIGPIPE issue.
46458
46459         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46460         (raise): New declaration.
46461         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46462         (ext_signal): New function.
46463         (rpl_raise): New function.
46464         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46465         GNULIB_SIGNAL_H_SIGPIPE.
46466         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46467         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46468
46469         * modules/sigpipe: New file.
46470         * m4/sigpipe.m4: New file.
46471
46472 2008-09-25  Derek Price  <derek@ximbiot.com>
46473             Bruno Haible  <bruno@clisp.org>
46474
46475         * gnulib-tool (func_import): Report all license incompatibilities, not
46476         just the first one.
46477
46478 2008-09-25  Bruno Haible  <bruno@clisp.org>
46479
46480         * gnulib-tool (func_import): When computing the edits, consider not
46481         only the Makefile.ams that exist but also those that will be generated.
46482
46483 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46484
46485         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46486         fixes gnulib-tool --test warning about duplicate dependency.
46487
46488 2008-09-25  Bruno Haible  <bruno@clisp.org>
46489
46490         * gnulib-tool: Don't ask the user to perform edits in the generated
46491         Makefile.ams.
46492         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46493         apply to the Makefile.am being generated.
46494         (func_emit_tests_Makefile_am): Execute edits that apply to the
46495         Makefile.am being generated.
46496         (func_import): Setup list of Makefile.am edits before emitting the
46497         Makefile.ams, not at the end.
46498         (func_create_testdir): Update.
46499         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46500
46501 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46502
46503         * gnulib-tool (func_import): Store the --tests-base option in the
46504         comment in gnulib-cache.m4.
46505
46506 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46507
46508         * NEWS: Document increased portability that sys_select now provides.
46509
46510         * lib/sys_select.in.h: Install select wrapper.
46511         * lib/sys_socket.in.h: Use more descriptive name when there is no
46512         select wrapper.
46513         * lib/winsock-select.c: New.
46514         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46515         Require gl_HEADER_SYS_SOCKET.
46516         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46517         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46518         * tests/test-sys_select.c: Add functional tests.
46519
46520 2008-09-24  Eric Blake  <ebb9@byu.net>
46521
46522         open, fopen: close fd leak in last patch
46523         * lib/open.c (rpl_open): Close fd before returning error.
46524         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46525         * doc/posix-functions/open.texi (open): Document that Irix also
46526         has the bug.
46527         * doc/posix-functions/fopen.texi (fopen): Likewise.
46528         Reported by Paolo Bonzini.
46529
46530 2008-09-24  Bruno Haible  <bruno@clisp.org>
46531
46532         Ensure that a filename ending in a slash cannot be used to access a
46533         non-directory.
46534         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46535         to check whether it's really a directory.
46536         * lib/fopen.c: Include fcntl.h, unistd.h.
46537         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46538         and fdopen().
46539         * modules/fopen (Depends-on): Add unistd.
46540         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46541         * tests/test-fopen.c (main): Likewise.
46542         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46543         * doc/posix-functions/fopen.texi: Likewise.
46544         Reported by Eric Blake.
46545
46546 2008-09-23  Eric Blake  <ebb9@byu.net>
46547
46548         c-stack: avoid compiler optimizations when provoking overflow
46549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46550         recursion harder to optimize, to ensure a stack overflow occurs.
46551         * tests/test-c-stack.c (recurse): Likewise.
46552         Borrowed from libsigsegv.
46553
46554         c-stack: work around Irix sigaltstack bug
46555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46556         whether sigaltstack uses wrong end of stack_t (copied in part from
46557         libsigsegv).
46558         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46559         Irix bug, without requiring an over-allocation.
46560         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46561         bug.
46562
46563         fopen: document mingw bug on directories
46564         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46565         not allowing a stream visiting a directory, even though reading
46566         from such a stream is not portable.
46567
46568 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46569
46570         * lib/poll.c: Rewrite.
46571         * modules/poll: Depend on alloca.
46572
46573 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46574
46575         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46576         instead define prototypes for a full set of wrappers.  Ensure
46577         that Cygwin does not use the compatibility code, which is only
46578         for MinGW.
46579         * lib/winsock.c: New.
46580         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46581         * modules/sys_socket: Add lib/winsock.c.
46582
46583         * modules/poll-tests: Add errno and perror.
46584         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46585
46586 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46587
46588         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46589
46590 2008-09-23  Bruno Haible  <bruno@clisp.org>
46591
46592         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46593         * doc/glibc-functions/*: Likewise.
46594
46595 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46596
46597         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46598         success.
46599
46600 2008-09-22  Eric Blake  <ebb9@byu.net>
46601             Bruno Haible  <bruno@clisp.org>
46602
46603         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46604         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46605         supply %A but mishandle pseudo-NaN.
46606         Reported by Simon Josefsson.
46607
46608 2008-09-21  Bruno Haible  <bruno@clisp.org>
46609
46610         * tests/test-lock.c (main): Tweak skip message.
46611         * tests/test-tls.c (main): Likewise.
46612
46613 2008-09-21  Bruno Haible  <bruno@clisp.org>
46614
46615         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46616         whether 'struct sigaction' has sa_sigaction here...
46617         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46618         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46619
46620 2008-09-21  Bruno Haible  <bruno@clisp.org>
46621
46622         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46623         section.
46624         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46625         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46626         the new section.
46627         (Support for obsolete systems lacking POSIX:2001): New section.
46628         (String handling <string.h>): Move strdup to the new section.
46629         Suggested by Simon Josefsson and Paolo Bonzini.
46630
46631 2008-09-21  Bruno Haible  <bruno@clisp.org>
46632
46633         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46634         exponents in %e and %g results on 'long double'. Needed for mingw's
46635         improved *printf functions.
46636         * tests/test-vasprintf-posix.c (test_function): Likewise.
46637         * tests/test-snprintf-posix.h (test_function): Likewise.
46638         * tests/test-sprintf-posix.h (test_function): Likewise.
46639         Reported by Eric Blake.
46640
46641 2008-09-21  Bruno Haible  <bruno@clisp.org>
46642
46643         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46644         * tests/test-sprintf-posix.h (test_function): Likewise.
46645
46646 2008-09-21  Bruno Haible  <bruno@clisp.org>
46647
46648         * modules/getpass (Depends-on): Add strdup-posix.
46649
46650         New module 'strdup-posix'.
46651         * modules/strdup-posix: New file.
46652         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46653         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46654         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46655         REPLACE_STRDUP.
46656         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46657         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46659         strdup-posix.
46660
46661         * modules/strdup (Depends-on): Remove malloc-posix.
46662
46663 2008-09-20  Bruno Haible  <bruno@clisp.org>
46664
46665         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46666         Wildenhues.
46667
46668 2008-09-20  Bruno Haible  <bruno@clisp.org>
46669
46670         Ensure that wint_t gets defined on IRIX 5.3.
46671         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46672         * lib/wctype.in.h (wint_t): Likewise.
46673         (__wctype_wint_t): Remove type.
46674         (isw*): Use wint_t instead of __wctype_wint_t.
46675         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46676         * modules/wchar (Files): Add m4/wint_t.m4.
46677         (Makefile.am): Substitute HAVE_WINT_T.
46678         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46679         * tests/test-wctype.c: Check that wint_t is defined.
46680         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46681         * doc/posix-headers/wctype.texi: Likewise.
46682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46683
46684 2008-09-18  Bruno Haible  <bruno@clisp.org>
46685
46686         * gnulib-tool (func_exit): Update comment.
46687
46688 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46689
46690         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46691         assumes strdup exists and does not depend on strdup to return
46692         ENOMEM on out of memory conditions.
46693
46694 2008-09-18  Bruno Haible  <bruno@clisp.org>
46695
46696         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
46697         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46698         digits for the exponent.
46699
46700 2008-09-18  Jim Meyering  <meyering@redhat.com>
46701             Bruno Haible  <bruno@clisp.org>
46702
46703         * lib/vasnprintf.c (decimal_point_char): Define also if
46704         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46705
46706 2008-09-16  Bruno Haible  <bruno@clisp.org>
46707         and Eric Blake  <ebb9@byu.net>
46708
46709         vasnprintf: support Irix 5.3
46710         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46711         that mishandle long double infinity.
46712         Reported by Tom G. Christensen.
46713
46714 2008-09-16  Bruno Haible  <bruno@clisp.org>
46715
46716         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46717         Solaris 9.
46718         * doc/glibc-functions/alphasort.texi: Likewise.
46719         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46720
46721 2008-09-16  Jim Meyering  <meyering@redhat.com>
46722
46723         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46724         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46725         a umask modification leak out of a subshell.  Otherwise, the
46726         opensolaris /bin/sh would be accepted and thus cause unwarranted
46727         failures in the coreutils test suite.
46728
46729 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46730
46731         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46732         to succeed.
46733
46734 2008-09-16  Jim Meyering  <meyering@redhat.com>
46735
46736         avoid spurious test failure when library is built without ACL support
46737         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46738         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46739         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46740         * tests/test-copy-acl.sh: Likewise.
46741
46742 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46743
46744         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46745         based on character occurrence counts.
46746
46747 2008-09-15  Eric Blake  <ebb9@byu.net>
46748
46749         tests: avoid some compiler warnings
46750         * tests/test-memchr.c (main): Pass NULL indirectly.
46751         * tests/test-closein.c (main): Avoid unused variable.
46752
46753 2008-09-15  Bruno Haible  <bruno@clisp.org>
46754
46755         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46756         are missing on OpenBSD 4.0 individually.
46757         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46758
46759 2008-09-15  Bruno Haible  <bruno@clisp.org>
46760
46761         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46762         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46763         * doc/posix-functions/perror.texi: Likewise.
46764         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46765         is missing.
46766         Reported by Eric Blake.
46767
46768         * lib/errno.in.h: Use replacement values >= 2000.
46769         Reported by Eric Blake.
46770
46771 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46772
46773         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46774         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46775         limit.
46776         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46777         compareseq was aborted.
46778
46779 2008-09-14  Bruno Haible  <bruno@clisp.org>
46780
46781         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46782         yvec_edit_count.
46783         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46784         (fstrcmp_bounded): Simplify result computation accordingly.
46785
46786 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46787
46788         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46789         (fstrcmp): Define in terms of fstrcmp_bounded.
46790         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46791         lower_bound argument.
46792         Return quickly if the result is certainly < lower_bound.
46793         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46794
46795 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46796
46797         * lib/diffseq.h (EARLY_ABORT): New macro.
46798         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46799         evaluates to true.
46800
46801 2008-09-14  Bruno Haible  <bruno@clisp.org>
46802
46803         * modules/perror-tests: New file.
46804         * tests/test-perror.sh: New file.
46805         * tests/test-perror.c: New file.
46806
46807         New module 'perror'.
46808         * lib/stdio.in.h (perror): New declaration.
46809         * lib/perror.c: New file.
46810         * m4/perror.m4: New file.
46811         * modules/perror: New file.
46812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46813         * doc/posix-functions/perror.texi: Mention the perror module.
46814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46815         REPLACE_PERROR.
46816         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46817         REPLACE_PERROR.
46818
46819 2008-09-14  Bruno Haible  <bruno@clisp.org>
46820
46821         * modules/stdio (Makefile.am): Reorder to match the order in
46822         lib/stdio.in.h.
46823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46824
46825 2008-09-13  Bruno Haible  <bruno@clisp.org>
46826
46827         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46828
46829 2008-09-13  Bruno Haible  <bruno@clisp.org>
46830
46831         Extend strerror to cover the added errno values.
46832         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46833         (rpl_strerror): Provide error messages for the added errno values and
46834         for the WSA* values.
46835         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46836         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46837         strerror.
46838         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46839         * modules/strerror (Depends-on): Add errno.
46840         * doc/posix-functions/strerror.texi: Document the change.
46841         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46842         and EOVERFLOW.
46843
46844 2008-09-13  Bruno Haible  <bruno@clisp.org>
46845
46846         * modules/EOVERFLOW: Remove file.
46847         * m4/eoverflow.m4: Remove file.
46848         * modules/EOVERFLOW-tests: Remove file.
46849         * tests/test-EOVERFLOW.c: Remove file.
46850         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46851         * modules/ftell (Depends-on): Likewise.
46852         * modules/getdelim (Depends-on): Likewise.
46853         * modules/getugroups (Depends-on): Likewise.
46854         * modules/poll (Depends-on): Likewise.
46855         * modules/snprintf (Depends-on): Likewise.
46856         * modules/sprintf-posix (Depends-on): Likewise.
46857         * modules/vasnprintf (Depends-on): Likewise.
46858         * modules/vasprintf (Depends-on): Likewise.
46859         * modules/vfprintf-posix (Depends-on): Likewise.
46860         * modules/vsnprintf (Depends-on): Likewise.
46861         * modules/vsprintf-posix (Depends-on): Likewise.
46862         * modules/xvasprintf (Depends-on): Likewise.
46863         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46864         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46865         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46866         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46867         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46868         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46869         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46870         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46871         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46872         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46873         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46874         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46875         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46876         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46877         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46878         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46879         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46880         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46881         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46882         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46883         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46884         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46885         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46886         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46887         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46888         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46889         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46890         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46891         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46892         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46893         * MODULES.html.sh: Remove EOVERFLOW.
46894         * NEWS: Mention the change.
46895
46896 2008-09-13  Bruno Haible  <bruno@clisp.org>
46897
46898         * modules/errno-tests: New file.
46899         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46900
46901         * lib/errno.in.h: New file.
46902         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46903         * modules/errno: New file.
46904         * doc/posix-headers/errno.texi: Update documentation.
46905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46906
46907 2008-09-13  Bruno Haible  <bruno@clisp.org>
46908
46909         * tests/test-poll.c: Use #if for native Windows, rather than testing
46910         __MSVCRT__.
46911
46912 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46913             Bruno Haible  <bruno@clisp.org>
46914
46915         * lib/glob.c: Don't include <pwd.h> on native Windows.
46916         (WINDOWS32): New macro.
46917         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46918
46919 2008-09-13  Bruno Haible  <bruno@clisp.org>
46920
46921         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46922         (ETIMEDOUT): Remove macro.
46923         (glthread_cond_timedwait_multithreaded): New declaration.
46924         (glthread_cond_timedwait): Use it.
46925         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46926         (glthread_cond_timedwait_multithreaded): New function.
46927
46928 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46929
46930         * modules/poll-tests: Do not check for io.h.
46931         * tests/test-poll.c: Check for __MSVCRT__ instead.
46932
46933 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46934
46935         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46936         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46937         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46938
46939 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46940
46941         * modules/poll-tests: New.
46942         * tests/test-poll.c: New.
46943
46944 2008-09-12  Eric Blake  <ebb9@byu.net>
46945
46946         frexp: test for NetBSD failure on -0.0
46947         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46948         not all, bugs from NetBSD 3.0 have been fixed.
46949         * doc/posix-functions/frexp.texi (frexp): Document bug.
46950         Reported by Thomas Klausner.
46951
46952         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46953         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46954         literal -0.0.
46955         Reported by Jonathan C. Patschke <jp@centtech.com>.
46956
46957 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46958
46959         * lib/glthread/cond.h: Use dummy implementation also if
46960         USE_WIN32_THREADS.
46961
46962 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46963
46964         * modules/fnmatch-posix (License): Change to LGPLv2+.
46965         * modules/fnmatch-gnu (License): Likewise.
46966
46967 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46968
46969         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46970
46971 2008-09-11  Jim Meyering  <meyering@redhat.com>
46972
46973         * users.txt: Add gtk-vnc.
46974
46975 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46976
46977         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46978         rotate amounts.
46979
46980         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46981         required for 16-bit and 8-bit rotates.
46982         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46983         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46984         UINT8_MAX instead of hard-coded constants.
46985         Suggested by Paul Eggert.
46986
46987 2008-09-07  Bruno Haible  <bruno@clisp.org>
46988
46989         * tests/test-striconveh.c (main): Check behaviour when converting from
46990         UTF-7.
46991
46992         Make striconveh work better with stateful encodings.
46993         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46994         that iconv does not increment the inptr when returning -1/EINVAL.
46995
46996 2008-09-07  Bruno Haible  <bruno@clisp.org>
46997
46998         * build-aux/config.rpath: Update according to libtool-2.2.6.
46999         * build-aux/config.libpath: Likewise.
47000
47001 2008-09-06  Bruno Haible  <bruno@clisp.org>
47002
47003         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47004         * lib/freadptr.c (freadptr): Likewise.
47005         * lib/freadseek.c (freadptrinc): Likewise.
47006         Reported by Simon Josefsson.
47007
47008 2008-09-06  Bruno Haible  <bruno@clisp.org>
47009
47010         * modules/freadptr (License): Change to LGPLv2+.
47011         * modules/freadseek (License): Likewise.
47012         Suggested by Eric Blake.
47013
47014         * modules/memchr2 (License): Change to LGPLv2+.
47015         Approved by Eric Blake.
47016
47017 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47018             Bruno Haible  <bruno@clisp.org>
47019
47020         Make gnulib-tool work with native 'sed' on AIX.
47021         * gnulib-tool (sed_noop): New variable.
47022         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47023         func_add_or_update, func_create_testdir): Use it to initialize sed
47024         script variables.
47025         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47026
47027 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47028             Bruno Haible  <bruno@clisp.org>
47029
47030         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47031         also works after #include directives.
47032
47033 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47034
47035         getdate.y: reject an out-of-range timezone value
47036         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47037         the range [-24...+24].  When specified with only one or two digits,
47038         * tests/test-getdate.c: Tests for the fix.
47039         * doc/getdate.texi: Document this change.
47040
47041 2008-09-03  Bruno Haible  <bruno@clisp.org>
47042
47043         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47044
47045 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47046
47047         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47048         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47049         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47050         Blake <ebb9@byu.net>.
47051
47052         * tests/test-bitrotate.c: Add more test vectors.
47053
47054 2008-09-02  Eric Blake  <ebb9@byu.net>
47055
47056         vasnprintf-posix: handle large precision via %.*d
47057         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47058         when handling it ourselves.
47059         * tests/test-vasnprintf-posix.c (test_function): Add test.
47060         * tests/test-snprintf-posix.h (test_function): Likewise.
47061         * tests/test-sprintf-posix.h (test_function): Likewise.
47062         * tests/test-vasprintf-posix.c (test_function): Likewise.
47063         Reported by Alain Guibert.
47064
47065 2008-09-01  Eric Blake  <ebb9@byu.net>
47066
47067         c-stack: make configure-time check more robust
47068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47069         successful sigaction call.
47070         Reported by Tom G. Christensen.
47071
47072 2008-09-01  Bruno Haible  <bruno@clisp.org>
47073
47074         New module 'findprog-lgpl'.
47075         * modules/findprog-lgpl: New file.
47076         * lib/findprog-lgpl.c: New file.
47077         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47078         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47079         to decide whether to use strdup or xstrdup, concatenated_filename or
47080         xconcatenated_filename.
47081
47082 2008-09-01  Bruno Haible  <bruno@clisp.org>
47083
47084         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47085         'xconcat-filename' (GPL).
47086         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47087         (License): Change to LGPLv2+.
47088         * modules/xconcat-filename: New file.
47089         * lib/concat-filename.h (concatenated_filename): Change specification.
47090         (xconcatenated_filename): New declaration.
47091         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47092         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47093         memory situations.
47094         * lib/xconcat-filename.c: New file.
47095         * NEWS: Mention the change.
47096         * lib/findprog.c: Include concat-filename.h, not filename.h.
47097         (find_in_path): Use xconcatenated_filename instead of
47098         concatenated_filename.
47099         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47100         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47101         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47102         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47103         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47104         instead of concatenated_filename.
47105         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47106         (execute_java_class): Use xconcatenated_filename instead of
47107         concatenated_filename.
47108         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47109         * modules/javacomp (Depends-on): Likewise.
47110         * modules/javaexec (Depends-on): Likewise.
47111
47112 2008-09-01  Bruno Haible  <bruno@clisp.org>
47113
47114         Split module 'filename' into 'filename' and 'concat-filename'.
47115         * modules/filename: Keep only lib/filename.h.
47116         (License): Change to LGPLv2+.
47117         * modules/concat-filename: New file, extracted from modules/filename.
47118         * lib/filename.h (concatenated_filename): Remove declaration.
47119         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47120         * lib/concat-filename.c: Include concat-filename.h.
47121         * NEWS: Mention the change.
47122
47123 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47124
47125         * lib/bitrotate.h (rotl8, rotr8): Add.
47126
47127         * modules/bitrotate (configure.ac): Need
47128         AC_REQUIRE([AC_C_INLINE]).
47129         (Description): Mention stdint.h.  Reported by Bruno Haible
47130         <bruno@clisp.org>.
47131
47132         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47133         Paolo Bonzini <bonzini@gnu.org>.
47134
47135 2008-08-31  Bruno Haible  <bruno@clisp.org>
47136
47137         Assume Solaris specific bi-arch conventions on Solaris systems.
47138         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47139         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47140         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47141         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47142         like acl_libdirstem.
47143         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47144         acl_libdirstem.
47145         * NEWS: Mention the change.
47146         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47147
47148 2008-08-31  Jim Meyering  <meyering@redhat.com>
47149
47150         * lib/strftime.h: Add comments describing the two added arguments.
47151
47152         remove duplicate #include directives
47153         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47154         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47155
47156 2008-08-31  Bruno Haible  <bruno@clisp.org>
47157
47158         New module 'sigpipe-die'.
47159         * modules/sigpipe-die: New file.
47160         * lib/sigpipe-die.h: New file.
47161         * lib/sigpipe-die.c: New file.
47162         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47163
47164 2008-08-31  Bruno Haible  <bruno@clisp.org>
47165
47166         Don't override previously installed signal handlers.
47167         * lib/fatal-signal.c (saved_sigactions): New variable.
47168         (uninstall_handlers): Reset the signal to the saved handler, not
47169         to SIG_DFL (except when ignored).
47170         (install_handlers): Save the previous handlers.
47171
47172 2008-08-30  Bruno Haible  <bruno@clisp.org>
47173
47174         * gnulib-tool (func_reset_sigpipe): New function.
47175         (func_get_automake_snippet, func_modules_transitive_closure,
47176         func_import): Invoke it before a join command that reads from stdin,
47177         to avoid "echo: write error: Broken pipe" error messages on stderr.
47178         Reported by Sam Steingold <sds@gnu.org>.
47179
47180 2008-08-30  Bruno Haible  <bruno@clisp.org>
47181
47182         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47183         Code copied from m4/open.m4.
47184         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47185         access and the filename ends in a slash. Code copied from lib/open.c.
47186         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47187         * tests/test-fopen.c (main): Check against bug with trailing slash.
47188
47189 2008-08-29  Bruno Haible  <bruno@clisp.org>
47190
47191         Avoid some "gcc -pedantic" warnings.
47192         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47193         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47194         * lib/dirent.in.h: Likewise.
47195         * lib/fcntl.in.h: Likewise.
47196         * lib/float.in.h: Likewise.
47197         * lib/iconv.in.h: Likewise.
47198         * lib/inttypes.in.h: Likewise.
47199         * lib/locale.in.h: Likewise.
47200         * lib/math.in.h: Likewise.
47201         * lib/netinet_in.in.h: Likewise.
47202         * lib/search.in.h: Likewise.
47203         * lib/signal.in.h: Likewise.
47204         * lib/stdarg.in.h: Likewise.
47205         * lib/stdint.in.h: Likewise.
47206         * lib/stdio.in.h: Likewise.
47207         * lib/stdlib.in.h: Likewise.
47208         * lib/string.in.h: Likewise.
47209         * lib/strings.in.h: Likewise.
47210         * lib/sys_select.in.h: Likewise.
47211         * lib/sys_socket.in.h: Likewise.
47212         * lib/sys_stat.in.h: Likewise.
47213         * lib/sys_time.in.h: Likewise.
47214         * lib/sysexits.in.h: Likewise.
47215         * lib/time.in.h: Likewise.
47216         * lib/unistd.in.h: Likewise.
47217         * lib/wchar.in.h: Likewise.
47218         * lib/wctype.in.h: Likewise.
47219         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47220         * modules/fchdir (Makefile.am): Likewise.
47221         * modules/fcntl (Makefile.am): Likewise.
47222         * modules/float (Makefile.am): Likewise.
47223         * modules/iconv_open (Makefile.am): Likewise.
47224         * modules/inttypes (Makefile.am): Likewise.
47225         * modules/locale (Makefile.am): Likewise.
47226         * modules/math (Makefile.am): Likewise.
47227         * modules/netinet_in (Makefile.am): Likewise.
47228         * modules/search (Makefile.am): Likewise.
47229         * modules/signal (Makefile.am): Likewise.
47230         * modules/stdarg (Makefile.am): Likewise.
47231         * modules/stdint (Makefile.am): Likewise.
47232         * modules/stdio (Makefile.am): Likewise.
47233         * modules/stdlib (Makefile.am): Likewise.
47234         * modules/string (Makefile.am): Likewise.
47235         * modules/strings (Makefile.am): Likewise.
47236         * modules/sys_select (Makefile.am): Likewise.
47237         * modules/sys_socket (Makefile.am): Likewise.
47238         * modules/sys_stat (Makefile.am): Likewise.
47239         * modules/sys_time (Makefile.am): Likewise.
47240         * modules/sysexits (Makefile.am): Likewise.
47241         * modules/time (Makefile.am): Likewise.
47242         * modules/unistd (Makefile.am): Likewise.
47243         * modules/wchar (Makefile.am): Likewise.
47244         * modules/wctype (Makefile.am): Likewise.
47245         Reported by Reuben Thomas <rrt@sc3d.org>.
47246
47247 2008-08-29  Bruno Haible  <bruno@clisp.org>
47248
47249         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47250         any more.
47251
47252 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47253
47254         * MODULES.html.sh (Misc): Add bitrotate.
47255
47256         * modules/bitrotate: New file.
47257
47258         * lib/bitrotate.h: New file.
47259
47260         * modules/bitrotate-tests: New file.
47261
47262         * tests/test-bitrotate.c: New file.
47263
47264         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47265         on the bitrotate module.
47266
47267         * lib/arctwo.c: Use new bitrotate module.
47268
47269 2008-08-29  Jim Meyering  <meyering@redhat.com>
47270
47271         bootstrap: merge changes from coreutils
47272         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47273         of copied files.  Remove a kludge, now that this is fixed.
47274         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47275         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47276         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47277
47278 2008-08-29  Bruno Haible  <bruno@clisp.org>
47279
47280         * MODULES.html.sh: Remove --cvs-urls option.
47281
47282 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47283
47284         maint.mk: adjust to file name change
47285         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47286
47287 2008-08-28  Jim Meyering  <meyering@redhat.com>
47288
47289         * modules/getndelim2 (License): Relicense to LGPLv2+.
47290         Approved by Richard Stallman for the version of 1995, and by
47291         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47292
47293 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47294
47295         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47296         dummy if one is not available.  Do not touch them if
47297         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47298         (getc_maybe_unlocked): New.
47299         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47300
47301 2008-08-26  Eric Blake  <ebb9@byu.net>
47302
47303         doc/INSTALL: resync from autoconf
47304         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47305         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47306         moving...
47307         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47308         * INSTALL: Regenerate.
47309         * INSTALL.ISO: New file.
47310         * INSTALL.UTF-8: Likewise.
47311
47312 2008-08-26  Jim Meyering  <meyering@redhat.com>
47313
47314         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47315         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47316         these definitions conditional, so that they may be overridden, too.
47317
47318 2008-08-26  Bruno Haible  <bruno@clisp.org>
47319
47320         Generate INSTALL file variants with prettier quotes.
47321         * doc/Makefile (INSTALL_PRELUDE): New macro.
47322         (INSTALL): Use it.
47323         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47324
47325 2008-08-26  Bruno Haible  <bruno@clisp.org>
47326
47327         Run makeinfo in an English locale.
47328         * doc/Makefile (MAKEINFO): New variable.
47329
47330 2008-08-26  Bruno Haible  <bruno@clisp.org>
47331
47332         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47333         Suggested by Eric Blake.
47334
47335 2008-08-25  Bruno Haible  <bruno@clisp.org>
47336
47337         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47338
47339 2008-08-25  Eric Blake  <ebb9@byu.net>
47340
47341         c-stack: test that stack overflow can be caught
47342         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47343         that platform allows handling stack overflow; at least OS/2 EMX
47344         has sigaltstack, but crashes before transferring control to
47345         handler on stack overflow.
47346         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47347         check for HAVE_STACK_OVERFLOW_HANDLING.
47348         Reported by Elbert Pol.
47349
47350 2008-08-25  Bruno Haible  <bruno@clisp.org>
47351
47352         * doc/posix-functions/strftime.texi: Fix description of strftime
47353         module.
47354
47355 2008-08-24  Bruno Haible  <bruno@clisp.org>
47356
47357         * tests/uniwidth/test-uc_width2.c: New file.
47358         * tests/uniwidth/test-uc_width2.sh: New file.
47359         * modules/uniwidth/width-tests (Files): Add the new files.
47360         (TESTS): Add uniwidth/test-uc_width2.sh.
47361         (TESTS_ENVIRONMENT): New variable.
47362         (check_PROGRAMS): Add test-uc_width2.
47363         (test_uc_width2_SOURCES): New variable.
47364
47365         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47366         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47367         not 0x00AB.
47368         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47369
47370 2008-08-22  Eric Blake  <ebb9@byu.net>
47371
47372         test-lock, test-tls: mention why a test is skipped
47373         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47374         skipped.
47375         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47376
47377         count-one-bits: relax license
47378         * modules/count-one-bits (License): Relicense to LGPLv2+.
47379         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47380
47381 2008-08-22  Andreas Schwab  <schwab@suse.de>
47382
47383         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47384         Remove spurious space in assignment.
47385
47386 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47387
47388         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47389         Paul Eggert <eggert@CS.UCLA.EDU>.
47390
47391 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47392
47393         * modules/gettext: Add m4/threadlib.m4.
47394
47395 2008-08-19  Eric Blake  <ebb9@byu.net>
47396
47397         test-c-stack: fix compilation failure on FreeBSD 5.0
47398         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47399         headers before <sys/resource.h>.
47400         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47401         the bug.
47402         Reported by Nelson H. F. Beebe.
47403
47404         strverscmp: migrate from "strverscmp.h" to <string.h>
47405         * modules/string (Makefile.am): Add new hooks.
47406         * modules/strverscmp (Files): Remove strverscmp.h.
47407         (Depends-on): Add string.
47408         (configure.ac): Add indicator.
47409         (Include): Mention new header.
47410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47411         defaults.
47412         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47413         results.
47414         * lib/strverscmp.h: Delete.
47415         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47416         * tests/test-strverscmp.c (includes): Adjust client.
47417         * lib/check-version.c (includes): Likewise.
47418         * NEWS: Document the change.
47419
47420         strverscmp: add unit test
47421         * modules/strverscmp-tests: New file.
47422         * tests/test-strverscmp.c: Likewise.
47423
47424 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47425
47426         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47427         regarding Windows crypto stuff, from Mono.
47428
47429 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47430
47431         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47432         if present, for intel RND.  Return error on failures.
47433
47434 2008-08-18  Ben Pfaff  <blp@gnu.org>
47435
47436         gitlog-to-changelog: give better diagnostic for failed pipe-open
47437         * build-aux/gitlog-to-changelog: Improve error message: suggest
47438         that the version of Git may be too old.
47439
47440 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47441
47442         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47443         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47444
47445 2008-08-18  Bruno Haible  <bruno@clisp.org>
47446
47447         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47448         pthread_in_use().
47449
47450 2008-08-18  Bruno Haible  <bruno@clisp.org>
47451
47452         * lib/glthread/threadlib.c: Include <pthread.h>.
47453
47454 2008-08-18  Bruno Haible  <bruno@clisp.org>
47455
47456         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47457         glthread_recursive_lock_* macros.
47458         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47459         Fix syntax error.
47460
47461 2008-08-18  Bruno Haible  <bruno@clisp.org>
47462
47463         * lib/glthread/thread.c: Avoid forcing a context switch right after
47464         thread creation.
47465
47466 2008-08-17  Bruno Haible  <bruno@clisp.org>
47467
47468         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47469         * lib/glthread/thread.h: Provide Win32 specific implementation.
47470         * modules/thread (Files): Add lib/glthread/thread.c.
47471         (Depends-on): Add lock.
47472         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47473
47474 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47475
47476         New module 'yield'.
47477         * modules/yield: New file.
47478         * lib/glthread/yield.h: New file.
47479         * m4/yield.m4: New file.
47480         * MODULES.html.sh (Multithreading): Add yield.
47481
47482 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47483
47484         New module 'thread'.
47485         * modules/thread: New file.
47486         * lib/glthread/thread.h: New file.
47487         * m4/thread.m4: New file.
47488         * MODULES.html.sh (Multithreading): Add thread.
47489
47490 2008-08-17  Bruno Haible  <bruno@clisp.org>
47491
47492         * lib/glthread/lock.h: Include <stdlib.h> always.
47493         * lib/glthread/tls.h: Likewise.
47494         * lib/glthread/cond.h: Likewise.
47495
47496 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47497
47498         New module 'cond'.
47499         * modules/cond: New file.
47500         * lib/glthread/cond.h: New file.
47501         * lib/glthread/cond.c: New file.
47502         * m4/cond.m4: New file.
47503         * MODULES.html.sh (Multithreading): Add cond.
47504
47505 2008-08-16  Eric Blake  <ebb9@byu.net>
47506
47507         c-stack: fix regression on Irix 5.3 from 2008-06-21
47508         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47509         sa_sigaction...
47510         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47511         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47512         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47513         * modules/signal (Makefile.am): Use the value.
47514         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47515         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47516         * doc/posix-headers/signal.texi (signal.h): Document this
47517         portability issue.
47518         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47519         Reported by Tom G. Christensen.
47520
47521 2008-08-17  Bruno Haible  <bruno@clisp.org>
47522
47523         New module 'threadlib'.
47524         * modules/threadlib: New file.
47525         * lib/glthread/threadlib.c: New file, extracted from
47526         lib/glthread/lock.c.
47527         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47528         functions.
47529         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47530         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47531         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47532         macros.
47533         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47534         (gl_DISABLE_THREADS): Remove macro.
47535         * modules/lock (Files): Remove build-aux/config.rpath.
47536         (Depends-on): Remove havelib. Add threadlib.
47537         (configure.ac-early): Remove section.
47538         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47539         * modules/tls (Depends-on): Remove lock. Add threadlib.
47540         (Link): New section, copied from threadlib.
47541         * MODULES.html.sh (Multithreading): Add threadlib.
47542
47543 2008-08-14  Bruno Haible  <bruno@clisp.org>
47544
47545         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47546         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47547         glthread_rwlock_unlock, glthread_rwlock_destroy,
47548         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47549         glthread_recursive_lock_destroy): Define as macros always.
47550         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47551         glthread_lock_lock.
47552         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47553         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47554         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47555         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47556         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47557         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47558         (glthread_recursive_lock_lock_func): Renamed from
47559         glthread_recursive_lock_lock.
47560         (glthread_recursive_lock_unlock_func): Renamed from
47561         glthread_recursive_lock_unlock.
47562         (glthread_recursive_lock_destroy_func): Renamed from
47563         glthread_recursive_lock_destroy.
47564
47565 2008-08-14  Bruno Haible  <bruno@clisp.org>
47566
47567         * lib/glthread/lock.h: Renamed from lib/lock.h.
47568         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47569         * lib/glthread/tls.h: Renamed from lib/tls.h.
47570         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47571         * lib/fstrcmp.c: Update includes.
47572         * lib/strsignal.c: Update includes.
47573         * modules/lock (Files, Makefile.am): Update.
47574         (Include): Change to "glthread/lock.h".
47575         * modules/tls (Files, Makefile.am): Update.
47576         (Include): Change to "glthread/tls.h".
47577         * tests/test-lock.c: Update includes.
47578         * tests/test-tls.c: Update includes.
47579         * NEWS: Mention the renamed header files.
47580
47581 2008-08-11  Jim Meyering  <meyering@redhat.com>
47582
47583         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47584
47585 2008-08-11  Eric Blake  <ebb9@byu.net>
47586
47587         test-c-stack: avoid C99-ism
47588         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47589         before statement.
47590         Reported by Alain Guibert.
47591
47592 2008-08-10  Jim Meyering  <meyering@redhat.com>
47593
47594         ensure that return value of uinttostr et al are not ignored
47595         * lib/inttostr.h (__GNUC_PREREQ): Define.
47596         (__attribute_warn_unused_result__): Define.
47597         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47598
47599 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47600
47601         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47602         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47603
47604 2008-08-07  Jim Meyering  <meyering@redhat.com>
47605
47606         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47607
47608         * modules/mkstemp (License): Relicense under LGPLv2+.
47609         * modules/tempname (License): Likewise.
47610
47611 2008-08-06  Bruno Haible  <bruno@clisp.org>
47612
47613         * lib/poll.c (poll): Further micro-optimization.
47614
47615 2008-08-06  Jim Meyering  <meyering@redhat.com>
47616
47617         inet_pton.c: use locale-independent tolower
47618         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47619         (inet_pton6): Use c_tolower rather than tolower.
47620         * modules/inet_pton (Depends-on): Add c-ctype.
47621
47622 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47623
47624         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47625         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47626
47627 2008-08-06  Jim Meyering  <meyering@redhat.com>
47628
47629         * modules/inet_pton (License): Relicense under LGPLv2+.
47630
47631 2008-08-03  Bruno Haible  <bruno@clisp.org>
47632
47633         Additional non-aborting API for lock and tls.
47634         * lib/lock.h: Include <errno.h>.
47635         (glthread_lock_init): New macro/function.
47636         (gl_lock_init): Define as wrapper around glthread_lock_init.
47637         (glthread_lock_lock): New macro/function.
47638         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47639         (glthread_lock_unlock): New macro/function.
47640         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47641         (glthread_lock_destroy): New macro/function.
47642         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47643         (glthread_rwlock_init): New macro/function.
47644         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47645         (glthread_rwlock_rdlock): New macro/function.
47646         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47647         (glthread_rwlock_wrlock): New macro/function.
47648         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47649         (glthread_rwlock_unlock): New macro/function.
47650         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47651         (glthread_rwlock_destroy): New macro/function.
47652         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47653         (glthread_recursive_lock_init): New macro/function.
47654         (gl_recursive_lock_init): Define as wrapper around
47655         glthread_recursive_lock_init.
47656         (glthread_recursive_lock_lock): New macro/function.
47657         (gl_recursive_lock_lock): Define as wrapper around
47658         glthread_recursive_lock_lock.
47659         (glthread_recursive_lock_unlock): New macro/function.
47660         (gl_recursive_lock_unlock): Define as wrapper around
47661         glthread_recursive_lock_unlock.
47662         (glthread_recursive_lock_destroy): New macro/function.
47663         (gl_recursive_lock_destroy): Define as wrapper around
47664         glthread_recursive_lock_destroy.
47665         (glthread_once): New macro/function.
47666         (gl_once): Define as wrapper around glthread_once.
47667         Update function declarations.
47668         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47669         glthread_rwlock_init. Return error code.
47670         (glthread_rwlock_rdlock_multithreaded): Renamed from
47671         glthread_rwlock_rdlock. Return error code.
47672         (glthread_rwlock_wrlock_multithreaded): Renamed from
47673         glthread_rwlock_wrlock. Return error code.
47674         (glthread_rwlock_unlock_multithreaded): Renamed from
47675         glthread_rwlock_unlock. Return error code.
47676         (glthread_rwlock_destroy_multithreaded): Renamed from
47677         glthread_rwlock_destroy. Return error code.
47678         (glthread_recursive_lock_init_multithreaded): Renamed from
47679         glthread_recursive_lock_init. Return error code.
47680         (glthread_recursive_lock_lock_multithreaded): Renamed from
47681         glthread_recursive_lock_lock. Return error code.
47682         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47683         glthread_recursive_lock_unlock. Return error code.
47684         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47685         glthread_recursive_lock_destroy. Return error code.
47686         (glthread_once_call): Make static.
47687         (glthread_once_multithreaded): Renamed from glthread_once.
47688         * lib/tls.h: Include <errno.h>.
47689         (glthread_tls_key_init): New macro/function.
47690         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47691         (glthread_tls_set): New macro/function.
47692         (gl_tls_set): Define as wrapper around glthread_tls_set.
47693         (glthread_tls_key_destroy): New macro/function.
47694         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47695         Update function declarations.
47696         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47697         glthread_tls_get.
47698         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47699
47700 2008-08-04  Eric Blake  <ebb9@byu.net>
47701
47702         gnumakefile: use space, not TAB, outside of targets
47703         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47704
47705 2008-08-02  Jim Meyering  <meyering@redhat.com>
47706
47707         getdate.y: avoid locale-dependent date parsing failure
47708         In Turkish locales, getdate would fail to recognize keywords
47709         containing a lowercase "i".  The solution is not to rely on
47710         locale-sensitive case-conversion.
47711         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47712         (lookup_word): Use c_toupper in place of toupper.
47713         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47714         Reported by Vefa Bicakci <bicave@superonline.com> in
47715         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47716         * modules/getdate (Depends-on): Add c-ctype.
47717
47718 2008-08-02  Bruno Haible  <bruno@clisp.org>
47719
47720         * gnulib-tool (func_import): When updating or creating a .gitignore
47721         file, prepend each added line with a slash, and ignore leading slashes
47722         from the existing lines.
47723         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47724
47725 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47726
47727         Portability fix for GNU make 3.79.1.
47728         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47729         versions do not understand.
47730
47731 2008-08-01  Bruno Haible  <bruno@clisp.org>
47732
47733         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47734         * tests/test-isnanf.h (zero): New variable.
47735         (main): Avoid literal -0.0f.
47736         * tests/test-isnand.h (zero): New variable.
47737         (main): Avoid literal -0.0.
47738         * tests/test-isnanl.h (zero): New variable.
47739         (main): Avoid literal -0.0L.
47740         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47741         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47742         -0.0, -0.0L.
47743         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47744         (test_signbitd): Avoid literal -0.0.
47745         (test_signbitl): Avoid literal -0.0L.
47746         * tests/test-ceilf1.c (zero): New variable.
47747         (main): Avoid literal -0.0f.
47748         * tests/test-ceill.c (zero): New variable.
47749         (main): Avoid literal -0.0L.
47750         * tests/test-floorf1.c (zero): New variable.
47751         (main): Avoid literal -0.0f.
47752         * tests/test-floorl.c (zero): New variable.
47753         (main): Avoid literal -0.0L.
47754         * tests/test-roundf1.c (zero): New variable.
47755         (main): Avoid literal -0.0f.
47756         * tests/test-round1.c (zero): New variable.
47757         (main): Avoid literal -0.0.
47758         * tests/test-roundl.c (zero): New variable.
47759         (main): Avoid literal -0.0L.
47760         * tests/test-truncf1.c (zero): New variable.
47761         (main): Avoid literal -0.0f.
47762         * tests/test-trunc1.c (zero): New variable.
47763         (main): Avoid literal -0.0.
47764         * tests/test-truncl.c (zero): New variable.
47765         (main): Avoid literal -0.0L.
47766         * tests/test-frexp.c (zero): New variable.
47767         (main): Avoid literal -0.0.
47768         * tests/test-frexpl.c (zero): New variable.
47769         (main): Avoid literal -0.0L.
47770         * tests/test-ldexpl.c (zero): New variable.
47771         (main): Avoid literal -0.0L.
47772         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47773         (zerod, zerol): New variables.
47774         (test_function): Avoid literals -0.0, -0.0L.
47775         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47776         (zerod, zerol): New variables.
47777         (test_function): Avoid literals -0.0, -0.0L.
47778         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47779         (zerod, zerol): New variables.
47780         (test_function): Avoid literals -0.0, -0.0L.
47781         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47782         (zerod, zerol): New variables.
47783         (test_function): Avoid literals -0.0, -0.0L.
47784         * tests/test-strtod.c (zero): New variable.
47785         (main): Avoid literal -0.0.
47786         Reported by Jonathan C. Patschke <jp@centtech.com>.
47787
47788 2008-07-31  Jim Meyering  <meyering@redhat.com>
47789
47790         sha256.h: correct definition of SHA224_DIGEST_SIZE
47791         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47792         Reported by Paulie Pena IV <paulie4@gmail.com>.
47793         Define as 224 / 8, rather than as a literal.
47794         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47795         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47796         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47797
47798 2008-07-31  Bruno Haible  <bruno@clisp.org>
47799
47800         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47801         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47802         Reported by Jonathan Patschke <jp@centtech.com>.
47803
47804 2008-07-31  Bruno Haible  <bruno@clisp.org>
47805
47806         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47807         Reported by Paolo Bonzini <bonzini@gnu.org>.
47808
47809 2008-07-30  Eric Blake  <ebb9@byu.net>
47810
47811         test-strtod: allow compilation without -lm
47812         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47813         Reported by Dennis Clarke <blastwave@gmail.com>.
47814
47815 2008-07-28  Jim Meyering  <meyering@redhat.com>
47816
47817         bootstrap: work also when there are no .po files in po/
47818         * build-aux/bootstrap (update_po_files): Complete the change
47819         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47820
47821 2008-07-27  Jim Meyering  <meyering@redhat.com>
47822
47823         * users.txt: Add zile.
47824
47825 2008-07-26  Ben Pfaff  <blp@gnu.org>
47826
47827         Add missing dependencies on new m4/exponent[fdl].m4 files.
47828         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47829         * modules/isnand-nolibm: Add m4/exponentd.m4.
47830         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47831         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47832         m4/isnan[fdl].m4, because the macros actually used moved.
47833         Reported by Jim Meyering.
47834
47835 2008-07-14  Ben Pfaff  <blp@gnu.org>
47836
47837         Add isinf module.
47838         * lib/isinf.c: New file.
47839         * lib/math.in.h: Define isinf macro if we have decided to replace
47840         it.
47841         * m4/isinf.m4: New file.
47842         * m4/math_h.m4: Initialize and substitute variables for isinf
47843         module.
47844         * modules/isinf: New file.
47845         * modules/isinf-tests: New file.
47846         * modules/math: Add substitutions for new module.
47847         * tests/test-isinf.c: New file.
47848         * doc/posix-functions/isinf.texi: Mention new module.
47849         * MODULES.html.sh: Mention new module.
47850
47851 2008-07-14  Ben Pfaff  <blp@gnu.org>
47852
47853         Factor out some macros for use by additional modules.
47854         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47855         exponentf.m4.
47856         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47857         exponentd.m4.
47858         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47859         file exponentl.m4.
47860         * m4/exponentf.m4: New file.
47861         * m4/exponentd.m4: New file.
47862         * m4/exponentl.m4: New file.
47863         * modules/isnanf: Use new file m4/exponentf.m4.
47864         * modules/isnand: Use new file m4/exponentd.m4.
47865         * modules/isnanl: Use new file m4/exponentl.m4.
47866
47867 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47868
47869         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47870         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47871         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47872         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47873
47874         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47875         readlink on platforms without PATH_MAX.
47876
47877 2008-07-21  Eric Blake  <ebb9@byu.net>
47878
47879         Warn, not fail, on stale version.
47880         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47881
47882         Don't allow installation with stale devel version number.
47883         * top/GNUmakefile (_is-install-target): New macro.
47884         (_curr-ver): Forbid installation with stale version number.
47885
47886 2008-07-20  Bruno Haible  <bruno@clisp.org>
47887
47888         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47889         TESTS_ENVIRONMENT.
47890         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47891
47892 2008-07-20  Bruno Haible  <bruno@clisp.org>
47893
47894         * lib/c-stack.h (c_stack_action): Add documentation.
47895         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47896
47897 2008-07-20  Bruno Haible  <bruno@clisp.org>
47898
47899         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47900         * modules/readlink (License): Likewise.
47901
47902 2008-07-17  Eric Blake  <ebb9@byu.net>
47903
47904         * modules/c-stack (Link): Fix typo.
47905
47906         Make c-stack use libsigsegv, when available.
47907         * modules/c-stack (Depends-on): Add libsigsegv.
47908         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47909         needed.
47910         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47911         (segv_handler, overflow_handler, c_stack_action)
47912         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47913         implementation when libsigsegv is available, but only when using
47914         the library is necessary.
47915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47916         comment, explaining why XSI check fails on Linux.
47917         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47918         * tests/test-c-stack2.sh: Tweak skip message.
47919         * NEWS: Document new link-time requirements.
47920
47921 2008-07-16  Eric Blake  <ebb9@byu.net>
47922
47923         c-stack: Expose false positives when not using libsigsegv.
47924         * modules/c-stack-tests (Files): Expand test.
47925         * tests/test-c-stack.c (main): Add means to conditionally trigger
47926         non-overflow SIGSEGV.
47927         * tests/test-c-stack2.sh: New file.
47928
47929 2008-07-14  Bruno Haible  <bruno@clisp.org>
47930
47931         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47932         Reported by Eric Blake.
47933
47934 2008-07-14  Sam Steingold  <sds@gnu.org>
47935             Bruno Haible  <bruno@clisp.org>
47936
47937         New module libsigsegv.
47938         * modules/libsigsegv: New file.
47939         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47940         modifications.
47941         * MODULES.html.sh (Signal handling): New section.
47942
47943 2008-07-14  Bruno Haible  <bruno@clisp.org>
47944
47945         * modules/unictype/ctype-* (Description): Add the word "function".
47946         Improves the resulting doc in MODULES.html.
47947
47948 2008-07-12  Ben Pfaff  <blp@gnu.org>
47949
47950         Add longlong module.
47951         * modules/longlong: New file.
47952
47953 2008-07-12  Bruno Haible  <bruno@clisp.org>
47954
47955         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47956         to empty.
47957
47958 2008-07-10  Ben Pfaff  <blp@gnu.org>
47959
47960         Add isnan module.
47961         * doc/posix-functions/isnan.texi: Mention new module.
47962         * lib/math.in.h: Define isnan macro if we have decided to replace
47963         it.
47964         * m4/isnan.m4: New file.
47965         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47966         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47967         also.
47968         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47969         redundancy.
47970         * m4/math_h.m4: Initialize and substitute variables for isnan
47971         module.
47972         * modules/isnan: New file.
47973         * modules/isnan-tests: New file.
47974         * modules/math: Add substitutions for new module.
47975         * tests/test-isnan.c: New file.
47976         * MODULES.html.sh: Mention new module.
47977
47978 2008-07-10  Ben Pfaff  <blp@gnu.org>
47979
47980         Add isnanf module.
47981         * lib/isnanf.m4: New file.
47982         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47983         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47984         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47985         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47986         * modules/isnanf: New file.
47987         * modules/isnanf-tests: New file.
47988         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47989         files.
47990         * tests/test-isnanf-nolibm.c: factored most of its contents into
47991         new file tests/test-isnanf.h.
47992         * tests/test-isnanf.h: New file.
47993         * tests/test-isnanf.c: New file.
47994         * MODULES.html.sh: Mention new module.
47995         * doc/glibc-functions/isnanf.texi: Mention new module.
47996
47997 2008-07-10  Ben Pfaff  <blp@gnu.org>
47998
47999         Add isnand module.
48000         * lib/isnand.h: New file.
48001         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48002         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48003         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48004         functionality also.
48005         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48006         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48007         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48008         * modules/isnand: New file.
48009         * modules/isnand-tests: New file.
48010         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48011         files.
48012         * tests/test-isnand-nolibm.c: factored most of its contents into
48013         new file tests/test-isnand.h.
48014         * tests/test-isnand.h: New file.
48015         * tests/test-isnand.c: New file.
48016         * MODULES.html.sh: Mention new module.
48017
48018 2008-07-10  Ben Pfaff  <blp@gnu.org>
48019
48020         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48021         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48022         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48023         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48024         * modules/isnanf-nolibm: Update references to renamed files.
48025         * modules/isnand-nolibm: Likewise.
48026         * modules/isnanf-nolibm-tests: Likewise.
48027         * modules/isnand-nolibm-tests: Likewise.
48028         * lib/frexp.c: Likewise.
48029         * lib/isfinite.c: Likewise.
48030         * lib/signbitd.c: Likewise.
48031         * lib/signbitf.c: Likewise.
48032         * lib/vasnprintf.c: Likewise.
48033         * tests/test-ceilf1.c: Likewise.
48034         * tests/test-ceilf2.c: Likewise.
48035         * tests/test-floorf1.c: Likewise.
48036         * tests/test-floorf2.c: Likewise.
48037         * tests/test-frexp.c: Likewise.
48038         * tests/test-round1.c: Likewise.
48039         * tests/test-round2.c: Likewise.
48040         * tests/test-roundf1.c: Likewise.
48041         * tests/test-strtod.c: Likewise.
48042         * tests/test-trunc1.c: Likewise.
48043         * tests/test-trunc2.c: Likewise.
48044         * tests/test-truncf1.c: Likewise.
48045         * tests/test-truncf2.c: Likewise.
48046         * NEWS: Mention the renamed header files.
48047
48048 2008-07-11  Jim Meyering  <meyering@redhat.com>
48049
48050         vc-list-files: make the last-resort awk code more portable
48051         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48052         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48053         does not support it.
48054
48055 2008-07-10  Eric Blake  <ebb9@byu.net>
48056
48057         Work with tar's bootstrap.
48058         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48059         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48060         an m4 comment.
48061
48062 2008-07-09  Jim Meyering  <meyering@redhat.com>
48063
48064         posix-shell.m4: fix typo that made this test malfunction
48065         * m4/posix-shell.m4: Remove capitalization in variable name.
48066
48067 2008-07-08  Bruno Haible  <bruno@clisp.org>
48068
48069         * m4/onceonly.m4: Update comments.
48070         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48071
48072 2008-07-04  Jim Meyering  <meyering@redhat.com>
48073
48074         * users.txt: Add vc-dwim.
48075         (bison, coreutils): Use the gitweb URL.
48076
48077 2008-07-03  Jim Meyering  <meyering@redhat.com>
48078
48079         * users.txt: Add libffcall.  From Sam Steingold.
48080
48081 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48082
48083         getdate.y: do not ignore TZ with relative day, month or year offset
48084         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48085         relative-date-handling, since otherwise, the latter would clobber the
48086         sole output (an updated Start value) of the tz-handling block.
48087         * tests/test-getdate.c: Tests for the fix
48088
48089 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48090
48091         Recognize 'foo_LIBRARIES += libgnu.a'.
48092         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48093         makefile snippet has already specified an installation location,
48094         also using '+='.
48095
48096 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48097
48098         getdate.y: factor out common actions
48099         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48100         Use them in place of open-coded actions.
48101
48102 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48103
48104         Add self-test for getdate module.
48105         * modules/getdate-tests: New file.
48106         * tests/test-getdate.c: New file.
48107
48108 2008-06-29  Bruno Haible  <bruno@clisp.org>
48109
48110         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48111         .gitignore.
48112         Reported by Sylvain Beucler <beuc@beuc.net>.
48113
48114 2008-06-29  Bruno Haible  <bruno@clisp.org>
48115
48116         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48117         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48118
48119 2008-06-29  Bruno Haible  <bruno@clisp.org>
48120
48121         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48122         EXTRA_DIST.
48123         Reported by Sylvain Beucler <beuc@beuc.net>.
48124
48125 2008-06-26  Jim Meyering  <meyering@redhat.com>
48126
48127         make several modules depend on the "open" module
48128         This provides slightly increased consistency when opening-for-write
48129         the name of a non-directory spelled with a trailing slash.
48130         * modules/chdir-safer: Likewise.
48131         * modules/chown: Likewise.
48132         * modules/clean-temp: Likewise.
48133         * modules/copy-file: Likewise.
48134         * modules/fchdir: Likewise.
48135         * modules/fcntl-safer: Likewise.
48136         * modules/pipe: Likewise.
48137         * modules/utime: Likewise.
48138         Prompted by Eric Blake and Bruno Haible.
48139
48140 2008-06-24  Andreas Schwab  <schwab@suse.de>
48141
48142         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48143         literals can be used as initializers for global variables.
48144
48145 2008-06-23  Eric Blake  <ebb9@byu.net>
48146
48147         Make gnulib-cache.m4 easier to diff.
48148         * gnulib-tool (func_import): Allow newlines when reading cached
48149         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48150
48151 2008-06-23  Bruno Haible  <bruno@clisp.org>
48152
48153         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48154         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48155         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48156         m4/signalblocking.m4.
48157         (gl_PREREQ_SIGACTION): Don't invoke it.
48158         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48159         gl_PREREQ_SIG_HANDLER_H.
48160         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48161         Don't check for sigaction here.
48162
48163 2008-06-23  Bruno Haible  <bruno@clisp.org>
48164
48165         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48166         (install_handlers): Don't set the SA_RESETHAND flag.
48167
48168 2008-06-23  Bruno Haible  <bruno@clisp.org>
48169
48170         * m4/sigaction.m4: Comment fixes.
48171         * lib/signal.in.h: Likewise.
48172
48173 2008-06-23  Eric Blake  <ebb9@byu.net>
48174
48175         Fix typo.
48176         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48177
48178         Avoid SA_ namespace.
48179         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48180         Reported by Ralf Wildenhues.
48181
48182         Avoid test failure due to SA_RESTORER.
48183         * tests/test-sigaction.c (SA_MASK): New macro.
48184         (main): Avoid failing due to extension flags being set.
48185         Reported by Jim Meyering.
48186
48187         Revert use of sig-handler.h in sigprocmask.c.
48188         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48189         it requires the existence of struct sigaction.
48190         * lib/sigprocmask.c (handler_t): Restore typedef.
48191         (rpl_signal, old_handlers): Use local type.
48192
48193 2008-06-22  Bruno Haible  <bruno@clisp.org>
48194
48195         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48196         conditionally.
48197         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48198
48199 2008-06-22  Bruno Haible  <bruno@clisp.org>
48200
48201         * doc/posix-functions/siginterrupt.texi: Move note.
48202
48203         * lib/signal.in.h (SA_RESTART): New macro.
48204         * lib/sigaction.c: Update comment.
48205
48206         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48207
48208         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48209         (gl_PREREQ_SIGPROCMASK): Invoke it.
48210         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48211
48212         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48213
48214         * lib/sigprocmask.c: Update a comment.
48215
48216 2008-06-21  Eric Blake  <ebb9@byu.net>
48217
48218         Use sigaction module rather than signal().
48219         * modules/c-stack (Depends-on): Add sigaction.
48220         * modules/fatal-signal (Depends-on): Likewise.
48221         * modules/nanosleep (Depends-on): Likewise.
48222         * modules/sigprocmask (Files): Add sig-handler.h.
48223         * modules/sigaction (Files): Likewise.
48224         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48225         Eggert.
48226         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48227         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48228         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48229         (init_fatal_signals): Likewise.
48230         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48231         (siginterrupt): Delete fallback.
48232         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48233         instead.
48234         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48235         siginterrupt.
48236
48237         New module sigaction, for mingw.
48238         * modules/sigaction: New module...
48239         * modules/sigaction-tests: ...and its test.
48240         * m4/sigaction.m4: New file.
48241         * lib/sigaction.c: Likewise.
48242         * tests/test-sigaction.c: Likewise.
48243         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48244         * modules/signal (Makefile.am): Likewise.
48245         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48246         needed.
48247         * doc/posix-headers/signal.texi (signal.h): Mention provided
48248         types.
48249         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48250         that sigaction is preferable.
48251         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48252         module.
48253         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48254         sigaction.
48255
48256         Improve robustness of sigprocmask by overriding signal.
48257         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48258         is in use.
48259         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48260         (SIGKILL, SIGSTOP): Provide fallbacks.
48261         (rpl_signal): Implement.
48262         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48263         signal can be called inside handlers.
48264
48265         Fix nanosleep module on mingw.
48266         * modules/nanosleep (Depends-on): Add sys_select.
48267         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48268
48269         Fix licensing of sigprocmask.
48270         * modules/raise (License): Relicense as LGPL.
48271
48272 2008-06-21  Bruno Haible  <bruno@clisp.org>
48273
48274         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48275         result if it contains question marks.
48276         Reported by Michael Geng <linux@michaelgeng.de>.
48277
48278 2008-06-19  Bruno Haible  <bruno@clisp.org>
48279
48280         Fix CVS-ism.
48281         * doc/gnulib.texi: Include updated-stamp.texi.
48282         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48283         (updated-stamp.texi): New rule.
48284         (gnulib.info): Depend on it.
48285         * doc/.gitignore: Add updated-stamp.texi.
48286         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48287
48288 2008-06-19  Bruno Haible  <bruno@clisp.org>
48289
48290         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48291         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48292
48293 2008-06-19  Eric Blake  <ebb9@byu.net>
48294
48295         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48296         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48297         Reported by Stepan Kasal.
48298
48299 2008-06-18  Bruno Haible  <bruno@clisp.org>
48300
48301         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48302         Reported by Eric Blake.
48303
48304 2008-06-18  Eric Blake  <ebb9@byu.net>
48305
48306         Work around cygwin 1.5.25 strsignal bug.
48307         * tests/test-strsignal.c: Allow for const char *.
48308         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48309
48310 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48311
48312         * users.txt: Update URL to article and add author/date
48313         information.
48314
48315 2008-06-17  Bruno Haible  <bruno@clisp.org>
48316
48317         New macro gl_DISABLE_THREADS.
48318         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48319         if the user did not pass --enable-threads or --disable-threads option.
48320         (gl_DISABLE_THREADS): New macro.
48321         Reported by Eric Blake <ebb9@byu.net>.
48322
48323 2008-06-17  Bruno Haible  <bruno@clisp.org>
48324
48325         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48326         when the macro ignores it.
48327         Based on a patch by Eric Blake <ebb9@byu.net>.
48328
48329 2008-06-17  Bruno Haible  <bruno@clisp.org>
48330
48331         * modules/tls (License): Change to LGPLv2+.
48332         Reported by Eric Blake.
48333
48334 2008-06-17  Eric Blake  <ebb9@byu.net>
48335
48336         Simplify c-stack prerequisites.
48337         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48339         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48340         check.
48341         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48342         <sys/resource.h>.
48343
48344         Move c-stack test into testsuite.
48345         * modules/c-stack-tests: New file.
48346         * lib/c-stack.c [DEBUG]: Move test program...
48347         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48348         fail test if sigaltstack is lacking.
48349         * tests/test-c-stack.sh: New driver file.
48350
48351 2008-06-16  Eric Blake  <ebb9@byu.net>
48352
48353         Use raise module consistently.
48354         * modules/fatal-signal (Depends-on): Add raise.
48355         * modules/sigprocmask (Depends-on): Likewise.
48356         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48357         * lib/sigprocmask.c (sigprocmask): Likewise.
48358         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48359         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48360
48361         Fix compliance bug in sigpending.
48362         * lib/sigprocmask.c (sigpending): Return pending array via
48363         parameter, not return value.
48364
48365 2008-06-14  Eric Blake  <ebb9@byu.net>
48366
48367         Improve obstack-printf test code.
48368         * tests/test-obstack-printf.c (test_function): Fix comment, and
48369         simplify usage of obstack_* in macros.  Add a test for coverage.
48370         Reported by Bruno Haible.
48371
48372 2008-06-14  Bruno Haible  <bruno@clisp.org>
48373
48374         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48375         array size as a constant, not as a const variable.
48376         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48377         AC_USE_SYSTEM_EXTENSIONS.
48378         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48379         Test whether the obstack_printf function actually exists.
48380         * modules/obstack-printf (Depends-on): Add extensions.
48381         (Include): Remove obstack.h.
48382         * modules/obstack-printf-posix (Depends-on): Add extensions.
48383         (Include): Remove obstack.h.
48384
48385 2008-06-13  Eric Blake  <ebb9@byu.net>
48386
48387         Add obstack-printf and obstack-printf-posix modules.
48388         * modules/obstack-printf: New file.
48389         * modules/obstack-printf-posix: Likewise.
48390         * MODULES.html.sh (Misc): Mention them.
48391         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48392         Likewise.
48393         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48394         Likewise.
48395         * modules/stdio (Makefile.am): Accomodate new modules.
48396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48397         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48398         Declare.
48399         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48400         functions.
48401         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48402         (gl_REPLACE_OBSTACK_PRINTF): New macros
48403         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48404         * tests/test-obstack-printf.c: New file.
48405         * modules/obstack-printf-tests: Likewise.
48406         * modules/obstack-printf-posix-tests: Likewise.
48407
48408 2008-06-11  Bruno Haible  <bruno@clisp.org>
48409
48410         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48411         * lib/open.c: Include errno.h.
48412         (open): Fail when attempting to write to a file that has a trailing
48413         slash.
48414         * tests/test-open.c (main): Test against trailing slash bug.
48415         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48416
48417 2008-06-10  Bruno Haible  <bruno@clisp.org>
48418
48419         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48420         for $? to work inside the trap command, with various /bin/sh-s.
48421         * tests/test-vc-list-files-cvs.sh: Likewise.
48422
48423 2008-06-10  Bruno Haible  <bruno@clisp.org>
48424
48425         * lib/acl-internal.h: Don't include gettext.h here.
48426         * lib/set-mode-acl.c: Include gettext.h here.
48427         * lib/copy-acl.c: Likewise.
48428
48429 2008-06-10  Bruno Haible  <bruno@clisp.org>
48430
48431         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48432         * lib/wait-process.c (wait_subprocess): Likewise.
48433         * lib/execute.h (execute): Add termsigp argument.
48434         * lib/execute.c (execute): Likewise.
48435         * lib/csharpcomp.c (compile_csharp_using_pnet,
48436         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48437         * lib/csharpexec.c (execute_csharp_using_pnet,
48438         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48439         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48440         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48441         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48442         is_jikes_present): Update.
48443         * lib/javaexec.c (execute_java_class): Update.
48444         * lib/javaversion.c (execute_and_read_line): Update.
48445         * NEWS: Document the changes.
48446         Reported by Eric Blake.
48447
48448 2008-06-10  Eric Blake  <ebb9@byu.net>
48449
48450         Add missing include.
48451         * tests/test-strstr.c (includes): Add <signal.h>.
48452         * tests/test-strcasestr.c (includes): Likewise.
48453         * tests/test-memmem.c (includes): Likewise.
48454
48455 2008-06-10  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/wait-process.c (wait_subprocess): Add an assertion.
48458
48459 2008-06-10  Bruno Haible  <bruno@clisp.org>
48460
48461         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48462
48463 2008-06-10  Bruno Haible  <bruno@clisp.org>
48464
48465         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48466         using alarm().
48467         * tests/test-strcasestr.c (main): Likewise.
48468         * tests/test-strstr.c (main): Likewise.
48469
48470 2008-06-09  Bruno Haible  <bruno@clisp.org>
48471
48472         Work around the Solaris 10 ACE ACLs ABI change.
48473         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48474         declare if ACL_NO_TRIVIAL is present.
48475         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48476         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48477         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48478         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48479         define if ACL_NO_TRIVIAL is present.
48480         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48481         and use the current ABI.
48482         (file_has_acl): Use same #if condition as elsewhere.
48483         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48484         in use, and use the current ABI.
48485         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48486         Reported by Jim Meyering.
48487
48488 2008-06-09  Eric Blake  <ebb9@byu.net>
48489
48490         Work around environments that (stupidly) ignore SIGALRM.
48491         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48492         before using alarm().
48493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48494         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48495         Reported by Ian Beckwith <ianb@erislabs.net>.
48496
48497         Produce autobuild blurb earlier in log.
48498         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48499
48500 2008-06-09  Jim Meyering  <meyering@redhat.com>
48501         and Ondřej Vašík  <ovasik@redhat.com>
48502
48503         utimens.c: correct kernel bug work-around
48504         Ondřej Vašík found that the invalid return value of 280 indicates
48505         failure, not success, and the kernel bug we're trying to work
48506         around affects not just the utimensat call, but also the fallback
48507         futimens call.
48508         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48509         not success.
48510         [HAVE_FUTIMENS]: Use the same work-around, here.
48511
48512 2008-06-09  Jim Meyering  <meyering@redhat.com>
48513
48514         add more guards around definition of ACE_-related code
48515         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48516         ALLOW and ACE_OWNER are also defined.
48517
48518 2008-06-08  Bruno Haible  <bruno@clisp.org>
48519
48520         * lib/acl-internal.h: Add me as co-author.
48521         * lib/file-has-acl.c: Likewise.
48522         * lib/set-mode-acl.c: Likewise.
48523         * lib/copy-acl.c: Likewise.
48524
48525 2008-06-08  Bruno Haible  <bruno@clisp.org>
48526
48527         Add support for AIX ACLs.
48528         * lib/acl-internal.h (acl_nontrivial): New declaration.
48529         * lib/file-has-acl.c (acl_nontrivial): New function.
48530         (file_has_acl): Add implementation using AIX 4 ACL API.
48531         * lib/set-mode-acl.c (qset_acl): Likewise.
48532         * lib/copy-acl.c (qcopy_acl): Likewise.
48533
48534 2008-06-08  Bruno Haible  <bruno@clisp.org>
48535
48536         Add support for HP-UX ACLs.
48537         * lib/acl-internal.h (acl_nontrivial): New declaration.
48538         * lib/file-has-acl.c (acl_nontrivial): New function.
48539         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48540         * lib/set-mode-acl.c (qset_acl): Likewise.
48541         * lib/copy-acl.c (qcopy_acl): Likewise.
48542
48543 2008-06-08  Bruno Haible  <bruno@clisp.org>
48544
48545         Add support for Cygwin ACLs.
48546         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48547         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48548         the chmod_or_fchmod call.
48549         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48550
48551 2008-06-08  Bruno Haible  <bruno@clisp.org>
48552
48553         Fix bug with setuid modes in Solaris 10+ code.
48554         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48555         succeeded, when the mode contains some special bits.
48556
48557 2008-06-08  Bruno Haible  <bruno@clisp.org>
48558
48559         Add support for Solaris 7..10 ACLs.
48560         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48561         declarations.
48562         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48563         functions.
48564         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48565         * lib/set-mode-acl.c (qset_acl): Likewise.
48566         * lib/copy-acl.c (qcopy_acl): Likewise.
48567
48568 2008-06-08  Bruno Haible  <bruno@clisp.org>
48569
48570         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48571         declaration.
48572         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48573         (acl_access_nontrivial): Remove MacOS X case.
48574         (file_has_acl): Use acl_extended_nontrivial.
48575         * lib/copy-acl.c (qcopy_acl): Likewise.
48576
48577 2008-06-08  Bruno Haible  <bruno@clisp.org>
48578
48579         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48580
48581 2008-06-08  Jim Meyering  <meyering@redhat.com>
48582
48583         * modules/acl (Maintainer): Add Bruno Haible.
48584
48585 2008-06-07  Bruno Haible  <bruno@clisp.org>
48586
48587         Improve support for Tru64 ACLs.
48588         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48589         ACL on OSF/1.
48590
48591 2008-06-07  Bruno Haible  <bruno@clisp.org>
48592
48593         Add support for MacOS X ACLs.
48594         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48595         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48596         * lib/set-mode-acl.c (qset_acl): Likewise.
48597         * lib/copy-acl.c (qcopy_acl): Likewise.
48598
48599 2008-06-07  Bruno Haible  <bruno@clisp.org>
48600
48601         Fix memory leak introduced on 2008-05-22.
48602         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48603         use.
48604
48605 2008-06-07  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48608         to construct an empty ACL.
48609
48610 2008-06-07  Bruno Haible  <bruno@clisp.org>
48611
48612         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48613         precisely.
48614         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48615
48616 2008-06-07  Bruno Haible  <bruno@clisp.org>
48617
48618         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48619         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48620
48621 2008-06-07  Bruno Haible  <bruno@clisp.org>
48622
48623         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48624         regardless of POSIX.
48625         * doc/posix-functions/_longjmp.texi: Likewise.
48626         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48627         SystemV platform in this case.
48628
48629 2008-06-06  Eric Blake  <ebb9@byu.net>
48630
48631         Document abort() bugs.
48632         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48633
48634         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48635         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48636         sigsetjmp.
48637         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48638         siglongjmp, but only as a macro.
48639         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48640         is obsolete.
48641         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48642
48643         Tweak documentation to cover cygwin argz bugs.
48644         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48645         argz bug fix; no code change needed since no cygwin releases
48646         occurred between the last fix and the bug being tested.
48647         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48648         module and recently fixed cygwin bugs.
48649         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48650         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48651         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48652         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48653         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48654         Likewise.
48655         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48656         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48657         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48658         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48659         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48660         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48661         Likewise.
48662
48663         Avoid gcc warning on cygwin.
48664         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48665         !ACL_NO_TRIVIAL]: Avoid unused variable.
48666
48667 2008-06-05  Eric Blake  <ebb9@byu.net>
48668
48669         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48670         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48671         git-version-gen fails to come up with a version.
48672         Reported by Simon Josefsson.
48673
48674 2008-06-05  Jim Meyering  <meyering@redhat.com>
48675             Paul Eggert  <eggert@cs.ucla.edu>
48676
48677         utimens.c: work around a probable Linux kernel bug
48678         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48679         appears to be a kernel bug that causes utimensat to return 280
48680         instead of 0, indicating success.
48681
48682 2008-06-04  Bruno Haible  <bruno@clisp.org>
48683
48684         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48685         2008-06-01 commit.
48686
48687 2008-06-04  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48690         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48691         (file_has_acl): Use it. Save errno afterwards.
48692         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48693
48694 2008-06-03  Bruno Haible  <bruno@clisp.org>
48695
48696         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48697         draft code. Simplify #ifs.
48698         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48699         Put Solaris code after POSIX-draft code. Fix comments regarding
48700         Solaris 10, HP-UX. Mention Cygwin.
48701         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48702
48703 2008-06-03  Eric Blake  <ebb9@byu.net>
48704
48705         Provide fallback for older kernels.
48706         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48707         Provide runtime fallback if kernel lacks support.
48708         Reported by Mike Frysinger.
48709
48710 2008-06-02  Bruno Haible  <bruno@clisp.org>
48711
48712         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48713         it exists.
48714
48715 2008-06-02  Bruno Haible  <bruno@clisp.org>
48716
48717         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48718         * lib/copy-acl.c (qcopy_acl): Update comment.
48719
48720 2008-06-02  Bruno Haible  <bruno@clisp.org>
48721
48722         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48723         like ACL APIs.
48724
48725 2008-06-02  Bruno Haible  <bruno@clisp.org>
48726
48727         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48728         * tests/test-set-mode-acl.sh: Likewise.
48729         * tests/test-copy-acl.sh: Likewise.
48730         * tests/test-copy-file.sh: Likewise.
48731
48732 2008-06-02  Bruno Haible  <bruno@clisp.org>
48733
48734         * tests/test-file-has-acl.sh: Remove unused code.
48735
48736 2008-06-01  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48739         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48740         messages.
48741         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48742
48743 2008-06-01  Bruno Haible  <bruno@clisp.org>
48744
48745         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48746         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48747         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48748         APIs.
48749         * modules/acl-tests (configure.ac): Remove tests now contained in
48750         m4/acl.m4.
48751
48752 2008-06-02  Jim Meyering  <meyering@redhat.com>
48753
48754         announce-gen: use a better key-server host name
48755         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48756         it may be more consistently reliable.  Suggested by Werner Koch
48757         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48758
48759 2008-06-01  Bruno Haible  <bruno@clisp.org>
48760
48761         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48762         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48763
48764 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48765
48766         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48767
48768 2008-06-01  Bruno Haible  <bruno@clisp.org>
48769
48770         New ACL tests.
48771         * tests/test-file-has-acl.sh: New file.
48772         * tests/test-file-has-acl.c: New file.
48773         * tests/test-set-mode-acl.sh: New file.
48774         * tests/test-set-mode-acl.c: New file.
48775         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48776         * tests/test-copy-acl.c: New file.
48777         * modules/acl-tests: New file, based on modules/copy-file-tests.
48778         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48779         (Depends-on): Add acl-tests.
48780         (configure.ac): Remove checks.
48781         (Makefile.am): Don't create test-sameacls program here any more.
48782
48783 2008-06-01  Bruno Haible  <bruno@clisp.org>
48784
48785         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48786         * tests/test-sameacls.c: Include progname.h.
48787         (main): Invoke set_program_name. Portability fixes for MacOS X,
48788         Solaris, HP-UX.
48789
48790 2008-06-01  Bruno Haible  <bruno@clisp.org>
48791
48792         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48793         function.
48794         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48795
48796 2008-06-01  Bruno Haible  <bruno@clisp.org>
48797
48798         * modules/rpmatch (Depends-on): Add strdup.
48799
48800 2008-06-01  Bruno Haible  <bruno@clisp.org>
48801
48802         * lib/pipe.c: Include unistd-safer.h.
48803         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48804         * modules/pipe (Depends-on): Add unistd-safer.
48805
48806 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48807
48808         * modules/autobuild (configure.ac): Call AB_INIT.
48809
48810 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48811
48812         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48813         Suggested by Bruno Haible <bruno@clisp.org>.
48814
48815 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48816
48817         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48818         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48819         <bruno@clisp.org>.
48820
48821 2008-05-29  Eric Blake  <ebb9@byu.net>
48822
48823         Prefer new POSIX 200x interfaces over futimesat.
48824         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48825         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48826         when available.
48827         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48828
48829 2008-05-28  Bruno Haible  <bruno@clisp.org>
48830
48831         * modules/stpcpy (License): Change to LGPLv2+.
48832         Requested by David Lutterkort <dlutter@redhat.com>.
48833
48834 2008-05-27  Bruno Haible  <bruno@clisp.org>
48835
48836         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48837         current mingw.
48838         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48839
48840 2008-05-27  Bruno Haible  <bruno@clisp.org>
48841
48842         * modules/iconv_open (Link): New section, from module 'iconv'.
48843         * modules/striconv (Link): Likewise.
48844         * modules/striconveh (Link): Likewise.
48845         * modules/xstriconv (Link): Likewise.
48846         * modules/unicodeio (Link): Likewise.
48847         * modules/propername (Link): Likewise.
48848         Reported by Jim Meyering.
48849
48850 2008-05-26  Jim Meyering  <meyering@redhat.com>
48851
48852         sha256: do not artificially restrict buffer length to be < 2^32
48853         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48854         uint32_t to size_t.
48855         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48856         to match.
48857
48858         avoid unaligned access errors, e.g., on sparc
48859         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48860         direct access through a possibly-unaligned uint64* pointer.
48861         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48862         direct access through a possibly-unaligned uint32* pointer.
48863         Prompted by this patch from Tom "spot" Callaway:
48864         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48865
48866         sha512.c: fix typo in comment
48867         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48868
48869 2008-05-25  Bruno Haible  <bruno@clisp.org>
48870
48871         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48872         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48873         (Makefile.am): Update lib_SOURCES.
48874
48875 2008-05-25  Bruno Haible  <bruno@clisp.org>
48876
48877         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48878
48879 2008-05-25  Jim Meyering  <meyering@redhat.com>
48880
48881         useless-if-before-free: freed expr may have white-space differences
48882         * build-aux/useless-if-before-free: Recognize cases in which the
48883         freed expression differs from the tested one in embedded white
48884         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48885         $1 was used, so we can't make any regexp shy.  Improved tests now
48886         detect this.
48887
48888         useless-if-before-free: accept white space in the expression.
48889         * build-aux/useless-if-before-free: For now, any white space
48890         in the expression must be identical in the free argument.
48891
48892         useless-if-before-free: efficiency tweak
48893         * build-aux/useless-if-before-free: Make the expression-matching
48894         regexp "shy".
48895         Make the *outer* regexp shy, not the expr-matching one.
48896
48897         update code-in-comment to accept cast of free arg
48898         * build-aux/useless-if-before-free: Update regexp.
48899
48900 2008-05-25  Bruno Haible  <bruno@clisp.org>
48901
48902         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48903         * modules/copy-file-tests (Files, Makefile.am): Update.
48904         * tests/test-copy-file.c (func_test_copy): Update.
48905
48906 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48907
48908         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48909
48910 2008-05-23  Bruno Haible  <bruno@clisp.org>
48911
48912         Improve support for ACLs on OSF/1.
48913         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48914         Remove fallback for unknown flavors of ACLs.
48915
48916 2008-05-22  Bruno Haible  <bruno@clisp.org>
48917
48918         Add support for ACLs on OSF/1.
48919         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48920         replacements.
48921         (acl_free_text): New macro fallback.
48922         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48923         acl_free.
48924         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48925         acl_free_text function. Require AC_C_INLINE.
48926
48927 2008-05-22  Bruno Haible  <bruno@clisp.org>
48928
48929         Make copy_acl work on MacOS X 10.5.
48930         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48931         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48932         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48933         If MODE_INSIDE_ACL, don't assume that every system has the same text
48934         representation for ACLs as FreeBSD.
48935         * lib/copy-acl.c (copy_acl): Add support for platforms with
48936         !MODE_INSIDE_ACL.
48937         * lib/file-has-acl.c (file_has_acl): Likewise.
48938         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48939         FreeBSD, MacOS X, or IRIX, respectively.
48940
48941 2008-05-22  Bruno Haible  <bruno@clisp.org>
48942
48943         * lib/acl.h: Don't include <sys/acl.h>.
48944         (GETACLCNT): Move fallback to lib/acl-internal.h.
48945         * lib/acl-internal.h: Include <sys/acl.h> here.
48946         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48947
48948 2008-05-22  Bruno Haible  <bruno@clisp.org>
48949
48950         Split off copy_acl function to separate file.
48951         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48952         * lib/acl.c (copy_acl): Moved function to separate file.
48953         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48954         * modules/acl (Files): Add lib/copy-acl.c.
48955         (Makefiles.am): Augment lib_SOURCES.
48956
48957 2008-05-22  Bruno Haible  <bruno@clisp.org>
48958
48959         * modules/copy-file-tests: New file.
48960         * tests/test-copy-file.sh: New file.
48961         * tests/test-copy-file.c: New file.
48962         * tests/test-copy-file-sameacls.c: New file.
48963
48964 2008-05-22  Eric Blake  <ebb9@byu.net>
48965
48966         Avoid gcc warning.
48967         * tests/test-memcmp.c (main): Pass NULL indirectly.
48968
48969 2008-05-21  Bruno Haible  <bruno@clisp.org>
48970
48971         Add reference doc about ACLs.
48972         * doc/acl-resources.txt: New file.
48973         * doc/acl-cygwin.txt: New file.
48974
48975 2008-05-21  Bruno Haible  <bruno@clisp.org>
48976
48977         Avoid one more warning from gcc.
48978         * lib/vasnprintf.c (IF_LINT): Update comments.
48979         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48980
48981 2008-05-21  Jim Meyering  <meyering@redhat.com>
48982
48983         avoid a warning from gcc
48984         * lib/vasnprintf.c (IF_LINT): Define.
48985         (scale10_round_decimal_long_double):
48986         Use it to avoid a "may be used uninitialized" warning.
48987         (scale10_round_decimal_double): Likewise.
48988
48989 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48990
48991         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48992         declared.
48993
48994 2008-05-20  Bruno Haible  <bruno@clisp.org>
48995
48996         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48997         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48998
48999 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49000
49001         * modules/memcmp-tests: New file.
49002         * tests/test-memcmp.c: New file.
49003
49004 2008-05-19  Bruno Haible  <bruno@clisp.org>
49005
49006         * modules/propername (Notice, configure.ac): Put quoted "..." into
49007         --keyword option.
49008         * lib/propername.h: Update comments accordingly.
49009         Reported by Eric Blake.
49010
49011 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49012
49013         * modules/getpass-gnu (Depends-on): Add fseeko.
49014
49015 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49016
49017         * modules/base64-tests: New file.
49018
49019 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49020
49021         * lib/base64.c (base64_decode_ctx): If a decode context structure
49022         was passed in use it to ignore newlines.  If a context structure
49023         was _not_ passed in, continue to treat newlines as garbage (this
49024         is the historical behavior).  Formerly base64_decode.
49025         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49026         takes a decode context structure.
49027         * lib/base64.h (base64_decode): Macro for four-argument calls.
49028         (base64_decode_alloc): Likewise.
49029         * lib/base64.c (base64_decode_ctx): If a decode context structure
49030         was passed in use it to ignore newlines.  If a context structure
49031         was _not_ passed in, continue to treat newlines as garbage (this
49032         is the historical behavior).  Formerly base64_decode.
49033         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49034         takes a decode context structure.
49035         * lib/base64.h (base64_decode): Macro for four-argument calls.
49036         (base64_decode_alloc): Likewise.
49037
49038 2008-05-19  Jim Meyering  <meyering@redhat.com>
49039
49040         avoid a warning from gcc
49041         * lib/trim.c (IF_LINT): Define.
49042         (trim2): Use it to avoid a "may be used uninitialized" warning.
49043
49044         Fix doc typo.
49045         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49046
49047 2008-05-19  Bruno Haible  <bruno@clisp.org>
49048
49049         * doc/glibc-functions/getpass.texi: Document limits of other
49050         implementations.
49051
49052 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49053             Bruno Haible <bruno@clisp.org>
49054
49055         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49056
49057 2008-05-18  Bruno Haible  <bruno@clisp.org>
49058
49059         * modules/propername: New file, from GNU gettext.
49060         * lib/propername.h: New file, from GNU gettext.
49061         * lib/propername.c: New file, from GNU gettext.
49062         * MODULES.html.sh (Internationalization functions): Add propername.
49063
49064 2008-05-16  Jim Meyering  <meyering@redhat.com>
49065             Bruno Haible  <bruno@clisp.org>
49066
49067         Avoid some warnings from "gcc -Wshadow".
49068         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49069
49070 2008-05-15  Eric Blake  <ebb9@byu.net>
49071
49072         Extend previous patch to cygwin 1.7.0.
49073         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49074         fast implementation in cygwin >= 1.7.0.
49075         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49076         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49077
49078 2008-05-15  Bruno Haible  <bruno@clisp.org>
49079
49080         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49081         implementation in glibc >= 2.9.
49082         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49084
49085 2008-05-15  Bruno Haible  <bruno@clisp.org>
49086
49087         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49088         (Unicode string functions): Add unilbrk/*.
49089         Reported by Karl Berry.
49090
49091 2008-05-15  Eric Blake  <ebb9@byu.net>
49092
49093         Fix violation of <stdbool.h> replacement in regex.
49094         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49095         * lib/regexec.c (re_search_internal): Likewise.
49096         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49097
49098 2008-05-15  Jim Meyering  <meyering@redhat.com>
49099
49100         avoid distracting test output when git or cvs is not found
49101         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49102         * tests/test-vc-list-files-git.sh: Likewise.
49103
49104 2008-05-15  Eric Blake  <ebb9@byu.net>
49105
49106         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49107         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49108         glibc version.
49109         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49110         * doc/posix-functions/strstr.texi (strstr): Likewise.
49111         * lib/str-two-way.h (MAX): Sychronize with glibc.
49112
49113 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49114
49115         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49116         opr.ctx_type.
49117         (calc_first): Initialize constraint field.
49118         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49119         Fix grammar.
49120         (duplicate_node): Merge constraint field for all node types.
49121         (calc_eclosure_iter): Look at constraint field for all node types.
49122         * lib/regex_internal.c (create_cd_newstate): Don't look at
49123         opr.ctx_type.
49124
49125 2008-05-14  Bruno Haible  <bruno@clisp.org>
49126
49127         Help GCC to do better code generation.
49128         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49129         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49130         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49131         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49132         Declare with attribute 'malloc' if supported.
49133
49134 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49135
49136         use "echo STR|wc -c" rather than unportable "expr length STR"
49137         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49138         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49139
49140 2008-05-14  Jim Meyering  <meyering@redhat.com>
49141
49142         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49143         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49144         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49145         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49146         via Collin Lasse.
49147
49148 2008-05-14  Eric Blake  <ebb9@byu.net>
49149
49150         Avoid quadratic growth in gl_LIBSOURCES.
49151         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49152         Suggested by Bruno Haible.
49153
49154         Test xmemdup0.
49155         * modules/xmemdup0-tests: New file.
49156         * tests/test-xmemdup0.c: Likewise.
49157
49158 2008-05-13  Eric Blake  <ebb9@byu.net>
49159
49160         Split xmemdup0 into its own module.
49161         * modules/xmemdup0: New file.
49162         * lib/xmemdup0.h: Likewise.
49163         * lib/xmemdup0.c: Likewise.
49164         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49165         * lib/xalloc.h (xmemdup0): Remove.
49166         * lib/xmalloc.c (xmemdup0): Likewise.
49167
49168 2008-05-13  Eric Blake  <ebb9@byu.net>
49169             Bruno Haible  <bruno@clisp.org>
49170
49171         Reduce number of forks required during autoconf.
49172         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49173         and gl_LIBSOURCES_DIR.
49174         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49175         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49176         m4_syscmd per file.
49177         <m4_foreach_w>: Move...
49178         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49179
49180 2008-05-13  Eric Blake  <ebb9@byu.net>
49181
49182         * gnulib-tool: Fix various comment typos.
49183
49184 2008-05-12  Bruno Haible  <bruno@clisp.org>
49185
49186         Tailor the linebreaking algorithm.
49187         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49188
49189 2008-05-12  Bruno Haible  <bruno@clisp.org>
49190
49191         Update to Unicode 5.0.0.
49192         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49193         LBP_JV, LBP_JT. Redistribute values.
49194         (unilbrk_table): Change size.
49195         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49196         Unicode TR#14 rev. 22.
49197         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49198         LBP_JV, LBP_JT. Redistribute values.
49199         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49200         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49201         Update.
49202         * lib/unilbrk/lbrkprop1.h: Regenerated.
49203         * lib/unilbrk/lbrkprop2.h: Regenerated.
49204         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49205         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49206         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49207         Likewise.
49208         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49209         Likewise.
49210         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49211         result.
49212         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49213         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49214         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49215         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49216         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49217         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49218
49219 2008-05-11  Bruno Haible  <bruno@clisp.org>
49220
49221         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49222
49223 2008-05-11  Bruno Haible  <bruno@clisp.org>
49224
49225         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49226         * modules/unilbrk/gen-lbrk: New file.
49227
49228 2008-05-11  Bruno Haible  <bruno@clisp.org>
49229
49230         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49231         * m4/sha512.m4 (gl_SHA512): Likewise.
49232
49233 2008-05-11  Jim Meyering  <meyering@redhat.com>
49234
49235         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49236         * modules/crypto/sha256: New file.
49237         * modules/crypto/sha512: Likewise.
49238         * lib/sha256.c: Likewise.
49239         * lib/sha256.h: Likewise.
49240         * lib/sha512.c: Likewise.
49241         * lib/sha512.h: Likewise.
49242         * lib/u64.h: Likewise.
49243         * m4/sha256.m4: Likewise.
49244         * m4/sha512.m4: Likewise.
49245         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49246
49247 2008-05-10  Bruno Haible  <bruno@clisp.org>
49248
49249         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49250         (Input/Output <stdio.h>): Add xprintf.
49251         (Signal handling <signal.h>): Add strsignal.
49252         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49253         (Core language properties): Add func.
49254         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49255         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49256         strings.
49257         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49258         (Input/output): New section.
49259         (File system functions): Add openat-die, stat-macros.
49260         (Networking functions): Add sockets.
49261         (Unicode string functions): Add unictype/*.
49262         (Support for building libraries and executables): Add gperf.
49263         (Support for building documentation): Add agpl-3.0.
49264         (Misc): Add nocrash.
49265
49266 2008-05-10  Bruno Haible  <bruno@clisp.org>
49267
49268         * modules/unictype/gen-ctype: New file.
49269
49270 2008-05-10  Jim Meyering  <meyering@redhat.com>
49271
49272         Make chdir-safer.c more efficient on a system with no symlinks.
49273         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49274         also if ELOOP is zero.  Suggested by Bruno Haible.
49275
49276         Make chdir-safer.c slightly safer.
49277         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49278         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49279
49280         Avoid compile failure on systems without ELOOP (like mingw).
49281         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49282         Reported by Bruno Haible.
49283
49284 2008-05-10  Bruno Haible  <bruno@clisp.org>
49285
49286         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49287         (is_utf8_encoding): Use a case-insensitive comparison.
49288         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49289         streq.
49290
49291 2008-05-10  Bruno Haible  <bruno@clisp.org>
49292
49293         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49294         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49295         * lib/unilbrk/ulc-common.h (iconv_string_length,
49296         iconv_string_keeping_offsets): Remove declarations.
49297         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49298         Don't include <iconv.h>, streq.h, xsize.h.
49299         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49300         conversion.
49301         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49302         <iconv.h>, streq.h, xsize.h.
49303         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49304         conversion.
49305         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49306         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49307         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49308         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49309
49310 2008-05-10  Bruno Haible  <bruno@clisp.org>
49311
49312         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49313         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49314
49315         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49316         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49317
49318         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49319         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49320
49321         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49322         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49323
49324         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49325         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49326
49327         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49328         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49329
49330         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49331         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49332
49333         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49334         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49335
49336 2008-05-10  Bruno Haible  <bruno@clisp.org>
49337
49338         Split up 'linebreak' module.
49339         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49340         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49341         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49342         modifications.
49343         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49344         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49345         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49346         lib/linebreak.c.
49347         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49348         lib/linebreak.c.
49349         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49350         lib/linebreak.c.
49351         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49352         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49353         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49354         lib/linebreak.c.
49355         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49356         lib/linebreak.c.
49357         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49358         lib/linebreak.c.
49359         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49360         lib/linebreak.c.
49361         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49362         lib/linebreak.c.
49363         * modules/unilbrk/base: New file.
49364         * modules/unilbrk/tables: New file.
49365         * modules/unilbrk/u8-possible-linebreaks: New file.
49366         * modules/unilbrk/u16-possible-linebreaks: New file.
49367         * modules/unilbrk/u32-possible-linebreaks: New file.
49368         * modules/unilbrk/ulc-common: New file.
49369         * modules/unilbrk/ulc-possible-linebreaks: New file.
49370         * modules/unilbrk/u8-width-linebreaks: New file.
49371         * modules/unilbrk/u16-width-linebreaks: New file.
49372         * modules/unilbrk/u32-width-linebreaks: New file.
49373         * modules/unilbrk/ulc-width-linebreaks: New file.
49374         * lib/linebreak.h: Remove file.
49375         * lib/linebreak.c: Remove file.
49376         * m4/linebreak.m4: Remove file.
49377         * modules/linebreak: Remove file.
49378         * NEWS: Mention the changes.
49379
49380 2008-05-09  Eric Blake  <ebb9@byu.net>
49381
49382         Add xmemdup0.
49383         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49384         implementation.
49385         * lib/xmalloc.c (xmemdup0): New C implementation.
49386
49387 2008-05-08  Bruno Haible  <bruno@clisp.org>
49388
49389         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49390
49391 2008-05-07  Eric Blake  <ebb9@byu.net>
49392
49393         Support cross-compilation of <wctype.h>.
49394         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49395         AC_CACHE_CHECK.
49396
49397 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49398
49399         * build-aux/vc-list-files: Add support for bzr.
49400
49401 2008-05-03  Jim Meyering  <meyering@redhat.com>
49402
49403         avoid failed assertion with tight malloc
49404         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49405
49406 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49407
49408         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49409         are needed from arpa/inet.h.
49410         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49411         Reported by Bruno Haible.
49412
49413 2008-05-02  Jim Meyering  <meyering@redhat.com>
49414
49415         avoid compilation error on FreeBSD 6
49416         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49417
49418 2008-05-01  Jim Meyering  <meyering@redhat.com>
49419
49420         useless-if-before-free: correct --help's exit status description
49421         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49422         for one or more matches, etc.  Reported by Bruno Haible.
49423
49424         vc-list-files: make the stand-alone gnulib test work
49425         * modules/vc-list-files-tests (configure.ac):
49426         Define and AC_SUBST abs_aux_dir.
49427         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49428         $(abs_top_srcdir) to each script and having each of them
49429         duplicate the work of setting PATH, set PATH here, using
49430         the new variable, abs_aux_dir instead.
49431         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49432         * tests/test-vc-list-files-git.sh: Likewise.
49433         Reported by Bruno Haible.
49434
49435 2008-05-01  Bruno Haible  <bruno@clisp.org>
49436
49437         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49438         reallocation. Rename 'done' to 'found_delimiter'.
49439
49440 2008-05-01  Jim Meyering  <meyering@redhat.com>
49441
49442         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49443         * build-aux/vc-list-files: Use `...`, not $(...).
49444
49445 2008-04-30  Jim Meyering  <meyering@redhat.com>
49446
49447         add tests for vc-list-files
49448         * modules/vc-list-files-tests: New module.
49449         * tests/test-vc-list-files-cvs.sh: New file.
49450         * tests/test-vc-list-files-git.sh: New file.
49451
49452         avoid a warning from gcc
49453         * lib/getndelim2.c (IF_LINT): Define.
49454         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49455
49456         vc-list-files: work properly with build-aux/cvsu, too
49457         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49458         to all cvs-based clauses.
49459
49460         vc-list-files: work properly in the CVS+awk case, too
49461         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49462
49463         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49464         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49465         take more than one file argument, so .  Add quotes, just in case $dir
49466         ever contains a shell meta-character.  Prompted by Soren Hansen in
49467         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49468
49469 2008-04-29  Eric Blake  <ebb9@byu.net>
49470
49471         Optimize getndelim2 to use block operations when possible.
49472         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49473         freadseek, and memchr2.
49474         * lib/getndelim2.c (getndelim2): Use them for block reads.
49475
49476 2008-04-29  Bruno Haible  <bruno@clisp.org>
49477
49478         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49479         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49480         * modules/inet_ntop (Depends-on): Add extensions.
49481         * modules/inet_pton (Depends-on): Likewise.
49482         Reported by Simon Josefsson.
49483
49484 2008-04-29  Jim Meyering  <meyering@redhat.com>
49485
49486         When the is more than one match in a block, match all of them.
49487         * build-aux/useless-if-before-free: Iterate through each block
49488         until there are no more matches.
49489
49490         Fix broken useless-if-before-free script.
49491         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49492         the expression to match cast of argument to free-like function.
49493
49494 2008-04-29  Eric Blake  <ebb9@byu.net>
49495
49496         Use new header.
49497         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49498
49499 2008-04-29  Jim Meyering  <meyering@redhat.com>
49500
49501         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49502         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49503         by gnulib to exist and to declare e.g., inet_ntop.
49504         Don't include "inet_ntop.h", now removed.
49505
49506         * m4/arpa_inet_h.m4: Remove trailing blanks.
49507
49508 2008-04-29  Eric Blake  <ebb9@byu.net>
49509
49510         Silence valgrind on safe reads beyond potential array bounds.
49511         * lib/rawmemchr.valgrind: New file.
49512         * lib/strchrnul.valgrind: Likewise.
49513         * modules/rawmemchr (Files): Distribute new file.
49514         * modules/strchrnul (Files): Likewise.
49515         Suggested by Bruno Haible.
49516
49517 2008-04-29  Bruno Haible  <bruno@clisp.org>
49518
49519         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49520         (inet_ntop, inet_pton): Change portability warning's wording.
49521         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49522         Invoke gl_CHECK_NEXT_HEADERS.
49523         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49524         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49525         set ARPA_INET_H.
49526         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49527         * modules/arpa_inet (Description): No longer only for systems that
49528         lack it.
49529         (Depends-on): Add include_next.
49530         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49531         HAVE_ARPA_INET_H.
49532
49533 2008-04-29  Jim Meyering  <meyering@redhat.com>
49534
49535         * modules/mkdir (License): Re-license as LGPLv2+.
49536
49537 2008-04-29  Bruno Haible  <bruno@clisp.org>
49538
49539         * modules/rawmemchr (Maintainer): Set to Eric.
49540         * modules/strchrnul (Maintainer): Likewise.
49541
49542 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49543
49544         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49545         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49546
49547         * modules/arpa_inet (arpa/inet.h): Use them.
49548
49549 2008-04-28  Eric Blake  <ebb9@byu.net>
49550
49551         Test getndelim2.
49552         * modules/getndelim2-tests: New file.
49553         * tests/test-getndelim2.c: Likewise.
49554         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49555         stream.
49556         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49557
49558         * MODULES.html.sh: Document new module.
49559
49560 2008-04-20  Bruno Haible  <bruno@clisp.org>
49561
49562         * lib/c-stack.c (die): Use raise.
49563         * modules/c-stack (Depends-on): Add raise.
49564
49565 2008-04-28  Bruno Haible  <bruno@clisp.org>
49566
49567         Expect rpmatch to be declared.
49568         * lib/yesno.c (rpmatch): Remove declaration.
49569
49570         Declare rpmatch.
49571         * lib/stdlib.in.h (rpmatch): New declaration.
49572         * lib/rpmatch.c: Include <stdlib.h> first.
49573         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49574         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49576         HAVE_RPMATCH.
49577         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49578         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49579         (Include): Set to <stdlib.h>.
49580         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49581         HAVE_RPMATCH.
49582         * NEWS: Document the change.
49583
49584 2008-04-28  Bruno Haible  <bruno@clisp.org>
49585
49586         Change rpmatch to use nl_langinfo when appropriate.
49587         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49588         (N_): New macro.
49589         (localized_pattern): New function/macro.
49590         (try): Remove match, nomatch arguments. Copy the pattern into safe
49591         memory before caching it.
49592         (rpmatch): Use localized_pattern. Add translator comments.
49593         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49594         Suggested by Eric Blake.
49595         * modules/rpmatch (Depends-on): Add stdbool.
49596
49597 2008-04-28  Eric Blake  <ebb9@byu.net>
49598
49599         Add rawmemchr module, matching glibc.
49600         * modules/string (Makefile.am): New indicator.
49601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49602         * lib/string.in.h (rawmemchr): Declare when appropriate.
49603         * modules/rawmemchr: New file.
49604         * m4/rawmemchr.m4: Likewise.
49605         * lib/rawmemchr.c: Likewise.
49606         * modules/rawmemchr-tests: Likewise.
49607         * tests/test-rawmemchr.c: Likewise.
49608         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49609         module.
49610         * modules/strchrnul (Depends-on): Add rawmemchr.
49611         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49612
49613         Whitespace cleanup.
49614         * tests/test-strchrnul.c: Reindent.
49615         * lib/strchrnul.c: Likewise.
49616
49617         Optimize and test strchrnul.
49618         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49619         * modules/strchrnul-tests: New file.
49620         * tests/test-strchrnul.c: Likewise.
49621
49622         Remove intprops dependency.
49623         * modules/memchr (Depends-on): Remove intprops.
49624         * modules/memrchr (Depends-on): Likewise.
49625         * modules/memchr2 (Depends-on): Likewise.
49626         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49627         * lib/memrchr.c (__memrchr): Likewise.
49628         * lib/memrchr2.c (memchr2): Likewise.
49629         Reported by Simon Josefsson.
49630
49631 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49632
49633         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49634         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49635
49636 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49637
49638         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49639
49640         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49641
49642         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49643
49644         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49645         declarations.
49646         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49647
49648         * m4/inet_pton.m4: Don't check for header files.
49649
49650         * m4/inet_ntop.m4: Don't check for header files.
49651
49652 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49653
49654         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49655         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49656         trigger for cygwin).
49657         Reported by Bruno Haible  <bruno@clisp.org>.
49658
49659 2008-04-28  Bruno Haible  <bruno@clisp.org>
49660
49661         * doc/posix-functions/strdup.texi: Mention mingw problem.
49662
49663 2008-04-27  Bruno Haible  <bruno@clisp.org>
49664
49665         * modules/stat-time-tests (Depends-on): Add sleep.
49666         * tests/test-stat-time.c (force_unlink): New function.
49667         (cleanup): Use it.
49668         (test_mtime): Remove the ctime related tests.
49669         (test_ctime): New function, containing the ctime related tests.
49670         (main): Call test_ctime, except on native Windows platforms.
49671
49672 2008-04-27  Bruno Haible  <bruno@clisp.org>
49673
49674         * lib/rpmatch.c (rpmatch): Add some comments.
49675         Reported by James Youngman <jay@gnu.org>.
49676
49677 2008-04-27  Bruno Haible  <bruno@clisp.org>
49678
49679         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49680         quiet NaNs.
49681
49682 2008-04-27  Bruno Haible  <bruno@clisp.org>
49683
49684         Make test-yesno.sh work on mingw.
49685         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49686         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49687         (main): Set stdin to binary mode.
49688         * modules/yesno-tests (Depends-on): Add binary-io.
49689
49690 2008-04-27  Bruno Haible  <bruno@clisp.org>
49691
49692         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49693         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49694         argument that lie outside the IEEE 854 domain.
49695         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49696         (gl_ISFINITE): Use it.
49697         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49698
49699 2008-04-27  Bruno Haible  <bruno@clisp.org>
49700
49701         Allow local renaming in config.h.
49702         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49703
49704 2008-04-27  Bruno Haible  <bruno@clisp.org>
49705
49706         * lib/memchr.c (__memchr): Change type of 'i'.
49707         * lib/memchr2.c (memchr2): Likewise.
49708
49709 2008-04-26  Eric Blake  <ebb9@byu.net>
49710         and Bruno Haible  <bruno@clisp.org>
49711
49712         Optimize and test memrchr.
49713         * modules/memrchr (Depends-on): Add intprops.
49714         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49715         * modules/memrchr-tests: New file.
49716         * tests/test-memrchr.c: New file.
49717
49718 2008-04-26  Bruno Haible  <bruno@clisp.org>
49719
49720         Add tentative support for DragonFly BSD.
49721         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49722         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49723         fp.
49724         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49725         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49726         * lib/fpurge.c (fpurge): Likewise.
49727         * lib/freadable.c (freaadable): Likewise.
49728         * lib/freadahead.c (freadahead): Likewise.
49729         * lib/freading.c (freading): Likewise.
49730         * lib/freadptr.c (freadptr): Likewise.
49731         * lib/freadseek.c (freadptrinc): Likewise.
49732         * lib/fseeko.c (fseeko): Likewise.
49733         * lib/fseterr.c (fseterr): Likewise.
49734         * lib/fwritable.c (fwritable): Likewise.
49735         * lib/fwriting.c (fwriting): Likewise.
49736
49737 2008-04-26  Bruno Haible  <bruno@clisp.org>
49738
49739         * lib/stdio-impl.h: New file.
49740         * lib/fbufmode.c: Include stdio-impl.h.
49741         (fbufmode): Use fp_, remove redundant #defines.
49742         * lib/fflush.c: Include stdio-impl.h.
49743         (clear_ungetc_buffer): Remove redundant #defines.
49744         * lib/fpurge.c: Include stdio-impl.h.
49745         (fpurge): Remove redundant #defines.
49746         * lib/freadable.c: Include stdio-impl.h.
49747         (freadable): Remove redundant #defines.
49748         * lib/freadahead.c: Include stdio-impl.h.
49749         (freadahead): Remove redundant #defines.
49750         * lib/freading.c: Include stdio-impl.h.
49751         (freading): Remove redundant #defines.
49752         * lib/freadptr.c: Include stdio-impl.h.
49753         (freadptr): Remove redundant #defines.
49754         * lib/freadseek.c: Include stdio-impl.h.
49755         (freadptrinc): Remove redundant #defines.
49756         * lib/fseeko.c: Include stdio-impl.h.
49757         (rpl_fseeko): Remove redundant #defines.
49758         * lib/fseterr.c: Include stdio-impl.h.
49759         (fseterr): Remove redundant #defines.
49760         * lib/fwritable.c: Include stdio-impl.h.
49761         (fwritable: Remove redundant #defines.
49762         * lib/fwriting.c: Include stdio-impl.h.
49763         (fwriting): Remove redundant #defines.
49764         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49765         * modules/fflush (Files): Likewise.
49766         * modules/fpurge (Files): Likewise.
49767         * modules/freadable (Files): Likewise.
49768         * modules/freadahead (Files): Likewise.
49769         * modules/freading (Files): Likewise.
49770         * modules/freadptr (Files): Likewise.
49771         * modules/freadseek (Files): Likewise.
49772         * modules/fseeko (Files): Likewise.
49773         * modules/fseterr (Files): Likewise.
49774         * modules/fwritable (Files): Likewise.
49775         * modules/fwriting (Files): Likewise.
49776
49777 2008-04-26  Bruno Haible  <bruno@clisp.org>
49778
49779         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49780         restore_seek_optimization, update_fpos_cache): New functions, extracted
49781         from rpl_fflush.
49782         (rpl_fflush): Use them.
49783         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49784         (gl_REPLACE_FFLUSH): Use it.
49785
49786 2008-04-26  Bruno Haible  <bruno@clisp.org>
49787
49788         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49789         on Solaris.
49790         * tests/test-xstrtoimax.sh: Likewise.
49791         * tests/test-xstrtoumax.sh: Likewise.
49792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49793
49794 2008-04-26  Bruno Haible  <bruno@clisp.org>
49795
49796         * modules/memchr-tests: New file.
49797         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49798
49799 2008-04-26  Eric Blake  <ebb9@byu.net>
49800             Bruno Haible  <bruno@clisp.org>
49801
49802         * lib/memchr.c: Include intprops.h.
49803         (__memchr): Optimize parallel detection of matching bytes. Rename local
49804         variables. Add explanatory comments.
49805
49806 2008-04-26  Bruno Haible  <bruno@clisp.org>
49807
49808         Fix module 'memchr', broken since 2000-10-28.
49809         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49810
49811 2008-04-26  Bruno Haible  <bruno@clisp.org>
49812
49813         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49814         comments.
49815
49816 2008-04-25  Eric Blake  <ebb9@byu.net>
49817
49818         Use native fstatat on cygwin 1.7.0.
49819         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49820         first.
49821
49822 2008-04-23  Eric Blake  <ebb9@byu.net>
49823
49824         Improve memchr2 performance.
49825         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49826         NUL bytes.
49827         * modules/memchr2 (Depends-on): Use intprops.h.
49828
49829 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49830
49831         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49832         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49833         <blp@cs.stanford.edu>.
49834
49835 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49836
49837         * lib/arpa_inet.in.h: New file.
49838
49839         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49840         (Makefile.am): Sed in substitute header file.
49841
49842         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49843         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49844
49845         * modules/inet_ntop (configure.ac): Use
49846         gl_ARPA_INET_MODULE_INDICATOR.
49847
49848         * modules/inet_pton (configure.ac): Use
49849         gl_ARPA_INET_MODULE_INDICATOR.
49850
49851 2008-04-22  Jim Meyering  <meyering@redhat.com>
49852
49853         * modules/verify (License): Re-license as LGPLv2+.
49854
49855 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49856
49857         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49858         parameter to void* as per POSIX standard (MinGW uses char*).
49859
49860 2008-04-21  Bruno Haible  <bruno@clisp.org>
49861
49862         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49863         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49864         Define to replacements if REPLACE_ISWCNTRL is 1.
49865         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49866         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49867         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49868         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49869         what it fixes.
49870         * doc/posix-functions/iswalpha.texi: Likewise.
49871         * doc/posix-functions/iswblank.texi: Likewise.
49872         * doc/posix-functions/iswcntrl.texi: Likewise.
49873         * doc/posix-functions/iswdigit.texi: Likewise.
49874         * doc/posix-functions/iswgraph.texi: Likewise.
49875         * doc/posix-functions/iswlower.texi: Likewise.
49876         * doc/posix-functions/iswprint.texi: Likewise.
49877         * doc/posix-functions/iswpunct.texi: Likewise.
49878         * doc/posix-functions/iswspace.texi: Likewise.
49879         * doc/posix-functions/iswupper.texi: Likewise.
49880         * doc/posix-functions/iswxdigit.texi: Likewise.
49881         Reported by Alain Guibert.
49882
49883 2008-04-21  Bruno Haible  <bruno@clisp.org>
49884
49885         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49886         Patch by Alain Guibert.
49887
49888 2008-04-21  Bruno Haible  <bruno@clisp.org>
49889
49890         Fix test failures on mingw.
49891         * tests/test-xstrtol.c (print_no_progname): New function.
49892         (main): Install it in error_print_progname hook.
49893         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49894         * tests/test-xstrtoimax.sh: Likewise.
49895         * tests/test-xstrtoumax.sh: Likewise.
49896
49897 2008-04-21  Bruno Haible  <bruno@clisp.org>
49898
49899         Fix test failure on mingw.
49900         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49901
49902 2008-04-21  Bruno Haible  <bruno@clisp.org>
49903
49904         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49905         Actually assign a value.
49906
49907 2008-04-20  Bruno Haible  <bruno@clisp.org>
49908
49909         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49910         take 2.
49911         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49912         'canonicalize-lgpl' module is also used.
49913         * lib/canonicalize-lgpl.c: Undo last change.
49914         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49915
49916 2008-04-20  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49919         config.h. Provide _mkdir based fallback for mingw.
49920         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49921         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49922         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49923         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49924         rather than defining mkdir in config.h.
49925         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49926         (gl_SYS_STAT_H_DEFAULTS): New macro.
49927         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49928         HAVE_IO_H any more.
49929         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49930         HAVE_DECL_MKDIR and HAVE_IO_H.
49931
49932 2008-04-20  Bruno Haible  <bruno@clisp.org>
49933
49934         * lib/isapipe.c: Port to native Windows platforms.
49935
49936 2008-04-20  Bruno Haible  <bruno@clisp.org>
49937
49938         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49939
49940 2008-04-21  Eric Blake  <ebb9@byu.net>
49941
49942         Work around preprocessors that don't handle UINTMAX_MAX.
49943         * lib/memchr2.c (memchr2): Avoid embedded #if.
49944         Reported by Alain Guibert, fix suggested by Bruno Haible.
49945
49946 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49947
49948         * doc/posix-functions/strftime.texi (strftime): Explain better
49949         Windows incompatibility.  Suggested by Micah Cowan
49950         <micah@cowan.name>.
49951
49952 2008-04-20  Bruno Haible  <bruno@clisp.org>
49953
49954         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49955         unistr/u8-mblen.
49956
49957 2008-04-20  Bruno Haible  <bruno@clisp.org>
49958
49959         Fix test failure on platforms with non-GNU iconv.
49960         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49961         (U_TO_U8): Use it, rather than u16_to_u8.
49962         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49963         units at the end of the input string.
49964         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49965
49966 2008-04-20  Bruno Haible  <bruno@clisp.org>
49967
49968         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49969         when the resulting length is 0.
49970         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49971
49972 2008-04-20  Bruno Haible  <bruno@clisp.org>
49973
49974         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49975         works.
49976         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49977
49978 2008-04-20  Bruno Haible  <bruno@clisp.org>
49979
49980         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49981         * modules/tsearch-tests (configure.ac): Test for initstate function.
49982
49983 2008-04-20  Bruno Haible  <bruno@clisp.org>
49984
49985         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49986         for nlink_t if missing.
49987         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49988
49989 2008-04-19  Bruno Haible  <bruno@clisp.org>
49990
49991         Work around snprintf bug on Linux libc5.
49992         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49994         gl_SNPRINTF_SIZE1.
49995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49996         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49997         that test failed.
49998         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49999         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50000         * modules/snprintf (Files): Add m4/printf.m4.
50001         * modules/vsnprintf (Files): Likewise.
50002         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50003         * doc/posix-functions/vsnprintf.texi: Likewise.
50004
50005 2008-04-19  Bruno Haible  <bruno@clisp.org>
50006
50007         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50008         from 0.0058 to less than 10^-7.
50009
50010 2008-04-19  Bruno Haible  <bruno@clisp.org>
50011
50012         Fix rounding when a precision is given.
50013         * lib/vasnprintf.c (is_borderline): New function.
50014         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50015         9...9x.
50016         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50017         %e, %g.
50018         * tests/test-vasprintf-posix.c (test_function): Likewise.
50019         * tests/test-snprintf-posix.h (test_function): Likewise.
50020         * tests/test-sprintf-posix.h (test_function): Likewise.
50021         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50022         * tests/test-printf-posix.h (test_function): Likewise.
50023         * tests/test-printf-posix.output: Update.
50024         Reported by John Darrington <john@darrington.wattle.id.au> via
50025         Ben Pfaff <blp@cs.stanford.edu>.
50026
50027 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50028
50029         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50030         Suggested by Bruno Haible <bruno@clisp.org>.
50031
50032 2008-04-17  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50035         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50036         implementation.
50037         Patch by Bruce Merry <bmerry@gmail.com>.
50038
50039 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50040
50041         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50042         doesn't work under Windows.
50043
50044 2008-04-16  Bruno Haible  <bruno@clisp.org>
50045
50046         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50047         New macros.
50048         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50049         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50050         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50051         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50052         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50053         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50054         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50055         macros.
50056         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50057         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50058         Northern Sotho, Uighur.
50059
50060 2008-04-16  Bruno Haible  <bruno@clisp.org>
50061
50062         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50063         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50064         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50065         Reported by Daniel Bergström <daniel@octocode.com>.
50066
50067 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50068             Bruno Haible  <bruno@clisp.org>
50069
50070         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50071         function.
50072         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50073         New functions, mostly extracted from gl_locale_name_default.
50074         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50075
50076 2008-04-16  Eric Blake  <ebb9@byu.net>
50077
50078         Adjust strtod detection to catch glibc 2.7 bug.
50079         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50080         Reported by John Gatewood Ham.
50081
50082 2008-04-16  Bruno Haible  <bruno@clisp.org>
50083
50084         Add tentative support for Linux libc5.
50085         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50086         * lib/fpurge.c (fpurge): Likewise.
50087         * lib/freadable.c (freadable): Likewise.
50088         * lib/freadahead.c (freadahead): Likewise.
50089         * lib/freading.c (freading): Likewise.
50090         * lib/freadptr.c (freadptr): Likewise.
50091         * lib/freadseek.c (freadptrinc): Likewise.
50092         * lib/fseeko.c (rpl_fseeko): Likewise.
50093         * lib/fseterr.c (fseterr): Likewise.
50094         * lib/fwritable.c (fwritable): Likewise.
50095         * lib/fwriting.c (fwriting): Likewise.
50096         Reported by Alain Guibert <alguibert+bts@free.fr>.
50097
50098 2008-04-15  Bruno Haible  <bruno@clisp.org>
50099
50100         * modules/mathl (configure.ac): Define module indicator.
50101
50102 2008-04-15  Bruno Haible  <bruno@clisp.org>
50103
50104         * lib/logl.c (logl): Remove unused variables.
50105
50106 2008-04-15  Bruno Haible  <bruno@clisp.org>
50107
50108         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50109         fails.
50110
50111 2008-04-15  Bruno Haible  <bruno@clisp.org>
50112
50113         * lib/trim.c (trim2): Fix argument of isspace() macro.
50114
50115 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50116
50117         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50118         to 0.
50119         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50120
50121 2008-04-14  Bruno Haible  <bruno@clisp.org>
50122
50123         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50124         AC_LANG_PROGRAM argument.
50125         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50126         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50128         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50129         * m4/math_h.m4 (gl_MATH_H): Likewise.
50130         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50132         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50133         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50134         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50135         * m4/regex.m4 (gl_REGEX): Likewise.
50136         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50137         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50138         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50139         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50140         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50141         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50144
50145 2008-04-14  Jim Meyering  <meyering@redhat.com>
50146
50147         test-strtod: fix typos: s/abs/fabs/
50148         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50149
50150 2008-04-13  Bruno Haible  <bruno@clisp.org>
50151
50152         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50153         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50154         module is also used and while not building the reloc-wrapper.
50155
50156 2008-04-13  Bruno Haible  <bruno@clisp.org>
50157
50158         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50159
50160 2008-04-13  Bruno Haible  <bruno@clisp.org>
50161
50162         Fix AIX compilation failure introduced on 2008-04-02.
50163         * tests/test-frexp.c (exp): Undefine before redefining.
50164         * tests/test-frexpl.c (exp): Likewise.
50165
50166 2008-04-13  Bruno Haible  <bruno@clisp.org>
50167
50168         Work around a HP-UX stdio bug.
50169         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50170         * tests/test-ftello.c (main): Likewise.
50171         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50172         * doc/posix-functions/ftello.texi: Likewise.
50173
50174 2008-04-13  Bruno Haible  <bruno@clisp.org>
50175
50176         Make test-signbit pass on HP-UX/hppa.
50177         * tests/test-signbit.c (minus_zerol): New variable.
50178         (test_signbitl): Use it.
50179
50180 2008-04-13  Bruno Haible  <bruno@clisp.org>
50181
50182         Make truncl work on OSF/1 4.0.
50183         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50184         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50185         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50187         HAVE_DECL_TRUNCL.
50188         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50189         HAVE_DECL_TRUNCL.
50190         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50191
50192 2008-04-13  Bruno Haible  <bruno@clisp.org>
50193
50194         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50195
50196 2008-04-13  Bruno Haible  <bruno@clisp.org>
50197
50198         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50199         expression, so as to avoid HP-UX 11 cc compiler bug.
50200
50201 2008-04-13  Bruno Haible  <bruno@clisp.org>
50202
50203         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50204
50205 2008-04-13  Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/git-merge-changelog.c: Remove empty declaration outside of
50208         functions.
50209
50210 2008-04-13  Bruno Haible  <bruno@clisp.org>
50211
50212         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50213
50214 2008-04-13  Bruno Haible  <bruno@clisp.org>
50215
50216         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50217         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50218         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50219         also if it exists but lacks definitions of the SHUT_* macros.
50220         * modules/sys_socket (Description): Update.
50221         Reported by Elbert Pol <e.pol@chello.nl>.
50222
50223 2008-04-13  Bruno Haible  <bruno@clisp.org>
50224
50225         * lib/localcharset.c (OS2): Don't redefine if already defined.
50226         Reported by Elbert Pol <e.pol@chello.nl>.
50227
50228 2008-04-13  Bruno Haible  <bruno@clisp.org>
50229
50230         * lib/binary-io.h [__EMX__]: Include <io.h>.
50231         Reported by Elbert Pol <e.pol@chello.nl>.
50232
50233 2008-04-12  Bruno Haible  <bruno@clisp.org>
50234
50235         * lib/fpucw.h: Enable the definitions also for x86_64.
50236         Needed for NetBSD/x86_64.
50237         Reported by Thomas Klausner <tk@giga.or.at>.
50238
50239 2008-04-12  Bruno Haible  <bruno@clisp.org>
50240
50241         * tests/test-strtod.c: Include isnand.h.
50242         (main): Use isnand instead of isnan.
50243         Reported by Jim Meyering.
50244
50245 2008-04-12  Bruno Haible  <bruno@clisp.org>
50246
50247         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50248         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50249
50250 2008-04-12  Jim Meyering  <meyering@redhat.com>
50251
50252         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50253
50254 2008-04-12  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50257         Reported by Elbert Pol <e.pol@chello.nl>.
50258
50259 2008-04-12  Eric Blake  <ebb9@byu.net>
50260
50261         Work around Solaris 10 math.h bug.
50262         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50263         (gl_MATH_H_DEFAULTS): Set up default.
50264         * modules/math (Makefile.am): Replace new indicators.
50265         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50266         * tests/test-math.c (main): Test this.
50267         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50268         * doc/posix-headers/math.texi (math.h): Mention bug.
50269         Reported by Nelson H. F. Beebe and Jim Meyering.
50270
50271 2008-04-11  Bruno Haible  <bruno@clisp.org>
50272
50273         Adapt to future versions of Apple GCC.
50274         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50275         Reported by Peter O'Gorman <peter@pogma.com>.
50276
50277 2008-04-11  Bruno Haible  <bruno@clisp.org>
50278
50279         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50280
50281 2008-04-11  Bruno Haible  <bruno@clisp.org>
50282
50283         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50284
50285         * modules/getaddrinfo-tests (Makefile.am): Define
50286         test_getaddrinfo_LDADD.
50287
50288 2008-04-11  Bruno Haible  <bruno@clisp.org>
50289
50290         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50291         (init): Fix syntax error.
50292         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50293         is declared.
50294
50295 2008-04-11  Bruno Haible  <bruno@clisp.org>
50296
50297         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50298         * modules/glob (Depends-on): Add stdbool.
50299
50300 2008-04-11  Bruno Haible  <bruno@clisp.org>
50301
50302         * lib/trim.c: Include <string.h>.
50303
50304 2008-04-11  Eric Blake  <ebb9@byu.net>
50305
50306         Avoid compile failure on OS/2.
50307         * lib/regex_internal.h (internal_function): Disable optimization
50308         on OS/2 (__EMX__), where it caused compiler error.
50309         Reported by Elbert Pol.
50310
50311 2008-04-11  Bruno Haible  <bruno@clisp.org>
50312
50313         Flush the standard error stream before aborting. Needed on mingw.
50314         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50315         * tests/test-array_list.c (ASSERT): Likewise.
50316         * tests/test-array_oset.c (ASSERT): Likewise.
50317         * tests/test-avltree_list.c (ASSERT): Likewise.
50318         * tests/test-avltree_oset.c (ASSERT): Likewise.
50319         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50320         * tests/test-binary-io.c (ASSERT): Likewise.
50321         * tests/test-byteswap.c (ASSERT): Likewise.
50322         * tests/test-c-ctype.c (ASSERT): Likewise.
50323         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50324         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50325         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50326         * tests/test-c-strstr.c (ASSERT): Likewise.
50327         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50328         * tests/test-canonicalize.c (ASSERT): Likewise.
50329         * tests/test-carray_list.c (ASSERT): Likewise.
50330         * tests/test-ceilf1.c (ASSERT): Likewise.
50331         * tests/test-ceilf2.c (ASSERT): Likewise.
50332         * tests/test-ceill.c (ASSERT): Likewise.
50333         * tests/test-count-one-bits.c (ASSERT): Likewise.
50334         * tests/test-fbufmode.c (ASSERT): Likewise.
50335         * tests/test-fflush2.c (ASSERT): Likewise.
50336         * tests/test-floorf1.c (ASSERT): Likewise.
50337         * tests/test-floorf2.c (ASSERT): Likewise.
50338         * tests/test-floorl.c (ASSERT): Likewise.
50339         * tests/test-fopen.c (ASSERT): Likewise.
50340         * tests/test-fpending.c (ASSERT): Likewise.
50341         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50342         * tests/test-fpurge.c (ASSERT): Likewise.
50343         * tests/test-freadable.c (ASSERT): Likewise.
50344         * tests/test-freadahead.c (ASSERT): Likewise.
50345         * tests/test-freading.c (ASSERT): Likewise.
50346         * tests/test-freadptr.c (ASSERT): Likewise.
50347         * tests/test-freadptr2.c (ASSERT): Likewise.
50348         * tests/test-freadseek.c (ASSERT): Likewise.
50349         * tests/test-freopen.c (ASSERT): Likewise.
50350         * tests/test-frexp.c (ASSERT): Likewise.
50351         * tests/test-frexpl.c (ASSERT): Likewise.
50352         * tests/test-fseek.c (ASSERT): Likewise.
50353         * tests/test-fseeko.c (ASSERT): Likewise.
50354         * tests/test-fstrcmp.c (ASSERT): Likewise.
50355         * tests/test-ftell.c (ASSERT): Likewise.
50356         * tests/test-ftello.c (ASSERT): Likewise.
50357         * tests/test-func.c (ASSERT): Likewise.
50358         * tests/test-fwritable.c (ASSERT): Likewise.
50359         * tests/test-fwriting.c (ASSERT): Likewise.
50360         * tests/test-getdelim.c (ASSERT): Likewise.
50361         * tests/test-getline.c (ASSERT): Likewise.
50362         * tests/test-i-ring.c (ASSERT): Likewise.
50363         * tests/test-iconv-utf.c (ASSERT): Likewise.
50364         * tests/test-iconv.c (ASSERT): Likewise.
50365         * tests/test-isfinite.c (ASSERT): Likewise.
50366         * tests/test-isnand.c (ASSERT): Likewise.
50367         * tests/test-isnanf.c (ASSERT): Likewise.
50368         * tests/test-isnanl.h (ASSERT): Likewise.
50369         * tests/test-ldexpl.c (ASSERT): Likewise.
50370         * tests/test-linked_list.c (ASSERT): Likewise.
50371         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50372         * tests/test-localename.c (ASSERT): Likewise.
50373         * tests/test-lseek.c (ASSERT): Likewise.
50374         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50375         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50376         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50377         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50378         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50379         * tests/test-mbschr.c (ASSERT): Likewise.
50380         * tests/test-mbscspn.c (ASSERT): Likewise.
50381         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50382         * tests/test-mbspbrk.c (ASSERT): Likewise.
50383         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50384         * tests/test-mbsrchr.c (ASSERT): Likewise.
50385         * tests/test-mbsspn.c (ASSERT): Likewise.
50386         * tests/test-mbsstr1.c (ASSERT): Likewise.
50387         * tests/test-mbsstr2.c (ASSERT): Likewise.
50388         * tests/test-mbsstr3.c (ASSERT): Likewise.
50389         * tests/test-memchr2.c (ASSERT): Likewise.
50390         * tests/test-memmem.c (ASSERT): Likewise.
50391         * tests/test-open.c (ASSERT): Likewise.
50392         * tests/test-printf-frexp.c (ASSERT): Likewise.
50393         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50394         * tests/test-printf-posix.c (ASSERT): Likewise.
50395         * tests/test-quotearg.c (ASSERT): Likewise.
50396         * tests/test-rbtree_list.c (ASSERT): Likewise.
50397         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50398         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50399         * tests/test-round1.c (ASSERT): Likewise.
50400         * tests/test-roundf1.c (ASSERT): Likewise.
50401         * tests/test-roundl.c (ASSERT): Likewise.
50402         * tests/test-signbit.c (ASSERT): Likewise.
50403         * tests/test-sleep.c (ASSERT): Likewise.
50404         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50405         * tests/test-snprintf.c (ASSERT): Likewise.
50406         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50407         * tests/test-stat-time.c (ASSERT): Likewise.
50408         * tests/test-strcasestr.c (ASSERT): Likewise.
50409         * tests/test-strerror.c (ASSERT): Likewise.
50410         * tests/test-striconv.c (ASSERT): Likewise.
50411         * tests/test-striconveh.c (ASSERT): Likewise.
50412         * tests/test-striconveha.c (ASSERT): Likewise.
50413         * tests/test-strsignal.c (ASSERT): Likewise.
50414         * tests/test-strstr.c (ASSERT): Likewise.
50415         * tests/test-strtod.c (ASSERT): Likewise.
50416         * tests/test-trunc1.c (ASSERT): Likewise.
50417         * tests/test-trunc2.c (ASSERT): Likewise.
50418         * tests/test-truncf1.c (ASSERT): Likewise.
50419         * tests/test-truncf2.c (ASSERT): Likewise.
50420         * tests/test-truncl.c (ASSERT): Likewise.
50421         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50422         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50423         * tests/test-vasnprintf.c (ASSERT): Likewise.
50424         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50425         * tests/test-vasprintf.c (ASSERT): Likewise.
50426         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50427         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50428         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50429         * tests/test-vsnprintf.c (ASSERT): Likewise.
50430         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50431         * tests/test-wcwidth.c (ASSERT): Likewise.
50432         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50433         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50434         * tests/test-xvasprintf.c (ASSERT): Likewise.
50435         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50436         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50437         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50438         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50439         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50440         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50441         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50442         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50443         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50444         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50445         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50446         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50447         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50448         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50449         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50450         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50451         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50452         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50453         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50454         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50455         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50456         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50457         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50458         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50459         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50460         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50461         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50462         * tests/unictype/test-combining.c (ASSERT): Likewise.
50463         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50464         * tests/unictype/test-digit.c (ASSERT): Likewise.
50465         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50466         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50467         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50468         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50469         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50470         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50471         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50472         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50473         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50474         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50475         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50476         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50477         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50478         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50479         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50480         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50481         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50482         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50483         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50484         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50485         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50486         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50487         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50488         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50489         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50490         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50491         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50492         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50493         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50494         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50495         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50496         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50497         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50498         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50499         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50500         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50501         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50502         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50503         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50504         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50505         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50506         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50507         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50508         Reported by Eric Blake.
50509
50510 2008-04-11  Bruno Haible  <bruno@clisp.org>
50511
50512         * lib/wchar.in.h: Tweak comment.
50513
50514 2008-04-11  Bruno Haible  <bruno@clisp.org>
50515
50516         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50517         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50518         gl_COMMON.
50519         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50520
50521 2008-04-11  Bruno Haible  <bruno@clisp.org>
50522
50523         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50524
50525 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50526
50527         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50528         of attempting to use non-existing /dev/*random.  Based on patch
50529         from Adam Strzelecki <ono@java.pl> in
50530         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50531
50532 2008-04-08  Bruno Haible  <bruno@clisp.org>
50533
50534         Add tentative support for emx+gcc.
50535         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50536         * lib/fpurge.c (fpurge): Likewise.
50537         * lib/freadable.c (freadable): Likewise.
50538         * lib/freadahead.c (freadahead): Likewise.
50539         * lib/freading.c (freading): Likewise.
50540         * lib/freadptr.c (freadptr): Likewise.
50541         * lib/freadseek.c (freadptrinc): Likewise.
50542         * lib/fseeko.c (rpl_fseeko): Likewise.
50543         * lib/fseterr.c (fseterr): Likewise.
50544         * lib/fwritable.c (fwritable): Likewise.
50545         * lib/fwriting.c (fwriting): Likewise.
50546         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50547
50548 2008-04-09  Eric Blake  <ebb9@byu.net>
50549
50550         Avoid some autoconf warnings.
50551         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50552         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50553         * m4/afs.m4 (gl_AFS): Likewise.
50554         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50555         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50556         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50557         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50558         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50559         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50560         (AC_CHECK_DECLS_ONCE): Likewise.
50561         Rename file...
50562         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50563         gnulib-tool requires autoconf 2.59 or better.
50564         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50565
50566 2008-04-08  Eric Blake  <ebb9@byu.net>
50567
50568         Use 'git describe --match' if present (added in git 1.5.5).
50569         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50570         if possible.
50571
50572 2008-04-08  Bruno Haible  <bruno@clisp.org>
50573
50574         Add tentative support for OpenServer.
50575         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50576         _ptr, _cnt.
50577         * lib/fpurge.c (fpurge): Likewise.
50578         * lib/freadable.c (freadable): Likewise.
50579         * lib/freadahead.c (freadahead): Likewise.
50580         * lib/freading.c (freading): Likewise.
50581         * lib/freadptr.c (freadptr): Likewise.
50582         * lib/freadseek.c (freadptrinc): Likewise.
50583         * lib/fseeko.c (rpl_fseeko): Likewise.
50584         * lib/fseterr.c (fseterr): Likewise.
50585         * lib/fwritable.c (fwritable): Likewise.
50586         * lib/fwriting.c (fwriting): Likewise.
50587         Reported by Roger Cornelius <rac@tenzing.org> and
50588         Brian K. White <brian@aljex.com>.
50589
50590 2008-04-06  Jim Meyering  <meyering@redhat.com>
50591
50592         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50593
50594 2008-04-06  Bruno Haible  <bruno@clisp.org>
50595
50596         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50597         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50598         * tests/test-printf-posix.sh: Likewise.
50599         * tests/test-vfprintf-posix.sh: Likewise.
50600         * tests/test-vprintf-posix.sh: Likewise.
50601         * tests/test-xprintf-posix.sh: Likewise.
50602
50603 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50604
50605         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50606         hide error from 'ls', needed on OS/2.
50607         Report by Elbert Pol <elbert.pol@gmail.com>.
50608
50609 2008-04-04  Eric Blake  <ebb9@byu.net>
50610
50611         Make test-fseeko.c failures meaningful.
50612         * tests/test-fseeko.c: Print line number on failure.
50613         * tests/test-fseek.c: Likewise.
50614         Reported by Nelson H. F. Beebe.
50615
50616         Improve strtod bug detection check.
50617         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50618         required for Solaris 10.
50619         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50620
50621 2008-04-04  Bruno Haible  <bruno@clisp.org>
50622
50623         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50624         by m4/setenv.m4.
50625
50626 2008-04-03  Eric Blake  <ebb9@byu.net>
50627
50628         Ensure sane .version contents.
50629         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50630         version string.
50631         * build-aux/git-version-gen: Improve documentation.
50632
50633         Make GNU make output nicer.
50634         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50635         MAKECMDGOALS to enforce message for all command line targets.  Set
50636         srcdir for use in maint.mk.
50637
50638         Another maintainer tweak.
50639         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50640         a target that regenerates version.
50641
50642 2008-04-03  Jim Meyering  <meyering@redhat.com>
50643
50644         vc-list-files: don't cause coreutils "make po-check" failure
50645         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50646
50647 2008-04-03  Eric Blake  <ebb9@byu.net>
50648
50649         Allow VPATH usage of vc-list-files.
50650         * build-aux/vc-list-files (scriptversion): Add timestamp.
50651         (options): Add --help, --version, -C.
50652         (CVS): Support installed cvsu.
50653
50654 2008-04-02  Bruno Haible  <bruno@clisp.org>
50655
50656         Avoid some "statement with no effect" warnings from gcc.
50657         * tests/test-wctype.c (main): Explicitly ignore unused values.
50658         Reported by Jim Meyering.
50659
50660 2008-04-02  Jim Meyering  <meyering@redhat.com>
50661
50662         Avoid some warnings from "gcc -Wshadow".
50663         * tests/test-frexp.c (exp): Define to a different identifier.
50664         * tests/test-frexpl.c (exp): Likewise.
50665
50666 2008-04-03  Jim Meyering  <meyering@redhat.com>
50667
50668         bootstrap: remove dangling *.[ch] symlinks from lib
50669         * build-aux/bootstrap [dangling symlink removal]: Move find's
50670         -depth option to precede all others, to avoid a warning.
50671         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50672
50673 2008-04-02  Bruno Haible  <bruno@clisp.org>
50674
50675         Avoid some warnings from "gcc -Wshadow".
50676         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50677         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50678         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50679         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50680         Reported by Jim Meyering.
50681
50682 2008-04-01  Bruno Haible  <bruno@clisp.org>
50683
50684         Fix test to work on IRIX 6.5 with cc.
50685         * tests/test-math.c (numeric_equal): New function.
50686         (main): Use it.
50687
50688 2008-04-01  Bruno Haible  <bruno@clisp.org>
50689
50690         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50691
50692 2008-04-01  Bruno Haible  <bruno@clisp.org>
50693
50694         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50695         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50696         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50697         (Depends-on): Remove math.
50698
50699         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50700         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50701         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50702         (Depends-on): Remove math.
50703
50704         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50705         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50706         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50707         (Depends-on): Remove math.
50708         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50709         (Depends-on): Remove math.
50710
50711         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50712         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50713         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50714         (Depends-on): Remove math.
50715         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50716         (Depends-on): Remove math.
50717
50718         * tests/test-round1.c: Include nan.h.
50719         (main): Use NaNd instead of NAN.
50720         * modules/round-tests (Files): Add tests/nan.h.
50721
50722         * tests/test-trunc1.c: Include nan.h.
50723         (main): Use NaNd instead of NAN.
50724         * modules/trunc-tests (Files): Add tests/nan.h.
50725
50726         * tests/test-roundf1.c: Include nan.h.
50727         (main): Use NaNf instead of NAN.
50728         * modules/roundf-tests (Files): Add tests/nan.h.
50729
50730         * tests/test-truncf1.c: Include nan.h.
50731         (main): Use NaNf instead of NAN.
50732         * modules/truncf-tests (Files): Add tests/nan.h.
50733
50734         * tests/test-ceilf1.c: Include nan.h.
50735         (main): Use NaNf instead of NAN.
50736         * modules/ceilf-tests (Files): Add tests/nan.h.
50737
50738         * tests/test-floorf1.c: Include nan.h.
50739         (main): Use NaNf instead of NAN.
50740         * modules/floorf-tests (Files): Add tests/nan.h.
50741
50742         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50743         (main): Use NaNf instead of NAN.
50744         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50745
50746         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50747         (main): Use NaNd instead of NAN.
50748         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50749
50750         * tests/test-frexp.c: Include nan.h.
50751         (main): Use NaNd instead of NAN.
50752         * modules/frexp-tests (Files): Add tests/nan.h.
50753
50754         * lib/isnan.c: Don't include <math.h>.
50755         (FUNC): Don't use NAN macro.
50756         * modules/isnand-nolibm (Depends-on): Remove math.
50757         * modules/isnanf-nolibm (Depends-on): Remove math.
50758         * modules/isnanl (Depends-on): Remove math.
50759         * modules/isnanl-nolibm (Depends-on): Remove math.
50760
50761         * tests/nan.h: New file.
50762
50763 2008-04-01  Eric Blake  <ebb9@byu.net>
50764
50765         Fix typos.
50766         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50767         values to be the right type.
50768
50769         For now, cater to gnulib strtod inaccuracies.
50770         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50771         fractional results.  While not as nice from a QoI perspective, it
50772         is a quicker patch than correctly implementing decimal to binary
50773         rounding.
50774
50775 2008-03-31  Eric Blake  <ebb9@byu.net>
50776
50777         Guarantee a definition of NAN.
50778         * lib/math.in.h (NAN): Define if missing.
50779         * tests/test-math.c (main): Test it.
50780         * doc/posix-headers/math.texi (math.h): Document this.
50781         * lib/isnan.c (rpl_isnand): Use it.
50782         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50783         * tests/test-floorf1.c (NaN): Likewise.
50784         * tests/test-frexp.c (NaN): Likewise.
50785         * tests/test-isnand.c (NaN): Likewise.
50786         * tests/test-isnanf.c (NaN): Likewise.
50787         * tests/test-round1.c (NaN): Likewise.
50788         * tests/test-roundf1.c (NaN): Likewise.
50789         * tests/test-snprintf-posix.h (NaN): Likewise.
50790         * tests/test-sprintf-posix.h (NaN): Likewise.
50791         * tests/test-trunc1.c (NaN): Likewise.
50792         * tests/test-truncf1.c (NaN): Likewise.
50793         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50794         * tests/test-vasprintf-posix.c (NaN): Likewise.
50795         * modules/isnand-nolibm (Depends-on): Add math.
50796         * modules/isnanf-nolibm (Depends-on): Likewise.
50797         * modules/isnanl (Depends-on): Likewise.
50798         * modules/isnanl-nolibm (Depends-on): Likewise.
50799         * modules/snprintf-posix-tests (Depends-on): Likewise.
50800         * modules/sprintf-posix-tests (Depends-on): Likewise.
50801         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50802         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50803         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50804         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50805
50806 2008-03-31  Bruno Haible  <bruno@clisp.org>
50807
50808         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50809         * doc/posix-functions/strtod.texi: Likewise.
50810
50811 2008-03-31  Bruno Haible  <bruno@clisp.org>
50812
50813         * tests/test-strtod.c (main): Don't use C99 syntax.
50814
50815 2008-03-31  Bruno Haible  <bruno@clisp.org>
50816
50817         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50818         Reported by Eric Blake.
50819
50820 2008-03-31  Jim Meyering  <meyering@redhat.com>
50821
50822         Don't compare actual signbit return values.
50823         * tests/test-strtod.c (main): Rather, compare only their
50824         zero/non-zero nature.
50825
50826 2008-03-31  Eric Blake  <ebb9@byu.net>
50827
50828         More strtod documentation.
50829         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50830         failures as distinct bugs.
50831
50832 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50833
50834         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50835         Problem reported by Erik Benada in
50836         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50837
50838 2008-03-30  Bruno Haible  <bruno@clisp.org>
50839
50840         * tests/test-strtod.c: Add comments about which assertion fails on which
50841         platform.
50842         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50843
50844 2008-03-30  Eric Blake  <ebb9@byu.net>
50845
50846         Test signbit behavior on zeros.
50847         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50848         (test_signbitd, test_signbitl): Likewise.
50849
50850         More strtod touchups.
50851         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50852         sign of negative underflow, for now.  Use .5, not .1.
50853         * doc/posix-functions/strtod.texi (strtod): Mention these
50854         limitations.
50855         Reported by Jim Meyering.
50856
50857 2008-03-30  Bruno Haible  <bruno@clisp.org>
50858
50859         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50860         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50861
50862 2008-03-30  Bruno Haible  <bruno@clisp.org>
50863
50864         Avoid failure when attempting to return empty iconv results on some
50865         platforms.
50866         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50867         allocation, don't report ENOMEM when the resulting string is empty.
50868
50869 2008-03-30  Bruno Haible  <bruno@clisp.org>
50870
50871         Fix buffer overrun.
50872         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50873         Don't consider the width for tmp_length. Check count against tmp_length
50874         before doing the padding. Ensure enough allocation during padding.
50875
50876 2008-03-30  Eric Blake  <ebb9@byu.net>
50877
50878         strtod touchups.
50879         * lib/strtod.c (strtod): Avoid compiler warnings.
50880         Reported by Jim Meyering.
50881
50882 2008-03-30  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50885         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50886         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50887         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50888         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50889         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50890         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50891         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50892
50893         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50894         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50895         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50896         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50897         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50898         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50899         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50900         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50901
50902         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50903         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50904         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50905         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50906         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50907         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50908         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50909         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50910
50911         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50912         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50913
50914         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50915         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50916
50917         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50918         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50919
50920         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50921         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50922         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50923
50924         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50926         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50927
50928         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50930         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50931
50932         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50934         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50935
50936         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50937         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50938         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50939         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50940         (Depends-on): Add EOVERFLOW.
50941         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50942         (Depends-on): Add EOVERFLOW.
50943         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50944         (Depends-on): Add EOVERFLOW.
50945         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50946         (Depends-on): Add EOVERFLOW.
50947         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50948         (Depends-on): Add EOVERFLOW.
50949         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50950         (Depends-on): Add EOVERFLOW.
50951         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50952         (Depends-on): Add EOVERFLOW.
50953         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50954         (Depends-on): Add EOVERFLOW.
50955
50956         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50958         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50959
50960         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50962         * modules/snprintf (Depends-on): Add EOVERFLOW.
50963
50964         * lib/poll.c (EOVERFLOW): Remove fallback.
50965         * modules/poll (Depends-on): Add EOVERFLOW.
50966
50967         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50968         * modules/getugroups (Depends-on): Add EOVERFLOW.
50969
50970         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50971         * modules/getdelim (Depends-on): Add EOVERFLOW.
50972
50973         * lib/ftell.c (EOVERFLOW): Remove fallback.
50974         * modules/ftell (Depends-on): Add EOVERFLOW.
50975
50976         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50978         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50979
50980         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50981
50982         * modules/EOVERFLOW-tests: New file.
50983         * tests/test-EOVERFLOW.c: New file.
50984
50985         * modules/EOVERFLOW: New file.
50986         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50987
50988 2008-03-30  Bruno Haible  <bruno@clisp.org>
50989
50990         Fix bug introduced on 2007-06-10.
50991         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50992         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50993
50994 2008-03-30  Bruno Haible  <bruno@clisp.org>
50995
50996         Improve freadseek's efficiency after ungetc.
50997         * lib/freadseek.c: Include freadahead.h.
50998         (freadptrinc): New function, extracted from freadseek.
50999         (freadseek): Use it in a loop. Use freadahead to determine the number
51000         of loop iterations.
51001         * modules/freadseek (Depends-on): Add freadahead.
51002         (configure.ac): Require AC_C_INLINE.
51003
51004 2008-03-30  Bruno Haible  <bruno@clisp.org>
51005
51006         * lib/freadseek.c (freadseek): Don't ignore the return value of
51007         freadptr.
51008
51009 2008-03-29  Eric Blake  <ebb9@byu.net>
51010
51011         Add hex float support.
51012         * modules/strtod (Depends-on): Add c-ctype.
51013         (Link): Mention POW_LIB.
51014         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51015         whitespace between 'e' and exponent.
51016         * tests/test-strtod.c (main): Enable hex float tests.
51017         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51018         now provides.
51019
51020         Document various strtod bugs, with some fixes.
51021         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51022         "-0x", "inf", "nan", and hex constants.
51023         * doc/posix-functions/atof.texi (atof): Likewise.
51024         * modules/stdlib (Makefile.am): Support strtod.
51025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51026         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51027         detect additional strtod bugs.
51028         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51029         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51030         bool where appropriate.  Parse 'inf' and 'nan'.
51031         * tests/test-strtod.c: New file.
51032         * modules/strtod (Depends-on): Add stdbool, stdlib.
51033         (configure.ac): Turn on module indicator.
51034         * modules/strtod-tests: New module.
51035
51036 2008-03-29  Eric Blake  <ebb9@byu.net>
51037
51038         Fix ftell on mingw.
51039         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51040         * modules/ftell-tests (Depends-on): Add binary-io.
51041         * modules/ftello-tests (Depends-on): Likewise.
51042         * tests/test-ftell.c (main): Enhance test to cover behavior after
51043         ungetc.  Enforce binary mode.
51044         * tests/test-ftello.c (main): Likewise.
51045
51046         Pass test-freadseek on cygwin.
51047         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51048         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51049         ungetc buffer.
51050
51051         * tests/test-fflush2.c (main): Fix typo.
51052
51053 2008-03-29  Bruno Haible  <bruno@clisp.org>
51054
51055         * tests/test-fflush2.c (main): Temporarily disable the contents of
51056         this test.
51057         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51058         Reported by Eric Blake.
51059
51060 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51061
51062         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51063         (GC_SHA224_DIGEST_SIZE): Add.
51064
51065         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51066         (gc_hash_digest_length): Likewise.
51067         (gc_hash_buffer): Likewise.
51068
51069 2008-03-25  Bruno Haible  <bruno@clisp.org>
51070
51071         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51072         detail which gettext release to use.
51073         Reported by Simon Josefsson.
51074
51075 2008-03-26  Jim Meyering  <meyering@redhat.com>
51076
51077         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51078         * modules/gnumakefile (clean-GNUmakefile): Also, use
51079         test ... && ... || : syntax rather than if-then ... fi.
51080
51081         gnumakefile: Don't double-quote-expand $(VPATH) value.
51082         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51083
51084 2008-03-24  Eric Blake  <ebb9@byu.net>
51085
51086         Alter GNUmakefile to install into top directory.
51087         * modules/maintainer-makefile: Split, and add dependency...
51088         * modules/gnumakefile: to this new module.
51089         * build-aux/GNUmakefile: Move...
51090         * top/GNUmakefile: ...here.
51091         * build-aux/maint.mk: Move...
51092         * top/maint.mk: ...here.
51093         * MODULES.html.sh (Support for maintaining...): Document new
51094         module.
51095
51096 2008-03-23  Bruno Haible  <bruno@clisp.org>
51097
51098         * gnulib-tool: New options --vc-files, --no-vc-files.
51099         (func_usage): Document them.
51100         (vc_files): New variable.
51101         (func_import): Consider vc_files.
51102         (func_create_testdir): Set vc_files to empty.
51103         Suggested by Jim Meyering and Karl Berry.
51104
51105 2008-03-23  Bruno Haible  <bruno@clisp.org>
51106
51107         Fix regex compilation error on HP-UX 11.
51108         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51109         * modules/regex (Files): Add m4/mbstate_t.m4.
51110         Reported by Ton Voon <ton.voon@altinity.com>.
51111
51112 2008-03-23  Bruno Haible  <bruno@clisp.org>
51113
51114         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51115
51116 2008-03-23  Eric Blake  <ebb9@byu.net>
51117             Bruno Haible  <bruno@clisp.org>
51118
51119         Install files from top/ in the destination directory.
51120         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51121         augmentation also for the files from top/.
51122         (func_import, func_create_testdir): Rewrite file names:
51123         top/filename -> filename.
51124
51125 2008-03-23  Bruno Haible  <bruno@clisp.org>
51126
51127         Tweak "gnulib --version" output.
51128         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51129
51130 2008-03-23  Bruno Haible  <bruno@clisp.org>
51131
51132         Tweak "gnulib --version" output.
51133         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51134         rather than contents of ChangeLog, when possible.
51135
51136 2008-03-21  Eric Blake  <ebb9@byu.net>
51137
51138         More --version tweaks.
51139         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51140         date of last ChangeLog entry.
51141
51142 2008-03-21  Jim Meyering  <meyering@redhat.com>
51143
51144         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51145
51146 2008-03-20  Eric Blake  <ebb9@byu.net>
51147
51148         VPATH fix.
51149         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51150
51151 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51152
51153         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51154         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51155
51156 2008-03-20  Eric Blake  <ebb9@byu.net>
51157
51158         Sync GNUmakefile with coreutils.
51159         * build-aux/GNUmakefile (have-Makefile): Rename...
51160         (_have-Makefile): ...to this, for namespace consideration.
51161         (GNUmakefile.cfg): Include, if present.
51162         (_autoreconf): Define a default.
51163         (_is-dist-target): New rule for rebuilds to pick up intra-release
51164         version.
51165         (maint-cfg.mk): Rename...
51166         (cfg.mk): ...to this.
51167
51168 2008-03-18  Jim Meyering  <meyering@redhat.com>
51169
51170         New script and module: mktempd
51171         * MODULES.html.sh (maint+release support): Add mktempd.
51172         * build-aux/mktempd: New file.
51173         * modules/mktempd: New file.
51174
51175 2008-03-15  Jim Meyering  <meyering@redhat.com>
51176
51177         Undo last change.
51178         * lib/sha1.c, lib/md5.c: 63 != ~63.
51179         Reported by Andreas Schwab.
51180
51181         sha1.c, md5.c: Hoist a redundant expression.
51182         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51183         "ctx->buflen" only once, before calling *_process_block.
51184         * lib/md5.c (md5_process_bytes): Likewise.
51185
51186 2008-03-14  Eric Blake  <ebb9@byu.net>
51187
51188         Bump copyright year in files generated by gnulib-tool.
51189         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51190         gnulib-tool, rather than hard-coding it.
51191
51192         Fix 'gnulib-tool --version' output to work with git.
51193         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51194         (startup): ...here.
51195         (func_version): Use it to invoke git-version-gen, rather than
51196         relying on CVS keyword expansion.  Modernize wording.
51197         (cvsdatestamp, last_checkin_date, version): Kill unused
51198         variables.
51199
51200 2008-03-12  Jim Meyering  <meyering@redhat.com>
51201
51202         Recognize optional cast of the argument to free.
51203         * build-aux/useless-if-before-free: Update regexps.
51204
51205         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51206
51207 2008-03-11  Bruno Haible  <bruno@clisp.org>
51208
51209         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51210         by a single package.
51211         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51212         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51213         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51214         Reported by Sam Steingold <sds@gnu.org>.
51215
51216 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51217
51218         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51219         repositories.
51220
51221 2008-03-11  Bruno Haible  <bruno@clisp.org>
51222
51223         Avoid conflicts between local macro definitions.
51224         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51225         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51226
51227 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51228             Bruno Haible  <bruno@clisp.org>
51229
51230         Make va_copy work with some version of xlc on AIX 5.1.
51231         * lib/stdarg.in.h: New file.
51232         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51233         On AIX, use a <stdarg.h> file substitute.
51234         * modules/stdarg (Files): Add lib/stdarg.in.h.
51235         (Depends-on): Add include_next.
51236         (Makefile.am): Build a stdarg.h substitute if requested.
51237         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51238
51239 2008-03-10  Bruno Haible  <bruno@clisp.org>
51240
51241         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51242         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51243         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51244
51245 2008-03-10  Bruno Haible  <bruno@clisp.org>
51246
51247         * modules/stdlib (Depends-on): Add include_next, remove
51248         absolute-header.
51249
51250 2008-03-09  Bruno Haible  <bruno@clisp.org>
51251
51252         * lib/freadahead.h (freadahead): Document more precisely.
51253         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51254         the sum of both buffer sizes.
51255         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51256         * NEWS: Document the change.
51257
51258 2008-03-09  Bruno Haible  <bruno@clisp.org>
51259
51260         Extend freadptr to return also the buffer size.
51261         * lib/freadptr.h (freadptr): Add sizep argument.
51262         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51263         (freadptr): Add sizep argument. Determine buffer size like freadahead
51264         does.
51265         * tests/test-freadptr.c: Don't include freadahead.h.
51266         (main): Adapt for new calling convention of freadptr.
51267         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51268         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51269         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51270         tests/test-freadptr2.sh.
51271         (Depends): Remove freadahead.
51272         (TESTS): Add test-freadptr2.sh.
51273         (check_PROGRAMS): Add test-freadptr2.
51274
51275 2008-03-09  Bruno Haible  <bruno@clisp.org>
51276
51277         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51278         Report and solution by Simon Josefsson.
51279
51280 2008-03-06  Bruno Haible  <bruno@clisp.org>
51281
51282         Make fflush after ungetc work on BSD platforms.
51283         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51284         * tests/test-fflush2.c: New file.
51285         * tests/test-fflush2.sh: New file.
51286         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51287         tests/test-fflush2.c.
51288         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51289         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51290
51291 2008-03-06  Eric Blake  <ebb9@byu.net>
51292
51293         Likewise for ftello.
51294         * modules/ftello (Dependencies): Add extensions.
51295         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51296
51297 2008-03-06  Bruno Haible  <bruno@clisp.org>
51298
51299         * modules/fseeko (Dependencies): Add extensions.
51300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51301         Needed on glibc systems.
51302
51303 2008-03-06  Bruno Haible  <bruno@clisp.org>
51304
51305         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51306         email address.
51307         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51308
51309 2008-03-06  Bruno Haible  <bruno@clisp.org>
51310
51311         * users.txt: Add libgnupdf.
51312
51313 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51314
51315         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51316         (Header File Substitutes, Function Substitutes,
51317         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51318         (Build robot for gnulib): Fix typo.
51319
51320 2008-03-06  Bruno Haible  <bruno@clisp.org>
51321
51322         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51323         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51324
51325 2008-03-06  Bruno Haible  <bruno@clisp.org>
51326
51327         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51328         * doc/gnulib.texi: Include it.
51329
51330 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51331
51332         * modules/func (License): Change license to unlimited; there was
51333         no LGPL parts in the module anyway.
51334
51335 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51336
51337         * modules/__func__: Renamed to modules/func.
51338         * modules/__func__-tests: Renamed to modules/func-tests.
51339         * tests/test-__func__.c: Renamed to tests/test-func.c.
51340         * m4/__func__.m4: Renamed to m4/func.m4.
51341         * doc/gnulib.texi (__func__): Section renamed to func.
51342         Suggested by Eric Blake <ebb9@byu.net>.
51343
51344 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51345
51346         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51347         about __func__.  Make example self-contained.  Suggested by Eric
51348         Blake <ebb9@byu.net>.
51349
51350         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51351         Suggested by Eric Blake <ebb9@byu.net>.
51352
51353 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51354
51355         * modules/__func__: New file.
51356         * modules/__func__-tests: New file.
51357         * tests/test-__func__.c: New file.
51358         * m4/__func__.m4: New file.
51359         * doc/gnulib.texi (__func__): Document __func__ module.
51360
51361 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51362
51363         * modules/byteswap (License): Re-license as LGPLv2+.
51364
51365 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51366
51367         * doc/Makefile: Add pdf target.
51368
51369 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51370
51371         * modules/inline (License): Use 'unlimited', since there are only
51372         *.m4 files in this module.
51373
51374 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51375             Bruno Haible  <bruno@clisp.org>
51376
51377         Add support for HP C 7.1 on OpenVMS 8.3.
51378         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51379
51380 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51381
51382         Update VMS specifics.
51383         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51384
51385 2008-03-02  Jim Meyering  <meyering@redhat.com>
51386
51387         Remove the last dependency on the "free" module.
51388         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51389         Reported by Bob Proulx.
51390
51391         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51392
51393         Remove useless "if" tests before free.  Deprecate "free" module.
51394         * doc/posix-functions/free.texi: Mention that this
51395         module is no longer useful.
51396         * modules/free (Notice): Say this module is obsolete.
51397         * modules/readutmp (Depends-on): Remove free.
51398         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51399         * lib/putenv.c (putenv): Likewise.
51400         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51401         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51402         * tests/test-c-strcasestr.c (main): Likewise.
51403         * tests/test-c-strstr.c (main): Likewise.
51404         * tests/test-mbscasestr1.c (main): Likewise.
51405         * tests/test-mbscasestr2.c (main): Likewise.
51406         * tests/test-mbsstr1.c (main): Likewise.
51407         * tests/test-mbsstr2.c (main): Likewise.
51408         * tests/test-memmem.c (main): Likewise.
51409         * tests/test-strcasestr.c (main): Likewise.
51410         * tests/test-striconv.c (main): Likewise.
51411         * tests/test-striconveh.c (main): Likewise.
51412         * tests/test-striconveha.c (main): Likewise.
51413         * tests/test-strstr.c (main): Likewise.
51414
51415         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51416
51417         bootstrap: sync from coreutils again
51418         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51419
51420 2008-03-01  Jim Meyering  <meyering@redhat.com>
51421
51422         bootstrap: sync from coreutils
51423         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51424         also when the target doesn't exist.
51425
51426 2008-03-01  Eric Blake  <ebb9@byu.net>
51427
51428         Fix bugs in last patch.
51429         * lib/memchr2.c (memchr2): Fix typo.
51430         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51431         extension.
51432         Reported by Bruce Korb.
51433
51434         New module 'memchr2'.
51435         * modules/memchr2: New file.
51436         * modules/memchr2-tests: Likewise.
51437         * lib/memchr2.h: Likewise.
51438         * lib/memchr2.c: Likewise, based on memchr.c.
51439         * tests/test-memchr2.c: New test.
51440         * MODULES.html.sh (String handling): Add memchr2.
51441
51442 2008-02-29  Bruno Haible  <bruno@clisp.org>
51443
51444         * modules/freadseek-tests: New file.
51445         * tests/test-freadseek.sh: New file.
51446         * tests/test-freadseek.c: New file.
51447
51448         New module 'freadseek'.
51449         * modules/freadseek: New file.
51450         * lib/freadseek.h: New file.
51451         * lib/freadseek.c: New file.
51452         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51453
51454 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51455
51456         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51457         wydawca.
51458
51459         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51460         program_invocation_name and program_invocation_short_name are
51461         present.
51462
51463 2008-02-28  Bruno Haible  <bruno@clisp.org>
51464
51465         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51466         * tests/test-freadptr.sh: Also test non-seekable stdin.
51467
51468 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51469
51470         * build-aux/bootstrap (source_base, m4_base)
51471         (doc_base, tests_base): New variables.
51472         (gnulib_tool_options): Do not hardcode base directories, use
51473         the above variables instead.
51474
51475 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51476
51477         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51478
51479 2008-02-28  Bruno Haible  <bruno@clisp.org>
51480
51481         * modules/freadptr-tests: New file.
51482         * tests/test-freadptr.sh: New file.
51483         * tests/test-freadptr.c: New file.
51484
51485         New module 'freadptr'.
51486         * modules/freadptr: New file.
51487         * lib/freadptr.h: New file.
51488         * lib/freadptr.c: New file.
51489         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51490
51491 2008-02-26  Karl Berry  <karl@freefriends.org>
51492
51493         Sync from Libtool:
51494         * libltdl/argz.c (argz_add, argz_count): New functions.
51495         * libltdl/argz.in.h: Declare them.
51496         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51497
51498 2008-02-22  Bruno Haible  <bruno@clisp.org>
51499
51500         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51501         is a pointer type.  Needed for HP-UX 10.
51502         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51503         * doc/posix-functions/gmtime_r.texi: Likewise.
51504         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51505
51506 2008-02-24  Bruno Haible  <bruno@clisp.org>
51507
51508         * modules/environ-tests: New file.
51509         * tests/test-environ.c: New file.
51510
51511         New module 'environ'.
51512         * modules/environ: New file.
51513         * lib/unistd.in.h (environ): New declaration.
51514         * m4/environ.m4: New file.
51515         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51516         after use.
51517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51518         HAVE_DECL_ENVIRON.
51519         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51520         HAVE_DECL_ENVIRON.
51521         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51522         wrong claim that 'environ' is missing on some systems.
51523         * modules/execute (Depends-on): Add environ.
51524         * lib/execute.c (environ): Remove fallback declaration.
51525         * modules/pipe (Depends-on): Add environ.
51526         * lib/pipe.c (environ): Remove fallback declaration.
51527         * modules/setenv (Depends-on): Add environ.
51528         * lib/setenv.c (environ): Remove fallback declaration.
51529         * modules/unsetenv (Depends-on): Add environ.
51530         * lib/unsetenv.c (environ): Remove fallback declaration.
51531         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51532         m4/environ.m4.
51533         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51534         (gl_PREREQ_UNSETENV): Likewise.
51535
51536 2008-02-24  Bruno Haible  <bruno@clisp.org>
51537
51538         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51539
51540 2008-02-20  Bob Proulx  <bob@proulx.com>
51541
51542         Enable use of older two part flavor 'git describe'.
51543         * build-aux/git-version-gen: If using the older two part flavor of
51544         git version then recreate the third part now present in the
51545         newer three part flavor of git describe.
51546
51547 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51548
51549         * lib/fts.c (fts_build): Typo correction to comment.
51550
51551 2008-02-17  Bruno Haible  <bruno@clisp.org>
51552
51553         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51554         generating no-op conflicts.
51555
51556 2008-02-17  Bruno Haible  <bruno@clisp.org>
51557
51558         Speed up by 10%.
51559         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51560         result_entries, rather than an index-based loop.
51561
51562 2008-02-17  Bruno Haible  <bruno@clisp.org>
51563
51564         Speed up by 25%.
51565         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51566         'hashcode_cached'.
51567         (entry_create): New function.
51568         (entry_hashcode): Use the cached hashcode if possible.
51569         (read_changelog_file, try_split_merged_entry): Use entry_create.
51570
51571 2008-02-17  Bruno Haible  <bruno@clisp.org>
51572
51573         Speed up from O(n^2) to O(n) for long ChangeLog files.
51574         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51575         (read_changelog_file): Change implementation of entries_reversed list
51576         to rbtreehash.
51577         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51578
51579 2008-02-17  Bruno Haible  <bruno@clisp.org>
51580
51581         New option --split-merged-entry.
51582         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51583         (find_paragraph_end, try_split_merged_entry): New functions.
51584         (long_options): Add option --split-merged-entry.
51585         (usage): Document option --split-merged-entry.
51586         (main): Implement option --split-merged-entry.
51587         Reported by Eric Blake.
51588
51589 2008-02-17  Bruno Haible  <bruno@clisp.org>
51590
51591         * lib/git-merge-changelog.c: Include c-strstr.h.
51592         (main): Support the "git pull --rebase" situation.
51593         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51594         Reported by Eric Blake.
51595
51596 2008-02-16  Eric Blake  <ebb9@byu.net>
51597
51598         Avoid doubling \ in common case of "c-maybe" quoting style.
51599         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51600         eliding outer quotes.
51601         * lib/quotearg.h: Document this.
51602         * tests/test-quotearg.c (result_strings, inputs, results_g)
51603         (flag_results, locale_results): Test it by adding a new string to
51604         each test group.
51605         (compare_strings): Test new string.
51606
51607 2008-02-13  Eric Blake  <ebb9@byu.net>
51608
51609         Avoid trigraph quoting in default output.
51610         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51611         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51612         unless explicitly requested.
51613         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51614
51615 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51616
51617         Don't rely on signed integer overflowing to negative value.
51618         * lib/getugroups.c (getugroups): Include <limits.h>.
51619         Instead, compare against INT_MAX, and increment only if the test passes.
51620
51621 2008-02-13  Jim Meyering  <meyering@redhat.com>
51622         and Eric Blake  <ebb9@byu.net>
51623
51624         Avoid shadowing warning and compile errors on Linux.
51625         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51626         forwarding macros on Linux.
51627         (dcgettext): Define a stub, for Linux.
51628         (results_g, main): Avoid warnings.
51629
51630 2008-02-12  Eric Blake  <ebb9@byu.net>
51631
51632         Silence warning in last patch.
51633         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51634
51635         Quotearg part 4: add tests, fix c-maybe colon quoting.
51636         * lib/quotearg.h: Improve documentation.
51637         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51638         escapes when adding outer quotes.  When quoting trigraphs, use
51639         valid C notation.  When quoting NUL, omit extra characters if next
51640         character is not digit.  Alter prototype.
51641         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51642         callers.
51643         * modules/quotearg-tests: New module.
51644         * tests/test-quotearg.c: New test.
51645
51646 2008-02-07  Eric Blake  <ebb9@byu.net>
51647
51648         Quotearg part 3: add flag to control outer quote elision.
51649         * lib/quotearg.h (c_maybe_quoting_style): New style.
51650         (enum quoting_flags): Better documentation of flags.
51651         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51652         c-maybe style.
51653         (quotearg_buffer_restyled): Handle new flag to elide outer
51654         quotes.
51655
51656         Quotearg part 2: add flag that can control NUL elision.
51657         * lib/quotearg.h (set_quoting_flags): New prototype.
51658         * lib/quotearg.c (struct quoting_options): Add flag field.
51659         (set_quoting_flags): New function.
51660         (quotearg_buffer_restyled): Add flags parameter.
51661         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51662         (quotearg_n_options): Set the flag, since length cannot be
51663         returned.
51664         (quoting_options_from_style): Default flags correctly.
51665
51666         Quotearg part 1: more wrappers, restore quotearg_char state.
51667         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51668         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51669         (quotearg_colon_mem): New wrappers.
51670         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51671         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51672         functions.
51673         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51674         (quotearg_colon_mem): New functions.
51675
51676 2008-02-11  Bruno Haible  <bruno@clisp.org>
51677
51678         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51679         library in the current directory: it does not work with parallel make.
51680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51681
51682 2008-02-11  Bruno Haible  <bruno@clisp.org>
51683
51684         * .gitattributes: New file.
51685
51686 2008-02-11  Jim Meyering  <meyering@redhat.com>
51687
51688         useless-if-before-free: Fix reversed exit values.
51689         * build-aux/useless-if-before-free: Use correct values
51690         for EXIT_MATCH and EXIT_NO_MATCH.
51691
51692         * build-aux/useless-if-before-free: Close stdout carefully.
51693
51694 2008-02-10  Bruno Haible  <bruno@clisp.org>
51695
51696         New module 'git-merge-changelog'.
51697         * modules/git-merge-changelog: New file.
51698         * lib/git-merge-changelog.c: New file.
51699
51700 2008-02-10  Jim Meyering  <meyering@redhat.com>
51701
51702         useless-if-before-free: New option: --list (-l).
51703
51704         useless-if-before-free: Don't exit immediately upon open failure.
51705         * build-aux/useless-if-before-free: Exit 2 for errors.
51706         Upon failure to open a file, don't exit immediately.
51707         Rather, just warn and continue with any remaining files.
51708
51709 2008-02-10  Bruno Haible  <bruno@clisp.org>
51710
51711         New abstract list operation 'node_set_value'.
51712         * lib/gl_list.h (gl_list_node_set_value): New function.
51713         (struct gl_list_implementation): New field node_set_value.
51714         * lib/gl_list.c (gl_list_node_set_value): New function.
51715         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51716         (gl_array_list_implementation): Update.
51717         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51718         (gl_carray_list_implementation): Update.
51719         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51720         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51721         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51722         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51723         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51724         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51725         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51726         Update.
51727         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51728         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51729         (gl_sublist_list_implementation): Update.
51730
51731 2008-02-10  Bruno Haible  <bruno@clisp.org>
51732
51733         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51734         Needed when ELEMENT is #defined to 'some_type *'.
51735
51736 2008-02-10  Jim Meyering  <meyering@redhat.com>
51737
51738         New script and module: useless-if-before-free
51739         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51740         * build-aux/useless-if-before-free: New file.
51741         * modules/useless-if-before-free: New file.
51742
51743         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51744
51745         xstrtol_error: Fix typo.
51746         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51747         s/exit_failure/exit_status/.
51748
51749 2008-02-09  Jim Meyering  <meyering@redhat.com>
51750
51751         New script and module: gitlog-to-changelog
51752         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51753         * modules/gitlog-to-changelog: New file.
51754         * build-aux/gitlog-to-changelog: New file.
51755
51756 2008-02-08  Jim Meyering  <meyering@redhat.com>
51757
51758         Avoid two "parameter unused" warnings.
51759         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51760         Mark "st" as used.
51761
51762         Use "git COMMAND", not "git-COMMAND".
51763         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51764         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51765         * build-aux/git-version-gen: Use "git status", not "git-status".
51766
51767 2008-02-07  Bruno Haible  <bruno@clisp.org>
51768
51769         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51770         Avoids a crash on Windows Vista.
51771         Reported by Adam Strzelecki <ono@java.pl> via
51772         Simon Josefsson <simon@josefsson.org>.
51773
51774 2008-02-06  Bruno Haible  <bruno@clisp.org>
51775
51776         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51777         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51778         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51780         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51781         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51782         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51783         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51784         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51786         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51787         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51788         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51790         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51791         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51792         left-adjust flag.
51793         * tests/test-snprintf-posix.h (test_function): Likewise.
51794         * tests/test-sprintf-posix.h (test_function): Likewise.
51795         * tests/test-vasprintf-posix.c (test_function): Likewise.
51796         * doc/posix-functions/fprintf.texi: Update.
51797         * doc/posix-functions/printf.texi: Update.
51798         * doc/posix-functions/snprintf.texi: Update.
51799         * doc/posix-functions/sprintf.texi: Update.
51800         * doc/posix-functions/vfprintf.texi: Update.
51801         * doc/posix-functions/vprintf.texi: Update.
51802         * doc/posix-functions/vsnprintf.texi: Update.
51803         * doc/posix-functions/vsprintf.texi: Update.
51804         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51805
51806 2008-02-06  Bruno Haible  <bruno@clisp.org>
51807
51808         Fix bug introduced on 2008-01-26.
51809         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51810
51811 2008-02-06  Bruno Haible  <bruno@clisp.org>
51812
51813         Fix bug introduced on 2007-06-10.
51814         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51815         !NEED_PRINTF_FLAG_ZERO.
51816
51817 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51818
51819         getloadavg: use libperfstat on AIX5
51820         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51821
51822 2008-02-03  Bruno Haible  <bruno@clisp.org>
51823
51824         * lib/diffseq.h: Add comments about required #includes.
51825         Reported by Michael Biggs <gnulib@doubleplum.net>.
51826
51827 2008-02-01  Bruno Haible  <bruno@clisp.org>
51828
51829         * users.txt: Add gnuit.
51830
51831 2008-01-31  Bruno Haible  <bruno@clisp.org>
51832
51833         * lib/md4.c (set_uint32): Mark as inline.
51834         * lib/md5.c (set_uint32): Likewise.
51835         * lib/sha1.c (set_uint32): Likewise.
51836         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51837         * m4/md5.m4 (gl_MD5): Likewise.
51838         * m4/sha1.m4 (gl_SHA1): Likewise.
51839
51840 2008-01-31  Jim Meyering  <meyering@redhat.com>
51841
51842         Use "sizeof VAR", rather than a literal "4".
51843         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51844         * lib/md4.c (md4_read_ctx): Likewise.
51845         * lib/sha1.c (sha1_read_ctx): Likewise.
51846
51847 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51848
51849         * tests/test-sha1.c: New file, based on test-md5.c.
51850
51851         * modules/crypto/sha1-tests: New file.
51852
51853 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51854
51855         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51856
51857 2008-01-31  Jim Meyering  <meyering@redhat.com>
51858
51859         Prefer "sizeof v" over the equivalent "4".
51860         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51861         * lib/md5.c (set_uint32): Likewise.
51862         * lib/sha1.c (set_uint32): Likewise.
51863
51864 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51865
51866         * lib/sha1.c (set_uint32): Mark function as static.
51867
51868 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51869
51870         md2: clarify comments to say that alignment is not required.
51871         * lib/md2.h: Remove warning about alignment in comment.
51872         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51873         never been required.
51874
51875 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51876
51877         md4: adapt alignment constraint fix from sha1.
51878         * lib/md4.c (set_uint32): New function, from sha1.c
51879         (md4_read_ctx): Use it.
51880         (md4_finish_ctx): Doc fix.
51881         * lib/md4.h: Doc fix.
51882
51883 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51884
51885         md5: adapt alignment constraint fix from sha1.
51886         * lib/md5.c (set_uint32): New function, from sha1.c
51887         (md5_read_ctx): Use it.
51888         (md5_finish_ctx): Doc fix.
51889         * lib/md5.h: Doc fix.
51890
51891 2008-01-30  Peter Palfrader  <weasel@debian.org>
51892
51893         sha1: remove the result buffer alignment constraint
51894         * lib/sha1.c (set_uint32): New function.
51895         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51896         constraint.
51897         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51898         * lib/sha1.h: Likewise.
51899
51900 2008-01-30  Andreas Schwab  <schwab@suse.de>
51901             Bruno Haible  <bruno@clisp.org>
51902
51903         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51904         correct definition of LDBL_MIN_EXP.
51905
51906 2008-01-30  Karl Berry  <karl@gnu.org>
51907
51908         * config/srclist-update: try to preserve x bit on updates.
51909         * config/srclistvars.sh: update for karl.
51910
51911 2008-01-29  Jim Meyering  <meyering@redhat.com>
51912
51913         vasnprintf.c: Avoid warning about unused label
51914         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51915         "overflow" label definition and associated code with the
51916         same cpp condition that guards the sole use of that label.
51917
51918 2008-01-26  Bruno Haible  <bruno@clisp.org>
51919
51920         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51921         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51922         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51923         * lib/isnanl-nolibm.h (isnanl): Likewise.
51924         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51925
51926 2008-01-26  Bruno Haible  <bruno@clisp.org>
51927
51928         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51929         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51930
51931 2008-01-26  Bruno Haible  <bruno@clisp.org>
51932
51933         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51934         GCC >= 4.0 built-in.
51935         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51936
51937 2008-01-26  Bruno Haible  <bruno@clisp.org>
51938
51939         Rename isnan, applicable to 'double' only, to isnand.
51940         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51941         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51942         (configure.ac): Update.
51943         (Include): Replace "isnan.h" with "isnand.h".
51944         * m4/isnand.m4: Renamed from m4/isnan.m4.
51945         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51946         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51947         instead of isnan.c.
51948         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51949         instead of HAVE_ISNAN_IN_LIBC.
51950         (isnand): Renamed from isnan.
51951         * lib/isnand.c: New file.
51952         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51953         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51954         (Makefile.am): Update.
51955         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51956         Include isnand.h instead of isnan.h.
51957         (main): Test isnand instead of isnan.
51958         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51959         isnan-nolibm.
51960         * modules/frexp (Depends-on): Likewise.
51961         * modules/frexp-tests (Depends-on): Likewise.
51962         * modules/frexp-nolibm (Depends-on): Likewise.
51963         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51964         * modules/isfinite (Depends-on): Likewise.
51965         * modules/round-tests (Depends-on): Likewise.
51966         * modules/signbit (Depends-on): Likewise.
51967         * modules/signbit-tests (Depends-on): Likewise.
51968         * modules/snprintf-posix (Depends-on): Likewise.
51969         * modules/sprintf-posix (Depends-on): Likewise.
51970         * modules/trunc-tests (Depends-on): Likewise.
51971         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51972         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51973         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51974         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51975         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51976         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51977         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51978         * modules/vasnprintf-posix (Depends-on): Likewise.
51979         * modules/vasprintf-posix (Depends-on): Likewise.
51980         * modules/vfprintf-posix (Depends-on): Likewise.
51981         * modules/vsnprintf-posix (Depends-on): Likewise.
51982         * modules/vsprintf-posix (Depends-on): Likewise.
51983         * lib/frexp.c: Include isnand.h instead of isnan.h.
51984         (ISNAN): Set to isnand instead of isnan.
51985         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51986         (gl_isfinited): Use isnand instead of isnan.
51987         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51988         (gl_signbitd): Use isnand instead of isnan.
51989         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51990         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51991         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51992         (main): Use isnand instead of isnan.
51993         * tests/test-round1.c: Include isnand.h.
51994         (main): Use isnand instead of isnan.
51995         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51996         (ISNAN): Set to isnand instead of isnan.
51997         * tests/test-trunc1.c: Include isnand.h.
51998         (main): Use isnand instead of isnan.
51999         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52000         (equal): Use isnand instead of isnan.
52001         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52002         isnand-nolibm.
52003         * NEWS: Mention the change.
52004
52005 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52006             Bruno Haible  <bruno@clisp.org>
52007
52008         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52009         the GCC builtins for signbits are present and set
52010         REPLACE_SIGNBIT_USING_GCC if so.
52011         * lib/math.in.h (signbit): Define using GCC builtins if
52012         REPLACE_SIGNBIT_USING_GCC is set.
52013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52014         REPLACE_SIGNBIT_USING_GCC.
52015         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52016
52017 2008-01-25  Jim Meyering  <meyering@redhat.com>
52018
52019         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52020         * lib/poll.c: Include <config.h>, not "config.h".
52021         * tests/test-getaddrinfo.c: Likewise.
52022
52023 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52024
52025         * modules/sockets-tests: New file.
52026
52027 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52028
52029         * modules/sockets: New module, can be used to call WSA_Startup and
52030         WSA_Cleanup when needed.
52031
52032         * lib/sockets.h, lib/sockets.c: New files.
52033
52034         * m4/sockets.m4: New file.
52035
52036         * tests/test-sockets.c: New file.
52037
52038 2008-01-19  Bruno Haible  <bruno@clisp.org>
52039
52040         * doc/posix-headers: Renamed from doc/headers.
52041         * doc/posix-functions: Renamed from doc/functions.
52042         * doc/gnulib.texi: Update.
52043
52044 2008-01-19  Bruno Haible  <bruno@clisp.org>
52045
52046         * doc/glibc-functions/strcasestr.texi: Include contents of
52047         doc/functions/strcasestr.texi, fixing the list of platforms.
52048         * doc/functions/strcasestr.texi: Remove file.
52049
52050 2008-01-19  Bruno Haible  <bruno@clisp.org>
52051
52052         * doc/glibc-functions/memmem.texi: Include contents of
52053         doc/functions/memmem.texi.
52054         * doc/functions/memmem.texi: Remove file.
52055
52056 2008-01-18  Bruno Haible  <bruno@clisp.org>
52057
52058         * doc/glibc-functions/*.texi: New files.
52059         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52060         to use the new files.
52061
52062 2008-01-17  Bruno Haible  <bruno@clisp.org>
52063
52064         * tests/test-gethostname.c (main): Fix printf statement.
52065
52066 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52067
52068         * modules/gethostname-tests: New file.
52069
52070         * tests/test-gethostname.c: New file.
52071
52072 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52073
52074         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52075         used by the UNAME case.  Reported by Bruno Haible
52076         <bruno@clisp.org>.
52077
52078 2008-01-17  Eric Blake  <ebb9@byu.net>
52079
52080         Convert c-strcasestr to be more efficient.
52081         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52082         (Depends-on): Add c-strcase, remove malloca, strnlen.
52083         * tests/test-c-strcasestr.c (main): Enhance test.
52084         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52085
52086 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52087
52088         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52089         Use it in creating po/Makevars.
52090
52091 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52092
52093         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52094         Applications that requires it should initialize libgcrypt
52095         manually.
52096
52097 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52098
52099         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52100
52101 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52102
52103         Fix problem with getdate on mingw32 reported by Simon Josefsson
52104         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52105         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52106         tzname", when deciding whether to declare tzname.
52107         * lib/strftime.c (tzname): Likewise.
52108
52109 2008-01-15  Bruno Haible  <bruno@clisp.org>
52110
52111         Work around a MacOS X 10.5 bug in frexpl().
52112         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52113         * doc/functions/frexpl.texi: Document the bug.
52114         Reported by Elias Pipping <pipping@gentoo.org>.
52115
52116 2008-01-14  Eric Blake  <ebb9@byu.net>
52117
52118         Touch up previous patch.
52119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52120         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52121
52122         Convert strcasestr module to use Two-Way algorithm.
52123         * modules/strcasestr-simple: New module, based on the old
52124         strcasestr, but with Two-Way rather than KMP.
52125         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52126         * lib/string.in.h (rpl_strcasestr): Declare.
52127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52128         performance.
52129         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52130         * modules/string (Makefile.am): Support strcasestr.
52131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52132         * modules/strcasestr-tests (Depends-on): Check for alarm.
52133         * tests/test-strcasestr.c: Augment test.
52134         * lib/str-two-way.h: Clean up stray macro.
52135         * NEWS: Document new module.
52136         * MODULES.html.sh (string handling): Likewise.
52137         * doc/functions/strcasestr.texi: New file.
52138         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52139         here, since it is not a POSIX function.
52140
52141 2008-01-14  Colin Watson  <cjwatson@debian.org>
52142             Bruno Haible  <bruno@clisp.org>
52143
52144         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52145         works fine; if not, set REPLACE_STRSIGNAL.
52146         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52148         REPLACE_STRSIGNAL.
52149         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52150         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52151         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52152
52153 2008-01-14  Bruno Haible  <bruno@clisp.org>
52154
52155         * modules/strsignal (Include): Change to <string.h>.
52156
52157 2008-01-14  Colin Watson  <cjwatson@debian.org>
52158
52159         * modules/argp (Notice): Add a notice recommending to change
52160         XGETTEXT_OPTIONS.
52161         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52162
52163 2008-01-13  Colin Watson  <cjwatson@debian.org>
52164
52165         * modules/strsignal-tests: New file.
52166         * tests/test-strsignal.c: New file.
52167
52168         * lib/strsignal.c: New file, from glibc with modifications.
52169         * lib/siglist.h: New file, from glibc with modifications.
52170         * lib/string.in.h (strsignal): New declaration.
52171         * m4/strsignal.m4: New file.
52172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52173         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52174         * modules/strsignal: New file.
52175         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52176         HAVE_DECL_STRSIGNAL.
52177
52178 2008-01-13  Bruno Haible  <bruno@clisp.org>
52179
52180         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52181         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52182         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52183         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52184
52185 2008-01-13  Bruno Haible  <bruno@clisp.org>
52186
52187         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52188         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52189         * lib/argp.h (__attribute__): Likewise.
52190         * lib/c-stack.c (__attribute__): Likewise.
52191         * lib/error.h (__attribute__): Likewise.
52192         * lib/fts.c (__attribute__): Likewise.
52193         * lib/openat.h (__attribute__): Likewise.
52194         * lib/stdio.in.h (__attribute__): Likewise.
52195         * lib/string.in.h (__attribute__): Likewise.
52196         * lib/utimens.c (__attribute__): Likewise.
52197         * lib/vasnprintf.h (__attribute__): Likewise.
52198         * lib/xalloc.h (__attribute__): Likewise.
52199         * lib/xprintf.h (__attribute__): Likewise.
52200         * lib/xstrtol.h (__attribute__): Likewise.
52201         * lib/xvasprintf.h (__attribute__): Likewise.
52202
52203 2008-01-12  Bruno Haible  <bruno@clisp.org>
52204
52205         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52206         * doc/glibc-headers/a.out.texi: New file.
52207         * doc/glibc-headers/aliases.texi: New file.
52208         * doc/glibc-headers/alloca.texi: New file.
52209         * doc/glibc-headers/ar.texi: New file.
52210         * doc/glibc-headers/argp.texi: New file.
52211         * doc/glibc-headers/argz.texi: New file.
52212         * doc/glibc-headers/byteswap.texi: New file.
52213         * doc/glibc-headers/crypt.texi: New file.
52214         * doc/glibc-headers/endian.texi: New file.
52215         * doc/glibc-headers/envz.texi: New file.
52216         * doc/glibc-headers/err.texi: New file.
52217         * doc/glibc-headers/error.texi: New file.
52218         * doc/glibc-headers/execinfo.texi: New file.
52219         * doc/glibc-headers/fpu_control.texi: New file.
52220         * doc/glibc-headers/fstab.texi: New file.
52221         * doc/glibc-headers/fts.texi: New file.
52222         * doc/glibc-headers/getopt.texi: New file.
52223         * doc/glibc-headers/ieee754.texi: New file.
52224         * doc/glibc-headers/ifaddrs.texi: New file.
52225         * doc/glibc-headers/libintl.texi: New file.
52226         * doc/glibc-headers/mcheck.texi: New file.
52227         * doc/glibc-headers/mntent.texi: New file.
52228         * doc/glibc-headers/obstack.texi: New file.
52229         * doc/glibc-headers/paths.texi: New file.
52230         * doc/glibc-headers/printf.texi: New file.
52231         * doc/glibc-headers/pty.texi: New file.
52232         * doc/glibc-headers/resolv.texi: New file.
52233         * doc/glibc-headers/shadow.texi: New file.
52234         * doc/glibc-headers/sysexits.texi: New file.
52235         * doc/glibc-headers/ttyent.texi: New file.
52236
52237 2008-01-12  Jim Meyering  <meyering@redhat.com>
52238
52239         announce-gen: emit Gnulib's git-based version string.
52240         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52241         New option --gnulib-version=V, where V is expected to be
52242         the output of running git describe in the gnulib directory.
52243         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52244         not useful, and plan to stop publishing an xdelta file with each
52245         coreutils release.
52246
52247         * build-aux/announce-gen: Also check for lzma-compressed files.
52248
52249 2008-01-11  Bruno Haible  <bruno@clisp.org>
52250
52251         * tests/test-memmem.c (main): Increase maximum allowed time.
52252         * tests/test-strstr.c (main): Likewise.
52253
52254 2008-01-11  Bruno Haible  <bruno@clisp.org>
52255
52256         * doc/functions/memmem.texi: Add more precisions about platforms.
52257         * doc/functions/strstr.texi: Likewise.
52258
52259 2008-01-10  Eric Blake  <ebb9@byu.net>
52260
52261         * m4/strstr.m4: Delete cruft from copy-n-paste.
52262         Reported by Bruno Haible.
52263
52264 2008-01-10  Bruno Haible  <bruno@clisp.org>
52265
52266         Make c-strstr rely on strstr.
52267         * lib/c-strstr.c: Don't include str-kmp.h.
52268         (c_strstr): Define in terms of strstr.
52269         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52270         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52271
52272 2008-01-10  Bruno Haible  <bruno@clisp.org>
52273
52274         * doc/gnulib.texi (String Functions in C Locale): New section.
52275         * doc/c-ctype.texi: New file.
52276         * doc/c-strcase.texi: New file.
52277         * doc/c-strcaseeq.texi: New file.
52278         * doc/c-strcasestr.texi: New file.
52279         * doc/c-strstr.texi: New file.
52280         * doc/c-strtod.texi: New file.
52281         * doc/c-strtold.texi: New file.
52282
52283 2008-01-10  Eric Blake  <ebb9@byu.net>
52284
52285         * lib/relocatable.h: Fix a comment.
52286
52287 2008-01-10  Eric Blake  <ebb9@byu.net>
52288
52289         Share two-way algorithm.
52290         * lib/str-two-way.h: New file, merged from...
52291         * lib/memmem.c: ...here...
52292         * lib/strstr.c: ...and here.
52293         * modules/memmem (Files): Use it.
52294         * modules/strstr (Files): Likewise.
52295
52296         Avoid quadratic strstr implementations.
52297         * lib/strstr.c: New file.
52298         * m4/strstr.m4: Likewise.
52299         * modules/strstr: Likewise.
52300         * modules/strstr-tests: Likewise.
52301         * tests/test-strstr.c: Likewise.
52302         * lib/string.in.h (rpl_strstr): Declare.
52303         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52305         * modules/string (Makefile.am): Likewise.
52306         * MODULES.html.sh (string handling): Mention new module.
52307         * doc/functions/strstr.texi (strstr): Document the bug.
52308
52309 2008-01-10  Bruno Haible  <bruno@clisp.org>
52310
52311         * lib/relocatable.h (relocate): State whether result is freshly
52312         allocated or not.
52313         * lib/relocatable.c (relocate): Return a freshly allocated string
52314         instead of a pointer to a privately held string.
52315         Reported by Sylvain Beucler <beuc@gnu.org>.
52316
52317 2008-01-10  Colin Watson  <cjwatson@debian.org>
52318
52319         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52320         s/S_ISNLK/S_ISLNK/.
52321
52322 2008-01-09  Bruno Haible  <bruno@clisp.org>
52323
52324         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52325         and other files.
52326         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52327         if it's only a guess.
52328         * modules/memmem: Simplify by depending on memmem-simple.
52329
52330 2008-01-09  Bruno Haible  <bruno@clisp.org>
52331
52332         Work around OpenBSD 4.0 tdelete() bug.
52333         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52334         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52335         macros and don't redefine the enum values.
52336         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52337         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52338         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52339
52340 2008-01-09  Bruno Haible  <bruno@clisp.org>
52341
52342         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52343         (main): Don't perform the tests if setlocale did not install a UTF-8
52344         locale. Needed on OpenBSD 4.0.
52345         * modules/wcwidth-tests (Depends-on): Add localcharset.
52346
52347 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52348
52349         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52350         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52351         * NEWS: announce this.
52352         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52353
52354 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52355         and Eric Blake  <ebb9@byu.net>
52356
52357         Add memmem-simple module.
52358         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52359         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52360         * modules/memmem-simple: New file.
52361         * modules/memmem (Description): Tweak.
52362         * MODULES.html.sh (string handling): Mention new module.
52363         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52364         addressed by memmem-simple.
52365         * NEWS: Document the difference.
52366
52367 2008-01-09  Eric Blake  <ebb9@byu.net>
52368
52369         Give gcc some memmem optimization hints.
52370         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52371         (strcasestr): Declare as pure.
52372         * modules/memmem (Maintainer): Claim my implementation.
52373
52374 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52375
52376         Support AIX 6.1 and higher.
52377         * build-aux/config.libpath: Likewise.
52378         * build-aux/config.rpath: Likewise.
52379
52380 2008-01-08  Jim Meyering  <meyering@redhat.com>
52381             Bruno Haible  <bruno@clisp.org>
52382
52383         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52384         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52385         Reported by Peter Fales in
52386         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52387
52388 2008-01-08  Bruno Haible  <bruno@clisp.org>
52389
52390         * modules/unictype/category-of (Depends-on): Add
52391         unictype/category-none.
52392         * modules/unictype/category-and-tests (Depends-on): Add
52393         unictype/category-{L,N,Lu,Nd}.
52394         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52395         * modules/unictype/category-or-tests (Depends-on): Add
52396         unictype/category-{L,N}.
52397         * modules/unictype/category-name-tests (Depends-on): Add
52398         unictype/category-{Z,Nl}.
52399         Reported by Simon Josefsson.
52400
52401 2008-01-08  Bruno Haible  <bruno@clisp.org>
52402
52403         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52404         convention better.
52405         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52406         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52407         Reported by Peter Miller <millerp@canb.auug.org.au>.
52408
52409 2008-01-08  Eric Blake  <ebb9@byu.net>
52410
52411         Rewrite memmem to guarantee linear complexity without malloc.
52412         * lib/memmem.c (memmem): Use Two-Way rather than
52413         Knuth-Morris-Pratt, to allow O(1) space usage.
52414         (critical_factorization, two_way_short_needle)
52415         (two_way_long_needle): New functions.
52416         (knuth_morris_pratt): Delete.
52417         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52418         Add stdint.
52419         * tests/test-memmem.c (main): Add tests for periodic needle and
52420         sublinear performance.
52421         * doc/functions/memmem.texi (memmem): Document other deficiencies
52422         in cygwin and older glibc.
52423
52424 2008-01-08  Bruno Haible  <bruno@clisp.org>
52425
52426         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52427         augmentation.
52428
52429 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52430
52431         Add a configure time option: --disable-acl.
52432         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52433         AC_ARG_ENABLE(acl).
52434
52435 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52436
52437         * tests/test-localename.c: Don't include obsolete "setenv.h".
52438
52439         * modules/localename-tests (Depends-on): Need unsetenv.
52440
52441 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52442
52443         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52444
52445 2008-01-06  Colin Watson  <cjwatson@debian.org>
52446
52447         * users.txt: Add man-db.
52448
52449 2008-01-07  Bruno Haible  <bruno@clisp.org>
52450
52451         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52452         previous section name.
52453
52454 2008-01-07  Bruno Haible  <bruno@clisp.org>
52455
52456         * lib/progname.c (set_program_name): Don't strip off a leading
52457         "lt-" prefix outside a .libs directory.
52458         Suggested by Paul Eggert.
52459
52460 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52461             Bruno Haible  <bruno@clisp.org>
52462
52463         Improve memory cleanup in 'relocatable' module.
52464         * lib/relocatable.h (compute_curr_prefix): Change return type to
52465         'char *'.
52466         * lib/relocatable.c (compute_curr_prefix): Change return type to
52467         'char *'. Free curr_installdir after use.
52468         (relocate): Free curr_prefix_better after use.
52469         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52470
52471 2008-01-01  Bruno Haible  <bruno@clisp.org>
52472
52473         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52474         failure on older glibc systems.
52475         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52476
52477 2008-01-05  Eric Blake  <ebb9@byu.net>
52478
52479         Avoid quadratic system memmem.
52480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52481         Reported by Ralf Wildenhues.
52482
52483         Fix memmem test for mingw.
52484         * modules/memmem-tests (configure.ac): Check for alarm.
52485         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52486         it.
52487         * doc/functions/memmem.texi: New file.
52488         * doc/gnulib.texi (Function Substitutes): Add memmem.
52489         Reported by Bruno Haible.
52490
52491 2008-01-04  Bruno Haible  <bruno@clisp.org>
52492
52493         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52494         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52495         gl_HEADER_STRING_H_DEFAULTS.
52496
52497 2008-01-04  Eric Blake  <ebb9@byu.net>
52498
52499         Shorten duration of memmem test.
52500         * tests/test-memmem.c (main): Use alarm to declare failure if test
52501         is taking too long.
52502         Reported by Ralf Wildenhues.
52503
52504 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52505
52506         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52507         string, needed by strerror.
52508
52509 2008-01-03  Colin Watson  <cjwatson@debian.org>
52510             Bruno Haible  <bruno@clisp.org>
52511
52512         * doc/gnulib-tool.texi (Localization): New section.
52513
52514 2008-01-02  Bruno Haible  <bruno@clisp.org>
52515
52516         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52517         variables to 'unsigned char *' type.
52518         Reported by Paul Eggert.
52519
52520 2008-01-02  Jim Meyering  <jim@meyering.net>
52521
52522         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52523
52524 2007-12-31  Jim Meyering  <jim@meyering.net>
52525
52526         Avoid use of private FTS type name.
52527         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52528
52529 2007-12-30  Karl Berry  <karl@gnu.org>
52530
52531         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52532         work around defect in Texinfo and/or the standalone Info browser.
52533
52534 2007-12-30  Bruno Haible  <bruno@clisp.org>
52535
52536         Unify 5 copies of the KMP code.
52537         * lib/str-kmp.h: New file.
52538         * lib/c-strcasestr.c: Include str-kmp.h.
52539         (knuth_morris_pratt): Remove function.
52540         (c_strcasestr): Update.
52541         * lib/c-strstr.c: Include str-kmp.h.
52542         (knuth_morris_pratt): Remove function.
52543         (c_strcasestr): Update.
52544         * lib/mbscasestr.c: Include str-kmp.h.
52545         (knuth_morris_pratt_unibyte): Remove function.
52546         * lib/mbsstr.c: Include str-kmp.h.
52547         (knuth_morris_pratt_unibyte): Remove function.
52548         * lib/strcasestr.c: Include str-kmp.h.
52549         (knuth_morris_pratt): Remove function.
52550         (strcasestr): Update.
52551         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52552         * modules/c-strstr (Files): Likewise.
52553         * modules/mbscasestr (Files): Likewise.
52554         * modules/mbsstr (Files): Likewise.
52555         * modules/strcasestr (Files): Likewise.
52556         Suggested by Paul Eggert.
52557
52558 2007-12-30  Bruno Haible  <bruno@clisp.org>
52559
52560         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52561         defined.
52562
52563 2007-12-30  Bruno Haible  <bruno@clisp.org>
52564
52565         * lib/xmalloca.h: Include xalloc.h.
52566         (xnmalloca): New macro.
52567
52568 2007-12-30  Bruno Haible  <bruno@clisp.org>
52569
52570         * lib/malloca.h (nmalloca): New macro.
52571         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52572         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52573         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52574         knuth_morris_pratt_multibyte): Likewise.
52575         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52576         knuth_morris_pratt_multibyte): Likewise.
52577         * lib/memmem.c (knuth_morris_pratt): Likewise.
52578         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52579
52580 2007-12-25  Bruno Haible  <bruno@clisp.org>
52581
52582         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52583         * lib/glob.c: Don't include openat.h.
52584         (link_exists2_p): Add back the code that deals with the
52585         !GLOB_ALTDIRFUNC case.
52586         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52587         let it do the filename concatenation.
52588         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52589         * modules/glob (Depends-on): Remove openat.
52590
52591 2007-12-31  Bruno Haible  <bruno@clisp.org>
52592
52593         * modules/dirfd (License): Change to LGPLv2+.
52594         Approved by Jim Meyering.
52595
52596 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52597
52598         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52599         when multiplying M by sizeof (size_t).
52600
52601 2007-12-10  Martin Lambers  <marlam@marlam.de>
52602
52603         Override getpagesize on mingw.
52604         * lib/getpagesize.c: New file.
52605         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52606         * modules/getpagesize (Files): Add lib/getpagesize.c.
52607         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52609         REPLACE_GETPAGESIZE.
52610         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52611
52612 2007-12-25  Bruno Haible  <bruno@clisp.org>
52613
52614         * modules/localcharset (Notice): New field.
52615         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52616         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52617
52618 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52619             Bruno Haible  <bruno@clisp.org>
52620
52621         Avoid using the syntax symbol() in formatted documentation.
52622         * MODULES.html.sh (func_module): When replacing symbol() with a
52623         hyperlink, remove the parentheses. Show an error if some remain.
52624         Recognize and render the '...' syntax.
52625         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52626         Rework. Add paragraph about GCC's inlining.
52627         * doc/alloca.texi: Likewise.
52628         * doc/error.texi: Remove parentheses from symbol reference.
52629         * doc/gnulib-intro.texi: Likewise.
52630         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52631         * modules/fnmatch (Description): Reword to say "the ... function".
52632         * modules/full-read (Description): Likewise.
52633         * modules/full-write (Description): Likewise.
52634         * modules/safe-read (Description): Likewise.
52635         * modules/safe-write (Description): Likewise.
52636         * modules/strchrnul (Description): Likewise.
52637         * modules/trim (Description): Likewise.
52638         * modules/error (Description): Remove parentheses from symbol
52639         references.
52640         * modules/verror (Description): Likewise.
52641         Reported by Karl Berry.
52642
52643 2007-12-25  Bruno Haible  <bruno@clisp.org>
52644
52645         Fixup after 2007-10-16 commit.
52646         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52647
52648 2007-12-24  Bruno Haible  <bruno@clisp.org>
52649
52650         Make --enable-relocatable work with DESTDIR.
52651         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52652         to compute installdir from destprog.
52653         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52654         also set the RELOC_DESTDIR variable.
52655         Reported by Левашев Иван <octagram@bluebottle.com>.
52656
52657 2007-12-24  Bruno Haible  <bruno@clisp.org>
52658
52659         Fix link error due to xalloc_die().
52660         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52661         of xreadlink.
52662         * lib/relocwrapper.c: Update comments.
52663         * build-aux/install-reloc: Remove xreadlink.c from file list.
52664         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52665         xreadlink.c.
52666         Reported by Левашев Иван <octagram@bluebottle.com>.
52667
52668 2007-12-24  Bruno Haible  <bruno@clisp.org>
52669
52670         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52671         * lib/setenv.h: Remove file.
52672         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52673         lib/setenv.h.
52674         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52675         (Depends-on): Add stdlib.
52676         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52677         gl_FUNC_UNSETENV.
52678         (Include): Replace setenv.h with <stdlib.h>.
52679         * modules/unsetenv: New file.
52680         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52681         * lib/unsetenv.c: Include <stdlib.h> first.
52682         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52683         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52684         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52685         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52686         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52687         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52689         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52690         * doc/functions/unsetenv.texi: Update.
52691         * modules/xsetenv (Depends-on): Add unsetenv.
52692         * modules/getdate (Depends-on): Likewise.
52693         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52694         * lib/xsetenv.c: Don't include setenv.h.
52695         * lib/getdate.y: Likewise.
52696         * lib/relocwrapper.c: Likewise.
52697         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52698         (Depends-on): Add stdlib.
52699         * NEWS: Mention the changes.
52700         Reported by Левашев Иван <octagram@bluebottle.com>.
52701
52702 2007-12-23  Bruno Haible  <bruno@clisp.org>
52703
52704         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52705         indentation.
52706
52707 2007-12-23  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/c-strcasestr.c: Add more comments.
52710         * lib/c-strstr.c: Likewise.
52711         * lib/mbscasestr.c: Likewise.
52712         * lib/mbsstr.c: Likewise.
52713         * lib/strcasestr.c: Likewise.
52714         * lib/memmem.c: Likewise.
52715
52716 2007-12-23  Bruno Haible  <bruno@clisp.org>
52717
52718         * tests/test-memmem.c: Include <string.h> first.
52719
52720 2007-12-22  Bruno Haible  <bruno@clisp.org>
52721
52722         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52723         the contents of $testsbase.
52724         Reported by Ralf Wildenhues.
52725
52726 2007-12-22  Bruno Haible  <bruno@clisp.org>
52727
52728         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52729         two variables local_ldadd_before, local_ldadd_last.
52730
52731 2007-12-20  Eric Blake  <ebb9@byu.net>
52732
52733         Work around circular library issue when cross-compiling.
52734         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52735         that progname.o does not need to pull in rpl_memcmp.
52736
52737 2007-12-19  Eric Blake  <ebb9@byu.net>
52738
52739         Fix memmem to avoid O(n^2) worst-case complexity.
52740         * lib/memmem.c (knuth_morris_pratt): New function.
52741         (memmem): Use it if first few naive iterations fail.
52742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52743         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52744         * modules/memchr (License): Likewise.
52745         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52746         malloca.
52747         * tests/test-memmem.c: Rewrite, borrowing ideas from
52748         test-mbsstr1.c; the old version wouldn't even compile!
52749         * modules/memmem-tests: New file.
52750         * lib/string.in.h (rpl_memmem): Add declaration.
52751         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52753         REPLACE_MEMMEM.
52754
52755 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52758         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52759         before any system include files, and undef after them all.  This
52760         should fix a problem on VMS reported by John E. Malmberg in
52761         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52762
52763 2007-12-17  Eric Blake  <ebb9@byu.net>
52764
52765         Revert addition of verify, for BSD/OS.
52766         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52767         can't handle large files, for the sake of obsolete platforms.
52768         * modules/fseeko (Depends-on): Remove verify.
52769         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52770         * doc/functions/ftello.texi (ftello): Likewise.
52771         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52772         Reported by Larry Jones.
52773
52774 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52775
52776         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52777         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52778
52779 2007-12-17  Jim Meyering  <meyering@redhat.com>
52780
52781         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52782         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52783         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52784         * modules/getcwd (Depends-on): Add openat.
52785         Reported by Petr Salinger.
52786
52787 2007-12-17  Bruno Haible  <bruno@clisp.org>
52788
52789         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52790         avoid a segmentation fault of the configure test on x86_64 systems.
52791
52792 2007-12-15  Jim Meyering  <meyering@redhat.com>
52793
52794         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52795
52796 2007-12-13  Eric Blake  <ebb9@byu.net>
52797
52798         Another fseek test.
52799         * tests/test-fseek.c (main): Also test ungetc handling.
52800         * tests/test-fseeko.c (main): Likewise.
52801         * modules/fseeko (Depends-on): Add verify.
52802         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52803         large.
52804         Reported by Larry Jones.
52805
52806         Fix fseeko on mingw.
52807         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52808         seek.
52809
52810         Beef up fseek tests.
52811         * tests/test-fseek.c (main): Also test eof handling.
52812         * tests/test-fseeko.c (main): Likewise.
52813         Reported by Larry Jones.
52814
52815 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52816
52817         Fix fseeko on BSD-based platforms.
52818         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52819         successful seek.
52820
52821 2007-12-12  Eric Blake  <ebb9@byu.net>
52822
52823         Allow circular dependency of separate libtests.a
52824         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52825         when use_libtests.
52826
52827 2007-12-11  Eric Blake  <ebb9@byu.net>
52828
52829         Fix bug with -0.0L in previous patch.
52830         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52831         * tests/test-isnan.c (main): Also test on zeroes.
52832         * tests/test-isnanf.c (main): Likewise.
52833         * tests/test-isnanl.h (main): Likewise.
52834
52835         Detect pseudo-denormals on x86 even when cross-compiling.
52836         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52837         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52838         invalid bit patterns that happen to satisfy ==.
52839
52840         Avoid link failures with separate libtests.a.
52841         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52842         last, to satisfy circular dependencies.
52843
52844 2007-12-11  Eric Blake  <ebb9@byu.net>
52845         and Bruno Haible  <bruno@clisp.org>
52846
52847         Fix OpenBSD 4.0 <float.h> handling of long double.
52848         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52849         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52850         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52851
52852 2007-12-11  Jim Meyering  <meyering@redhat.com>
52853
52854         * users.txt: Add libvirt.
52855
52856         Support versions of autoconf prior to 2.59c.
52857         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52858         if it is not already defined.
52859
52860 2007-12-09  Bruno Haible  <bruno@clisp.org>
52861
52862         Let 'gnulib-tool --import' collect sources needed for the tests in
52863         tests/ rather than in lib/.
52864         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52865         argument. If true, add rules to generate libtests.a, and put libtests.a
52866         into $(LDADD). Consider source files in subdirectories and set
52867         uses_subdirs.
52868         (func_emit_initmacro_start, func_emit_initmacro_end,
52869         func_emit_initmacro_done): Pass all arguments explicitly.
52870         (func_import): Determine two module lists main_modules,
52871         testsrelated_modules. Determine use_libtests. Determine two variables
52872         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52873         instead of just sed_transform_lib_file. Determine two variables
52874         main_files and testsrelated_files. Compute 'files' as the union of
52875         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52876         func_add_or_update. In the generated gnulib-comp.m4, collect the
52877         object files for tests/ in different variables than those for lib/.
52878         Substitute LIBTESTS_LIBDEPS.
52879         (func_create_testdir): Combine the uses_subdirs results from
52880         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52881
52882 2007-12-09  Bruno Haible  <bruno@clisp.org>
52883
52884         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52885         the build-aux directory.
52886
52887 2007-12-09  Bruno Haible  <bruno@clisp.org>
52888
52889         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52890         introduced on 2006-09-09.
52891
52892 2007-12-07  Jim Meyering  <meyering@redhat.com>
52893
52894         Let these macros work also with autoconf-2.59.
52895         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52896         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52897         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52898
52899 2007-12-06  Jim Meyering  <meyering@redhat.com>
52900
52901         Avoid a configure-time syntax error in gl_FUNC_ACL.
52902         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52903         function in each branch, before testing the cache variable.
52904
52905 2007-12-04  Eric Blake  <ebb9@byu.net>
52906
52907         Make scripts executable.
52908         * build-aux/config.guess: Add execute permissions.
52909         * build-aux/config.sub: Likewise.
52910         * build-aux/gendocs.sh: Likewise.
52911
52912         Fix frexp on mingw.
52913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52914         cross-compiling.
52915         * doc/functions/frexp.texi (frexp): Document the bug.
52916
52917         Make cygwin fseeko check more reliable.
52918         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52919         version numbers, rather than unrelated feature check.
52920         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52921         * doc/functions/ftello.texi (ftello): Likewise.
52922         Reported by Bruno Haible.
52923
52924         * m4/strerror.m4: Bump version number.
52925
52926 2007-12-03  Bruno Haible  <bruno@clisp.org>
52927
52928         * doc/functions/mprotect.texi: Mention the mingw problem.
52929
52930 2007-12-03  Eric Blake  <ebb9@byu.net>
52931
52932         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52933         REPLACE_STRERROR is initialized before this macro.
52934
52935 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52936
52937         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52938         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52939         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52940         put -lsec in even for programs other than 'ls'.  This fixes a problem
52941         for gettext reported by Bruno Haible in
52942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52943         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52944         Add support for Solaris 10.  This isn't efficient, but should get the
52945         job done for now.
52946
52947 2007-12-03  James Youngman  <jay@gnu.org>
52948
52949         * doc/regexprops-generic.texi: change "an close-group" to "a
52950         close-group" and "illegal" to "not allowed".
52951
52952 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52953
52954         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52955         pr_byname.h. Needed for the rare case when the maintainer has done
52956         "make maintainer-clean" in the source directory and then attempts a
52957         build outside the source directory.
52958         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52959         scripts_byname.h.
52960
52961 2007-12-02  Martin Lambers <marlam@marlam.de>
52962             Bruno Haible  <bruno@clisp.org>
52963
52964         * lib/getpagesize.h: Remove file.
52965         * lib/unistd.in.h: Include declaration of getpagesize here.
52966         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52967         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52968         HAVE_SYS_PARAM_H.
52969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52970         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52971         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52972         (Depends-on): Add unistd.
52973         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52974         (Include): Use <unistd.h> instead of getpagesize.h.
52975         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52976         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52977         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52978         gl_GETPAGESIZE invocation, already handled by module dependency.
52979         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52980
52981 2007-12-02  Bruno Haible  <bruno@clisp.org>
52982
52983         * modules/strings-tests: New file.
52984         * tests/test-strings.c: New file.
52985
52986         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52987         * lib/strings.in.h: New file.
52988         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52989         * m4/strings_h.m4: New file.
52990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52991         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52992         * modules/strings: New file.
52993         * modules/string (Makefile.am): Update.
52994         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52995         Reported by Karl Berry.
52996
52997 2007-12-01  Eric Blake  <ebb9@byu.net>
52998
52999         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53000         accomodate fix in cygwin 1.5.25.
53001
53002 2007-12-01  Jim Meyering  <meyering@redhat.com>
53003
53004         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53005         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53006         that would inhibit utf8-optimization of a regexp containing line-
53007         or buffer-anchors, e.g., `^', `$'.
53008
53009 2007-11-30  Bruno Haible  <bruno@clisp.org>
53010
53011         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53012         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53013         glthread_recursive_lock_init.
53014         * lib/lock.c (glthread_recursive_lock_init)
53015         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53016         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53017
53018 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         New function qset_acl, like set_acl but with syscall semantics.
53021         * lib/acl.h (qset_acl): New decl.
53022         * lib/acl.c (qset_acl): New function.
53023         (set_acl): Use new function.  Use more-consistent diagnostics.
53024
53025 2007-11-28  Jim Meyering  <meyering@redhat.com>
53026
53027         * modules/physmem (License): Change from GPL to LGPLv2+.
53028
53029 2007-11-26  Bruno Haible  <bruno@clisp.org>
53030
53031         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53032         'long double' type has excess precision.
53033         Reported by Jim Meyering in
53034         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53035
53036 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53037
53038         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53039         Sync from <http://gnu.org/licenses>.
53040         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53041         with license text from same location.
53042         * doc/maintain.texi, doc/standards.texi:  Sync from
53043         <http://savannah.gnu.org/projects/gnustandards>.
53044
53045 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53046         and Jim Meyering  <meyering@redhat.com>
53047
53048         Adjust getdate' grammar to accept a slightly more regular language.
53049         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53050         Before, the former was rejected.
53051         * lib/getdate.y (digits_to_date_time): New function, factored
53052         out of ...
53053         (number): ...here.  Just call digits_to_date_time.
53054         (hybrid): New non-terminal to handle an <unsigned number,
53055         signed relative offset> sequence consistently.
53056
53057 2007-11-18  Jim Meyering  <meyering@redhat.com>
53058
53059         Pull my changes from coreutils:
53060         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53061         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53062         use of $gnulib_tool_option_extras, so that it's separated from the
53063         preceding argument.
53064
53065         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53066         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53067         parent destination directories before copying a file into place.
53068
53069 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53070
53071         bootstrap: work also with 4-argument variant of AC_INIT
53072         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53073
53074 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53075
53076         Port test-getaddrinfo to Solaris.
53077         Problem reported by Bruno Haible in
53078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53079         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53080         explanation of setting 'hints'.
53081         Don't reject an implementation merely because it returns EAI_SERVICE.
53082         (EAI_SERVICE): Define to 0 if not defined.
53083
53084 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53085
53086         The license of gnu-make and posix-shell is now "GPLed build tool".
53087         * modules/gnu-make (License): Likewise.
53088         * modules/posix-shell (License): Likewise.
53089
53090         New module posix-shell, for determining a POSIX shell
53091         or perhaps something that is close enough to a POSIX shell.
53092         * m4/posix-shell.m4: New file.
53093         * modules/posix-shell: New file.
53094
53095         * MODULES.html.sh: Mention new module.
53096
53097         New module gnu-make, for determining whether we're using GNU Make.
53098         * m4/gnu-make.m4: New file.
53099         * modules/gnu-make: New file.
53100         * MODULES.html.sh: Mention new module.
53101
53102 2007-11-14  Jim Meyering  <meyering@redhat.com>
53103
53104         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53105         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53106         use this macro to create a function _definition_.
53107         Remove useless "#undef ARGMATCH_DIE".
53108
53109 2007-11-14  Bruno Haible  <bruno@clisp.org>
53110
53111         * lib/config.charset: Update for OpenBSD 4.1.
53112         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53113
53114 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53115
53116         Document 64-bit #if problems in stdint.texi.
53117         * doc/headers/stdint.texi (stdint.h): Mention problems with
53118         64-bit-#if, and how to work around them.
53119
53120         Don't insist on 'long long int' support in the preprocessor.  It
53121         breaks too many things.  For example, PRIdMAX still uses a 'long
53122         long int' format with the latest Sun compiler, even though
53123         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53124         preprocessor problem.  This causes the latest coreutils to dump
53125         core on Solaris 10 sparc with the Sun C compiler.
53126         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53127         the troublesome expressions at configure-time, not at #if-time.
53128         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53129         preprocessor.
53130         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53131         compile-time C checks, done at 'configure'-time.
53132         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53133         * modules/inttypes (Makefile): Substitute the new symbols that
53134         gl_INTTYPES_H now generates.
53135         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53136
53137 2007-11-12  Bruno Haible  <bruno@clisp.org>
53138
53139         Tests for Unicode character classification functions.
53140
53141         * modules/unictype/bidicategory-byname-tests: New file.
53142         * modules/unictype/bidicategory-name-tests: New file.
53143         * modules/unictype/bidicategory-of-tests: New file.
53144         * modules/unictype/bidicategory-test-tests: New file.
53145         * modules/unictype/block-list-tests: New file.
53146         * modules/unictype/block-of-tests: New file.
53147         * modules/unictype/block-test-tests: New file.
53148         * modules/unictype/category-C-tests: New file.
53149         * modules/unictype/category-Cc-tests: New file.
53150         * modules/unictype/category-Cf-tests: New file.
53151         * modules/unictype/category-Cn-tests: New file.
53152         * modules/unictype/category-Co-tests: New file.
53153         * modules/unictype/category-Cs-tests: New file.
53154         * modules/unictype/category-L-tests: New file.
53155         * modules/unictype/category-Ll-tests: New file.
53156         * modules/unictype/category-Lm-tests: New file.
53157         * modules/unictype/category-Lo-tests: New file.
53158         * modules/unictype/category-Lt-tests: New file.
53159         * modules/unictype/category-Lu-tests: New file.
53160         * modules/unictype/category-M-tests: New file.
53161         * modules/unictype/category-Mc-tests: New file.
53162         * modules/unictype/category-Me-tests: New file.
53163         * modules/unictype/category-Mn-tests: New file.
53164         * modules/unictype/category-N-tests: New file.
53165         * modules/unictype/category-Nd-tests: New file.
53166         * modules/unictype/category-Nl-tests: New file.
53167         * modules/unictype/category-No-tests: New file.
53168         * modules/unictype/category-P-tests: New file.
53169         * modules/unictype/category-Pc-tests: New file.
53170         * modules/unictype/category-Pd-tests: New file.
53171         * modules/unictype/category-Pe-tests: New file.
53172         * modules/unictype/category-Pf-tests: New file.
53173         * modules/unictype/category-Pi-tests: New file.
53174         * modules/unictype/category-Po-tests: New file.
53175         * modules/unictype/category-Ps-tests: New file.
53176         * modules/unictype/category-S-tests: New file.
53177         * modules/unictype/category-Sc-tests: New file.
53178         * modules/unictype/category-Sk-tests: New file.
53179         * modules/unictype/category-Sm-tests: New file.
53180         * modules/unictype/category-So-tests: New file.
53181         * modules/unictype/category-Z-tests: New file.
53182         * modules/unictype/category-Zl-tests: New file.
53183         * modules/unictype/category-Zp-tests: New file.
53184         * modules/unictype/category-Zs-tests: New file.
53185         * modules/unictype/category-and-not-tests: New file.
53186         * modules/unictype/category-and-tests: New file.
53187         * modules/unictype/category-byname-tests: New file.
53188         * modules/unictype/category-name-tests: New file.
53189         * modules/unictype/category-none-tests: New file.
53190         * modules/unictype/category-of-tests: New file.
53191         * modules/unictype/category-or-tests: New file.
53192         * modules/unictype/category-test-withtable-tests: New file.
53193         * modules/unictype/combining-class-tests: New file.
53194         * modules/unictype/ctype-alnum-tests: New file.
53195         * modules/unictype/ctype-alpha-tests: New file.
53196         * modules/unictype/ctype-blank-tests: New file.
53197         * modules/unictype/ctype-cntrl-tests: New file.
53198         * modules/unictype/ctype-digit-tests: New file.
53199         * modules/unictype/ctype-graph-tests: New file.
53200         * modules/unictype/ctype-lower-tests: New file.
53201         * modules/unictype/ctype-print-tests: New file.
53202         * modules/unictype/ctype-punct-tests: New file.
53203         * modules/unictype/ctype-space-tests: New file.
53204         * modules/unictype/ctype-upper-tests: New file.
53205         * modules/unictype/ctype-xdigit-tests: New file.
53206         * modules/unictype/decimal-digit-tests: New file.
53207         * modules/unictype/digit-tests: New file.
53208         * modules/unictype/mirror-tests: New file.
53209         * modules/unictype/numeric-tests: New file.
53210         * modules/unictype/property-alphabetic-tests: New file.
53211         * modules/unictype/property-ascii-hex-digit-tests: New file.
53212         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53213         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53214         * modules/unictype/property-bidi-block-separator-tests: New file.
53215         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53216         * modules/unictype/property-bidi-common-separator-tests: New file.
53217         * modules/unictype/property-bidi-control-tests: New file.
53218         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53219         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53220         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53221         * modules/unictype/property-bidi-european-digit-tests: New file.
53222         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53223         * modules/unictype/property-bidi-left-to-right-tests: New file.
53224         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53225         * modules/unictype/property-bidi-other-neutral-tests: New file.
53226         * modules/unictype/property-bidi-pdf-tests: New file.
53227         * modules/unictype/property-bidi-segment-separator-tests: New file.
53228         * modules/unictype/property-bidi-whitespace-tests: New file.
53229         * modules/unictype/property-byname-tests: New file.
53230         * modules/unictype/property-combining-tests: New file.
53231         * modules/unictype/property-composite-tests: New file.
53232         * modules/unictype/property-currency-symbol-tests: New file.
53233         * modules/unictype/property-dash-tests: New file.
53234         * modules/unictype/property-decimal-digit-tests: New file.
53235         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53236         * modules/unictype/property-deprecated-tests: New file.
53237         * modules/unictype/property-diacritic-tests: New file.
53238         * modules/unictype/property-extender-tests: New file.
53239         * modules/unictype/property-format-control-tests: New file.
53240         * modules/unictype/property-grapheme-base-tests: New file.
53241         * modules/unictype/property-grapheme-extend-tests: New file.
53242         * modules/unictype/property-grapheme-link-tests: New file.
53243         * modules/unictype/property-hex-digit-tests: New file.
53244         * modules/unictype/property-hyphen-tests: New file.
53245         * modules/unictype/property-id-continue-tests: New file.
53246         * modules/unictype/property-id-start-tests: New file.
53247         * modules/unictype/property-ideographic-tests: New file.
53248         * modules/unictype/property-ids-binary-operator-tests: New file.
53249         * modules/unictype/property-ids-trinary-operator-tests: New file.
53250         * modules/unictype/property-ignorable-control-tests: New file.
53251         * modules/unictype/property-iso-control-tests: New file.
53252         * modules/unictype/property-join-control-tests: New file.
53253         * modules/unictype/property-left-of-pair-tests: New file.
53254         * modules/unictype/property-line-separator-tests: New file.
53255         * modules/unictype/property-logical-order-exception-tests: New file.
53256         * modules/unictype/property-lowercase-tests: New file.
53257         * modules/unictype/property-math-tests: New file.
53258         * modules/unictype/property-non-break-tests: New file.
53259         * modules/unictype/property-not-a-character-tests: New file.
53260         * modules/unictype/property-numeric-tests: New file.
53261         * modules/unictype/property-other-alphabetic-tests: New file.
53262         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53263         * modules/unictype/property-other-grapheme-extend-tests: New file.
53264         * modules/unictype/property-other-id-continue-tests: New file.
53265         * modules/unictype/property-other-id-start-tests: New file.
53266         * modules/unictype/property-other-lowercase-tests: New file.
53267         * modules/unictype/property-other-math-tests: New file.
53268         * modules/unictype/property-other-uppercase-tests: New file.
53269         * modules/unictype/property-paired-punctuation-tests: New file.
53270         * modules/unictype/property-paragraph-separator-tests: New file.
53271         * modules/unictype/property-pattern-syntax-tests: New file.
53272         * modules/unictype/property-pattern-white-space-tests: New file.
53273         * modules/unictype/property-private-use-tests: New file.
53274         * modules/unictype/property-punctuation-tests: New file.
53275         * modules/unictype/property-quotation-mark-tests: New file.
53276         * modules/unictype/property-radical-tests: New file.
53277         * modules/unictype/property-sentence-terminal-tests: New file.
53278         * modules/unictype/property-soft-dotted-tests: New file.
53279         * modules/unictype/property-space-tests: New file.
53280         * modules/unictype/property-terminal-punctuation-tests: New file.
53281         * modules/unictype/property-test-tests: New file.
53282         * modules/unictype/property-titlecase-tests: New file.
53283         * modules/unictype/property-unassigned-code-value-tests: New file.
53284         * modules/unictype/property-unified-ideograph-tests: New file.
53285         * modules/unictype/property-uppercase-tests: New file.
53286         * modules/unictype/property-variation-selector-tests: New file.
53287         * modules/unictype/property-white-space-tests: New file.
53288         * modules/unictype/property-xid-continue-tests: New file.
53289         * modules/unictype/property-xid-start-tests: New file.
53290         * modules/unictype/property-zero-width-tests: New file.
53291         * modules/unictype/scripts-tests: New file.
53292         * modules/unictype/syntax-c-ident-tests: New file.
53293         * modules/unictype/syntax-c-whitespace-tests: New file.
53294         * modules/unictype/syntax-java-ident-tests: New file.
53295         * modules/unictype/syntax-java-whitespace-tests: New file.
53296         * tests/unictype/test-bidi_byname.c: New file.
53297         * tests/unictype/test-bidi_name.c: New file.
53298         * tests/unictype/test-bidi_of.c: New file.
53299         * tests/unictype/test-bidi_test.c: New file.
53300         * tests/unictype/test-block_list.c: New file.
53301         * tests/unictype/test-block_of.c: New file.
53302         * tests/unictype/test-block_test.c: New file.
53303         * tests/unictype/test-categ_and.c: New file.
53304         * tests/unictype/test-categ_and_not.c: New file.
53305         * tests/unictype/test-categ_byname.c: New file.
53306         * tests/unictype/test-categ_name.c: New file.
53307         * tests/unictype/test-categ_none.c: New file.
53308         * tests/unictype/test-categ_of.c: New file.
53309         * tests/unictype/test-categ_or.c: New file.
53310         * tests/unictype/test-categ_test_withtable.c: New file.
53311         * tests/unictype/test-combining.c: New file.
53312         * tests/unictype/test-decdigit.c: New file.
53313         * tests/unictype/test-digit.c: New file.
53314         * tests/unictype/test-mirror.c: New file.
53315         * tests/unictype/test-numeric.c: New file.
53316         * tests/unictype/test-pr_byname.c: New file.
53317         * tests/unictype/test-pr_test.c: New file.
53318         * tests/unictype/test-predicate-part1.h: New file.
53319         * tests/unictype/test-predicate-part2.h: New file.
53320         * tests/unictype/test-scripts.c: New file.
53321         * tests/unictype/test-sy_c_ident.c: New file.
53322         * tests/unictype/test-sy_java_ident.c: New file.
53323
53324         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53325         for Unicode 5.0.0.
53326         * tests/unictype/test-categ_Cc.c: Likewise.
53327         * tests/unictype/test-categ_Cf.c: Likewise.
53328         * tests/unictype/test-categ_Cn.c: Likewise.
53329         * tests/unictype/test-categ_Co.c: Likewise.
53330         * tests/unictype/test-categ_Cs.c: Likewise.
53331         * tests/unictype/test-categ_L.c: Likewise.
53332         * tests/unictype/test-categ_Ll.c: Likewise.
53333         * tests/unictype/test-categ_Lm.c: Likewise.
53334         * tests/unictype/test-categ_Lo.c: Likewise.
53335         * tests/unictype/test-categ_Lt.c: Likewise.
53336         * tests/unictype/test-categ_Lu.c: Likewise.
53337         * tests/unictype/test-categ_M.c: Likewise.
53338         * tests/unictype/test-categ_Mc.c: Likewise.
53339         * tests/unictype/test-categ_Me.c: Likewise.
53340         * tests/unictype/test-categ_Mn.c: Likewise.
53341         * tests/unictype/test-categ_N.c: Likewise.
53342         * tests/unictype/test-categ_Nd.c: Likewise.
53343         * tests/unictype/test-categ_Nl.c: Likewise.
53344         * tests/unictype/test-categ_No.c: Likewise.
53345         * tests/unictype/test-categ_P.c: Likewise.
53346         * tests/unictype/test-categ_Pc.c: Likewise.
53347         * tests/unictype/test-categ_Pd.c: Likewise.
53348         * tests/unictype/test-categ_Pe.c: Likewise.
53349         * tests/unictype/test-categ_Pf.c: Likewise.
53350         * tests/unictype/test-categ_Pi.c: Likewise.
53351         * tests/unictype/test-categ_Po.c: Likewise.
53352         * tests/unictype/test-categ_Ps.c: Likewise.
53353         * tests/unictype/test-categ_S.c: Likewise.
53354         * tests/unictype/test-categ_Sc.c: Likewise.
53355         * tests/unictype/test-categ_Sk.c: Likewise.
53356         * tests/unictype/test-categ_Sm.c: Likewise.
53357         * tests/unictype/test-categ_So.c: Likewise.
53358         * tests/unictype/test-categ_Z.c: Likewise.
53359         * tests/unictype/test-categ_Zl.c: Likewise.
53360         * tests/unictype/test-categ_Zp.c: Likewise.
53361         * tests/unictype/test-categ_Zs.c: Likewise.
53362         * tests/unictype/test-ctype_alnum.c: Likewise.
53363         * tests/unictype/test-ctype_alpha.c: Likewise.
53364         * tests/unictype/test-ctype_blank.c: Likewise.
53365         * tests/unictype/test-ctype_cntrl.c: Likewise.
53366         * tests/unictype/test-ctype_digit.c: Likewise.
53367         * tests/unictype/test-ctype_graph.c: Likewise.
53368         * tests/unictype/test-ctype_lower.c: Likewise.
53369         * tests/unictype/test-ctype_print.c: Likewise.
53370         * tests/unictype/test-ctype_punct.c: Likewise.
53371         * tests/unictype/test-ctype_space.c: Likewise.
53372         * tests/unictype/test-ctype_upper.c: Likewise.
53373         * tests/unictype/test-ctype_xdigit.c: Likewise.
53374         * tests/unictype/test-decdigit.h: Likewise.
53375         * tests/unictype/test-digit.h: Likewise.
53376         * tests/unictype/test-numeric.h: Likewise.
53377         * tests/unictype/test-pr_alphabetic.c: Likewise.
53378         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53379         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53380         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53381         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53382         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53383         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53384         * tests/unictype/test-pr_bidi_control.c: Likewise.
53385         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53386         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53387         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53388         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53389         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53390         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53391         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53392         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53393         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53394         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53395         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53396         * tests/unictype/test-pr_combining.c: Likewise.
53397         * tests/unictype/test-pr_composite.c: Likewise.
53398         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53399         * tests/unictype/test-pr_dash.c: Likewise.
53400         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53401         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53402         * tests/unictype/test-pr_deprecated.c: Likewise.
53403         * tests/unictype/test-pr_diacritic.c: Likewise.
53404         * tests/unictype/test-pr_extender.c: Likewise.
53405         * tests/unictype/test-pr_format_control.c: Likewise.
53406         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53407         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53408         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53409         * tests/unictype/test-pr_hex_digit.c: Likewise.
53410         * tests/unictype/test-pr_hyphen.c: Likewise.
53411         * tests/unictype/test-pr_id_continue.c: Likewise.
53412         * tests/unictype/test-pr_id_start.c: Likewise.
53413         * tests/unictype/test-pr_ideographic.c: Likewise.
53414         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53415         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53416         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53417         * tests/unictype/test-pr_iso_control.c: Likewise.
53418         * tests/unictype/test-pr_join_control.c: Likewise.
53419         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53420         * tests/unictype/test-pr_line_separator.c: Likewise.
53421         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53422         * tests/unictype/test-pr_lowercase.c: Likewise.
53423         * tests/unictype/test-pr_math.c: Likewise.
53424         * tests/unictype/test-pr_non_break.c: Likewise.
53425         * tests/unictype/test-pr_not_a_character.c: Likewise.
53426         * tests/unictype/test-pr_numeric.c: Likewise.
53427         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53428         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53429         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53430         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53431         * tests/unictype/test-pr_other_id_start.c: Likewise.
53432         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53433         * tests/unictype/test-pr_other_math.c: Likewise.
53434         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53435         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53436         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53437         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53438         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53439         * tests/unictype/test-pr_private_use.c: Likewise.
53440         * tests/unictype/test-pr_punctuation.c: Likewise.
53441         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53442         * tests/unictype/test-pr_radical.c: Likewise.
53443         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53444         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53445         * tests/unictype/test-pr_space.c: Likewise.
53446         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53447         * tests/unictype/test-pr_titlecase.c: Likewise.
53448         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53449         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53450         * tests/unictype/test-pr_uppercase.c: Likewise.
53451         * tests/unictype/test-pr_variation_selector.c: Likewise.
53452         * tests/unictype/test-pr_white_space.c: Likewise.
53453         * tests/unictype/test-pr_xid_continue.c: Likewise.
53454         * tests/unictype/test-pr_xid_start.c: Likewise.
53455         * tests/unictype/test-pr_zero_width.c: Likewise.
53456         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53457         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53458
53459 2007-11-12  Bruno Haible  <bruno@clisp.org>
53460
53461         Unicode character classification functions.
53462         * lib/unictype.h: New file.
53463         * modules/unictype/base: New file.
53464         * modules/unictype/category-L: New file.
53465         * modules/unictype/category-Lu: New file.
53466         * modules/unictype/category-Ll: New file.
53467         * modules/unictype/category-Lt: New file.
53468         * modules/unictype/category-Lm: New file.
53469         * modules/unictype/category-Lo: New file.
53470         * modules/unictype/category-M: New file.
53471         * modules/unictype/category-Mn: New file.
53472         * modules/unictype/category-Mc: New file.
53473         * modules/unictype/category-Me: New file.
53474         * modules/unictype/category-N: New file.
53475         * modules/unictype/category-Nd: New file.
53476         * modules/unictype/category-Nl: New file.
53477         * modules/unictype/category-No: New file.
53478         * modules/unictype/category-P: New file.
53479         * modules/unictype/category-Pc: New file.
53480         * modules/unictype/category-Pd: New file.
53481         * modules/unictype/category-Ps: New file.
53482         * modules/unictype/category-Pe: New file.
53483         * modules/unictype/category-Pi: New file.
53484         * modules/unictype/category-Pf: New file.
53485         * modules/unictype/category-Po: New file.
53486         * modules/unictype/category-S: New file.
53487         * modules/unictype/category-Sm: New file.
53488         * modules/unictype/category-Sc: New file.
53489         * modules/unictype/category-Sk: New file.
53490         * modules/unictype/category-So: New file.
53491         * modules/unictype/category-Z: New file.
53492         * modules/unictype/category-Zs: New file.
53493         * modules/unictype/category-Zl: New file.
53494         * modules/unictype/category-Zp: New file.
53495         * modules/unictype/category-C: New file.
53496         * modules/unictype/category-Cc: New file.
53497         * modules/unictype/category-Cf: New file.
53498         * modules/unictype/category-Cs: New file.
53499         * modules/unictype/category-Co: New file.
53500         * modules/unictype/category-Cn: New file.
53501         * modules/unictype/category-or: New file.
53502         * modules/unictype/category-of: New file.
53503         * modules/unictype/category-test: New file.
53504         * modules/unictype/category-test-withtable: New file.
53505         * modules/unictype/category-byname: New file.
53506         * modules/unictype/category-none: New file.
53507         * modules/unictype/category-and: New file.
53508         * modules/unictype/category-and-not: New file.
53509         * modules/unictype/category-name: New file.
53510         * modules/unictype/combining-class: New file.
53511         * modules/unictype/category-all: New file.
53512         * modules/unictype/bidicategory-all: New file.
53513         * modules/unictype/bidicategory-byname: New file.
53514         * modules/unictype/bidicategory-name: New file.
53515         * modules/unictype/bidicategory-of: New file.
53516         * modules/unictype/bidicategory-test: New file.
53517         * modules/unictype/decimal-digit: New file.
53518         * modules/unictype/digit: New file.
53519         * modules/unictype/numeric: New file.
53520         * modules/unictype/mirror: New file.
53521         * modules/unictype/property-white-space: New file.
53522         * modules/unictype/property-alphabetic: New file.
53523         * modules/unictype/property-other-alphabetic: New file.
53524         * modules/unictype/property-not-a-character: New file.
53525         * modules/unictype/property-default-ignorable-code-point: New file.
53526         * modules/unictype/property-other-default-ignorable-code-point: New
53527         file.
53528         * modules/unictype/property-deprecated: New file.
53529         * modules/unictype/property-logical-order-exception: New file.
53530         * modules/unictype/property-variation-selector: New file.
53531         * modules/unictype/property-private-use: New file.
53532         * modules/unictype/property-unassigned-code-value: New file.
53533         * modules/unictype/property-uppercase: New file.
53534         * modules/unictype/property-other-uppercase: New file.
53535         * modules/unictype/property-lowercase: New file.
53536         * modules/unictype/property-other-lowercase: New file.
53537         * modules/unictype/property-titlecase: New file.
53538         * modules/unictype/property-soft-dotted: New file.
53539         * modules/unictype/property-id-start: New file.
53540         * modules/unictype/property-other-id-start: New file.
53541         * modules/unictype/property-id-continue: New file.
53542         * modules/unictype/property-other-id-continue: New file.
53543         * modules/unictype/property-xid-start: New file.
53544         * modules/unictype/property-xid-continue: New file.
53545         * modules/unictype/property-pattern-white-space: New file.
53546         * modules/unictype/property-pattern-syntax: New file.
53547         * modules/unictype/property-join-control: New file.
53548         * modules/unictype/property-grapheme-base: New file.
53549         * modules/unictype/property-grapheme-extend: New file.
53550         * modules/unictype/property-other-grapheme-extend: New file.
53551         * modules/unictype/property-grapheme-link: New file.
53552         * modules/unictype/property-bidi-control: New file.
53553         * modules/unictype/property-bidi-left-to-right: New file.
53554         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53555         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53556         * modules/unictype/property-bidi-european-digit: New file.
53557         * modules/unictype/property-bidi-eur-num-separator: New file.
53558         * modules/unictype/property-bidi-eur-num-terminator: New file.
53559         * modules/unictype/property-bidi-arabic-digit: New file.
53560         * modules/unictype/property-bidi-common-separator: New file.
53561         * modules/unictype/property-bidi-block-separator: New file.
53562         * modules/unictype/property-bidi-segment-separator: New file.
53563         * modules/unictype/property-bidi-whitespace: New file.
53564         * modules/unictype/property-bidi-non-spacing-mark: New file.
53565         * modules/unictype/property-bidi-boundary-neutral: New file.
53566         * modules/unictype/property-bidi-pdf: New file.
53567         * modules/unictype/property-bidi-embedding-or-override: New file.
53568         * modules/unictype/property-bidi-other-neutral: New file.
53569         * modules/unictype/property-hex-digit: New file.
53570         * modules/unictype/property-ascii-hex-digit: New file.
53571         * modules/unictype/property-ideographic: New file.
53572         * modules/unictype/property-unified-ideograph: New file.
53573         * modules/unictype/property-radical: New file.
53574         * modules/unictype/property-ids-binary-operator: New file.
53575         * modules/unictype/property-ids-trinary-operator: New file.
53576         * modules/unictype/property-zero-width: New file.
53577         * modules/unictype/property-space: New file.
53578         * modules/unictype/property-non-break: New file.
53579         * modules/unictype/property-iso-control: New file.
53580         * modules/unictype/property-format-control: New file.
53581         * modules/unictype/property-dash: New file.
53582         * modules/unictype/property-hyphen: New file.
53583         * modules/unictype/property-punctuation: New file.
53584         * modules/unictype/property-line-separator: New file.
53585         * modules/unictype/property-paragraph-separator: New file.
53586         * modules/unictype/property-quotation-mark: New file.
53587         * modules/unictype/property-sentence-terminal: New file.
53588         * modules/unictype/property-terminal-punctuation: New file.
53589         * modules/unictype/property-currency-symbol: New file.
53590         * modules/unictype/property-math: New file.
53591         * modules/unictype/property-other-math: New file.
53592         * modules/unictype/property-paired-punctuation: New file.
53593         * modules/unictype/property-left-of-pair: New file.
53594         * modules/unictype/property-combining: New file.
53595         * modules/unictype/property-composite: New file.
53596         * modules/unictype/property-decimal-digit: New file.
53597         * modules/unictype/property-numeric: New file.
53598         * modules/unictype/property-diacritic: New file.
53599         * modules/unictype/property-extender: New file.
53600         * modules/unictype/property-ignorable-control: New file.
53601         * modules/unictype/property-test: New file.
53602         * modules/unictype/property-byname: New file.
53603         * modules/unictype/property-all: New file.
53604         * modules/unictype/scripts: New file.
53605         * modules/unictype/scripts-all: New file.
53606         * modules/unictype/block-of: New file.
53607         * modules/unictype/block-test: New file.
53608         * modules/unictype/block-list: New file.
53609         * modules/unictype/block-all: New file.
53610         * modules/unictype/syntax-c-whitespace: New file.
53611         * modules/unictype/syntax-java-whitespace: New file.
53612         * modules/unictype/syntax-c-ident: New file.
53613         * modules/unictype/syntax-java-ident: New file.
53614         * modules/unictype/ctype-alnum: New file.
53615         * modules/unictype/ctype-alpha: New file.
53616         * modules/unictype/ctype-cntrl: New file.
53617         * modules/unictype/ctype-digit: New file.
53618         * modules/unictype/ctype-graph: New file.
53619         * modules/unictype/ctype-lower: New file.
53620         * modules/unictype/ctype-print: New file.
53621         * modules/unictype/ctype-punct: New file.
53622         * modules/unictype/ctype-space: New file.
53623         * modules/unictype/ctype-upper: New file.
53624         * modules/unictype/ctype-xdigit: New file.
53625         * modules/unictype/ctype-blank: New file.
53626         * lib/unictype/bidi_byname.c: New file.
53627         * lib/unictype/bidi_name.c: New file.
53628         * lib/unictype/bidi_of.c: New file.
53629         * lib/unictype/bidi_test.c: New file.
53630         * lib/unictype/bitmap.h: New file.
53631         * lib/unictype/block_test.c: New file.
53632         * lib/unictype/blocks.c: New file.
53633         * lib/unictype/categ_C.c: New file.
53634         * lib/unictype/categ_Cc.c: New file.
53635         * lib/unictype/categ_Cf.c: New file.
53636         * lib/unictype/categ_Cn.c: New file.
53637         * lib/unictype/categ_Co.c: New file.
53638         * lib/unictype/categ_Cs.c: New file.
53639         * lib/unictype/categ_L.c: New file.
53640         * lib/unictype/categ_Ll.c: New file.
53641         * lib/unictype/categ_Lm.c: New file.
53642         * lib/unictype/categ_Lo.c: New file.
53643         * lib/unictype/categ_Lt.c: New file.
53644         * lib/unictype/categ_Lu.c: New file.
53645         * lib/unictype/categ_M.c: New file.
53646         * lib/unictype/categ_Mc.c: New file.
53647         * lib/unictype/categ_Me.c: New file.
53648         * lib/unictype/categ_Mn.c: New file.
53649         * lib/unictype/categ_N.c: New file.
53650         * lib/unictype/categ_Nd.c: New file.
53651         * lib/unictype/categ_Nl.c: New file.
53652         * lib/unictype/categ_No.c: New file.
53653         * lib/unictype/categ_P.c: New file.
53654         * lib/unictype/categ_Pc.c: New file.
53655         * lib/unictype/categ_Pd.c: New file.
53656         * lib/unictype/categ_Pe.c: New file.
53657         * lib/unictype/categ_Pf.c: New file.
53658         * lib/unictype/categ_Pi.c: New file.
53659         * lib/unictype/categ_Po.c: New file.
53660         * lib/unictype/categ_Ps.c: New file.
53661         * lib/unictype/categ_S.c: New file.
53662         * lib/unictype/categ_Sc.c: New file.
53663         * lib/unictype/categ_Sk.c: New file.
53664         * lib/unictype/categ_Sm.c: New file.
53665         * lib/unictype/categ_So.c: New file.
53666         * lib/unictype/categ_Z.c: New file.
53667         * lib/unictype/categ_Zl.c: New file.
53668         * lib/unictype/categ_Zp.c: New file.
53669         * lib/unictype/categ_Zs.c: New file.
53670         * lib/unictype/categ_and.c: New file.
53671         * lib/unictype/categ_and_not.c: New file.
53672         * lib/unictype/categ_byname.c: New file.
53673         * lib/unictype/categ_name.c: New file.
53674         * lib/unictype/categ_none.c: New file.
53675         * lib/unictype/categ_of.c: New file.
53676         * lib/unictype/categ_or.c: New file.
53677         * lib/unictype/categ_test.c: New file.
53678         * lib/unictype/combining.c: New file.
53679         * lib/unictype/ctype_alnum.c: New file.
53680         * lib/unictype/ctype_alpha.c: New file.
53681         * lib/unictype/ctype_blank.c: New file.
53682         * lib/unictype/ctype_cntrl.c: New file.
53683         * lib/unictype/ctype_digit.c: New file.
53684         * lib/unictype/ctype_graph.c: New file.
53685         * lib/unictype/ctype_lower.c: New file.
53686         * lib/unictype/ctype_print.c: New file.
53687         * lib/unictype/ctype_punct.c: New file.
53688         * lib/unictype/ctype_space.c: New file.
53689         * lib/unictype/ctype_upper.c: New file.
53690         * lib/unictype/ctype_xdigit.c: New file.
53691         * lib/unictype/decdigit.c: New file.
53692         * lib/unictype/digit.c: New file.
53693         * lib/unictype/identsyntaxmap.h: New file.
53694         * lib/unictype/mirror.c: New file.
53695         * lib/unictype/numeric.c: New file.
53696         * lib/unictype/pr_alphabetic.c: New file.
53697         * lib/unictype/pr_ascii_hex_digit.c: New file.
53698         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53699         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53700         * lib/unictype/pr_bidi_block_separator.c: New file.
53701         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53702         * lib/unictype/pr_bidi_common_separator.c: New file.
53703         * lib/unictype/pr_bidi_control.c: New file.
53704         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53705         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53706         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53707         * lib/unictype/pr_bidi_european_digit.c: New file.
53708         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53709         * lib/unictype/pr_bidi_left_to_right.c: New file.
53710         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53711         * lib/unictype/pr_bidi_other_neutral.c: New file.
53712         * lib/unictype/pr_bidi_pdf.c: New file.
53713         * lib/unictype/pr_bidi_segment_separator.c: New file.
53714         * lib/unictype/pr_bidi_whitespace.c: New file.
53715         * lib/unictype/pr_byname.c: New file.
53716         * lib/unictype/pr_byname.gperf: New file.
53717         * lib/unictype/pr_combining.c: New file.
53718         * lib/unictype/pr_composite.c: New file.
53719         * lib/unictype/pr_currency_symbol.c: New file.
53720         * lib/unictype/pr_dash.c: New file.
53721         * lib/unictype/pr_decimal_digit.c: New file.
53722         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53723         * lib/unictype/pr_deprecated.c: New file.
53724         * lib/unictype/pr_diacritic.c: New file.
53725         * lib/unictype/pr_extender.c: New file.
53726         * lib/unictype/pr_format_control.c: New file.
53727         * lib/unictype/pr_grapheme_base.c: New file.
53728         * lib/unictype/pr_grapheme_extend.c: New file.
53729         * lib/unictype/pr_grapheme_link.c: New file.
53730         * lib/unictype/pr_hex_digit.c: New file.
53731         * lib/unictype/pr_hyphen.c: New file.
53732         * lib/unictype/pr_id_continue.c: New file.
53733         * lib/unictype/pr_id_start.c: New file.
53734         * lib/unictype/pr_ideographic.c: New file.
53735         * lib/unictype/pr_ids_binary_operator.c: New file.
53736         * lib/unictype/pr_ids_trinary_operator.c: New file.
53737         * lib/unictype/pr_ignorable_control.c: New file.
53738         * lib/unictype/pr_iso_control.c: New file.
53739         * lib/unictype/pr_join_control.c: New file.
53740         * lib/unictype/pr_left_of_pair.c: New file.
53741         * lib/unictype/pr_line_separator.c: New file.
53742         * lib/unictype/pr_logical_order_exception.c: New file.
53743         * lib/unictype/pr_lowercase.c: New file.
53744         * lib/unictype/pr_math.c: New file.
53745         * lib/unictype/pr_non_break.c: New file.
53746         * lib/unictype/pr_not_a_character.c: New file.
53747         * lib/unictype/pr_numeric.c: New file.
53748         * lib/unictype/pr_other_alphabetic.c: New file.
53749         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53750         * lib/unictype/pr_other_grapheme_extend.c: New file.
53751         * lib/unictype/pr_other_id_continue.c: New file.
53752         * lib/unictype/pr_other_id_start.c: New file.
53753         * lib/unictype/pr_other_lowercase.c: New file.
53754         * lib/unictype/pr_other_math.c: New file.
53755         * lib/unictype/pr_other_uppercase.c: New file.
53756         * lib/unictype/pr_paired_punctuation.c: New file.
53757         * lib/unictype/pr_paragraph_separator.c: New file.
53758         * lib/unictype/pr_pattern_syntax.c: New file.
53759         * lib/unictype/pr_pattern_white_space.c: New file.
53760         * lib/unictype/pr_private_use.c: New file.
53761         * lib/unictype/pr_punctuation.c: New file.
53762         * lib/unictype/pr_quotation_mark.c: New file.
53763         * lib/unictype/pr_radical.c: New file.
53764         * lib/unictype/pr_sentence_terminal.c: New file.
53765         * lib/unictype/pr_soft_dotted.c: New file.
53766         * lib/unictype/pr_space.c: New file.
53767         * lib/unictype/pr_terminal_punctuation.c: New file.
53768         * lib/unictype/pr_test.c: New file.
53769         * lib/unictype/pr_titlecase.c: New file.
53770         * lib/unictype/pr_unassigned_code_value.c: New file.
53771         * lib/unictype/pr_unified_ideograph.c: New file.
53772         * lib/unictype/pr_uppercase.c: New file.
53773         * lib/unictype/pr_variation_selector.c: New file.
53774         * lib/unictype/pr_white_space.c: New file.
53775         * lib/unictype/pr_xid_continue.c: New file.
53776         * lib/unictype/pr_xid_start.c: New file.
53777         * lib/unictype/pr_zero_width.c: New file.
53778         * lib/unictype/scripts.c: New file.
53779         * lib/unictype/sy_c_ident.c: New file.
53780         * lib/unictype/sy_c_whitespace.c: New file.
53781         * lib/unictype/sy_java_ident.c: New file.
53782         * lib/unictype/sy_java_whitespace.c: New file.
53783
53784         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53785         Unicode 5.0.0.
53786         * lib/unictype/blocks.h: Likewise.
53787         * lib/unictype/categ_C.h: Likewise.
53788         * lib/unictype/categ_Cc.h: Likewise.
53789         * lib/unictype/categ_Cf.h: Likewise.
53790         * lib/unictype/categ_Cn.h: Likewise.
53791         * lib/unictype/categ_Co.h: Likewise.
53792         * lib/unictype/categ_Cs.h: Likewise.
53793         * lib/unictype/categ_L.h: Likewise.
53794         * lib/unictype/categ_Ll.h: Likewise.
53795         * lib/unictype/categ_Lm.h: Likewise.
53796         * lib/unictype/categ_Lo.h: Likewise.
53797         * lib/unictype/categ_Lt.h: Likewise.
53798         * lib/unictype/categ_Lu.h: Likewise.
53799         * lib/unictype/categ_M.h: Likewise.
53800         * lib/unictype/categ_Mc.h: Likewise.
53801         * lib/unictype/categ_Me.h: Likewise.
53802         * lib/unictype/categ_Mn.h: Likewise.
53803         * lib/unictype/categ_N.h: Likewise.
53804         * lib/unictype/categ_Nd.h: Likewise.
53805         * lib/unictype/categ_Nl.h: Likewise.
53806         * lib/unictype/categ_No.h: Likewise.
53807         * lib/unictype/categ_P.h: Likewise.
53808         * lib/unictype/categ_Pc.h: Likewise.
53809         * lib/unictype/categ_Pd.h: Likewise.
53810         * lib/unictype/categ_Pe.h: Likewise.
53811         * lib/unictype/categ_Pf.h: Likewise.
53812         * lib/unictype/categ_Pi.h: Likewise.
53813         * lib/unictype/categ_Po.h: Likewise.
53814         * lib/unictype/categ_Ps.h: Likewise.
53815         * lib/unictype/categ_S.h: Likewise.
53816         * lib/unictype/categ_Sc.h: Likewise.
53817         * lib/unictype/categ_Sk.h: Likewise.
53818         * lib/unictype/categ_Sm.h: Likewise.
53819         * lib/unictype/categ_So.h: Likewise.
53820         * lib/unictype/categ_Z.h: Likewise.
53821         * lib/unictype/categ_Zl.h: Likewise.
53822         * lib/unictype/categ_Zp.h: Likewise.
53823         * lib/unictype/categ_Zs.h: Likewise.
53824         * lib/unictype/categ_of.h: Likewise.
53825         * lib/unictype/combining.h: Likewise.
53826         * lib/unictype/ctype_alnum.h: Likewise.
53827         * lib/unictype/ctype_alpha.h: Likewise.
53828         * lib/unictype/ctype_blank.h: Likewise.
53829         * lib/unictype/ctype_cntrl.h: Likewise.
53830         * lib/unictype/ctype_digit.h: Likewise.
53831         * lib/unictype/ctype_graph.h: Likewise.
53832         * lib/unictype/ctype_lower.h: Likewise.
53833         * lib/unictype/ctype_print.h: Likewise.
53834         * lib/unictype/ctype_punct.h: Likewise.
53835         * lib/unictype/ctype_space.h: Likewise.
53836         * lib/unictype/ctype_upper.h: Likewise.
53837         * lib/unictype/ctype_xdigit.h: Likewise.
53838         * lib/unictype/decdigit.h: Likewise.
53839         * lib/unictype/digit.h: Likewise.
53840         * lib/unictype/mirror.h: Likewise.
53841         * lib/unictype/numeric.h: Likewise.
53842         * lib/unictype/pr_alphabetic.h: Likewise.
53843         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53844         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53845         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53846         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53847         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53848         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53849         * lib/unictype/pr_bidi_control.h: Likewise.
53850         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53851         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53852         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53853         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53854         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53855         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53856         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53857         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53858         * lib/unictype/pr_bidi_pdf.h: Likewise.
53859         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53860         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53861         * lib/unictype/pr_combining.h: Likewise.
53862         * lib/unictype/pr_composite.h: Likewise.
53863         * lib/unictype/pr_currency_symbol.h: Likewise.
53864         * lib/unictype/pr_dash.h: Likewise.
53865         * lib/unictype/pr_decimal_digit.h: Likewise.
53866         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53867         * lib/unictype/pr_deprecated.h: Likewise.
53868         * lib/unictype/pr_diacritic.h: Likewise.
53869         * lib/unictype/pr_extender.h: Likewise.
53870         * lib/unictype/pr_format_control.h: Likewise.
53871         * lib/unictype/pr_grapheme_base.h: Likewise.
53872         * lib/unictype/pr_grapheme_extend.h: Likewise.
53873         * lib/unictype/pr_grapheme_link.h: Likewise.
53874         * lib/unictype/pr_hex_digit.h: Likewise.
53875         * lib/unictype/pr_hyphen.h: Likewise.
53876         * lib/unictype/pr_id_continue.h: Likewise.
53877         * lib/unictype/pr_id_start.h: Likewise.
53878         * lib/unictype/pr_ideographic.h: Likewise.
53879         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53880         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53881         * lib/unictype/pr_ignorable_control.h: Likewise.
53882         * lib/unictype/pr_iso_control.h: Likewise.
53883         * lib/unictype/pr_join_control.h: Likewise.
53884         * lib/unictype/pr_left_of_pair.h: Likewise.
53885         * lib/unictype/pr_line_separator.h: Likewise.
53886         * lib/unictype/pr_logical_order_exception.h: Likewise.
53887         * lib/unictype/pr_lowercase.h: Likewise.
53888         * lib/unictype/pr_math.h: Likewise.
53889         * lib/unictype/pr_non_break.h: Likewise.
53890         * lib/unictype/pr_not_a_character.h: Likewise.
53891         * lib/unictype/pr_numeric.h: Likewise.
53892         * lib/unictype/pr_other_alphabetic.h: Likewise.
53893         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53894         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53895         * lib/unictype/pr_other_id_continue.h: Likewise.
53896         * lib/unictype/pr_other_id_start.h: Likewise.
53897         * lib/unictype/pr_other_lowercase.h: Likewise.
53898         * lib/unictype/pr_other_math.h: Likewise.
53899         * lib/unictype/pr_other_uppercase.h: Likewise.
53900         * lib/unictype/pr_paired_punctuation.h: Likewise.
53901         * lib/unictype/pr_paragraph_separator.h: Likewise.
53902         * lib/unictype/pr_pattern_syntax.h: Likewise.
53903         * lib/unictype/pr_pattern_white_space.h: Likewise.
53904         * lib/unictype/pr_private_use.h: Likewise.
53905         * lib/unictype/pr_punctuation.h: Likewise.
53906         * lib/unictype/pr_quotation_mark.h: Likewise.
53907         * lib/unictype/pr_radical.h: Likewise.
53908         * lib/unictype/pr_sentence_terminal.h: Likewise.
53909         * lib/unictype/pr_soft_dotted.h: Likewise.
53910         * lib/unictype/pr_space.h: Likewise.
53911         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53912         * lib/unictype/pr_titlecase.h: Likewise.
53913         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53914         * lib/unictype/pr_unified_ideograph.h: Likewise.
53915         * lib/unictype/pr_uppercase.h: Likewise.
53916         * lib/unictype/pr_variation_selector.h: Likewise.
53917         * lib/unictype/pr_white_space.h: Likewise.
53918         * lib/unictype/pr_xid_continue.h: Likewise.
53919         * lib/unictype/pr_xid_start.h: Likewise.
53920         * lib/unictype/pr_zero_width.h: Likewise.
53921         * lib/unictype/scripts.h: Likewise.
53922         * lib/unictype/scripts_byname.gperf: Likewise.
53923         * lib/unictype/sy_c_ident.h: Likewise.
53924         * lib/unictype/sy_c_whitespace.h: Likewise.
53925         * lib/unictype/sy_java_ident.h: Likewise.
53926         * lib/unictype/sy_java_whitespace.h: Likewise.
53927
53928         * lib/unictype/Makefile: New file.
53929         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53930         glibc.
53931         * lib/unictype/3level.h: New file, copied from glibc.
53932         * lib/unictype/3levelbit.h: New file.
53933
53934 2007-11-11  Bruno Haible  <bruno@clisp.org>
53935
53936         * modules/gperf: New file.
53937         * modules/iconv_open (Depends-on): Add it.
53938         (Makefile.am): Remove the GPERF definition.
53939
53940 2007-11-11  Bruno Haible  <bruno@clisp.org>
53941
53942         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53943         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53944
53945 2007-11-11  Bruno Haible  <bruno@clisp.org>
53946
53947         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53948         (usage): Remove function.
53949
53950 2007-11-11  Bruno Haible  <bruno@clisp.org>
53951
53952         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53953         gl_FUNC_CEILF_LIBS.
53954         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53955         gl_FUNC_CEIL_LIBS.
53956         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53957         gl_FUNC_CEILL_LIBS.
53958         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53959         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53960         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53961
53962 2007-11-11  Bruno Haible  <bruno@clisp.org>
53963
53964         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53965         roundf were declared but do not exist on functions.
53966         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53967         roundl were declared but do not exist on functions.
53968         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53969         HAVE_FLOORL_AND_CEILL, respectively.
53970         Needed for Sun C on Solaris 10.
53971
53972 2007-11-11  Bruno Haible  <bruno@clisp.org>
53973
53974         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53975         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53976         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53977         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53978         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53979         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53980         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53981         HAVE_DECL_ROUNDF.
53982         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53983         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53985         of HAVE_DECL_ROUND*.
53986         * modules/math (Makefile.am): Update.
53987
53988 2007-11-10  Bruno Haible  <bruno@clisp.org>
53989
53990         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53991         ptrdiff_t as m4/intl.m4.
53992
53993 2007-11-10  Jim Meyering  <meyering@redhat.com>
53994
53995         Avoid link failure for the argmatch test.
53996         * tests/test-argmatch.c (usage): Define function to avoid a link
53997         failure: argmatch_die requires a usage function.
53998
53999 2007-11-09  Bruno Haible  <bruno@clisp.org>
54000
54001         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54002         * doc/functions/vsnprintf.texi: Likewise.
54003         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54004         with a size argument < 2.
54005
54006 2007-11-09  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54009         buffer. Fixes an inefficiency introduced on 2007-11-03.
54010
54011 2007-11-09  Bruno Haible  <bruno@clisp.org>
54012
54013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54014         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54015
54016 2007-11-08  Jim Meyering  <meyering@redhat.com>
54017
54018         Change cache variable name prefix "jm_" to "gl_" everywhere.
54019         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54020         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54021         * m4/uptime.m4: s/gl_/jm_/
54022
54023 2007-11-07  Bruno Haible  <bruno@clisp.org>
54024
54025         Update to GNU gettext 0.17.
54026         * m4/intl.m4: Update to GNU gettext 0.17.
54027         * m4/po.m4: Likewise.
54028         * modules/gettext (Files): Remove m4/ulonglong.m4.
54029         (configure.ac): Require gettext infrastructure from version 0.17.
54030
54031 2007-11-06  Bruno Haible  <bruno@clisp.org>
54032
54033         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54034         symbolic values are not defined in a public header.
54035         * lib/freadable.c (freadable) [QNX]: Likewise.
54036         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54037         * lib/freading.c (freading) [QNX]: Likewise.
54038         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54039         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54040         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54041         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54042         Reported by Alain Magloire.
54043
54044         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54045
54046 2007-11-05  Bruno Haible  <bruno@clisp.org>
54047
54048         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54049         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54050         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54051         Reported by Eric Blake.
54052
54053 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54054             Bruno Haible  <bruno@clisp.org>
54055
54056         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54057         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54058         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54059         (malloc): Undefine also before including <stdlib.h>.
54060         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54061         Needed on OSF/1 4.0.
54062
54063 2007-11-05  Jim Meyering  <meyering@redhat.com>
54064
54065         git-version-gen: sync from coreutils.
54066         * build-aux/git-version-gen: Add comments.
54067         Change the first '-' to '.' in the snapshot version string,
54068         e.g., 6.9-377-08144 -> 6.9.377-08144
54069         Remove first parameter.
54070         Don't declare a version "-dirty" merely because a time
54071         stamp has changed.
54072
54073 2007-11-04  Bruno Haible  <bruno@clisp.org>
54074
54075         * lib/lock.h: Protect all macro definitions containing an 'if'
54076         statement through a "do { ... } while (0)".
54077         * lib/tls.h: Likewise.
54078
54079 2007-11-04  Bruno Haible  <bruno@clisp.org>
54080
54081         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54082
54083 2007-11-04  Bruno Haible  <bruno@clisp.org>
54084
54085         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54086         * modules/fprintf-posix (Depends-on): Add nocrash.
54087         * modules/snprintf-posix (Depends-on): Likewise.
54088         * modules/sprintf-posix (Depends-on): Likewise.
54089         * modules/vasnprintf-posix (Depends-on): Likewise.
54090         * modules/vasprintf-posix (Depends-on): Likewise.
54091         * modules/vfprintf-posix (Depends-on): Likewise.
54092         * modules/vsnprintf-posix (Depends-on): Likewise.
54093         * modules/vsprintf-posix (Depends-on): Likewise.
54094         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54095         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54096         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54097         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54098         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54099         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54100         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54101
54102 2007-11-04  Bruno Haible  <bruno@clisp.org>
54103
54104         * modules/nocrash: New file.
54105         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54106         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54107
54108 2007-11-04  Bruno Haible  <bruno@clisp.org>
54109
54110         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54111         precision handling.
54112         * tests/test-vasprintf-posix.c (test_function): Likewise.
54113         * tests/test-snprintf-posix.h (test_function): Likewise.
54114         * tests/test-sprintf-posix.h (test_function): Likewise.
54115
54116         Fix *printf behaviour for large precisions on mingw and BeOS.
54117         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54118         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54120         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54121         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54122         gl_PRINTF_PRECISION and test its result. Invoke
54123         gl_PREREQ_VASNPRINTF_PRECISION.
54124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54128         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54131         * doc/functions/fprintf.texi: Update.
54132         * doc/functions/printf.texi: Update.
54133         * doc/functions/snprintf.texi: Update.
54134         * doc/functions/sprintf.texi: Update.
54135         * doc/functions/vfprintf.texi: Update.
54136         * doc/functions/vprintf.texi: Update.
54137         * doc/functions/vsnprintf.texi: Update.
54138         * doc/functions/vsprintf.texi: Update.
54139
54140 2007-11-04  Bruno Haible  <bruno@clisp.org>
54141
54142         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54143
54144 2007-11-04  Bruno Haible  <bruno@clisp.org>
54145
54146         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54147         Reported by Sylvain Beucler <beuc@gnu.org>.
54148
54149 2007-11-03  Bruno Haible  <bruno@clisp.org>
54150
54151         * tests/test-fprintf-posix2.sh: New file.
54152         * tests/test-fprintf-posix2.c: New file.
54153         * modules/fprintf-posix-tests (Files): Add them.
54154         (TESTS): Add test-fprintf-posix2.sh.
54155         (configure.ac): Check for getrlimit and setrlimit.
54156         (check_PROGRAMS): Add test-fprintf-posix2.
54157
54158         * tests/test-printf-posix2.sh: New file.
54159         * tests/test-printf-posix2.c: New file.
54160         * modules/printf-posix-tests (Files): Add them.
54161         (TESTS): Add test-printf-posix2.sh.
54162         (configure.ac): Check for getrlimit and setrlimit.
54163         (check_PROGRAMS): Add test-printf-posix2.
54164
54165         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54166         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54167         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54168         (decode_double): New function, copied from decode_long_double.
54169         (scale10_round_decimal_decoded): New function, extracted from
54170         scale10_round_decimal_long_double.
54171         (scale10_round_decimal_long_double): Use it.
54172         (scale10_round_decimal_double): New function.
54173         (floorlog10): New function.
54174         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54176         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54177         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54178         gl_PRINTF_ENOMEM and test its result. Invoke
54179         gl_PREREQ_VASNPRINTF_ENOMEM.
54180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54187         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54188         * modules/snprintf-posix (Depends-on): Likewise.
54189         * modules/sprintf-posix (Depends-on): Likewise.
54190         * modules/vasnprintf-posix (Depends-on): Likewise.
54191         * modules/vasprintf-posix (Depends-on): Likewise.
54192         * modules/vfprintf-posix (Depends-on): Likewise.
54193         * modules/vsnprintf-posix (Depends-on): Likewise.
54194         * modules/vsprintf-posix (Depends-on): Likewise.
54195         * doc/functions/fprintf.texi: Update.
54196         * doc/functions/printf.texi: Update.
54197         * doc/functions/snprintf.texi: Update.
54198         * doc/functions/sprintf.texi: Update.
54199         * doc/functions/vfprintf.texi: Update.
54200         * doc/functions/vprintf.texi: Update.
54201         * doc/functions/vsnprintf.texi: Update.
54202         * doc/functions/vsprintf.texi: Update.
54203
54204 2007-11-03  Bruno Haible  <bruno@clisp.org>
54205
54206         * modules/frexp-nolibm-tests: New file.
54207
54208         * modules/frexp-nolibm: New file.
54209         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54210
54211 2007-11-03  Bruno Haible  <bruno@clisp.org>
54212
54213         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54214         value is C99 compliant.
54215         Needed for OSF/1 5.1.
54216
54217 2007-11-03  Bruno Haible  <bruno@clisp.org>
54218
54219         Fix out-of-memory handling of vasnprintf.
54220         * lib/printf-parse.c: Include <errno.h>.
54221         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54222         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54223         is already set.
54224
54225 2007-11-02  Eric Blake  <ebb9@byu.net>
54226
54227         Fix tests on cygwin.
54228         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54229
54230 2007-11-01  Bruno Haible  <bruno@clisp.org>
54231
54232         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54233         warning.
54234         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54235         needed for POSIX compatibility.
54236
54237 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54238
54239         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54240         for compatibility with GNU.
54241
54242 2007-11-01  Bruno Haible  <bruno@clisp.org>
54243
54244         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54245         (putenv): Renamed from rpl_putenv. Change argument type from
54246         'const char *' to 'char *'.
54247         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54248         of defining putenv in config.h, just set REPLACE_PUTENV.
54249         * modules/putenv (Depends-on): Add stdlib.
54250         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54251         (Include): Use <stdlib.h>.
54252         * lib/stdlib.in.h (putenv): New declaration.
54253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54254         REPLACE_PUTENV.
54255         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54256         REPLACE_PUTENV.
54257         Needed for MacOS X 10.5.0.
54258         Reported by Peter O'Gorman <peter@pogma.com>.
54259
54260 2007-11-01  Jim Meyering  <meyering@redhat.com>
54261
54262         Treat an empty date string exactly like "0".
54263         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54264         if the remaining date string (to be parsed) is empty, use "0".
54265         Reported by Mischa Molhoek and discussed in this thread:
54266         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54267
54268 2007-10-31  Bruno Haible  <bruno@clisp.org>
54269
54270         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54271         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54272         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54273         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54274         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54275         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54276
54277 2007-10-31  Bruno Haible  <bruno@clisp.org>
54278
54279         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54280         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54281         (AC_TYPE_LONG_LONG_INT): Use it.
54282         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54283         it as well.
54284         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54285         to m4/longlong.m4.
54286         * modules/stdint (Files): Remove m4/ulonglong.m4.
54287         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54288         m4/ulonglong.m4.
54289         * modules/strtoumax (Files): Likewise.
54290
54291 2007-10-30  Bruno Haible  <bruno@clisp.org>
54292
54293         * modules/xvasprintf-posix: New file.
54294         Suggested by Eric Blake.
54295
54296 2007-10-30  Bruno Haible  <bruno@clisp.org>
54297
54298         * modules/xprintf-posix-tests: New file.
54299         * tests/test-xprintf-posix.sh: New file.
54300         * tests/test-xprintf-posix.c: New file.
54301         * tests/test-xfprintf-posix.c: New file.
54302
54303         * modules/xprintf-posix: New file.
54304
54305 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54306
54307         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54308         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54309         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54310
54311 2007-10-29  Bruno Haible  <bruno@clisp.org>
54312
54313         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54314         contain the special marker '_cv_'.
54315         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54316         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54317         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54318         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54319         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54320         Reported by Ralf Wildenhues.
54321
54322 2007-10-29  Bruno Haible  <bruno@clisp.org>
54323
54324         * gnulib-tool (func_import): When --lgpl is not specified, set
54325         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54326         GPLv3.
54327         Reported by Simon Josefsson.
54328
54329 2007-10-28  Bruno Haible  <bruno@clisp.org>
54330
54331         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54332         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54333         HAVE_DECL_ISFINITE.
54334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54335         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54336         HAVE_DECL_ISFINITE.
54337
54338 2007-10-28  Bruno Haible  <bruno@clisp.org>
54339
54340         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54341         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54342
54343 2007-10-28  Bruno Haible  <bruno@clisp.org>
54344
54345         Fix link errors with Sun C 5.0 on Solaris 10.
54346         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54347         function is declared but not present in the compiler's libm.
54348         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54349         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54350         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54351         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54352         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54353         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54354         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54356         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54357         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54358         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54359         HAVE_DECL_FLOORL.
54360
54361 2007-10-28  Bruno Haible  <bruno@clisp.org>
54362
54363         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54364         gl_FUNC_FLOORL. Cache the result.
54365         (gl_FUNC_FLOORL): Use it.
54366         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54367         gl_FUNC_CEILL. Cache the result.
54368         (gl_FUNC_CEILL): Use it.
54369
54370         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54371         gl_FUNC_FLOOR. Cache the result.
54372         (gl_FUNC_FLOOR): Use it.
54373         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54374         gl_FUNC_CEIL. Cache the result.
54375         (gl_FUNC_CEIL): Use it.
54376
54377         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54378         gl_FUNC_FLOORF. Cache the result.
54379         (gl_FUNC_FLOORF): Use it.
54380         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54381         gl_FUNC_CEILF. Cache the result.
54382         (gl_FUNC_CEILF): Use it.
54383
54384 2007-10-28  Bruno Haible  <bruno@clisp.org>
54385
54386         * gnulib-tool: Allow specifying the LGPL version number through
54387         --lgpl=2 or --lgpl=3.
54388         (func_usage): Document --lgpl with argument.
54389         Handle --lgpl=... arguments.
54390         (func_import): Recognize also gl_LGPL calls with an argument. When
54391         --lgpl=2 is used and the module's license is just LGPL, report an
54392         error. Set sed_transform_lib_file according to the lgpl variable. In
54393         the generated files, use --lgpl or gl_LGPL invocations with argument,
54394         if necessary.
54395         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54396         an LGPv2+ license.
54397         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54398         gl_LGPL macro.
54399
54400 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54401             Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54404         (u16_uctomb_aux): Likewise.
54405         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54406         !HAVE_INLINE.
54407         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54408
54409 2007-10-28  Bruno Haible  <bruno@clisp.org>
54410
54411         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54412         Invoke AM_GETTEXT_OPTION if it exists.
54413         * modules/vasprintf: Likewise.
54414         * modules/verror: Likewise.
54415         * modules/xprintf: Likewise.
54416         * modules/xvasprintf: Likewise.
54417
54418 2007-10-27  Ben Pfaff  <blp@gnu.org>
54419
54420         * lib/math.in.h: Define isfinite macro and prototypes for
54421         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54422         implementations.
54423         * m4/math_h.m4: New substitutions for isfinite module.
54424         * lib/isfinite.c: New file.
54425         * m4/isfinite.m4: New file.
54426         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54427         * modules/isfinite: New file.
54428         * modules/isfinite-tests: New file.
54429         * tests/tests-isfinite.c: New file.
54430         * doc/functions/isfinite.texi: Mention isfinite module.
54431         * MODULES.html.sh: Mention new module.
54432
54433 2007-10-27  Ben Pfaff  <blp@gnu.org>
54434
54435         Ralf Wildenhues reported that Tru64 4.0D declares the round
54436         functions but does not have definitions.
54437         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54438         cannot be found in any library, set the output variable to
54439         "missing" instead of "".
54440         * m4/round.m4: Also use our substitute if we cannot find round in
54441         any library, even if it is declared.
54442         * m4/roundf.m4: Likewise for roundf.
54443         * m4/roundl.m4: Likewise for roundl.
54444         * lib/math.in.h: Undefine roundf, round, roundl before defining
54445         their replacements, to allow for hypothetical systems where these
54446         may be defined as macros but not available in libraries.
54447
54448 2007-10-27  Bruno Haible  <bruno@clisp.org>
54449
54450         * doc/gnulib.texi: Invoke @firstparagraphindent.
54451         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54452         changes in gnulib.
54453         (Source changes): New section.
54454
54455 2007-10-26  Bruno Haible  <bruno@clisp.org>
54456
54457         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54458         borrowed from autoconf.
54459
54460 2007-10-26  Bruno Haible  <bruno@clisp.org>
54461
54462         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54463         strerror returned the empty string. Needed on HP-UX 11.00.
54464
54465 2007-10-24  Micah Cowan  <micah@cowan.name>
54466
54467         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54468         * build-aux/bootstrap: Remove support for now-unnecessary option,
54469         --cvs-user, and envvars CVS_USER, CVS_RSH.
54470
54471 2007-10-24  Jim Meyering  <meyering@redhat.com>
54472
54473         Avoid diagnostics from sha1sum when there is no cached checksum.
54474         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54475         if the po.s1 file hasn't been created yet.
54476
54477         * build-aux/bootstrap: Sync from coreutils:
54478         2007-10-24  Jim Meyering  <meyering@redhat.com>
54479         Get gnulib from the git repository, not from an obsolete cvs one.
54480         * build-aux/bootstrap: Suggestion from Micah Cowan.
54481         2007-10-04  Jim Meyering  <jim@meyering.net>
54482         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54483         (update_po_files): Work also when there are no .po files in po/.
54484
54485 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         * README: Append ".git" to git and cg examples.
54488         Problem reported by Benoit Sigoure.
54489
54490 2007-10-23  Micah Cowan  <micah@cowan.name>
54491
54492         * users.txt: Add wget.
54493
54494 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54495
54496         Fix linking of some unistdio tests on FreeBSD.
54497         * modules/unistdio/u16-vsnprintf-tests
54498         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54499         * modules/unistdio/u16-vsprintf-tests
54500         (test_u16_vsnprintf1_LDADD): Likewise.
54501         * modules/unistdio/u32-vsnprintf-tests
54502         (test_u32_vsnprintf1_LDADD): Likewise.
54503         * modules/unistdio/u32-vsprintf-tests
54504         (test_u32_vsprintf1_LDADD): Likewise.
54505         * modules/unistdio/u8-vsnprintf-tests
54506         (test_u8_vsnprintf1_LDADD): Likewise.
54507         * modules/unistdio/u8-vsprintf-tests
54508         (test_u8_vsprintf1_LDADD): Likewise.
54509         * modules/unistdio/ulc-vsnprintf-tests
54510         (test_ulc_vsnprintf1_LDADD): Likewise.
54511         * modules/unistdio/ulc-vsprintf-tests
54512         (test_ulc_vsprintf1_LDADD): Likewise.
54513
54514         Fix linking of some uniconv tests on FreeBSD.
54515         * modules/uniconv/u16-conv-from-enc-tests
54516         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54517         * modules/uniconv/u16-conv-to-enc-tests
54518         (test_u16_conv_to_enc_LDADD): Likewise.
54519         * modules/uniconv/u16-strconv-from-enc-tests
54520         (test_u16_strconv_from_enc_LDADD): Likewise.
54521         * modules/uniconv/u16-strconv-to-enc-tests
54522         (test_u16_strconv_to_enc_LDADD): Likewise.
54523         * modules/uniconv/u32-conv-from-enc-tests
54524         (test_u32_conv_from_enc_LDADD): Likewise.
54525         * modules/uniconv/u32-conv-to-enc-tests
54526         (test_u32_conv_to_enc_LDADD): Likewise.
54527         * modules/uniconv/u32-strconv-from-enc-tests
54528         (test_u32_strconv_from_enc_LDADD): Likewise.
54529         * modules/uniconv/u32-strconv-to-enc-tests
54530         (test_u32_strconv_to_enc_LDADD): Likewise.
54531         * modules/uniconv/u8-conv-from-enc-tests
54532         (test_u8_conv_from_enc_LDADD): Likewise.
54533         * modules/uniconv/u8-conv-to-enc-tests
54534         (test_u8_conv_to_enc_LDADD): Likewise.
54535         * modules/uniconv/u8-strconv-from-enc-tests
54536         (test_u8_strconv_from_enc_LDADD): Likewise.
54537         * modules/uniconv/u8-strconv-to-enc-tests
54538         (test_u8_strconv_to_enc_LDADD): Likewise.
54539
54540 2007-10-22  Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54543         size.
54544
54545 2007-10-22  Eric Blake  <ebb9@byu.net>
54546
54547         Tweak x*printf documentation.
54548         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54549         variable name and comments.
54550         Suggested by Bruno Haible.
54551
54552 2007-10-22  Bruno Haible  <bruno@clisp.org>
54553
54554         * lib/acl.c (copy_acl): Fix file name in comment.
54555
54556 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54557
54558         Fix Tru64 problem with stdbool.h.
54559         * lib/stdbool.in.h (false, true):
54560         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54561         Don't declare as an enum in this situation; it runs afoul of Tru64.
54562         Problem reported by Steven M. Schweda in
54563         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54564
54565 2007-10-22  Eric Blake  <ebb9@byu.net>
54566
54567         Also wrap vf?printf.
54568         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54569         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54570         (xvprintf, xvfprintf): New functions.
54571
54572 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54573
54574         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54575         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54576
54577         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54578         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54579
54580 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54581
54582         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54583         by Bruno Haible.
54584
54585 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54586
54587         * lib/getloadavg.c
54588         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54589         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54590
54591         * tests/test-i-ring.c: Work for C89.
54592
54593 2007-10-22  Bruno Haible  <bruno@clisp.org>
54594
54595         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54596         -1u, in preprocessor expression, so that we don't test for the bug
54597         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54599
54600 2007-10-22  Eric Blake  <ebb9@byu.net>
54601
54602         * tests/test-yesno.sh: Silence stderr during test.
54603
54604 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54605
54606         * modules/crypto/gc-camellia: New file.
54607
54608         * m4/gc-camellia.m4: New file.
54609
54610         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54611
54612         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54613
54614 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54615
54616         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54617         --help to stdout.  Reported by sms@antinode.org (Steven
54618         M. Schweda).
54619
54620 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54621
54622         * users.txt: Fix link to libksba.
54623
54624 2007-10-21  Ben Pfaff  <blp@gnu.org>
54625
54626         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54627         round.c roundf implementation that depends on floorf and ceilf to
54628         be tested unconditionally.
54629
54630 2007-10-21  Ben Pfaff  <blp@gnu.org>
54631
54632         * m4/check-libm-func.m4: Removed.
54633         * m4/check-math-lib.m4: New file.
54634         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54635         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54636         definition and lack of AC_LIBOBJ([roundf]).
54637         * m4/roundl.m4: Ditto, and similarly for roundl.
54638         * modules/round: Reference new m4 file.
54639         * modules/roundf: Ditto.
54640         * modules/roundl: Ditto.
54641         * tests/test-round2.c (main): Use ROUND instead of round.
54642         Bug report from Bruno Haible.
54643
54644 2007-10-21  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54647         context.
54648
54649 2007-10-21  Bruno Haible  <bruno@clisp.org>
54650
54651         * tests/test-wcwidth.c (main): Allow negative result for some control
54652         characters.
54653
54654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54655         Needed on OSF/1 5.1.
54656
54657 2007-10-21  Bruno Haible  <bruno@clisp.org>
54658
54659         * tests/test-floorf1.c: Include isnanf.h.
54660         (main): Use isnanf() instead of isnan().
54661         * tests/test-ceilf1.c: Include isnanf.h.
54662         (main): Use isnanf() instead of isnan().
54663         * tests/test-truncf1.c: Include isnanf.h.
54664         (main): Use isnanf() instead of isnan().
54665         * tests/test-roundf1.c: Include isnanf.h.
54666         (main): Use isnanf() instead of isnan().
54667
54668 2007-10-21  Eric Blake  <ebb9@byu.net>
54669
54670         * users.txt: Update URL for m4.
54671
54672 2007-10-21  Bruno Haible  <bruno@clisp.org>
54673
54674         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54675
54676 2007-10-21  Bruno Haible  <bruno@clisp.org>
54677
54678         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54679         Git's management files if the CVS files are not present.
54680
54681 2007-10-20  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54684         gcc-3.4.x.
54685
54686 2007-10-20  Ben Pfaff  <blp@gnu.org>
54687
54688         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54689         implementations.
54690         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54691         * lib/round.c: New file.
54692         * lib/roundf.c: New file.
54693         * lib/roundl.c: New file.
54694         * m4/round.m4: New file.
54695         * m4/roundf.m4: New file.
54696         * m4/roundl.m4: New file.
54697         * m4/check-libm-func-m4: New file.
54698         * modules/math: Replace round, roundf, roundl related @VARS@ in
54699         math.in.h.
54700         * modules/round: New file.
54701         * modules/round-tests: New file.
54702         * modules/roundf: New file.
54703         * modules/roundf-tests: New file.
54704         * modules/roundl: New file.
54705         * modules/roundl-tests: New file.
54706         * tests/test-round1.c: New file.
54707         * tests/test-round2.c: New file.
54708         * tests/test-roundf1.c: New file.
54709         * tests/test-roundf2.c: New file.
54710         * tests/test-roundl.c: New file.
54711         * doc/functions/round.texi: Mention round module.
54712         * doc/functions/roundf.texi: Mention roundf module.
54713         * doc/functions/roundl.texi: Mention roundl module.
54714         * MODULES.html.sh: Mention new modules.
54715         Thanks to Bruno Haible for suggestions.
54716
54717 2007-10-20  Jim Meyering  <meyering@redhat.com>
54718
54719         * lib/xprintf.c: Include <config.h> unconditionally.
54720
54721         Change xprintf's license to GPL.
54722         * modules/xprintf (License): s/LGPL/GPL/, since this module
54723         depends on modules (exit and exitfail) which are GPL.
54724         Suggestion from Bruno Haible.
54725
54726         xprintf fixes.
54727         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54728         Use a clearer diagnostic.
54729         Patch from Bruno Haible.
54730
54731 2007-10-20  Bruno Haible  <bruno@clisp.org>
54732
54733         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54734         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54735         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54736
54737 2007-10-20  Bruno Haible  <bruno@clisp.org>
54738
54739         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54740         precision in the comparison result > x - 1 or similar.
54741         * tests/test-ceilf2.c (correct_result_p): Likewise.
54742         * tests/test-truncf2.c (correct_result_p): Likewise.
54743         * tests/test-trunc2.c (correct_result_p): Likewise.
54744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54745
54746 2007-10-20  Bruno Haible  <bruno@clisp.org>
54747
54748         * modules/ceil: New file.
54749         * m4/ceil.m4: New file.
54750         * doc/functions/ceil.texi: Mention the 'ceil' module.
54751
54752 2007-10-20  Bruno Haible  <bruno@clisp.org>
54753
54754         * modules/floor: New file.
54755         * m4/floor.m4: New file.
54756         * doc/functions/floor.texi: Mention the 'floor' module.
54757
54758 2007-10-20  Bruno Haible  <bruno@clisp.org>
54759
54760         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54761         of %a.
54762         * modules/floorf-tests (Depends-on): Likewise.
54763         * modules/truncf-tests (Depends-on): Likewise.
54764         * modules/trunc-tests (Depends-on): Likewise.
54765         Reported by Ben Pfaff.
54766
54767 2007-10-19  Jim Meyering  <meyering@redhat.com>
54768
54769         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54770         Don't bother testing specific errno values.  Just test ferror.
54771
54772         New module: xprintf
54773         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54774
54775 2007-10-19  Bruno Haible  <bruno@clisp.org>
54776
54777         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54778         syntax.
54779         * modules/javaexec (Makefile.am): Likewise.
54780         * modules/relocatable-prog (Makefile.am): Likewise.
54781         Suggested by Jim Meyering.
54782
54783 2007-10-18  Bruno Haible  <bruno@clisp.org>
54784
54785         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54786         Reported by Jim Meyering.
54787
54788 2007-10-18  Eric Blake  <ebb9@byu.net>
54789
54790         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54791
54792 2007-10-18  Bruno Haible  <bruno@clisp.org>
54793
54794         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54795         the format string into writable memory. Needed in Fortify conditions.
54796
54797 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54798             Bruno Haible  <bruno@clisp.org>
54799
54800         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54801         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54802         * modules/trim (Depends-on): Add mbchar.
54803         (configure.ac): Add gl_FUNC_MBRTOWC.
54804         (Makefile.am): Augment lib_SOURCES.
54805
54806 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         Modify glob.c to use fstatat and dirfd, to simplify it.
54809         Suggested by Eric Blake.
54810         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54811         Don't include <stdbool.h>; not used.
54812         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54813         (link_exists_p): Simplify implementation, since we can now assume
54814         dirfd and fstatat.
54815         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54816
54817 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54818
54819         * gnulib-tool (func_get_dependencies): Fix sed script to
54820         match only tests.
54821
54822 2007-10-17  Bruno Haible  <bruno@clisp.org>
54823
54824         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54825         allow locale names without encoding suffix.
54826         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54828
54829 2007-10-16  Bruno Haible  <bruno@clisp.org>
54830
54831         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54832         * lib/getgroups.c (getgroups): Likewise.
54833         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54834
54835 2007-10-16  Bruno Haible  <bruno@clisp.org>
54836
54837         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54838         * modules/malloc-posix (License): Likewise.
54839         * modules/realloc-posix (License): Likewise.
54840         * modules/calloc-posix (License): Likewise.
54841         * modules/intprops (License): Change from GPL to LGPL, with
54842         Paul Eggert's approval.
54843
54844 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54845
54846         Merge glibc changes into lib/glob.c.
54847
54848         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54849         2007-10-15 04:59:03 UTC.  Here are the changes:
54850
54851         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54852
54853         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54854
54855         * lib/glob.c: Add some branch prediction throughout.
54856
54857         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54858
54859         [BZ #5103]
54860         * lib/glob.c (glob): Recognize patterns starting \/.
54861
54862         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54863
54864         [BZ #3996]
54865         * lib/glob.c (attribute_hidden): Define if not defined.
54866         (glob): Unescape dirname, filename or username when needed and not
54867         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54868         is NULL.  Handle unescaped [ in pattern without closing ].
54869         Don't pass GLOB_CHECK down to recursive glob for directories.
54870         (__glob_pattern_type): New function.
54871         (__glob_pattern_p): Implement using __glob_pattern_type.
54872         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54873         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54874         Remove unreachable code.
54875
54876         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54877
54878         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54879         explain why there are no leaks.
54880
54881         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54882
54883         [BZ #3253]
54884         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54885         time, rather allocate increasingly bigger arrays of pointers, if
54886         possible with alloca, if too large with malloc.
54887
54888 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54889
54890         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54891         Problem reported by H.Merijn Brand in
54892         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54893         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54894         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54895
54896 2007-10-15  Bruno Haible  <bruno@clisp.org>
54897
54898         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54899         with explicit rpl_ prefix.
54900         * lib/fopen.c (fopen): Likewise.
54901         * lib/freopen.c (freopen): Likewise.
54902         * lib/iconv.c (iconv): Likewise.
54903         * lib/iconv_close.c (iconv_close): Likewise.
54904
54905 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54906
54907         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54908
54909 2007-10-15  Bruno Haible  <bruno@clisp.org>
54910
54911         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54912         <stddef.h> instead of <stdlib.h> since we only need NULL.
54913         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54914
54915 2007-10-15  Bruno Haible  <bruno@clisp.org>
54916
54917         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54918         Replace paragraph talking about LIBOBJS.
54919         Reported by Colin Watson <cjwatson@debian.org>.
54920
54921 2007-10-15  Bruno Haible  <bruno@clisp.org>
54922
54923         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54924         <stdlib.h> before using NULL.
54925
54926 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54927
54928         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54929         Reported by Albert Chin <china@thewrittenword.com>.
54930
54931 2007-10-14  Bruno Haible  <bruno@clisp.org>
54932
54933         * modules/iconv_open-utf-tests: New file.
54934         * tests/test-iconv-utf.c: New file.
54935
54936         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54937         * modules/iconv_open-utf: New file.
54938         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54939         (iconv, iconv_close): New declarations.
54940         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54941         be defined.
54942         (iconv_open): Add special handling of conversion between UTF-8 and
54943         UTF-{16,32}{BE,LE}.
54944         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54945         * lib/iconv_close.c: New file.
54946         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54947         gl_FUNC_ICONV_OPEN.
54948         (gl_FUNC_ICONV_OPEN): Use it.
54949         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54950         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54951         and REPLACE_ICONV_UTF.
54952         * modules/iconv_open (Depends-on): Add c-strcase.
54953         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54954         ICONV_CONST.
54955         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54956
54957 2007-10-13  Albert Chin  <china@thewrittenword.com>
54958             Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54961         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54962
54963 2007-10-13  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54966         defined, use the ISO C99 inline semantics.
54967         * lib/argp.h (ARGP_EI): Likewise.
54968
54969 2007-10-13  Bruno Haible  <bruno@clisp.org>
54970
54971         Handle 'inline' change in gcc 4.3.0.
54972         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54973         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54974         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54975         argp_fmtstream_point): Disable 'extern' declaration if the function
54976         definition is going to be provided inline.
54977         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54978         semantics, not the ISO C99 inline semantics.
54979         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54980         'extern' declaration if the function definition is going to be provided
54981         inline.
54982         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54983         the GNU C inline semantics, not the ISO C99 inline semantics. With
54984         GCC 4.2, avoid a warning.
54985
54986 2007-10-13  Bruno Haible  <bruno@clisp.org>
54987
54988         * lib/freading.h (freading): Enable the use of __freading for
54989         glibc >= 2.7.
54990         * lib/freading.c (freading): Likewise.
54991
54992 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54993
54994         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54995         "warning: C99 inline functions are not supported; using GNU89".
54996
54997 2007-10-12  Bruno Haible  <bruno@clisp.org>
54998
54999         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55000         of 2.
55001         * tests/test-ceilf2.c: New file.
55002         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55003
55004         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55005         * modules/ceilf-tests: Update.
55006
55007 2007-10-12  Bruno Haible  <bruno@clisp.org>
55008
55009         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55010         of 2.
55011         * tests/test-floorf2.c: New file.
55012         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55013
55014         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55015         * modules/floorf-tests: Update.
55016
55017 2007-10-12  Bruno Haible  <bruno@clisp.org>
55018
55019         * tests/test-trunc2.c: New file.
55020         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55021
55022         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55023         * modules/trunc-tests: Update.
55024
55025 2007-10-12  Bruno Haible  <bruno@clisp.org>
55026
55027         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55028         of 2.
55029         * tests/test-truncf2.c: New file.
55030         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55031
55032         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55033         * modules/truncf-tests: Update.
55034
55035 2007-10-11  Eric Blake  <ebb9@byu.net>
55036
55037         Don't claim strerror is broken on Interix.
55038         * doc/functions/strerror.texi (strerror): Known broken systems are
55039         now Solaris 8, and not Interix.
55040         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55041         Interix on cross-compile.
55042         Reported by Martin Koeppe in
55043         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55044
55045 2007-10-11  Bruno Haible  <bruno@clisp.org>
55046
55047         * modules/i-ring-tests: New file.
55048         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55049         instead of assert.
55050
55051 2007-10-11  Bruno Haible  <bruno@clisp.org>
55052
55053         * modules/filenamecat-tests: New file.
55054         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55055         * lib/filenamecat.c: Remove test code.
55056
55057 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55058
55059         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55060
55061         * lib/strerror.c: Include <string.h> always, to test interface,
55062         and to remove the need for the dummy.
55063         Include intprops.h to compute width instead of doing it ourselves
55064         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55065         (strerror): Define it to return NULL if there's no system strerror.
55066         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55067         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55068         ancient pre-strerror Unix systems well any more.  Saying "unknown
55069         system error" is enough.
55070         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55071         simpler strerror.c implementation.
55072         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55073         Simplify the tests to reflect the simpler strerror implementation.
55074         * modules/strerror (Depends-on): Add intprops.
55075
55076 2007-10-09  Eric Blake  <ebb9@byu.net>
55077
55078         Silence test-fpending.
55079         * modules/fpending-tests (Files): Add wrapper script.
55080         * tests/test-fpending.sh: New file.
55081
55082 2007-10-09  Bruno Haible  <bruno@clisp.org>
55083
55084         * MODULES.html.sh (func_module): Don't create a hyperlink for
55085         function names like 'printf_frexp'.
55086         (Misc): Add crc, memxor.
55087         (Characteristics of floating types): New section.
55088         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55089         isnanf-nolibm, signbit, trunc, truncf, truncl.
55090         (Enhancements for ISO C 99 functions): New subsection Input/output.
55091         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55092         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55093         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55094         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55095         (Enhancements for POSIX:2001 functions): Add chdir-long.
55096         (File system functions): Add areadlink, chdir-safer, read-file.
55097         Remove cycle-check.
55098         (File system as inode set): New section.
55099         (Date and time): Add gethrxtime.
55100         (Multithreading): Add openmp.
55101         (Internationalization functions): Add localename.
55102         (Unicode string functions): Add unistr/u*-mbsnlen.
55103         (Support for maintaining and releasing projects): Add git-version-gen.
55104         (Lone files): Remove directories.
55105
55106 2007-10-08  Ben Pfaff  <blp@gnu.org>
55107
55108         * lib/xmalloca.h: Fix typo in comment.
55109
55110 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55111
55112         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55113         when avoiding problems with integer overflow.  Use a portable test
55114         instead.
55115
55116 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55117
55118         * modules/dummy (License): Change to LGPLv2+.
55119         * modules/float (License): Likewise
55120         * modules/realloc (License): Likewise
55121         * modules/stdlib (License): Likewise
55122
55123 2007-10-07  Bruno Haible  <bruno@clisp.org>
55124
55125         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55126         * floor.c (TWO_MANT_DIG): Likewise.
55127         * ceil.c (TWO_MANT_DIG): Likewise.
55128         Reported by Ben Pfaff.
55129
55130 2007-10-07  Bruno Haible  <bruno@clisp.org>
55131
55132         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55133         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55134         * lib/frexp.c (FUNC): Likewise.
55135         * lib/printf-frexp.h (printf_frexp): Likewise.
55136         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55137         * lib/printf-frexp.c (FUNC): Likewise.
55138         Suggested by Jim Meyering.
55139
55140 2007-10-07  Jim Meyering  <meyering@redhat.com>
55141
55142         Make xnanosleep's integer overflow test more robust.
55143         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55144         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55145
55146 2007-10-07  Bruno Haible  <bruno@clisp.org>
55147
55148         * NEWS: Mention the license change.
55149
55150         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55151         abbreviations in the modules files.
55152
55153         Change copyright notice from GPLv2+ to GPLv3+.
55154         * README: Change copyright notice.
55155         * MODULES.html.sh: Likewise.
55156         * build-aux/bootstrap.conf: Likewise.
55157         * build-aux/config.libpath: Likewise.
55158         * build-aux/csharpcomp.sh.in: Likewise.
55159         * build-aux/csharpexec.sh.in: Likewise.
55160         * build-aux/install-reloc: Likewise.
55161         * build-aux/javacomp.sh.in: Likewise.
55162         * build-aux/javaexec.sh.in: Likewise.
55163         * build-aux/ldd.sh.in: Likewise.
55164         * build-aux/reloc-ldflags: Likewise.
55165         * build-aux/relocatable.sh.in: Likewise.
55166         * build-aux/x-to-1.in: Likewise.
55167         * check-module: Likewise.
55168         * config/srclistvars.sh: Likewise.
55169         * gnulib-tool: Likewise.
55170         * lib/acl-internal.h: Likewise.
55171         * lib/acl.c: Likewise.
55172         * lib/acl.h: Likewise.
55173         * lib/acl_entries.c: Likewise.
55174         * lib/areadlink-with-size.c: Likewise.
55175         * lib/areadlink.c: Likewise.
55176         * lib/areadlink.h: Likewise.
55177         * lib/argmatch.c: Likewise.
55178         * lib/argmatch.h: Likewise.
55179         * lib/argp-ba.c: Likewise.
55180         * lib/argp-eexst.c: Likewise.
55181         * lib/argp-fmtstream.c: Likewise.
55182         * lib/argp-fmtstream.h: Likewise.
55183         * lib/argp-fs-xinl.c: Likewise.
55184         * lib/argp-help.c: Likewise.
55185         * lib/argp-namefrob.h: Likewise.
55186         * lib/argp-parse.c: Likewise.
55187         * lib/argp-pin.c: Likewise.
55188         * lib/argp-pv.c: Likewise.
55189         * lib/argp-pvh.c: Likewise.
55190         * lib/argp-xinl.c: Likewise.
55191         * lib/argp.h: Likewise.
55192         * lib/at-func.c: Likewise.
55193         * lib/atanl.c: Likewise.
55194         * lib/backupfile.c: Likewise.
55195         * lib/backupfile.h: Likewise.
55196         * lib/basename.c: Likewise.
55197         * lib/binary-io.h: Likewise.
55198         * lib/byteswap.in.h: Likewise.
55199         * lib/c-stack.c: Likewise.
55200         * lib/c-stack.h: Likewise.
55201         * lib/c-strcasestr.c: Likewise.
55202         * lib/c-strcasestr.h: Likewise.
55203         * lib/c-strstr.c: Likewise.
55204         * lib/c-strstr.h: Likewise.
55205         * lib/c-strtod.c: Likewise.
55206         * lib/calloc.c: Likewise.
55207         * lib/canon-host.c: Likewise.
55208         * lib/canon-host.h: Likewise.
55209         * lib/canonicalize-lgpl.c: Likewise.
55210         * lib/canonicalize.c: Likewise.
55211         * lib/canonicalize.h: Likewise.
55212         * lib/ceil.c: Likewise.
55213         * lib/ceilf.c: Likewise.
55214         * lib/ceill.c: Likewise.
55215         * lib/chdir-long.c: Likewise.
55216         * lib/chdir-long.h: Likewise.
55217         * lib/chdir-safer.c: Likewise.
55218         * lib/chdir-safer.h: Likewise.
55219         * lib/chown.c: Likewise.
55220         * lib/classpath.c: Likewise.
55221         * lib/classpath.h: Likewise.
55222         * lib/clean-temp.c: Likewise.
55223         * lib/clean-temp.h: Likewise.
55224         * lib/cloexec.c: Likewise.
55225         * lib/close-stream.c: Likewise.
55226         * lib/closein.c: Likewise.
55227         * lib/closein.h: Likewise.
55228         * lib/closeout.c: Likewise.
55229         * lib/closeout.h: Likewise.
55230         * lib/concat-filename.c: Likewise.
55231         * lib/copy-file.c: Likewise.
55232         * lib/copy-file.h: Likewise.
55233         * lib/count-one-bits.h: Likewise.
55234         * lib/crc.c: Likewise.
55235         * lib/crc.h: Likewise.
55236         * lib/creat-safer.c: Likewise.
55237         * lib/csharpcomp.c: Likewise.
55238         * lib/csharpcomp.h: Likewise.
55239         * lib/csharpexec.c: Likewise.
55240         * lib/csharpexec.h: Likewise.
55241         * lib/cycle-check.c: Likewise.
55242         * lib/cycle-check.h: Likewise.
55243         * lib/diacrit.c: Likewise.
55244         * lib/diacrit.h: Likewise.
55245         * lib/diffseq.h: Likewise.
55246         * lib/dirchownmod.c: Likewise.
55247         * lib/dirent.in.h: Likewise.
55248         * lib/dirfd.c: Likewise.
55249         * lib/dirfd.h: Likewise.
55250         * lib/dirname.c: Likewise.
55251         * lib/dirname.h: Likewise.
55252         * lib/dummy.c: Likewise.
55253         * lib/dup-safer.c: Likewise.
55254         * lib/dup2.c: Likewise.
55255         * lib/eealloc.h: Likewise.
55256         * lib/error.c: Likewise.
55257         * lib/error.h: Likewise.
55258         * lib/euidaccess.c: Likewise.
55259         * lib/exclude.c: Likewise.
55260         * lib/exclude.h: Likewise.
55261         * lib/execute.c: Likewise.
55262         * lib/execute.h: Likewise.
55263         * lib/exitfail.c: Likewise.
55264         * lib/exitfail.h: Likewise.
55265         * lib/expl.c: Likewise.
55266         * lib/fatal-signal.c: Likewise.
55267         * lib/fatal-signal.h: Likewise.
55268         * lib/fbufmode.c: Likewise.
55269         * lib/fbufmode.h: Likewise.
55270         * lib/fchdir.c: Likewise.
55271         * lib/fchmodat.c: Likewise.
55272         * lib/fchownat.c: Likewise.
55273         * lib/fcntl--.h: Likewise.
55274         * lib/fcntl-safer.h: Likewise.
55275         * lib/fcntl.in.h: Likewise.
55276         * lib/fd-safer.c: Likewise.
55277         * lib/fflush.c: Likewise.
55278         * lib/file-has-acl.c: Likewise.
55279         * lib/file-set.c: Likewise.
55280         * lib/file-type.c: Likewise.
55281         * lib/file-type.h: Likewise.
55282         * lib/fileblocks.c: Likewise.
55283         * lib/filemode.c: Likewise.
55284         * lib/filemode.h: Likewise.
55285         * lib/filename.h: Likewise.
55286         * lib/filenamecat.c: Likewise.
55287         * lib/filenamecat.h: Likewise.
55288         * lib/findprog.c: Likewise.
55289         * lib/findprog.h: Likewise.
55290         * lib/float.in.h: Likewise.
55291         * lib/floor.c: Likewise.
55292         * lib/floorf.c: Likewise.
55293         * lib/floorl.c: Likewise.
55294         * lib/fopen-safer.c: Likewise.
55295         * lib/fopen.c: Likewise.
55296         * lib/fpending.c: Likewise.
55297         * lib/fpending.h: Likewise.
55298         * lib/fprintf.c: Likewise.
55299         * lib/fprintftime.h: Likewise.
55300         * lib/fpucw.h: Likewise.
55301         * lib/fpurge.c: Likewise.
55302         * lib/fpurge.h: Likewise.
55303         * lib/freadable.c: Likewise.
55304         * lib/freadable.h: Likewise.
55305         * lib/freadahead.c: Likewise.
55306         * lib/freadahead.h: Likewise.
55307         * lib/freading.c: Likewise.
55308         * lib/freading.h: Likewise.
55309         * lib/free.c: Likewise.
55310         * lib/freopen.c: Likewise.
55311         * lib/frexp.c: Likewise.
55312         * lib/frexpl.c: Likewise.
55313         * lib/fseek.c: Likewise.
55314         * lib/fseterr.c: Likewise.
55315         * lib/fseterr.h: Likewise.
55316         * lib/fstatat.c: Likewise.
55317         * lib/fstrcmp.c: Likewise.
55318         * lib/fstrcmp.h: Likewise.
55319         * lib/fsusage.c: Likewise.
55320         * lib/fsusage.h: Likewise.
55321         * lib/ftell.c: Likewise.
55322         * lib/ftello.c: Likewise.
55323         * lib/fts-cycle.c: Likewise.
55324         * lib/fts.c: Likewise.
55325         * lib/fts_.h: Likewise.
55326         * lib/full-read.c: Likewise.
55327         * lib/full-read.h: Likewise.
55328         * lib/full-write.c: Likewise.
55329         * lib/full-write.h: Likewise.
55330         * lib/fwritable.c: Likewise.
55331         * lib/fwritable.h: Likewise.
55332         * lib/fwriteerror.c: Likewise.
55333         * lib/fwriteerror.h: Likewise.
55334         * lib/fwriting.c: Likewise.
55335         * lib/fwriting.h: Likewise.
55336         * lib/gcd.c: Likewise.
55337         * lib/gcd.h: Likewise.
55338         * lib/getcwd.c: Likewise.
55339         * lib/getdate.h: Likewise.
55340         * lib/getdate.y: Likewise.
55341         * lib/getdomainname.c: Likewise.
55342         * lib/getdomainname.h: Likewise.
55343         * lib/getgroups.c: Likewise.
55344         * lib/gethostname.c: Likewise.
55345         * lib/gethrxtime.c: Likewise.
55346         * lib/gethrxtime.h: Likewise.
55347         * lib/getloadavg.c: Likewise.
55348         * lib/getndelim2.c: Likewise.
55349         * lib/getndelim2.h: Likewise.
55350         * lib/getnline.c: Likewise.
55351         * lib/getnline.h: Likewise.
55352         * lib/getopt.c: Likewise.
55353         * lib/getopt.in.h: Likewise.
55354         * lib/getopt1.c: Likewise.
55355         * lib/getopt_int.h: Likewise.
55356         * lib/getpagesize.h: Likewise.
55357         * lib/getsubopt.c: Likewise.
55358         * lib/gettime.c: Likewise.
55359         * lib/getugroups.c: Likewise.
55360         * lib/getugroups.h: Likewise.
55361         * lib/getusershell.c: Likewise.
55362         * lib/gl_anyavltree_list1.h: Likewise.
55363         * lib/gl_anyavltree_list2.h: Likewise.
55364         * lib/gl_anyhash_list1.h: Likewise.
55365         * lib/gl_anyhash_list2.h: Likewise.
55366         * lib/gl_anylinked_list1.h: Likewise.
55367         * lib/gl_anylinked_list2.h: Likewise.
55368         * lib/gl_anyrbtree_list1.h: Likewise.
55369         * lib/gl_anyrbtree_list2.h: Likewise.
55370         * lib/gl_anytree_list1.h: Likewise.
55371         * lib/gl_anytree_list2.h: Likewise.
55372         * lib/gl_anytree_oset.h: Likewise.
55373         * lib/gl_anytreehash_list1.h: Likewise.
55374         * lib/gl_anytreehash_list2.h: Likewise.
55375         * lib/gl_array_list.c: Likewise.
55376         * lib/gl_array_list.h: Likewise.
55377         * lib/gl_array_oset.c: Likewise.
55378         * lib/gl_array_oset.h: Likewise.
55379         * lib/gl_avltree_list.c: Likewise.
55380         * lib/gl_avltree_list.h: Likewise.
55381         * lib/gl_avltree_oset.c: Likewise.
55382         * lib/gl_avltree_oset.h: Likewise.
55383         * lib/gl_avltreehash_list.c: Likewise.
55384         * lib/gl_avltreehash_list.h: Likewise.
55385         * lib/gl_carray_list.c: Likewise.
55386         * lib/gl_carray_list.h: Likewise.
55387         * lib/gl_linked_list.c: Likewise.
55388         * lib/gl_linked_list.h: Likewise.
55389         * lib/gl_linkedhash_list.c: Likewise.
55390         * lib/gl_linkedhash_list.h: Likewise.
55391         * lib/gl_list.c: Likewise.
55392         * lib/gl_list.h: Likewise.
55393         * lib/gl_oset.c: Likewise.
55394         * lib/gl_oset.h: Likewise.
55395         * lib/gl_rbtree_list.c: Likewise.
55396         * lib/gl_rbtree_list.h: Likewise.
55397         * lib/gl_rbtree_oset.c: Likewise.
55398         * lib/gl_rbtree_oset.h: Likewise.
55399         * lib/gl_rbtreehash_list.c: Likewise.
55400         * lib/gl_rbtreehash_list.h: Likewise.
55401         * lib/gl_sublist.c: Likewise.
55402         * lib/gl_sublist.h: Likewise.
55403         * lib/group-member.c: Likewise.
55404         * lib/group-member.h: Likewise.
55405         * lib/hard-locale.c: Likewise.
55406         * lib/hard-locale.h: Likewise.
55407         * lib/hash-pjw.c: Likewise.
55408         * lib/hash-pjw.h: Likewise.
55409         * lib/hash-triple.c: Likewise.
55410         * lib/hash.c: Likewise.
55411         * lib/hash.h: Likewise.
55412         * lib/human.c: Likewise.
55413         * lib/human.h: Likewise.
55414         * lib/i-ring.c: Likewise.
55415         * lib/i-ring.h: Likewise.
55416         * lib/idcache.c: Likewise.
55417         * lib/imaxabs.c: Likewise.
55418         * lib/imaxdiv.c: Likewise.
55419         * lib/inet_pton.c: Likewise.
55420         * lib/inet_pton.h: Likewise.
55421         * lib/intprops.h: Likewise.
55422         * lib/inttostr.c: Likewise.
55423         * lib/inttostr.h: Likewise.
55424         * lib/inttypes.in.h: Likewise.
55425         * lib/isapipe.c: Likewise.
55426         * lib/isdir.c: Likewise.
55427         * lib/isnan.c: Likewise.
55428         * lib/isnan.h: Likewise.
55429         * lib/isnanf.c: Likewise.
55430         * lib/isnanf.h: Likewise.
55431         * lib/isnanl-nolibm.h: Likewise.
55432         * lib/isnanl.c: Likewise.
55433         * lib/isnanl.h: Likewise.
55434         * lib/javacomp.c: Likewise.
55435         * lib/javacomp.h: Likewise.
55436         * lib/javaexec.c: Likewise.
55437         * lib/javaexec.h: Likewise.
55438         * lib/javaversion.c: Likewise.
55439         * lib/javaversion.h: Likewise.
55440         * lib/javaversion.java: Likewise.
55441         * lib/lbrkprop.h: Likewise.
55442         * lib/lchmod.h: Likewise.
55443         * lib/lchown.c: Likewise.
55444         * lib/ldexpl.c: Likewise.
55445         * lib/linebreak.c: Likewise.
55446         * lib/linebreak.h: Likewise.
55447         * lib/linebuffer.c: Likewise.
55448         * lib/linebuffer.h: Likewise.
55449         * lib/locale.in.h: Likewise.
55450         * lib/logl.c: Likewise.
55451         * lib/long-options.c: Likewise.
55452         * lib/long-options.h: Likewise.
55453         * lib/lstat.c: Likewise.
55454         * lib/lstat.h: Likewise.
55455         * lib/math.in.h: Likewise.
55456         * lib/mbchar.c: Likewise.
55457         * lib/mbchar.h: Likewise.
55458         * lib/mbfile.h: Likewise.
55459         * lib/mbiter.h: Likewise.
55460         * lib/mbscasecmp.c: Likewise.
55461         * lib/mbscasestr.c: Likewise.
55462         * lib/mbschr.c: Likewise.
55463         * lib/mbscspn.c: Likewise.
55464         * lib/mbslen.c: Likewise.
55465         * lib/mbsncasecmp.c: Likewise.
55466         * lib/mbsnlen.c: Likewise.
55467         * lib/mbspbrk.c: Likewise.
55468         * lib/mbspcasecmp.c: Likewise.
55469         * lib/mbsrchr.c: Likewise.
55470         * lib/mbssep.c: Likewise.
55471         * lib/mbsspn.c: Likewise.
55472         * lib/mbsstr.c: Likewise.
55473         * lib/mbstok_r.c: Likewise.
55474         * lib/mbswidth.c: Likewise.
55475         * lib/mbswidth.h: Likewise.
55476         * lib/mbuiter.h: Likewise.
55477         * lib/memcasecmp.c: Likewise.
55478         * lib/memcasecmp.h: Likewise.
55479         * lib/memchr.c: Likewise.
55480         * lib/memcmp.c: Likewise.
55481         * lib/memcoll.c: Likewise.
55482         * lib/memcoll.h: Likewise.
55483         * lib/memcpy.c: Likewise.
55484         * lib/memrchr.c: Likewise.
55485         * lib/mkancesdirs.c: Likewise.
55486         * lib/mkdir-p.c: Likewise.
55487         * lib/mkdir-p.h: Likewise.
55488         * lib/mkdir.c: Likewise.
55489         * lib/mkdirat.c: Likewise.
55490         * lib/mkdtemp.c: Likewise.
55491         * lib/mkstemp-safer.c: Likewise.
55492         * lib/mkstemp.c: Likewise.
55493         * lib/modechange.c: Likewise.
55494         * lib/modechange.h: Likewise.
55495         * lib/mountlist.c: Likewise.
55496         * lib/mountlist.h: Likewise.
55497         * lib/mpsort.c: Likewise.
55498         * lib/nanosleep.c: Likewise.
55499         * lib/obstack.c: Likewise.
55500         * lib/obstack.h: Likewise.
55501         * lib/open-safer.c: Likewise.
55502         * lib/open.c: Likewise.
55503         * lib/openat-die.c: Likewise.
55504         * lib/openat-priv.h: Likewise.
55505         * lib/openat-proc.c: Likewise.
55506         * lib/openat.c: Likewise.
55507         * lib/openat.h: Likewise.
55508         * lib/pagealign_alloc.c: Likewise.
55509         * lib/pagealign_alloc.h: Likewise.
55510         * lib/physmem.c: Likewise.
55511         * lib/physmem.h: Likewise.
55512         * lib/pipe-safer.c: Likewise.
55513         * lib/pipe.c: Likewise.
55514         * lib/pipe.h: Likewise.
55515         * lib/posixtm.c: Likewise.
55516         * lib/posixtm.h: Likewise.
55517         * lib/posixver.c: Likewise.
55518         * lib/printf-frexp.c: Likewise.
55519         * lib/printf-frexp.h: Likewise.
55520         * lib/printf-frexpl.c: Likewise.
55521         * lib/printf-frexpl.h: Likewise.
55522         * lib/printf.c: Likewise.
55523         * lib/progname.c: Likewise.
55524         * lib/progname.h: Likewise.
55525         * lib/progreloc.c: Likewise.
55526         * lib/putenv.c: Likewise.
55527         * lib/quote.c: Likewise.
55528         * lib/quote.h: Likewise.
55529         * lib/quotearg.c: Likewise.
55530         * lib/quotearg.h: Likewise.
55531         * lib/raise.c: Likewise.
55532         * lib/readline.c: Likewise.
55533         * lib/readline.h: Likewise.
55534         * lib/readlink.c: Likewise.
55535         * lib/readtokens.c: Likewise.
55536         * lib/readtokens.h: Likewise.
55537         * lib/readtokens0.c: Likewise.
55538         * lib/readtokens0.h: Likewise.
55539         * lib/readutmp.c: Likewise.
55540         * lib/readutmp.h: Likewise.
55541         * lib/realloc.c: Likewise.
55542         * lib/relocwrapper.c: Likewise.
55543         * lib/rename-dest-slash.c: Likewise.
55544         * lib/rename.c: Likewise.
55545         * lib/rmdir.c: Likewise.
55546         * lib/rpmatch.c: Likewise.
55547         * lib/safe-read.c: Likewise.
55548         * lib/safe-read.h: Likewise.
55549         * lib/safe-write.c: Likewise.
55550         * lib/safe-write.h: Likewise.
55551         * lib/same-inode.h: Likewise.
55552         * lib/same.c: Likewise.
55553         * lib/same.h: Likewise.
55554         * lib/save-cwd.c: Likewise.
55555         * lib/save-cwd.h: Likewise.
55556         * lib/savedir.c: Likewise.
55557         * lib/savedir.h: Likewise.
55558         * lib/savewd.c: Likewise.
55559         * lib/savewd.h: Likewise.
55560         * lib/search.in.h: Likewise.
55561         * lib/setenv.c: Likewise.
55562         * lib/setenv.h: Likewise.
55563         * lib/settime.c: Likewise.
55564         * lib/sh-quote.c: Likewise.
55565         * lib/sh-quote.h: Likewise.
55566         * lib/sig2str.c: Likewise.
55567         * lib/sig2str.h: Likewise.
55568         * lib/signal.in.h: Likewise.
55569         * lib/signbitd.c: Likewise.
55570         * lib/signbitf.c: Likewise.
55571         * lib/signbitl.c: Likewise.
55572         * lib/sigprocmask.c: Likewise.
55573         * lib/sincosl.c: Likewise.
55574         * lib/sleep.c: Likewise.
55575         * lib/sprintf.c: Likewise.
55576         * lib/sqrtl.c: Likewise.
55577         * lib/stat-time.h: Likewise.
55578         * lib/stdio--.h: Likewise.
55579         * lib/stdio-safer.h: Likewise.
55580         * lib/stdlib--.h: Likewise.
55581         * lib/stdlib-safer.h: Likewise.
55582         * lib/stdlib.in.h: Likewise.
55583         * lib/stpcpy.c: Likewise.
55584         * lib/stpncpy.c: Likewise.
55585         * lib/strchrnul.c: Likewise.
55586         * lib/strcspn.c: Likewise.
55587         * lib/strerror.c: Likewise.
55588         * lib/strftime.c: Likewise.
55589         * lib/strftime.h: Likewise.
55590         * lib/striconveh.c: Likewise.
55591         * lib/striconveh.h: Likewise.
55592         * lib/striconveha.c: Likewise.
55593         * lib/striconveha.h: Likewise.
55594         * lib/stripslash.c: Likewise.
55595         * lib/strnlen1.c: Likewise.
55596         * lib/strnlen1.h: Likewise.
55597         * lib/strtod.c: Likewise.
55598         * lib/strtoimax.c: Likewise.
55599         * lib/strtok_r.c: Likewise.
55600         * lib/strtol.c: Likewise.
55601         * lib/strtoll.c: Likewise.
55602         * lib/strtoul.c: Likewise.
55603         * lib/strtoull.c: Likewise.
55604         * lib/sysexits.in.h: Likewise.
55605         * lib/tempname.c: Likewise.
55606         * lib/tempname.h: Likewise.
55607         * lib/timespec.h: Likewise.
55608         * lib/tls.c: Likewise.
55609         * lib/tls.h: Likewise.
55610         * lib/tmpdir.c: Likewise.
55611         * lib/tmpdir.h: Likewise.
55612         * lib/tmpfile-safer.c: Likewise.
55613         * lib/tmpfile.c: Likewise.
55614         * lib/trigl.c: Likewise.
55615         * lib/trigl.h: Likewise.
55616         * lib/trim.c: Likewise.
55617         * lib/trim.h: Likewise.
55618         * lib/trunc.c: Likewise.
55619         * lib/truncf.c: Likewise.
55620         * lib/truncl.c: Likewise.
55621         * lib/tsearch.c: Likewise.
55622         * lib/unicodeio.c: Likewise.
55623         * lib/unicodeio.h: Likewise.
55624         * lib/unistd--.h: Likewise.
55625         * lib/unistd-safer.h: Likewise.
55626         * lib/unistdio/ulc-fprintf.c: Likewise.
55627         * lib/unistdio/ulc-vfprintf.c: Likewise.
55628         * lib/unlinkdir.c: Likewise.
55629         * lib/unlinkdir.h: Likewise.
55630         * lib/unlocked-io.h: Likewise.
55631         * lib/unsetenv.c: Likewise.
55632         * lib/userspec.c: Likewise.
55633         * lib/utime.c: Likewise.
55634         * lib/utimecmp.c: Likewise.
55635         * lib/utimecmp.h: Likewise.
55636         * lib/utimens.c: Likewise.
55637         * lib/verify.h: Likewise.
55638         * lib/verror.c: Likewise.
55639         * lib/verror.h: Likewise.
55640         * lib/version-etc-fsf.c: Likewise.
55641         * lib/version-etc.c: Likewise.
55642         * lib/version-etc.h: Likewise.
55643         * lib/vfprintf.c: Likewise.
55644         * lib/vprintf.c: Likewise.
55645         * lib/vsprintf.c: Likewise.
55646         * lib/w32spawn.h: Likewise.
55647         * lib/wait-process.c: Likewise.
55648         * lib/wait-process.h: Likewise.
55649         * lib/wcwidth.c: Likewise.
55650         * lib/write-any-file.c: Likewise.
55651         * lib/xalloc-die.c: Likewise.
55652         * lib/xalloc.h: Likewise.
55653         * lib/xasprintf.c: Likewise.
55654         * lib/xgetcwd.c: Likewise.
55655         * lib/xgetcwd.h: Likewise.
55656         * lib/xgetdomainname.c: Likewise.
55657         * lib/xgetdomainname.h: Likewise.
55658         * lib/xgethostname.c: Likewise.
55659         * lib/xmalloc.c: Likewise.
55660         * lib/xmalloca.c: Likewise.
55661         * lib/xmalloca.h: Likewise.
55662         * lib/xmemcoll.c: Likewise.
55663         * lib/xnanosleep.c: Likewise.
55664         * lib/xreadlink.c: Likewise.
55665         * lib/xreadlink.h: Likewise.
55666         * lib/xsetenv.c: Likewise.
55667         * lib/xsetenv.h: Likewise.
55668         * lib/xstriconv.c: Likewise.
55669         * lib/xstriconv.h: Likewise.
55670         * lib/xstrndup.c: Likewise.
55671         * lib/xstrndup.h: Likewise.
55672         * lib/xstrtod.c: Likewise.
55673         * lib/xstrtod.h: Likewise.
55674         * lib/xstrtol-error.c: Likewise.
55675         * lib/xstrtol.c: Likewise.
55676         * lib/xstrtol.h: Likewise.
55677         * lib/xtime.h: Likewise.
55678         * lib/xvasprintf.c: Likewise.
55679         * lib/xvasprintf.h: Likewise.
55680         * lib/yesno.c: Likewise.
55681         * lib/yesno.h: Likewise.
55682         * posix-modules: Likewise.
55683         * tests/test-alloca-opt.c: Likewise.
55684         * tests/test-arcfour.c: Likewise.
55685         * tests/test-arctwo.c: Likewise.
55686         * tests/test-argmatch.c: Likewise.
55687         * tests/test-argp-2.sh: Likewise.
55688         * tests/test-argp.c: Likewise.
55689         * tests/test-arpa_inet.c: Likewise.
55690         * tests/test-array_list.c: Likewise.
55691         * tests/test-array_oset.c: Likewise.
55692         * tests/test-atexit.c: Likewise.
55693         * tests/test-avltree_list.c: Likewise.
55694         * tests/test-avltree_oset.c: Likewise.
55695         * tests/test-avltreehash_list.c: Likewise.
55696         * tests/test-base64.c: Likewise.
55697         * tests/test-binary-io.c: Likewise.
55698         * tests/test-byteswap.c: Likewise.
55699         * tests/test-c-ctype.c: Likewise.
55700         * tests/test-c-strcasecmp.c: Likewise.
55701         * tests/test-c-strcasestr.c: Likewise.
55702         * tests/test-c-strncasecmp.c: Likewise.
55703         * tests/test-c-strstr.c: Likewise.
55704         * tests/test-canonicalize-lgpl.c: Likewise.
55705         * tests/test-canonicalize.c: Likewise.
55706         * tests/test-carray_list.c: Likewise.
55707         * tests/test-ceilf.c: Likewise.
55708         * tests/test-ceill.c: Likewise.
55709         * tests/test-count-one-bits.c: Likewise.
55710         * tests/test-crc.c: Likewise.
55711         * tests/test-dirname.c: Likewise.
55712         * tests/test-fbufmode.c: Likewise.
55713         * tests/test-fcntl.c: Likewise.
55714         * tests/test-fflush.c: Likewise.
55715         * tests/test-floorf.c: Likewise.
55716         * tests/test-floorl.c: Likewise.
55717         * tests/test-fopen.c: Likewise.
55718         * tests/test-fprintf-posix.c: Likewise.
55719         * tests/test-fprintf-posix.h: Likewise.
55720         * tests/test-fpurge.c: Likewise.
55721         * tests/test-freadable.c: Likewise.
55722         * tests/test-freadahead.c: Likewise.
55723         * tests/test-freading.c: Likewise.
55724         * tests/test-freopen.c: Likewise.
55725         * tests/test-frexp.c: Likewise.
55726         * tests/test-frexpl.c: Likewise.
55727         * tests/test-fseek.c: Likewise.
55728         * tests/test-fseeko.c: Likewise.
55729         * tests/test-fseterr.c: Likewise.
55730         * tests/test-fstrcmp.c: Likewise.
55731         * tests/test-ftell.c: Likewise.
55732         * tests/test-ftello.c: Likewise.
55733         * tests/test-fwritable.c: Likewise.
55734         * tests/test-fwriting.c: Likewise.
55735         * tests/test-getaddrinfo.c: Likewise.
55736         * tests/test-getpass.c: Likewise.
55737         * tests/test-gettimeofday.c: Likewise.
55738         * tests/test-hmac-md5.c: Likewise.
55739         * tests/test-hmac-sha1.c: Likewise.
55740         * tests/test-iconv.c: Likewise.
55741         * tests/test-iconvme.c: Likewise.
55742         * tests/test-inttypes.c: Likewise.
55743         * tests/test-isnan.c: Likewise.
55744         * tests/test-isnanf.c: Likewise.
55745         * tests/test-isnanl-nolibm.c: Likewise.
55746         * tests/test-isnanl.c: Likewise.
55747         * tests/test-isnanl.h: Likewise.
55748         * tests/test-ldexpl.c: Likewise.
55749         * tests/test-linked_list.c: Likewise.
55750         * tests/test-linkedhash_list.c: Likewise.
55751         * tests/test-locale.c: Likewise.
55752         * tests/test-localename.c: Likewise.
55753         * tests/test-lock.c: Likewise.
55754         * tests/test-lseek.c: Likewise.
55755         * tests/test-malloca.c: Likewise.
55756         * tests/test-math.c: Likewise.
55757         * tests/test-mbscasecmp.c: Likewise.
55758         * tests/test-mbscasestr1.c: Likewise.
55759         * tests/test-mbscasestr2.c: Likewise.
55760         * tests/test-mbscasestr3.c: Likewise.
55761         * tests/test-mbscasestr4.c: Likewise.
55762         * tests/test-mbschr.c: Likewise.
55763         * tests/test-mbscspn.c: Likewise.
55764         * tests/test-mbsncasecmp.c: Likewise.
55765         * tests/test-mbspbrk.c: Likewise.
55766         * tests/test-mbspcasecmp.c: Likewise.
55767         * tests/test-mbsrchr.c: Likewise.
55768         * tests/test-mbsspn.c: Likewise.
55769         * tests/test-mbsstr1.c: Likewise.
55770         * tests/test-mbsstr2.c: Likewise.
55771         * tests/test-mbsstr3.c: Likewise.
55772         * tests/test-md5.c: Likewise.
55773         * tests/test-memmem.c: Likewise.
55774         * tests/test-netinet_in.c: Likewise.
55775         * tests/test-open.c: Likewise.
55776         * tests/test-printf-frexp.c: Likewise.
55777         * tests/test-printf-frexpl.c: Likewise.
55778         * tests/test-printf-posix.c: Likewise.
55779         * tests/test-printf-posix.h: Likewise.
55780         * tests/test-rbtree_list.c: Likewise.
55781         * tests/test-rbtree_oset.c: Likewise.
55782         * tests/test-rbtreehash_list.c: Likewise.
55783         * tests/test-read-file.c: Likewise.
55784         * tests/test-rijndael.c: Likewise.
55785         * tests/test-search.c: Likewise.
55786         * tests/test-signbit.c: Likewise.
55787         * tests/test-sleep.c: Likewise.
55788         * tests/test-snprintf-posix.c: Likewise.
55789         * tests/test-snprintf-posix.h: Likewise.
55790         * tests/test-snprintf.c: Likewise.
55791         * tests/test-sprintf-posix.c: Likewise.
55792         * tests/test-sprintf-posix.h: Likewise.
55793         * tests/test-stat-time.c: Likewise.
55794         * tests/test-stdbool.c: Likewise.
55795         * tests/test-stdint.c: Likewise.
55796         * tests/test-stdio.c: Likewise.
55797         * tests/test-stdlib.c: Likewise.
55798         * tests/test-stpncpy.c: Likewise.
55799         * tests/test-strcasestr.c: Likewise.
55800         * tests/test-striconv.c: Likewise.
55801         * tests/test-striconveh.c: Likewise.
55802         * tests/test-striconveha.c: Likewise.
55803         * tests/test-string.c: Likewise.
55804         * tests/test-sys_select.c: Likewise.
55805         * tests/test-sys_socket.c: Likewise.
55806         * tests/test-sys_stat.c: Likewise.
55807         * tests/test-sys_time.c: Likewise.
55808         * tests/test-sysexits.c: Likewise.
55809         * tests/test-time.c: Likewise.
55810         * tests/test-tls.c: Likewise.
55811         * tests/test-trunc.c: Likewise.
55812         * tests/test-truncf.c: Likewise.
55813         * tests/test-truncl.c: Likewise.
55814         * tests/test-unistd.c: Likewise.
55815         * tests/test-vasnprintf-posix.c: Likewise.
55816         * tests/test-vasnprintf-posix2.c: Likewise.
55817         * tests/test-vasnprintf.c: Likewise.
55818         * tests/test-vasprintf-posix.c: Likewise.
55819         * tests/test-vasprintf.c: Likewise.
55820         * tests/test-verify.c: Likewise.
55821         * tests/test-vfprintf-posix.c: Likewise.
55822         * tests/test-vprintf-posix.c: Likewise.
55823         * tests/test-vsnprintf-posix.c: Likewise.
55824         * tests/test-vsnprintf.c: Likewise.
55825         * tests/test-vsprintf-posix.c: Likewise.
55826         * tests/test-wchar.c: Likewise.
55827         * tests/test-wctype.c: Likewise.
55828         * tests/test-wcwidth.c: Likewise.
55829         * tests/test-xstrtol.c: Likewise.
55830         * tests/test-xvasprintf.c: Likewise.
55831         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55832         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55833         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55834         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55835         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55836         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55837         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55838         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55839         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55840         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55841         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55842         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55843         * tests/uniname/test-uninames.c: Likewise.
55844         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55845         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55846         * tests/unistdio/test-u16-printf1.h: Likewise.
55847         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55848         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55849         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55850         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55851         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55852         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55853         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55854         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55855         * tests/unistdio/test-u32-printf1.h: Likewise.
55856         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55857         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55858         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55859         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55860         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55861         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55862         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55863         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55864         * tests/unistdio/test-u8-printf1.h: Likewise.
55865         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55866         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55867         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55868         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55869         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55870         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55871         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55872         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55873         * tests/unistdio/test-ulc-printf1.h: Likewise.
55874         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55875         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55876         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55877         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55878         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55879         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55880         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55881         * tests/uniwidth/test-u16-width.c: Likewise.
55882         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55883         * tests/uniwidth/test-u32-width.c: Likewise.
55884         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55885         * tests/uniwidth/test-u8-width.c: Likewise.
55886         * tests/uniwidth/test-uc_width.c: Likewise.
55887         * config/srclist-update: Likewise.
55888         (fixlicense): Update to GPLv3+.
55889
55890         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55891         * tests/test-tsearch.c: Change copyright notice.
55892
55893         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55894         * lib/c-strcaseeq.h: Change copyright notice.
55895         * lib/streq.h: Likewise.
55896         * lib/uniconv.h: Likewise.
55897         * lib/uniconv/u-conv-from-enc.h: Likewise.
55898         * lib/uniconv/u-conv-to-enc.h: Likewise.
55899         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55900         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55901         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55902         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55903         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55904         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55905         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55906         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55907         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55908         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55909         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55910         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55911         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55912         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55913         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55914         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55915         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55916         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55917         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55918         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55919         * lib/uniname.h: Likewise.
55920         * lib/uniname/uniname.c: Likewise.
55921         * lib/unistdio.h: Likewise.
55922         * lib/unistdio/u-asnprintf.h: Likewise.
55923         * lib/unistdio/u-asprintf.h: Likewise.
55924         * lib/unistdio/u-printf-args.c: Likewise.
55925         * lib/unistdio/u-printf-args.h: Likewise.
55926         * lib/unistdio/u-printf-parse.h: Likewise.
55927         * lib/unistdio/u-snprintf.h: Likewise.
55928         * lib/unistdio/u-sprintf.h: Likewise.
55929         * lib/unistdio/u-vasprintf.h: Likewise.
55930         * lib/unistdio/u-vsnprintf.h: Likewise.
55931         * lib/unistdio/u-vsprintf.h: Likewise.
55932         * lib/unistdio/u16-asnprintf.c: Likewise.
55933         * lib/unistdio/u16-asprintf.c: Likewise.
55934         * lib/unistdio/u16-printf-parse.c: Likewise.
55935         * lib/unistdio/u16-snprintf.c: Likewise.
55936         * lib/unistdio/u16-sprintf.c: Likewise.
55937         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55938         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55939         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55940         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55941         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55942         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55943         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55944         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55945         * lib/unistdio/u16-vasnprintf.c: Likewise.
55946         * lib/unistdio/u16-vasprintf.c: Likewise.
55947         * lib/unistdio/u16-vsnprintf.c: Likewise.
55948         * lib/unistdio/u16-vsprintf.c: Likewise.
55949         * lib/unistdio/u32-asnprintf.c: Likewise.
55950         * lib/unistdio/u32-asprintf.c: Likewise.
55951         * lib/unistdio/u32-printf-parse.c: Likewise.
55952         * lib/unistdio/u32-snprintf.c: Likewise.
55953         * lib/unistdio/u32-sprintf.c: Likewise.
55954         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55955         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55956         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55957         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55958         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55959         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55960         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55961         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55962         * lib/unistdio/u32-vasnprintf.c: Likewise.
55963         * lib/unistdio/u32-vasprintf.c: Likewise.
55964         * lib/unistdio/u32-vsnprintf.c: Likewise.
55965         * lib/unistdio/u32-vsprintf.c: Likewise.
55966         * lib/unistdio/u8-asnprintf.c: Likewise.
55967         * lib/unistdio/u8-asprintf.c: Likewise.
55968         * lib/unistdio/u8-printf-parse.c: Likewise.
55969         * lib/unistdio/u8-snprintf.c: Likewise.
55970         * lib/unistdio/u8-sprintf.c: Likewise.
55971         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55972         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55973         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55974         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55975         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55976         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55977         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55978         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55979         * lib/unistdio/u8-vasnprintf.c: Likewise.
55980         * lib/unistdio/u8-vasprintf.c: Likewise.
55981         * lib/unistdio/u8-vsnprintf.c: Likewise.
55982         * lib/unistdio/u8-vsprintf.c: Likewise.
55983         * lib/unistdio/ulc-asnprintf.c: Likewise.
55984         * lib/unistdio/ulc-asprintf.c: Likewise.
55985         * lib/unistdio/ulc-printf-parse.c: Likewise.
55986         * lib/unistdio/ulc-snprintf.c: Likewise.
55987         * lib/unistdio/ulc-sprintf.c: Likewise.
55988         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55989         * lib/unistdio/ulc-vasprintf.c: Likewise.
55990         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55991         * lib/unistdio/ulc-vsprintf.c: Likewise.
55992         * lib/unistr.h: Likewise.
55993         * lib/unistr/u-cpy-alloc.h: Likewise.
55994         * lib/unistr/u-cpy.h: Likewise.
55995         * lib/unistr/u-endswith.h: Likewise.
55996         * lib/unistr/u-move.h: Likewise.
55997         * lib/unistr/u-set.h: Likewise.
55998         * lib/unistr/u-startswith.h: Likewise.
55999         * lib/unistr/u-stpcpy.h: Likewise.
56000         * lib/unistr/u-stpncpy.h: Likewise.
56001         * lib/unistr/u-strcat.h: Likewise.
56002         * lib/unistr/u-strcpy.h: Likewise.
56003         * lib/unistr/u-strcspn.h: Likewise.
56004         * lib/unistr/u-strdup.h: Likewise.
56005         * lib/unistr/u-strlen.h: Likewise.
56006         * lib/unistr/u-strncat.h: Likewise.
56007         * lib/unistr/u-strncpy.h: Likewise.
56008         * lib/unistr/u-strnlen.h: Likewise.
56009         * lib/unistr/u-strpbrk.h: Likewise.
56010         * lib/unistr/u-strspn.h: Likewise.
56011         * lib/unistr/u-strstr.h: Likewise.
56012         * lib/unistr/u-strtok.h: Likewise.
56013         * lib/unistr/u16-check.c: Likewise.
56014         * lib/unistr/u16-chr.c: Likewise.
56015         * lib/unistr/u16-cmp.c: Likewise.
56016         * lib/unistr/u16-cpy-alloc.c: Likewise.
56017         * lib/unistr/u16-cpy.c: Likewise.
56018         * lib/unistr/u16-endswith.c: Likewise.
56019         * lib/unistr/u16-mblen.c: Likewise.
56020         * lib/unistr/u16-mbsnlen.c: Likewise.
56021         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56022         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56023         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56024         * lib/unistr/u16-mbtouc.c: Likewise.
56025         * lib/unistr/u16-mbtoucr.c: Likewise.
56026         * lib/unistr/u16-move.c: Likewise.
56027         * lib/unistr/u16-next.c: Likewise.
56028         * lib/unistr/u16-prev.c: Likewise.
56029         * lib/unistr/u16-set.c: Likewise.
56030         * lib/unistr/u16-startswith.c: Likewise.
56031         * lib/unistr/u16-stpcpy.c: Likewise.
56032         * lib/unistr/u16-stpncpy.c: Likewise.
56033         * lib/unistr/u16-strcat.c: Likewise.
56034         * lib/unistr/u16-strchr.c: Likewise.
56035         * lib/unistr/u16-strcmp.c: Likewise.
56036         * lib/unistr/u16-strcpy.c: Likewise.
56037         * lib/unistr/u16-strcspn.c: Likewise.
56038         * lib/unistr/u16-strdup.c: Likewise.
56039         * lib/unistr/u16-strlen.c: Likewise.
56040         * lib/unistr/u16-strmblen.c: Likewise.
56041         * lib/unistr/u16-strmbtouc.c: Likewise.
56042         * lib/unistr/u16-strncat.c: Likewise.
56043         * lib/unistr/u16-strncmp.c: Likewise.
56044         * lib/unistr/u16-strncpy.c: Likewise.
56045         * lib/unistr/u16-strnlen.c: Likewise.
56046         * lib/unistr/u16-strpbrk.c: Likewise.
56047         * lib/unistr/u16-strrchr.c: Likewise.
56048         * lib/unistr/u16-strspn.c: Likewise.
56049         * lib/unistr/u16-strstr.c: Likewise.
56050         * lib/unistr/u16-strtok.c: Likewise.
56051         * lib/unistr/u16-to-u32.c: Likewise.
56052         * lib/unistr/u16-to-u8.c: Likewise.
56053         * lib/unistr/u16-uctomb-aux.c: Likewise.
56054         * lib/unistr/u16-uctomb.c: Likewise.
56055         * lib/unistr/u32-check.c: Likewise.
56056         * lib/unistr/u32-chr.c: Likewise.
56057         * lib/unistr/u32-cmp.c: Likewise.
56058         * lib/unistr/u32-cpy-alloc.c: Likewise.
56059         * lib/unistr/u32-cpy.c: Likewise.
56060         * lib/unistr/u32-endswith.c: Likewise.
56061         * lib/unistr/u32-mblen.c: Likewise.
56062         * lib/unistr/u32-mbsnlen.c: Likewise.
56063         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56064         * lib/unistr/u32-mbtouc.c: Likewise.
56065         * lib/unistr/u32-mbtoucr.c: Likewise.
56066         * lib/unistr/u32-move.c: Likewise.
56067         * lib/unistr/u32-next.c: Likewise.
56068         * lib/unistr/u32-prev.c: Likewise.
56069         * lib/unistr/u32-set.c: Likewise.
56070         * lib/unistr/u32-startswith.c: Likewise.
56071         * lib/unistr/u32-stpcpy.c: Likewise.
56072         * lib/unistr/u32-stpncpy.c: Likewise.
56073         * lib/unistr/u32-strcat.c: Likewise.
56074         * lib/unistr/u32-strchr.c: Likewise.
56075         * lib/unistr/u32-strcmp.c: Likewise.
56076         * lib/unistr/u32-strcpy.c: Likewise.
56077         * lib/unistr/u32-strcspn.c: Likewise.
56078         * lib/unistr/u32-strdup.c: Likewise.
56079         * lib/unistr/u32-strlen.c: Likewise.
56080         * lib/unistr/u32-strmblen.c: Likewise.
56081         * lib/unistr/u32-strmbtouc.c: Likewise.
56082         * lib/unistr/u32-strncat.c: Likewise.
56083         * lib/unistr/u32-strncmp.c: Likewise.
56084         * lib/unistr/u32-strncpy.c: Likewise.
56085         * lib/unistr/u32-strnlen.c: Likewise.
56086         * lib/unistr/u32-strpbrk.c: Likewise.
56087         * lib/unistr/u32-strrchr.c: Likewise.
56088         * lib/unistr/u32-strspn.c: Likewise.
56089         * lib/unistr/u32-strstr.c: Likewise.
56090         * lib/unistr/u32-strtok.c: Likewise.
56091         * lib/unistr/u32-to-u16.c: Likewise.
56092         * lib/unistr/u32-to-u8.c: Likewise.
56093         * lib/unistr/u32-uctomb.c: Likewise.
56094         * lib/unistr/u8-check.c: Likewise.
56095         * lib/unistr/u8-chr.c: Likewise.
56096         * lib/unistr/u8-cmp.c: Likewise.
56097         * lib/unistr/u8-cpy-alloc.c: Likewise.
56098         * lib/unistr/u8-cpy.c: Likewise.
56099         * lib/unistr/u8-endswith.c: Likewise.
56100         * lib/unistr/u8-mblen.c: Likewise.
56101         * lib/unistr/u8-mbsnlen.c: Likewise.
56102         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56103         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56104         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56105         * lib/unistr/u8-mbtouc.c: Likewise.
56106         * lib/unistr/u8-mbtoucr.c: Likewise.
56107         * lib/unistr/u8-move.c: Likewise.
56108         * lib/unistr/u8-next.c: Likewise.
56109         * lib/unistr/u8-prev.c: Likewise.
56110         * lib/unistr/u8-set.c: Likewise.
56111         * lib/unistr/u8-startswith.c: Likewise.
56112         * lib/unistr/u8-stpcpy.c: Likewise.
56113         * lib/unistr/u8-stpncpy.c: Likewise.
56114         * lib/unistr/u8-strcat.c: Likewise.
56115         * lib/unistr/u8-strchr.c: Likewise.
56116         * lib/unistr/u8-strcmp.c: Likewise.
56117         * lib/unistr/u8-strcpy.c: Likewise.
56118         * lib/unistr/u8-strcspn.c: Likewise.
56119         * lib/unistr/u8-strdup.c: Likewise.
56120         * lib/unistr/u8-strlen.c: Likewise.
56121         * lib/unistr/u8-strmblen.c: Likewise.
56122         * lib/unistr/u8-strmbtouc.c: Likewise.
56123         * lib/unistr/u8-strncat.c: Likewise.
56124         * lib/unistr/u8-strncmp.c: Likewise.
56125         * lib/unistr/u8-strncpy.c: Likewise.
56126         * lib/unistr/u8-strnlen.c: Likewise.
56127         * lib/unistr/u8-strpbrk.c: Likewise.
56128         * lib/unistr/u8-strrchr.c: Likewise.
56129         * lib/unistr/u8-strspn.c: Likewise.
56130         * lib/unistr/u8-strstr.c: Likewise.
56131         * lib/unistr/u8-strtok.c: Likewise.
56132         * lib/unistr/u8-to-u16.c: Likewise.
56133         * lib/unistr/u8-to-u32.c: Likewise.
56134         * lib/unistr/u8-uctomb-aux.c: Likewise.
56135         * lib/unistr/u8-uctomb.c: Likewise.
56136         * lib/unitypes.h: Likewise.
56137         * lib/uniwidth.h: Likewise.
56138         * lib/uniwidth/cjk.h: Likewise.
56139         * lib/uniwidth/u16-strwidth.c: Likewise.
56140         * lib/uniwidth/u16-width.c: Likewise.
56141         * lib/uniwidth/u32-strwidth.c: Likewise.
56142         * lib/uniwidth/u32-width.c: Likewise.
56143         * lib/uniwidth/u8-strwidth.c: Likewise.
56144         * lib/uniwidth/u8-width.c: Likewise.
56145         * lib/uniwidth/width.c: Likewise.
56146
56147 2007-10-07  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56150         The file is still under LGPL (see modules/inttypes).
56151
56152 2007-10-06  Bruno Haible  <bruno@clisp.org>
56153
56154         * modules/trunc (Dependencies): Add 'extensions'.
56155         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56156         Reported by Ben Pfaff <blp@gnu.org>.
56157
56158 2007-10-06  Bruno Haible  <bruno@clisp.org>
56159
56160         * modules/freopen-tests: New file.
56161         * tests/test-freopen.c: New file.
56162
56163         * modules/fopen-tests: New file.
56164         * tests/test-fopen.c: New file.
56165
56166         * modules/fopen: New file.
56167         * lib/fopen.c: New file.
56168         * m4/fopen.m4: New file.
56169         * modules/freopen: New file.
56170         * lib/freopen.c: New file.
56171         * m4/freopen.m4: New file.
56172         * lib/stdio.in.h (fopen, freopen): New declarations.
56173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56174         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56175         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56176         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56177         * doc/functions/fopen.texi: Mention the 'fopen' module.
56178         * doc/functions/freopen.texi: Mention the 'freopen' module.
56179
56180 2007-10-06  Bruno Haible  <bruno@clisp.org>
56181
56182         * modules/open-tests: New file.
56183         * tests/test-open.c: New file.
56184
56185         * modules/open: New file.
56186         * lib/open.c: New file.
56187         * m4/open.m4: New file.
56188         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56189         lib/open.c does.
56190         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56191         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56192         macros.
56193         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56194         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56195         REPLACE_OPEN.
56196         * doc/functions/open.texi: Mention the 'open' module.
56197
56198 2007-10-04  Bruno Haible  <bruno@clisp.org>
56199
56200         * modules/ceill-tests: New file.
56201         * tests/test-ceill.c: New file.
56202
56203         * modules/ceill: New file.
56204         * lib/ceill.c: Replace entire file.
56205         * m4/ceill.m4: New file.
56206         * lib/math.in.h (ceill): Replace declaration.
56207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56208         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56209         * doc/functions/ceill.texi: Mention the 'ceill' module.
56210         * modules/mathl (Files): Remove lib/ceill.c.
56211         (Depends-on): Add ceill.
56212
56213 2007-10-04  Bruno Haible  <bruno@clisp.org>
56214
56215         * modules/ceilf-tests: New file.
56216         * tests/test-ceilf.c: New file.
56217
56218         * modules/ceilf: New file.
56219         * lib/ceil.c: New file.
56220         * lib/ceilf.c: New file.
56221         * m4/ceilf.m4: New file.
56222         * lib/math.in.h (ceilf): New declaration.
56223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56224         HAVE_DECL_CEILF.
56225         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56226         HAVE_DECL_CEILF.
56227         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56228
56229 2007-10-04  Bruno Haible  <bruno@clisp.org>
56230
56231         * modules/floorl-tests: New file.
56232         * tests/test-floorl.c: New file.
56233
56234         * modules/floorl: New file.
56235         * lib/floorl.c: Replace entire file.
56236         * m4/floorl.m4: New file.
56237         * lib/math.in.h (floorl): Replace declaration.
56238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56239         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56240         * doc/functions/floorl.texi: Mention the 'floorl' module.
56241         * modules/mathl (Files): Remove lib/floorl.c.
56242         (Depends-on): Add floorl.
56243
56244 2007-10-04  Bruno Haible  <bruno@clisp.org>
56245
56246         * modules/floorf-tests: New file.
56247         * tests/test-floorf.c: New file.
56248
56249         * modules/floorf: New file.
56250         * lib/floor.c: New file.
56251         * lib/floorf.c: New file.
56252         * m4/floorf.m4: New file.
56253         * lib/math.in.h (floorf): New declaration.
56254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56255         HAVE_DECL_FLOORF.
56256         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56257         HAVE_DECL_FLOORF.
56258         * doc/functions/floorf.texi: Mention the 'floorf' module.
56259
56260 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56261             Bruno Haible  <bruno@clisp.org>
56262
56263         Advertise for the Git server instead of the CVS server.
56264         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56265         repository instead of the CVS one.
56266         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56267         about all VCS systems generically.
56268         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56269
56270 2007-10-04  Bruno Haible  <bruno@clisp.org>
56271
56272         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56273         means.
56274         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56275
56276 2007-10-04  Bruno Haible  <bruno@clisp.org>
56277
56278         * modules/truncl-tests: New file.
56279         * tests/test-truncl.c: New file.
56280
56281         * modules/truncl: New file.
56282         * lib/truncl.c: New file.
56283         * m4/truncl.m4: New file.
56284         * lib/math.in.h (truncl): New declaration.
56285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56286         HAVE_DECL_TRUNCL.
56287         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56288         HAVE_DECL_TRUNCL.
56289         * doc/functions/truncl.texi: Mention the 'truncl' module.
56290
56291 2007-10-04  Bruno Haible  <bruno@clisp.org>
56292
56293         * modules/truncf-tests: New file.
56294         * tests/test-truncf.c: New file.
56295
56296         * modules/truncf: New file.
56297         * lib/trunc.c: Make paramerizable through USE_* macros.
56298         * lib/truncf.c: New file.
56299         * m4/truncf.m4: New file.
56300         * lib/math.in.h (truncf): New declaration.
56301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56302         HAVE_DECL_TRUNCF.
56303         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56304         HAVE_DECL_TRUNCF.
56305         * doc/functions/truncf.texi: Mention the 'truncf' module.
56306
56307 2007-10-03  Bruno Haible  <bruno@clisp.org>
56308
56309         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56310         augmentation also for tests modules.
56311         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56312         * modules/atexit-tests (Makefile.am): Likewise.
56313         * modules/binary-io-tests (Makefile.am): Likewise.
56314         * modules/c-strcase-tests (Makefile.am): Likewise.
56315         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56316         * modules/canonicalize-tests (Makefile.am): Likewise.
56317         * modules/closein-tests (Makefile.am): Likewise.
56318         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56319         * modules/freadahead-tests (Makefile.am): Likewise.
56320         * modules/fseek-tests (Makefile.am): Likewise.
56321         * modules/fseeko-tests (Makefile.am): Likewise.
56322         * modules/ftell-tests (Makefile.am): Likewise.
56323         * modules/ftello-tests (Makefile.am): Likewise.
56324         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56325         * modules/isnanl-tests (Makefile.am): Likewise.
56326         * modules/lseek-tests (Makefile.am): Likewise.
56327         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56328         * modules/mbscasestr-tests (Makefile.am): Likewise.
56329         * modules/mbschr-tests (Makefile.am): Likewise.
56330         * modules/mbscspn-tests (Makefile.am): Likewise.
56331         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56332         * modules/mbspbrk-tests (Makefile.am): Likewise.
56333         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56334         * modules/mbsrchr-tests (Makefile.am): Likewise.
56335         * modules/mbsspn-tests (Makefile.am): Likewise.
56336         * modules/mbsstr-tests (Makefile.am): Likewise.
56337         * modules/printf-posix-tests (Makefile.am): Likewise.
56338         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56339         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56340         * modules/tsearch-tests (Makefile.am): Likewise.
56341         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56342         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56343         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56344         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56345         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56346         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56347         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56348         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56349         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56350         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56351         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56352         * modules/xstrtol-tests (Makefile.am): Likewise.
56353         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56354         * modules/yesno-tests (Makefile.am): Likewise.
56355
56356 2007-10-03  Bruno Haible  <bruno@clisp.org>
56357
56358         * modules/trunc-tests: New file.
56359         * tests/test-trunc.c: New file.
56360
56361         * modules/trunc: New file.
56362         * lib/trunc.c: New file.
56363         * m4/trunc.m4: New file.
56364         * lib/math.in.h (trunc): New declaration.
56365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56366         HAVE_DECL_TRUNC.
56367         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56368         HAVE_DECL_TRUNC.
56369         * doc/functions/trunc.texi: Mention the 'trunc' module.
56370
56371 2007-10-03  Bruno Haible  <bruno@clisp.org>
56372
56373         * tests/test-fpending.c: New file, mostly copied
56374         from coreutils/lib/t-fpending.c.
56375         * modules/fpending-tests: New file.
56376
56377 2007-10-03  Bruno Haible  <bruno@clisp.org>
56378
56379         Port the stdio extensions to QNX (untested).
56380         * lib/fseterr.c (fseterr): Add support for QNX.
56381         * lib/fbufmode.c (fbufmode): Likewise.
56382         * lib/freadable.c (freadable): Likewise.
56383         * lib/fwritable.c (fwritable): Likewise.
56384         * lib/freading.c (freading): Likewise.
56385         * lib/fwriting.c (fwriting): Likewise.
56386         * lib/freadahead.c (freadahed): Likewise.
56387         * lib/fpurge.c (fpurge): Likewise.
56388         * lib/fseeko.c (rpl_fseeko): Likewise.
56389
56390 2007-10-03  Bruno Haible  <bruno@clisp.org>
56391             Jim Meyering  <jim@meyering.net>
56392             Eric Blake  <ebb9@byu.net>
56393
56394         * doc/relocatable.texi: Use @command instead of @program.
56395
56396 2007-10-02  Jim Meyering  <jim@meyering.net>
56397
56398         Perform one more "_.h" -> ".in.h" substitution.
56399         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56400         instead of unistd_.h here, too.
56401
56402 2007-10-01  Bruno Haible  <bruno@clisp.org>
56403
56404         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56405         Needed for the alloca-opt module.
56406
56407 2007-09-30  Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56410         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56411         alloca_.h.
56412         * lib/argz.in.h: Renamed from lib/argz_.h.
56413         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56414         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56415         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56416         byteswap_.h.
56417         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56418         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56419         dirent_.h.
56420         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56421         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56422         fcntl_.h.
56423         * lib/float.in.h: Renamed from lib/float_.h.
56424         * modules/float (Files, Makefile.am): Use float.in.h instead of
56425         float_.h.
56426         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56427         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56428         fnmatch_.h.
56429         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56430         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56431         getopt_.h.
56432         * lib/glob.in.h: Renamed from lib/glob_.h.
56433         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56434         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56435         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56436         iconv_.h.
56437         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56438         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56439         inttypes_.h.
56440         * lib/locale.in.h: Renamed from lib/locale_.h.
56441         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56442         locale_.h.
56443         * lib/math.in.h: Renamed from lib/math_.h.
56444         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56445         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56446         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56447         of netinet_in_.h. Add dependency.
56448         * lib/poll.in.h: Renamed from lib/poll_.h.
56449         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56450         * lib/search.in.h: Renamed from lib/search_.h.
56451         * modules/search (Files, Makefile.am): Use search.in.h instead of
56452         search_.h.
56453         * lib/signal.in.h: Renamed from lib/signal_.h.
56454         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56455         _signal.h.
56456         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56457         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56458         stdbool_.h.
56459         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56460         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56461         stdint_.h.
56462         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56463         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56464         stdio_.h.
56465         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56466         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56467         stdlib_.h.
56468         * lib/string.in.h: Renamed from lib/string_.h.
56469         * modules/string (Files, Makefile.am): Use string.in.h instead of
56470         string_.h.
56471         * doc/gnulib-tool.texi (Initial import): Update.
56472         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56473         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56474         of sys_select_.h. Add dependency.
56475         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56476         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56477         of sys_socket_.h.
56478         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56479         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56480         sys_stat_.h.
56481         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56482         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56483         sys_time_.h.
56484         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56485         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56486         sysexits_.h.
56487         * lib/time.in.h: Renamed from lib/time_.h.
56488         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56489         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56490         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56491         unistd_.h.
56492         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56493         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56494         wchar_.h.
56495         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56496         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56497         wctype_.h.
56498         * build-aux/bootstrap (slurp): Update.
56499         * lib/.cppi-disable: Update.
56500
56501 2007-09-30  Bruno Haible  <bruno@clisp.org>
56502
56503         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56504         Needed on BeOS.
56505
56506 2007-09-30  Bruno Haible  <bruno@clisp.org>
56507
56508         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56509
56510 2007-09-29  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56513
56514 2007-09-29  Bruno Haible  <bruno@clisp.org>
56515
56516         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56517         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56518         * build-aux/install-reloc: Compile also areadlink.c.
56519         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56520
56521 2007-09-29  Bruno Haible  <bruno@clisp.org>
56522
56523         * gnulib-tool (func_emit_initmacro_done): Indentation.
56524
56525 2007-09-29  Bruno Haible  <bruno@clisp.org>
56526
56527         * README: Add CVS checkout update instructions.
56528         Info from Bob Proulx <bob@proulx.com>.
56529
56530 2007-09-28  Eric Blake  <ebb9@byu.net>
56531
56532         Provide move-if-change.
56533         * build-aux/move-if-change: New file, based on best practice
56534         rather than any canonical upstream location.
56535
56536 2007-09-28  Jim Meyering  <jim@meyering.net>
56537
56538         Fix canonicalize loop-detection corner case.
56539         Do not attempt to stat the symlink values stored via seen_triple.
56540         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56541         on linux-2.6.18, (but not 2.6.22).
56542         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56543         triple_compare.  The former compares dev,ino,filename, while the latter
56544         would actually stat dirname(filename) when dev and ino were equal.
56545         * lib/hash-triple.c: Install <string.h>.
56546         (STREQ): Define.
56547         (triple_compare_ino_str): New function.
56548         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56549
56550 2007-09-28  Eric Blake  <ebb9@byu.net>
56551
56552         Enforce that AC_REPLACE_FUNCS files exist.
56553         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56554         override check for typos.
56555
56556         Fix test-closein on Solaris 10.
56557         * tests/test-closein.c (main): Don't assume stdin can be inherited
56558         closed on all systems.
56559         * tests/test-closein.sh: Likewise.
56560         Reported by Piotr Tarnowski.
56561
56562 2007-09-28  Jim Meyering  <jim@meyering.net>
56563
56564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56565
56566 2007-09-27  Jim Meyering  <jim@meyering.net>
56567
56568         canonicalize: Avoid a false-positive cycle failure.
56569         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56570         Sort.  Remove cycle-check.
56571         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56572         not cycle-check.h.
56573         (seen_triple): New function.
56574         (canonicalize_filename_mode): Use it instead of cycle-check.
56575         * tests/test-canonicalize.c: Add a test for this bug.
56576         * tests/test-canonicalize.sh: Set up and run the test.
56577
56578         New module, file-set, from coreutils.
56579         * modules/file-set: Define it.
56580         * lib/file-set.c, lib/file-set.h: Implement.
56581
56582         New module, hash-triple, from coreutils.
56583         * modules/hash-triple: Define it.
56584         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56585
56586 2007-09-25  Eric Blake  <ebb9@byu.net>
56587
56588         Fix strerror on Interix.
56589         * lib/string_.h (strerror): Declare replacement.
56590         * doc/functions/strerror.texi (strerror): Document the Interix
56591         shortcoming.
56592         * modules/string (Makefile.am): Support new hooks.
56593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56594         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56595         gl_FUNC_STRERROR_SEPARATE.
56596         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56597         * lib/strerror.c (rpl_strerror): Provide replacement.
56598         * modules/strerror (Depends-on): Add string.
56599         (configure.ac): Detect use of module.
56600         * tests/test-strerror.c: New file.
56601         * modules/strerror-tests: New test module.
56602         * modules/argp (Depends-on): Add strerror.
56603         * modules/error (Depends-on): Likewise.
56604         Reported by Martin Koeppe.
56605
56606 2007-09-24  Bruno Haible  <bruno@clisp.org>
56607
56608         * README: Update git instructions.
56609
56610 2007-09-24  Eric Blake  <ebb9@byu.net>
56611
56612         Revert fpending breakage from 2007-09-08.
56613         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56614         __fpending.c.
56615
56616 2007-09-24  Jim Meyering  <jim@meyering.net>
56617
56618         filenamecat.c: Add a test.
56619         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56620         showing how the function works when DIR is the empty string.
56621
56622 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56623
56624         * tests/test-canonicalize.sh: Turn on executable bit.
56625
56626 2007-09-19  Eric Blake  <ebb9@byu.net>
56627
56628         * README: Update CVS instructions.
56629
56630 2007-09-18  Bruno Haible  <bruno@clisp.org>
56631
56632         * modules/areadlink: New file.
56633         * lib/areadlink.h (areadlink): New declaration.
56634         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56635
56636 2007-09-17  Jim Meyering  <jim@meyering.net>
56637
56638         * lib/savewd.c (ESTALE) [!defined]: Define.
56639         Reported to be required on Interix by Martin Koeppe.
56640
56641 2007-09-17  Bruno Haible  <bruno@clisp.org>
56642
56643         * gnulib-tool (func_version): Use $version.
56644
56645 2007-09-16  Bruno Haible  <bruno@clisp.org>
56646
56647         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56648         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56649         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56650         Reported by Greg Schafer <gschafer@zip.com.au>.
56651
56652 2007-09-15  Bruno Haible  <bruno@clisp.org>
56653
56654         * gnulib-tool (sed): Try a little harder to make bash understand the
56655         alias.
56656         Reported by Bruce Korb <bruce.korb@gmail.com>.
56657
56658 2007-09-13  Eric Blake  <ebb9@byu.net>
56659
56660         * ChangeLog: Remove conflict markers.
56661
56662 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56663
56664         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56665         Reported by Bruno Haible <bruno@clisp.org>.
56666
56667 2007-09-12  Bruno Haible  <bruno@clisp.org>
56668
56669         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56670         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56671         is not defined.
56672
56673 2007-09-12  Eric Blake  <ebb9@byu.net>
56674
56675         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56676         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56677         Autoconf definition.
56678         * modules/euidaccess (Depends-on): Add extensions, for
56679         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56680         * modules/fnmatch (Depends-on): Likewise.
56681         * modules/getaddrinfo (Depends-on): Likewise.
56682         * modules/getdelim (Depends-on): Likewise.
56683         * modules/getline (Depends-on): Likewise.
56684         * modules/getsubopt (Depends-on): Likewise.
56685         * modules/gettext (Depends-on): Likewise.
56686         * modules/group-member (Depends-on): Likewise.
56687         * modules/mbchar (Depends-on): Likewise.
56688         * modules/memmem (Depends-on): Likewise.
56689         * modules/mempcpy (Depends-on): Likewise.
56690         * modules/memrchr (Depends-on): Likewise.
56691         * modules/pagealign_alloc (Depends-on): Likewise.
56692         * modules/readutmp (Depends-on): Likewise.
56693         * modules/stpcpy (Depends-on): Likewise.
56694         * modules/stpncpy (Depends-on): Likewise.
56695         * modules/strchrnul (Depends-on): Likewise.
56696         * modules/strndup (Depends-on): Likewise.
56697         * modules/strsep (Depends-on): Likewise.
56698         * modules/strverscmp (Depends-on): Likewise.
56699         * modules/vasprintf (Depends-on): Likewise.
56700         * modules/wcwidth (Depends-on): Likewise.
56701         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56702         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56703         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56705         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56706         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56707         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56708         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56709         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56710         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56711         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56712         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56713         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56714         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56715         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56716         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56717         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56718         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56719         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56720         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56721         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56722         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56723         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56724         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56725         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56727         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56728         so that lock.m4 can be used in gettext without extensions module.
56729
56730 2007-09-11  Bruno Haible  <bruno@clisp.org>
56731
56732         * m4/isc-posix.m4: Remove file.
56733         Suggested by Eric Blake.
56734
56735 2007-09-11  Eric Blake  <ebb9@byu.net>
56736
56737         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56738
56739 2007-09-10  Bruno Haible  <bruno@clisp.org>
56740
56741         * posix-modules: Fix typo in error message.
56742         Reported by Matt <mkraai@beckman.com>.
56743
56744 2007-09-09  Bruno Haible  <bruno@clisp.org>
56745
56746         * doc/functions/getdelim.texi: Update list of platforms lacking the
56747         function.
56748         * doc/functions/getline.texi: Likewise.
56749
56750 2007-09-09  Jim Meyering  <jim@meyering.net>
56751
56752         * lib/hash.c (hash_initialize): Detect calloc failure.
56753         Reported by Bruno Haible.
56754
56755 2007-09-09  Bruno Haible  <bruno@clisp.org>
56756
56757         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56758         malloc or realloc fails.
56759
56760 2007-09-09  Bruno Haible  <bruno@clisp.org>
56761
56762         * modules/getcwd (Depends-on): Add malloc-posix.
56763         * modules/glob (Depends-on): Likewise.
56764         * modules/putenv (Depends-on): Likewise.
56765         * modules/strdup (Depends-on): Likewise.
56766         * modules/getdelim (Depends-on): Add realloc-posix.
56767         * modules/read-file (Depends-on): Likewise.
56768
56769 2007-09-09  Bruno Haible  <bruno@clisp.org>
56770
56771         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56772         (gl_FUNC_MALLOC_POSIX): Require it.
56773         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56774         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56775         * modules/realloc (Files): Add m4/malloc.m4.
56776         * modules/calloc (Files): Likewise.
56777
56778 2007-09-09  Bruno Haible  <bruno@clisp.org>
56779
56780         * modules/malloc-posix: New file.
56781         * modules/malloc (Depends-on): Add malloc-posix.
56782         * lib/malloc.c: Include errno.h.
56783         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56784         and a POSIX-compatible malloc into a single function. Set ENOMEM
56785         when returning NULL.
56786         * m4/malloc.m4: New file.
56787         * doc/functions/malloc.texi: Mention the malloc-posix module.
56788         * lib/stdlib_.h (malloc): New declaration.
56789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56790         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56791         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56792         and HAVE_MALLOC_POSIX.
56793
56794 2007-09-09  Bruno Haible  <bruno@clisp.org>
56795
56796         * modules/realloc-posix: New file.
56797         * modules/realloc (Depends-on): Add realloc-posix.
56798         * lib/realloc.c: Include errno.h.
56799         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56800         and a POSIX-compatible realloc into a single function. Set ENOMEM
56801         when returning NULL.
56802         * m4/realloc.m4: New file.
56803         * doc/functions/realloc.texi: Mention the realloc-posix module.
56804         * lib/stdlib_.h (realloc): New declaration.
56805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56806         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56807         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56808         and HAVE_REALLOC_POSIX.
56809
56810 2007-09-09  Bruno Haible  <bruno@clisp.org>
56811
56812         * modules/calloc-posix: New file.
56813         * modules/calloc (Depends-on): Add calloc-posix.
56814         * lib/calloc.c: Include errno.h.
56815         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56816         and a POSIX-compatible calloc into a single function. Set ENOMEM
56817         when returning NULL.
56818         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56819         * doc/functions/calloc.texi: Mention the calloc-posix module.
56820         * lib/stdlib_.h (calloc): New declaration.
56821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56822         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56823         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56824         and HAVE_CALLOC_POSIX.
56825
56826 2007-09-09  Bruno Haible  <bruno@clisp.org>
56827
56828         Allow for modules to show an arbitrary notice.
56829         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56830         * gnulib-tool: New option --extract-notice.
56831         (func_usage): Document it.
56832         (sed_extract_prog): Update.
56833         (func_get_notice): New function.
56834         (func_modules_notice): New function.
56835         (func_import, func_create_testdir): Invoke it.
56836         Suggested by Jim Meyering.
56837
56838 2007-09-09  Bruno Haible  <bruno@clisp.org>
56839
56840         * gnulib-tool: New options --verbose, --quiet.
56841         (func_usage): Document them.
56842         (verbose): New variable.
56843         (func_execute_command): New function.
56844         (func_import): Don't show the module list and the file list if
56845         $verbose < 0.
56846         (func_create_testdir): Likewise. Use func_execute_command.
56847         (func_create_megatestdir): Use func_execute_command.
56848
56849 2007-09-08  Bruno Haible  <bruno@clisp.org>
56850
56851         * gnulib-tool (func_import): Prefer rsync over wget when available,
56852         for fetching the PO files.
56853
56854 2007-09-08  Bruno Haible  <bruno@clisp.org>
56855
56856         * posix-modules: New file. Portions copied from gnulib-tool.
56857         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56858
56859 2007-09-08  Jim Meyering  <jim@meyering.net>
56860
56861         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56862         * lib/fpending.h: Rename from __fpending.h.
56863         * lib/fpending.c: Rename from __fpending.c.
56864         Include "fpending.h", not "__fpending.h".
56865         * lib/__fpending.h, lib/__fpending.c: Remove files.
56866         * modules/fpending (Files): Reflect new file names.
56867         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56868
56869 2007-09-08  Bruno Haible  <bruno@clisp.org>
56870
56871         * m4/inttypes-h.m4: Remove stub file.
56872
56873 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56874
56875         * doc/headers/stdint.texi: Discuss #include_next issue.
56876
56877 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56878
56879         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56880
56881 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56882
56883         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56884         in variable name.
56885
56886 2007-09-03  Jim Meyering  <jim@meyering.net>
56887
56888         New module: git-version-gen.
56889         * modules/git-version-gen: New file.
56890
56891         Import changes from coreutils for bootstrap script.
56892
56893         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56894
56895         bootstrap: uses rsync to download the .po files
56896         * build-aux/bootstrap (po_download_command_format): New global.
56897         (download_po_files): Use rsync.
56898         (update_po_files): Don't remove .po files after download,
56899         so future rsync runs can take advantage of the copies.
56900
56901         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56902
56903         Solve the unnecessary-.po-file-regeneration problem once and for all.
56904         * build-aux/bootstrap (download_po_files): New function, renamed from
56905         get_translations.  Now, downloads, but doesn't update LINGUAS.
56906         (update_po_files): New function.
56907
56908         bootstrap: Ignore more.
56909         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56910         uniwidth to e.g., lib/.gitignore.
56911         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56912
56913         * build-aux/bootstrap: New setting: vc_ignore.
56914         (insert_sorted_if_absent): Create $file if absent.
56915         Adapt to new, possibly empty, list: $vc_ignore.
56916
56917         bootstrap: generate more ignorable names
56918         * build-aux/bootstrap (slurp): When generating ignorable names,
56919         also map .sin to .sed, .gperf to .c, and .y to .c.
56920
56921 2007-09-03  Jim Meyering  <jim@meyering.net>
56922
56923         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56924         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56925
56926 2007-09-02  Bruno Haible  <bruno@clisp.org>
56927
56928         Fix mis-recognition of 'mcs' on QNX 6.
56929         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56930         output contains the string "Mono".
56931         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56932         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56933
56934 2007-09-01  Bruno Haible  <bruno@clisp.org>
56935
56936         Fix collision between uniwidth/* and linebreak modules.
56937         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56938         u32_width): Remove declarations.
56939         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56940         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56941         streq3, streq2, streq1, streq0): Remove functions.
56942         (STREQ): Remove macro.
56943         (is_cjk_encoding): Remove function.
56944         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56945         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56946         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56947         * NEWS: Document the change.
56948
56949 2007-09-01  Bruno Haible  <bruno@clisp.org>
56950
56951         * lib/streq.h: Add double-inclusion guard.
56952
56953 2007-09-01  Karl Berry  <karl@gnu.org>
56954
56955         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56956
56957 2007-08-28  Jim Meyering  <jim@meyering.net>
56958
56959         Rename mreadlink_with_size to areadlink_with_size.
56960         * NEWS: Document the change.
56961         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56962         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56963         * lib/mreadlink.h: Rename this to...
56964         * lib/areadlink.h: ...this.
56965         * modules/mreadlink-with-size: Rename this to...
56966         * modules/areadlink-with-size: ...this.
56967         * lib/canonicalize.c: Reflect the renaming.
56968         * modules/canonicalize: Likewise.
56969
56970 2007-08-26  Bruno Haible  <bruno@clisp.org>
56971
56972         * gnulib-tool (func_import): When deciding which files to remove,
56973         consider also dangling symbolic links.
56974         Reported by Eric Blake.
56975
56976 2007-08-26  Bruno Haible  <bruno@clisp.org>
56977
56978         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56979
56980 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56981
56982         * lib/readline.c: Don't include getline.h, the prototype is now
56983         found in stdio.h.
56984
56985 2007-08-23  Jim Meyering  <jim@meyering.net>
56986
56987         Getdelim touchup.
56988         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56989         around the funlockfile call, since funlockfile never sets errno.
56990         Don't set errno upon failed realloc.
56991
56992 2007-08-22  Eric Blake  <ebb9@byu.net>
56993
56994         Getline touchups.
56995         * lib/getdelim.c (getdelim): Revert regression that required *n to
56996         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56997         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56998         getdelim, rather than whether implementation is missing.
56999         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57000         * lib/stdio_.h (getline): Also declare if replacement is
57001         required.
57002         * doc/functions/getdelim.texi: New file.
57003         * doc/functions/getline.texi: Likewise.
57004         * doc/gnulib.texi (Function Substitutes): Add new files.
57005         Reported by Bruno Haible.
57006
57007 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57008
57009         * users.txt: Add Guile.
57010
57011 2007-08-22  Eric Blake  <ebb9@byu.net>
57012
57013         * tests/test-getdelim.c (main): Use remove, not unlink.
57014         * tests/test-getline.c (main): Likewise.
57015
57016         Move getline and getdelim into stdio.h, per POSIX 200x.
57017         * modules/getline (Files): Remove getline.h.
57018         (Depends-on): Add stdio.
57019         (configure.ac): Add module indicator.
57020         * modules/getdelim (Files): Remove getdelim.h.
57021         (Depends-on): Add stdio.
57022         (configure.ac): Add module indicator.
57023         * modules/stdio (Makefile.am): Work with new indicators.
57024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57025         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57026         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57027         * lib/getdelim.h: Delete.
57028         * lib/getline.h: Delete.
57029         * lib/stdio_.h (getdelim, getline): Declare.
57030         * modules/getdelim-tests: New module.
57031         * modules/getline-tests: Likewise.
57032         * tests/test-getdelim.c: New file.
57033         * tests/test-getline.c: Likewise.
57034         * NEWS: Document the change.
57035         * lib/getline.c: Update choice of header.
57036         * lib/csharpcomp.c: Likewise.
57037         * lib/getpass.c: Likewise.
57038         * lib/javacomp.c: Likewise.
57039         * lib/javaversion.c: Likewise.
57040         * lib/yesno.c: Likewise.
57041         * lib/getdelim.c: Likewise.
57042         (getdelim): Set errno on failure, and avoid memory leak.
57043
57044 2007-08-19  Bruno Haible  <bruno@clisp.org>
57045
57046         * modules/closein (Depends-on): Add freadahead.
57047         * lib/closein.c: Include freadahead.h.
57048         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57049         is zero.
57050
57051 2007-08-19  Bruno Haible  <bruno@clisp.org>
57052
57053         * modules/freadahead-tests: New file.
57054         * tests/test-freadahead.sh: New file.
57055         * tests/test-freadahead.c: New file.
57056
57057         * modules/freadahead: New file.
57058         * lib/freadahead.h: New file.
57059         * lib/freadahead.c: New file.
57060         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57061         fbufmode, fpurge, freadable, fwritable.
57062
57063 2007-08-19  Eric Blake  <ebb9@byu.net>
57064
57065         Test yesno in combination with closein.
57066         * lib/yesno.c (yesno): Document use of stdin.
57067         * modules/yesno-tests (Files): New module.
57068         * tests/test-yesno.c (main): New file.
57069         * tests/test-yesno.sh: Likewise.
57070
57071 2007-08-19  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57074         * lib/fseeko.c (rpl_fseeko): Likewise.
57075         * lib/fseterr.c (fseterr): Likewise.
57076
57077 2007-08-19  Bruno Haible  <bruno@clisp.org>
57078
57079         * tests/test-lseek.c (main): Disable a test for BeOS.
57080         * doc/functions/lseek.texi: Document the BeOS bug.
57081
57082 2007-08-19  Bruno Haible  <bruno@clisp.org>
57083             Eric Blake  <ebb9@byu.net>
57084
57085         * lib/lseek.c: Include <sys/stat.h>.
57086         (rpl_lseek): Add workaround code also for Unix platforms.
57087         Needed for BeOS.
57088         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57089         * doc/functions/lseek.texi: Document BeOS definiency.
57090
57091 2007-08-18  Bruno Haible  <bruno@clisp.org>
57092
57093         * modules/fstrcmp-tests: New file.
57094         * tests/test-fstrcmp.c: New file.
57095
57096 2007-08-18  Bruno Haible  <bruno@clisp.org>
57097
57098         * modules/fstrcmp: New file, from GNU gettext with modifications.
57099         * lib/fstrcmp.h: New file, from GNU gettext.
57100         * lib/fstrcmp.c: New file, from GNU gettext.
57101         * MODULES.html.sh (String handling): Add fstrcmp.
57102
57103 2007-08-18  Bruno Haible  <bruno@clisp.org>
57104
57105         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57106         'bool'.
57107         (diag, compareseq): Remove const from the ctxt argument.
57108         (USE_HEURISTIC): Undefine at the end.
57109
57110 2007-08-18  Jim Meyering  <jim@meyering.net>
57111
57112         New file: lib/idcache.h
57113         * NEWS: Mention the addition.
57114         * modules/idcache (Files): Add lib/idcache.h
57115         * lib/idcache.c: Include "idcache.h".
57116         Don't include <sys/types.h>.
57117         Add a FIXME comment.
57118         Move file-scoped "static" declarations to the top.
57119         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57120
57121 2007-08-17  Bruno Haible  <bruno@clisp.org>
57122         and Paul Eggert  <eggert@cs.ucla.edu>
57123
57124         * MODULES.html.sh: Add diffseq.
57125         * modules/diffseq: New file.
57126         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57127         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57128
57129 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57130
57131         Import changes from coreutils for bootstrap script.
57132
57133         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57134
57135         * build-aux/bootstrap (slurp): Work even in environments where
57136         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57137         current code does not slurp files whose names start with ".", and
57138         this looks like it might be a troublesome area.
57139
57140         2007-07-11  Jim Meyering  <jim@meyering.net>
57141
57142         If there's a GPL vN copyright comment, require that N == 3.
57143
57144         2007-07-08  Jim Meyering  <jim@meyering.net>
57145
57146         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57147         * build-aux/bootstrap (mam_template): Move definition out of loop.
57148
57149         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57150
57151         * build-aux/bootstrap (symlink_to_dir): Rename function from
57152         symlink_to_gnulib.  Add a directory parameter.  Update all
57153         callers.
57154         (cp_mark_as_generated): Also check for -- and link to -- files in
57155         gl/.
57156
57157         2007-07-08  Jim Meyering  <jim@meyering.net>
57158
57159         Adapt to deeper hierarchy in gnulib.
57160         * build-aux/bootstrap (symlink_to_dir): If the destination
57161         directory doesn't exist, create it. This is required at least for
57162         "lib/uniwidth/cjk.h".
57163
57164         2007-05-15  Jim Meyering  <jim@meyering.net>
57165
57166         * build-aux/bootstrap: Now that generated Makefile.am files
57167         are no longer under version control, they must be created at
57168         bootstrap time.
57169
57170 2007-08-14  Ben Pfaff  <blp@gnu.org>
57171
57172         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57173
57174 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57175
57176         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57177         given the changes below.
57178         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57179         even on hosts that have padding bits beyond the supported 64.
57180
57181 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57182
57183         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57184         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57185         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57186         depends on it.
57187         (xstrtol_error): Remove.
57188         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57189         but with a different signature.
57190         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57191         * lib/xstrtol-error.c: Include exitfail.h.
57192         (xstrtol_fatal): New function, with a different signature from the
57193         old xstrtol_error, so that the caller need not worry about passing
57194         in an exit status, or about storage management of the option argument.
57195         (xstrtol_error): Now a static function.  Redo signature to
57196         implement xstrtol_fatal.  Output the correct number of hyphens in
57197         front of the option so that the caller need not worry about
57198         storage management.
57199         (N_): New macro.
57200         (_): Remove; not used now.
57201         * modules/xstrtol: Depend on getopt.
57202         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57203         of old STRTOL_FATAL_ERROR macro.
57204         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57205         of test program.
57206         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57207         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57208
57209 2007-08-08  Eric Blake  <ebb9@byu.net>
57210
57211         * lib/xstrtol-error.c: Add missing include.
57212
57213         Move xstrtol messages into gnulib domain, when --pobase is used.
57214         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57215         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57216         * modules/xstrtol (Files): Distribute new file.
57217         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57218         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57219         * tests/test-xstrtol.c: ...into new file.
57220         * tests/test-xstrtoul.c: Also test xstrtoul.
57221         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57222         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57223         * tests/test-xstrtol.sh: Drive the tests.
57224         * tests/test-xstrtoimax.sh: Likewise.
57225         * tests/test-xstrtoumax.sh: Likewise.
57226         * modules/xstrtol-tests: New module.
57227         * modules/xstrtoimax-tests: Likewise.
57228         * modules/xstrtoumax-tests: Likewise.
57229
57230 2007-08-08  Jim Meyering  <jim@meyering.net>
57231
57232         New function: mfile_name_concat.
57233         * lib/filenamecat.c (mfile_name_concat): New function, just like
57234         file_name_concat, but return NULL upon failure rather than exiting
57235         with a diagnostic.
57236         * lib/filenamecat.h: Declare it.
57237
57238 2007-08-07  Bruno Haible  <bruno@clisp.org>
57239
57240         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57241         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57242         warning from gcc.
57243         Reported by Eric Blake.
57244
57245 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57246
57247         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57248         * modules/crypto/arcfour (License): Likewise.
57249         * modules/crypto/des-tests (License): Likewise.
57250         * modules/crypto/gc-arctwo-tests (License): Likewise.
57251         * modules/crypto/gc-des-tests (License): Likewise.
57252         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57253         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57254         * modules/crypto/gc-md2-tests (License): Likewise.
57255         * modules/crypto/gc-md4-tests (License): Likewise.
57256         * modules/crypto/gc-md5-tests (License): Likewise.
57257         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57258         * modules/crypto/gc-rijndael-tests (License): Likewise.
57259         * modules/crypto/gc-sha1-tests (License): Likewise.
57260         * modules/crypto/gc-tests (License): Likewise.
57261         * modules/crypto/hmac-md5 (License): Likewise.
57262         * modules/crypto/hmac-sha1 (License): Likewise.
57263         * modules/crypto/md2-tests (License): Likewise.
57264         * modules/crypto/md4-tests (License): Likewise.
57265         * modules/crypto/md5 (License): Likewise.
57266         * modules/crypto/rijndael (License): Likewise.
57267         * modules/crypto/sha1 (License): Likewise.
57268         * modules/memxor (License): Likewise.
57269
57270 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57271         and Bruno Haible  <bruno@clisp.org>
57272
57273         * NEWS: Describe interface changes to human, xstrtol.
57274         * lib/human.h: Include <xstrtol.h>.
57275         (human_options): Return enum strtol_error, not int.  Remove
57276         bool arg; take int * instead.
57277         * lib/human.c: Don't include "gettext.h".
57278         (_): Remove; no longer used.
57279         Don't include <xstrtol.h>, since human.h does it.
57280         (human_options): Adjust to abovementioned interface changes.
57281         Do not report error to stderr; that's now the caller's
57282         responsibility.
57283         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57284         interface change.
57285         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57286         Str, Argument_type_string.  All uses changed.  Put " argument"
57287         in diagnostics to make them clearer.  Change wording of suffix
57288         message for clarity.
57289         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57290         Argument_type_string.
57291         (STRTOL_FATAL_WARN): Remove; no longer used.
57292         * modules/human (Depends-on): Remove gettext-h.
57293
57294 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57295
57296         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57297
57298 2007-07-31  Bruno Haible  <bruno@clisp.org>
57299
57300         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57301         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57302         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57303
57304 2007-07-31  Bruno Haible  <bruno@clisp.org>
57305
57306         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57307         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57308
57309 2007-07-30  Bruno Haible  <bruno@clisp.org>
57310
57311         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57312         * modules/c-ctype (License): Likewise.
57313         * modules/c-strcase (License): Likewise.
57314         * modules/check-version (License): Likewise.
57315         * modules/iconv (License): Likewise.
57316         * modules/iconv_open (License): Likewise.
57317         * modules/read-file (License): Likewise.
57318         * modules/striconv (License): Likewise.
57319         * modules/strverscmp (License): Likewise.
57320         * modules/vasprintf (License): Likewise.
57321         * modules/crypto/des (License): Likewise.
57322         * modules/crypto/gc (License): Likewise.
57323         * modules/crypto/gc-arcfour (License): Likewise.
57324         * modules/crypto/gc-arctwo (License): Likewise.
57325         * modules/crypto/gc-des (License): Likewise.
57326         * modules/crypto/gc-hmac-md5 (License): Likewise.
57327         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57328         * modules/crypto/gc-md2 (License): Likewise.
57329         * modules/crypto/gc-md4 (License): Likewise.
57330         * modules/crypto/gc-md5 (License): Likewise.
57331         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57332         * modules/crypto/gc-random (License): Likewise.
57333         * modules/crypto/gc-rijndael (License): Likewise.
57334         * modules/crypto/gc-sha1 (License): Likewise.
57335         * modules/crypto/md2 (License): Likewise.
57336         * modules/crypto/md4 (License): Likewise.
57337
57338 2007-07-30  Jim Meyering  <jim@meyering.net>
57339
57340         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57341         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57342         it has valid stat data.  This bug would cause du not to count the
57343         sizes of inaccessible directories.
57344         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57345         in <http://bugzilla.redhat.com/250077>.
57346
57347 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57348             Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57351         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57352         #include_next, gives a diagnostic about it, but reports no error in
57353         the exit code.
57354         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57355
57356 2007-07-24  Ben Pfaff  <blp@gnu.org>
57357
57358         Improve name: "count-one-bits" is better than "popcount".
57359         * MODULES.html.sh: Update name.
57360         * lib/popcount.h: Renamed lib/count-one-bits.h.
57361         (popcount): Renamed count_one_bits.
57362         (popcountl): Renamed count_one_bits_l.
57363         (popcountll): Renamed count_one_bits_ll.
57364         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57365         * modules/popcount: Renamed module/count-one-bits.
57366         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57367         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57368
57369 2007-07-23  Ben Pfaff  <blp@gnu.org>
57370
57371         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57372         better code generation, and add U to large constants to avoid
57373         warnings, in non-GCC case.
57374         Suggested by Bruno Haible.
57375
57376 2007-07-23  Ben Pfaff  <blp@gnu.org>
57377
57378         * lib/popcount.h: Use verify_true instead of if...abort.
57379         * modules/popcount: Depend on verify module.
57380         Suggested by Jim Meyering.
57381
57382 2007-07-23  Bruno Haible  <bruno@clisp.org>
57383
57384         * gnulib-tool (func_import): Create a .cvsignore file also when the
57385         directory is not yet in CVS but the toplevel directory is. When
57386         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57387         Reported by Karl Berry.
57388
57389 2007-07-22  Ben Pfaff  <blp@gnu.org>
57390
57391         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57392         case.
57393         Suggested by Eric Blake.
57394
57395 2007-07-22  Ben Pfaff  <blp@gnu.org>
57396
57397         New module: popcount.
57398         * MODULES.html.sh: Add popcount.
57399         * modules/popcount: New file.
57400         * modules/popcount-tests: New file.
57401         * tests/test-popcount.c: New file.
57402         * lib/popcount.h: New file.
57403         * m4/popcount.m4: New file.
57404
57405 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57406
57407         * build-aux/announce-gen: Update to GPLv3.
57408
57409         * build-aux/config.guess: Update from config.
57410
57411 2007-07-21  Bruno Haible  <bruno@clisp.org>
57412
57413         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57414         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57415
57416 2007-07-20  Jim Meyering  <jim@meyering.net>
57417
57418         * check-module: Diagnose a self-dependency.
57419
57420 2007-07-19  Bruno Haible  <bruno@clisp.org>
57421
57422         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57423         empty.
57424         Reported by Eric Blake.
57425
57426 2007-07-18  Bruno Haible  <bruno@clisp.org>
57427
57428         * gnulib-tool: New options --po-base, --po-domain.
57429         (func_usage): Document them.
57430         (pobase, po_domain): New variables.
57431         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57432         DEFAULT_TEXT_DOMAIN.
57433         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57434         (func_import): Consider pobase and po_domain. Create a po/ directory.
57435         (func_create_testdir): Set pobase and po_domain to empty.
57436         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57437         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57438
57439 2007-07-18  Bruno Haible  <bruno@clisp.org>
57440
57441         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57442         EXTRA_DIST augmentation for files in build-aux/.
57443
57444 2007-07-16  Bruno Haible  <bruno@clisp.org>
57445
57446         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57447         * modules/getdelim (License): Likewise.
57448
57449 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57450
57451         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57452         * modules/d-type (License): Likewise.
57453         * modules/extensions (License): Likewise.
57454         * modules/fnmatch (License): Likewise.
57455         * modules/fseeko (License): Likewise.
57456         * modules/getaddrinfo (License): Likewise.
57457         * modules/getline (License): Likewise.
57458         * modules/getlogin_r (License): Likewise.
57459         * modules/getpass (License): Likewise.
57460         * modules/gettimeofday (License): Likewise.
57461         * modules/glob (License): Likewise.
57462         * modules/inet_ntop (License): Likewise.
57463         * modules/malloc (License): Likewise.
57464         * modules/malloca (License): Likewise.
57465         * modules/memmem (License): Likewise.
57466         * modules/mempcpy (License): Likewise.
57467         * modules/memset (License): Likewise.
57468         * modules/minmax (License): Likewise.
57469         * modules/mktime (License): Likewise.
57470         * modules/netinet_in (License): Likewise.
57471         * modules/pathmax (License): Likewise.
57472         * modules/poll (License): Likewise.
57473         * modules/regex (License): Likewise.
57474         * modules/snprintf (License): Likewise.
57475         * modules/stdbool (License): Likewise.
57476         * modules/stdint (License): Likewise.
57477         * modules/stdio (License): Likewise.
57478         * modules/strcase (License): Likewise.
57479         * modules/strcasestr (License): Likewise.
57480         * modules/strdup (License): Likewise.
57481         * modules/string (License): Likewise.
57482         * modules/strndup (License): Likewise.
57483         * modules/strnlen (License): Likewise.
57484         * modules/strpbrk (License): Likewise.
57485         * modules/strptime (License): Likewise.
57486         * modules/strsep (License): Likewise.
57487         * modules/sys_select (License): Likewise.
57488         * modules/sys_socket (License): Likewise.
57489         * modules/sys_stat (License): Likewise.
57490         * modules/sys_time (License): Likewise.
57491         * modules/time (License): Likewise.
57492         * modules/time_r (License): Likewise.
57493         * modules/timegm (License): Likewise.
57494         * modules/unistd (License): Likewise.
57495         * modules/vsnprintf (License): Likewise.
57496         * modules/wctype (License): Likewise.
57497
57498 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57499
57500         * modules/argz (License): LGPLv2+.
57501
57502 2007-07-15  Karl Berry  <karl@gnu.org>
57503
57504         * doc/gnulib.texi: revise node structure per new fdl.texi.
57505
57506 2007-07-14  Bruno Haible  <bruno@clisp.org>
57507
57508         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57509         the output file.
57510         * lib/uniname/uninames.h: Regenerated.
57511
57512 2007-07-14  Karl Berry  <karl@gnu.org>
57513
57514         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57515         omitting sectioning and index commands.
57516
57517 2007-07-13  Bruno Haible  <bruno@clisp.org>
57518
57519         New gnulib-tool option --more-symlinks.
57520         * gnulib-tool (func_usage): Document --more-symlinks.
57521         (do_copyrights): New variable.
57522         Recognize option --more-symlinks.
57523         (func_import): Don't add a copyright notice transform to
57524         sed_transform_lib_file if do_copyrights is empty.
57525
57526 2007-07-13  Bruno Haible  <bruno@clisp.org>
57527
57528         * lib/vasnprintf.c (decimal_point_char): Define also if
57529         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57530         && !NEED_PRINTF_DIRECTIVE_A.
57531         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57532         Gary V. Vaughan <gary@gnu.org>.
57533
57534 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57535
57536         * lib/inttypes_.h: Undo previous change, since it was fixed
57537         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57538
57539 2007-07-13  Bruno Haible  <bruno@clisp.org>
57540
57541         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57542         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57543
57544 2007-07-13  Jim Meyering  <jim@meyering.net>
57545
57546         df: Don't fail for Tru64's "file-on-file mount".
57547         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57548         so we fall through and use statfs instead.  Details here:
57549         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57550         Reported by Albert Chin.
57551
57552 2007-07-13  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57555         * modules/configmake (License): Likewise.
57556         * modules/gettext (License): Likewise.
57557         * modules/gettext-h (License): Likewise.
57558         * modules/include_next (License): Likewise.
57559         * modules/link-warning (License): Likewise.
57560         * modules/localcharset (License): Likewise.
57561         * modules/localename (License): Likewise.
57562         * modules/lock (License): Likewise.
57563         * modules/relocatable-lib-lgpl (License): Likewise.
57564         * modules/size_max (License): Likewise.
57565         * modules/vasnprintf (License): Likewise.
57566         * modules/wchar (License): Likewise.
57567         * modules/xsize (License): Likewise.
57568
57569 2007-07-13  Bruno Haible  <bruno@clisp.org>
57570
57571         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57572         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57573
57574 2007-07-12  Bruno Haible  <bruno@clisp.org>
57575
57576         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57577         in the modules files.
57578
57579 2007-07-11  Karl Berry  <karl@gnu.org>
57580
57581         * MODULES.html.sh (func_module): use
57582          sed -e '\|^'"${includefile}"'$|d'
57583          instead of /.../d, to avoid errors on $includefile's containing /.
57584
57585 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57586
57587         * gnulib-tool (func_import): Avoid duplication of --avoid
57588         statements
57589         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57590         names to `_' in variable names.
57591
57592 2007-07-10  Eric Blake  <ebb9@byu.net>
57593
57594         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57595         * NEWS: Document this change.
57596
57597 2007-07-08  Bruno Haible  <bruno@clisp.org>
57598
57599         Update to Unicode 5.0.
57600         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57601         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57602         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57603         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57604         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57605         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57606         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57607         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57608         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57609         U+10A3F, U+1D242..U+1D244.
57610         (nonspacing_table_ind): Update.
57611         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57612         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57613
57614 2007-07-08  Bruno Haible  <bruno@clisp.org>
57615
57616         Update to Unicode 5.0.
57617         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57618         code transform. Extend the name index field of unicode_name_to_code and
57619         unicode_code_to_name from 16 to 24 bits.
57620         * lib/uniname/uniname.c (unicode_character_name,
57621         unicode_name_character): Add the range 0x12xxx to the code transform.
57622         * lib/uniname/uninames.h: Regenerated.
57623         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57624
57625 2007-07-07  Bruno Haible  <bruno@clisp.org>
57626
57627         * modules/wcwidth-tests: New file.
57628         * tests/test-wcwidth.c: New file.
57629
57630         Work around MacOS X wcwidth() bug.
57631         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57632         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57633         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57634         original wcwidth in non-UTF-8 locales.
57635         * modules/wcwidth (Depends-on): Add localcharset, streq,
57636         uniwidth/width.
57637         * doc/functions/wcwidth.texi: Update.
57638
57639 2007-07-07  Bruno Haible  <bruno@clisp.org>
57640
57641         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57642         (wcwidth): New declaration.
57643         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57644         macros.
57645         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57646         here. Prepare for creating <wchar.h> unconditionally.
57647         * modules/wchar (Depends-on): Add link-warning.
57648         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57649         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57650         * lib/wcwidth.h: Remove file.
57651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57652         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57653         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57654         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57655         (Include): Replace wcwidth.h with <wchar.h>.
57656         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57657         * lib/mbchar.h: Don't include wcwidth.h.
57658         * lib/mbswidth.c: Likewise.
57659         * NEWS: Mention the change.
57660
57661 2007-07-07  Bruno Haible  <bruno@clisp.org>
57662
57663         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57664         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57665         definition with an external declaration.
57666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57667         defined as a function. Remove AC_C_INLINE requirement.
57668         * modules/wcwidth (Files): Add lib/wcwidth.c.
57669         (Makefile.am): Remove redundant statement.
57670
57671 2007-07-07  Bruno Haible  <bruno@clisp.org>
57672
57673         * MODULES.html.sh (Unicode string functions): Add the new modules.
57674
57675         * tests/uniwidth/test-u32-strwidth.c: New file.
57676         * modules/uniwidth/u32-strwidth-tests: New file.
57677
57678         * lib/uniwidth/u32-strwidth.c: New file.
57679         * modules/uniwidth/u32-strwidth: New file.
57680
57681         * tests/uniwidth/test-u16-strwidth.c: New file.
57682         * modules/uniwidth/u16-strwidth-tests: New file.
57683
57684         * lib/uniwidth/u16-strwidth.c: New file.
57685         * modules/uniwidth/u16-strwidth: New file.
57686
57687         * tests/uniwidth/test-u8-strwidth.c: New file.
57688         * modules/uniwidth/u8-strwidth-tests: New file.
57689
57690         * lib/uniwidth/u8-strwidth.c: New file.
57691         * modules/uniwidth/u8-strwidth: New file.
57692
57693         * tests/uniwidth/test-u32-width.c: New file.
57694         * modules/uniwidth/u32-width-tests: New file.
57695
57696         * lib/uniwidth/u32-width.c: New file.
57697         * modules/uniwidth/u32-width: New file.
57698
57699         * tests/uniwidth/test-u16-width.c: New file.
57700         * modules/uniwidth/u16-width-tests: New file.
57701
57702         * lib/uniwidth/u16-width.c: New file.
57703         * modules/uniwidth/u16-width: New file.
57704
57705         * tests/uniwidth/test-u8-width.c: New file.
57706         * modules/uniwidth/u8-width-tests: New file.
57707
57708         * lib/uniwidth/u8-width.c: New file.
57709         * modules/uniwidth/u8-width: New file.
57710
57711         * tests/uniwidth/test-uc_width.c: New file.
57712         * modules/uniwidth/width-tests: New file.
57713
57714         * lib/uniwidth/width.c: New file, from GNU libiconv.
57715         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57716         * modules/uniwidth/width: New file.
57717
57718         * lib/uniwidth.h: New file, from GNU libiconv.
57719         * modules/uniwidth/base: New file.
57720
57721 2007-07-07  Bruno Haible  <bruno@clisp.org>
57722
57723         * lib/uniname.h: New file, from GNU gettext.
57724         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57725         * lib/uniname/uninames.h: New file, from GNU gettext.
57726         * lib/uniname/uniname.c: New file, from GNU gettext.
57727         * tests/uniname/test-uninames.sh: New file.
57728         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57729         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57730         * modules/uniname/base: New file.
57731         * modules/uniname/uniname: New file.
57732         * modules/uniname/uniname-tests: New file.
57733         * MODULES.html.sh (Unicode string functions): Add the new modules.
57734
57735 2007-07-06  Bruno Haible  <bruno@clisp.org>
57736
57737         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57738
57739 2007-07-06  Bruno Haible  <bruno@clisp.org>
57740
57741         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57742         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57743         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57744         include <sys/time.h>.
57745         Reported by Eric Blake.
57746
57747 2007-07-06  Eric Blake  <ebb9@byu.net>
57748
57749         Fix testing canonicalize on cygwin.
57750         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57751         Revert patch from 2007-06-19.
57752         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57753         canonicalize module is also in use.
57754         * tests/test-canonicalize.c: New file.
57755         * tests/test-canonicalize.sh: Likewise.
57756         * modules/canonicalize-tests: Likewise.
57757
57758 2007-07-06  Jim Meyering  <jim@meyering.net>
57759
57760         * lib/getugroups.c (getugroups): Detect getgrent failure.
57761         Adjust comment to reflect reality: this function may return -1.
57762
57763 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57764
57765         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57766         the new TP address.
57767         (usage): Fix typo
57768         (gnulib_mk): New variable.
57769
57770 2007-07-05  Jim Meyering  <jim@meyering.net>
57771
57772         Don't let endgrent clobber errno, no matter how improbable.
57773         * lib/getugroups.c (getugroups): Save and restore errno around
57774         endgrent call.
57775
57776         Close the group DB even when failing with 2^31 or more members.
57777         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57778
57779 2007-07-04  Jim Meyering  <jim@meyering.net>
57780
57781         * lib/getugroups.h: New file.
57782         * lib/getugroups.c: Include "getugroups.h".
57783         Remove uses of "register" keyword.
57784         Move local variable, "cp", down into scope where used.
57785         Give "username" parameter the "const" attribute.
57786         * modules/getugroups (Files): Add lib/getugroups.h
57787
57788 2007-07-04  Karl Berry  <karl@gnu.org>
57789
57790         * MODULES.html.sh (func_all_modules): Complete rename of
57791         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57792
57793 2007-07-02  Bruno Haible  <bruno@clisp.org>
57794
57795         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57796         mode, when inttypes.h comes from gnulib.
57797         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57798
57799 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57800
57801         * NEWS: Mention lgpl module name change.
57802
57803         * modules/lgpl-2.1: Renamed from lgpl.
57804
57805         * NEWS: Mention gpl module name change.
57806
57807         * modules/gpl-3.0: New file, based on gpl-2.0.
57808
57809         * modules/gpl-2.0: Renamed from gpl.
57810
57811         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57812         doc/gpl-2.0.texi.
57813
57814 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57815
57816         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57817         #define __STDC_LIMIT_MACROS temporarily while including
57818         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57819         Problem reported by Joel E. Denny in
57820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57821
57822 2007-07-01  Bruno Haible  <bruno@clisp.org>
57823
57824         * lib/unistdio.h: New file.
57825         * lib/unistdio/u-asnprintf.h: New file.
57826         * lib/unistdio/u-asprintf.h: New file.
57827         * lib/unistdio/u-printf-args.c: New file.
57828         * lib/unistdio/u-printf-args.h: New file.
57829         * lib/unistdio/u-printf-parse.h: New file.
57830         * lib/unistdio/u-snprintf.h: New file.
57831         * lib/unistdio/u-sprintf.h: New file.
57832         * lib/unistdio/u-vasprintf.h: New file.
57833         * lib/unistdio/u-vsnprintf.h: New file.
57834         * lib/unistdio/u-vsprintf.h: New file.
57835         * lib/unistdio/ulc-asnprintf.c: New file.
57836         * lib/unistdio/ulc-asprintf.c: New file.
57837         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57838         * lib/unistdio/ulc-printf-parse.c: New file.
57839         * lib/unistdio/ulc-snprintf.c: New file.
57840         * lib/unistdio/ulc-sprintf.c: New file.
57841         * lib/unistdio/ulc-vasnprintf.c: New file.
57842         * lib/unistdio/ulc-vasprintf.c: New file.
57843         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57844         * lib/unistdio/ulc-vsnprintf.c: New file.
57845         * lib/unistdio/ulc-vsprintf.c: New file.
57846         * lib/unistdio/u8-asnprintf.c: New file.
57847         * lib/unistdio/u8-asprintf.c: New file.
57848         * lib/unistdio/u8-printf-parse.c: New file.
57849         * lib/unistdio/u8-snprintf.c: New file.
57850         * lib/unistdio/u8-sprintf.c: New file.
57851         * lib/unistdio/u8-vasnprintf.c: New file.
57852         * lib/unistdio/u8-vasprintf.c: New file.
57853         * lib/unistdio/u8-vsnprintf.c: New file.
57854         * lib/unistdio/u8-vsprintf.c: New file.
57855         * lib/unistdio/u8-u8-asnprintf.c: New file.
57856         * lib/unistdio/u8-u8-asprintf.c: New file.
57857         * lib/unistdio/u8-u8-snprintf.c: New file.
57858         * lib/unistdio/u8-u8-sprintf.c: New file.
57859         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57860         * lib/unistdio/u8-u8-vasprintf.c: New file.
57861         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57862         * lib/unistdio/u8-u8-vsprintf.c: New file.
57863         * lib/unistdio/u16-asnprintf.c: New file.
57864         * lib/unistdio/u16-asprintf.c: New file.
57865         * lib/unistdio/u16-printf-parse.c: New file.
57866         * lib/unistdio/u16-snprintf.c: New file.
57867         * lib/unistdio/u16-sprintf.c: New file.
57868         * lib/unistdio/u16-vasnprintf.c: New file.
57869         * lib/unistdio/u16-vasprintf.c: New file.
57870         * lib/unistdio/u16-vsnprintf.c: New file.
57871         * lib/unistdio/u16-vsprintf.c: New file.
57872         * lib/unistdio/u16-u16-asnprintf.c: New file.
57873         * lib/unistdio/u16-u16-asprintf.c: New file.
57874         * lib/unistdio/u16-u16-snprintf.c: New file.
57875         * lib/unistdio/u16-u16-sprintf.c: New file.
57876         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57877         * lib/unistdio/u16-u16-vasprintf.c: New file.
57878         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57879         * lib/unistdio/u16-u16-vsprintf.c: New file.
57880         * lib/unistdio/u32-asnprintf.c: New file.
57881         * lib/unistdio/u32-asprintf.c: New file.
57882         * lib/unistdio/u32-printf-parse.c: New file.
57883         * lib/unistdio/u32-snprintf.c: New file.
57884         * lib/unistdio/u32-sprintf.c: New file.
57885         * lib/unistdio/u32-vasnprintf.c: New file.
57886         * lib/unistdio/u32-vasprintf.c: New file.
57887         * lib/unistdio/u32-vsnprintf.c: New file.
57888         * lib/unistdio/u32-vsprintf.c: New file.
57889         * lib/unistdio/u32-u32-asnprintf.c: New file.
57890         * lib/unistdio/u32-u32-asprintf.c: New file.
57891         * lib/unistdio/u32-u32-snprintf.c: New file.
57892         * lib/unistdio/u32-u32-sprintf.c: New file.
57893         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57894         * lib/unistdio/u32-u32-vasprintf.c: New file.
57895         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57896         * lib/unistdio/u32-u32-vsprintf.c: New file.
57897         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57898         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57899         * tests/unistdio/test-ulc-printf1.h: New file.
57900         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57901         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57902         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57903         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57904         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57905         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57906         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57907         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57908         * tests/unistdio/test-u8-asnprintf1.c: New file.
57909         * tests/unistdio/test-u8-asnprintf1.h: New file.
57910         * tests/unistdio/test-u8-printf1.h: New file.
57911         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57912         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57913         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57914         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57915         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57916         * tests/unistdio/test-u8-vasprintf1.c: New file.
57917         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57918         * tests/unistdio/test-u8-vsprintf1.c: New file.
57919         * tests/unistdio/test-u16-asnprintf1.c: New file.
57920         * tests/unistdio/test-u16-asnprintf1.h: New file.
57921         * tests/unistdio/test-u16-printf1.h: New file.
57922         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57923         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57924         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57925         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57926         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57927         * tests/unistdio/test-u16-vasprintf1.c: New file.
57928         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57929         * tests/unistdio/test-u16-vsprintf1.c: New file.
57930         * tests/unistdio/test-u32-asnprintf1.c: New file.
57931         * tests/unistdio/test-u32-asnprintf1.h: New file.
57932         * tests/unistdio/test-u32-printf1.h: New file.
57933         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57934         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57935         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57936         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57937         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57938         * tests/unistdio/test-u32-vasprintf1.c: New file.
57939         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57940         * tests/unistdio/test-u32-vsprintf1.c: New file.
57941         * modules/unistdio/base: New file.
57942         * modules/unistdio/u-printf-args: New file.
57943         * modules/unistdio/ulc-asnprintf: New file.
57944         * modules/unistdio/ulc-asprintf: New file.
57945         * modules/unistdio/ulc-fprintf: New file.
57946         * modules/unistdio/ulc-printf-parse: New file.
57947         * modules/unistdio/ulc-snprintf: New file.
57948         * modules/unistdio/ulc-sprintf: New file.
57949         * modules/unistdio/ulc-vasnprintf: New file.
57950         * modules/unistdio/ulc-vasprintf: New file.
57951         * modules/unistdio/ulc-vfprintf: New file.
57952         * modules/unistdio/ulc-vsnprintf: New file.
57953         * modules/unistdio/ulc-vsprintf: New file.
57954         * modules/unistdio/u8-asnprintf: New file.
57955         * modules/unistdio/u8-asprintf: New file.
57956         * modules/unistdio/u8-printf-parse: New file.
57957         * modules/unistdio/u8-snprintf: New file.
57958         * modules/unistdio/u8-sprintf: New file.
57959         * modules/unistdio/u8-vasnprintf: New file.
57960         * modules/unistdio/u8-vasprintf: New file.
57961         * modules/unistdio/u8-vsnprintf: New file.
57962         * modules/unistdio/u8-vsprintf: New file.
57963         * modules/unistdio/u8-u8-asnprintf: New file.
57964         * modules/unistdio/u8-u8-asprintf: New file.
57965         * modules/unistdio/u8-u8-snprintf: New file.
57966         * modules/unistdio/u8-u8-sprintf: New file.
57967         * modules/unistdio/u8-u8-vasnprintf: New file.
57968         * modules/unistdio/u8-u8-vasprintf: New file.
57969         * modules/unistdio/u8-u8-vsnprintf: New file.
57970         * modules/unistdio/u8-u8-vsprintf: New file.
57971         * modules/unistdio/u16-asnprintf: New file.
57972         * modules/unistdio/u16-asprintf: New file.
57973         * modules/unistdio/u16-printf-parse: New file.
57974         * modules/unistdio/u16-snprintf: New file.
57975         * modules/unistdio/u16-sprintf: New file.
57976         * modules/unistdio/u16-vasnprintf: New file.
57977         * modules/unistdio/u16-vasprintf: New file.
57978         * modules/unistdio/u16-vsnprintf: New file.
57979         * modules/unistdio/u16-vsprintf: New file.
57980         * modules/unistdio/u16-u16-asnprintf: New file.
57981         * modules/unistdio/u16-u16-asprintf: New file.
57982         * modules/unistdio/u16-u16-snprintf: New file.
57983         * modules/unistdio/u16-u16-sprintf: New file.
57984         * modules/unistdio/u16-u16-vasnprintf: New file.
57985         * modules/unistdio/u16-u16-vasprintf: New file.
57986         * modules/unistdio/u16-u16-vsnprintf: New file.
57987         * modules/unistdio/u16-u16-vsprintf: New file.
57988         * modules/unistdio/u32-asnprintf: New file.
57989         * modules/unistdio/u32-asprintf: New file.
57990         * modules/unistdio/u32-printf-parse: New file.
57991         * modules/unistdio/u32-snprintf: New file.
57992         * modules/unistdio/u32-sprintf: New file.
57993         * modules/unistdio/u32-vasnprintf: New file.
57994         * modules/unistdio/u32-vasprintf: New file.
57995         * modules/unistdio/u32-vsnprintf: New file.
57996         * modules/unistdio/u32-vsprintf: New file.
57997         * modules/unistdio/u32-u32-asnprintf: New file.
57998         * modules/unistdio/u32-u32-asprintf: New file.
57999         * modules/unistdio/u32-u32-snprintf: New file.
58000         * modules/unistdio/u32-u32-sprintf: New file.
58001         * modules/unistdio/u32-u32-vasnprintf: New file.
58002         * modules/unistdio/u32-u32-vasprintf: New file.
58003         * modules/unistdio/u32-u32-vsnprintf: New file.
58004         * modules/unistdio/u32-u32-vsprintf: New file.
58005         * modules/unistdio/ulc-asnprintf-tests: New file.
58006         * modules/unistdio/ulc-vasnprintf-tests: New file.
58007         * modules/unistdio/ulc-vasprintf-tests: New file.
58008         * modules/unistdio/ulc-vsnprintf-tests: New file.
58009         * modules/unistdio/ulc-vsprintf-tests: New file.
58010         * modules/unistdio/u8-asnprintf-tests: New file.
58011         * modules/unistdio/u8-vasnprintf-tests: New file.
58012         * modules/unistdio/u8-vasprintf-tests: New file.
58013         * modules/unistdio/u8-vsnprintf-tests: New file.
58014         * modules/unistdio/u8-vsprintf-tests: New file.
58015         * modules/unistdio/u16-asnprintf-tests: New file.
58016         * modules/unistdio/u16-vasnprintf-tests: New file.
58017         * modules/unistdio/u16-vasprintf-tests: New file.
58018         * modules/unistdio/u16-vsnprintf-tests: New file.
58019         * modules/unistdio/u16-vsprintf-tests: New file.
58020         * modules/unistdio/u32-asnprintf-tests: New file.
58021         * modules/unistdio/u32-vasnprintf-tests: New file.
58022         * modules/unistdio/u32-vasprintf-tests: New file.
58023         * modules/unistdio/u32-vsnprintf-tests: New file.
58024         * modules/unistdio/u32-vsprintf-tests: New file.
58025         * MODULES.html.sh (Unicode string functions): Add the new modules.
58026
58027 2007-07-01  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/sprintf.c (sprintf): Limit the available length estimation,
58030         to avoid address wraparound.
58031         * lib/vsprintf.c (vsprintf): Likewise.
58032         * modules/sprintf-posix (Dependencies): Add stdint.
58033         * modules/vsprintf-posix (Dependencies): Likewise.
58034
58035 2007-07-01  Bruno Haible  <bruno@clisp.org>
58036
58037         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58038         Windows PATH as well. Conservative double-quoting. Comments.
58039
58040 2007-07-01  Bruno Haible  <bruno@clisp.org>
58041             Eric Blake  <ebb9@byu.net>
58042             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58043
58044         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58045         empty components in $PATH, denoting '.'.
58046
58047 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58048
58049         * gnulib-tool: Fix indentation.
58050         (func_create_megatestdir): Likewise.
58051         Report by Bruno Haible.
58052
58053 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58054
58055         Sync from Automake.
58056         * build-aux/gnupload: Fix shell portability issues with for loops.
58057         Report by Karl Berry.
58058
58059 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58060
58061         * build-aux/maint.mk (POURL): Use translationproject.org.
58062
58063 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58064             Bruno Haible  <bruno@clisp.org>
58065
58066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58067         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58068         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58069         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58070         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58071
58072 2007-06-27  Bruno Haible  <bruno@clisp.org>
58073
58074         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58075         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58076
58077 2007-06-26  Karl Berry  <karl@gnu.org>
58078
58079         * MODULES.html.sh: remove xreadlink-with-size.
58080
58081 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58082
58083         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58084         method that I hope also handles the double-include problem noted
58085         by Bruno Haible in
58086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58087
58088 2007-06-23  Bruno Haible  <bruno@clisp.org>
58089
58090         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58091         Don't let the 'mostlyclean' target fail if the last subdirectory could
58092         not be removed.
58093         Reported by Karl Berry.
58094
58095 2007-06-23  Bruno Haible  <bruno@clisp.org>
58096
58097         * gnulib-tool (echo): Add a speedier workaround for ksh.
58098         * tests/test-echo.sh: Likewise.
58099
58100 2007-06-23  Bruno Haible  <bruno@clisp.org>
58101
58102         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58103         * tests/test-echo.sh: Likewise.
58104
58105 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58106
58107         * gnulib-tool (IFS): Initialize early, so we don't set it to
58108         empty later.
58109         (self_abspathname): Rewrite algorithm to set it, reindent.
58110         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58111         (func_create_megatestdir): Merge some sed scripts.
58112
58113 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58114
58115         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58116         exposed by Sun Studio 11 cc on Solaris 8.
58117
58118 2007-06-22  Bruno Haible  <bruno@clisp.org>
58119
58120         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58121         backslashes.
58122         * tests/test-echo.sh: New file.
58123
58124 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58125
58126         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58127         simplify `sed_replace_build_aux' scripts, they are portable but
58128         echoing them with `echo' is not.
58129         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58130
58131 2007-06-21  Karl Berry  <karl@gnu.org>
58132
58133         * config/srclist.txt: guess we can't handle the licenses via
58134         srclist at the moment.
58135
58136 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58137
58138         * MODULES.html.sh: Add include_next.
58139         * modules/include_next: New file.
58140
58141 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58142
58143         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58144         INCLUDE_NEXT.
58145         (gl_CHECK_NEXT_HEADERS): New macro.
58146         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58147         the obsolescent gl_ABSOLUTE_HEADER.
58148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58149         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58150         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58151         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58152         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58153         * m4/math_h.m4 (gl_MATH_H): Likewise.
58154         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58155         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58156         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58157         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58158         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58159         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58160         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58161         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58162         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58163         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58164         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58165         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58166         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58167         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58168         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58169         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58170         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58171         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58172         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58173         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58174         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58175         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58176         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58177         * lib/float_.h: Likewise.
58178         * lib/inttypes_.h: Likewise.
58179         * lib/math_.h: Likewise.
58180         * lib/search_.h: Likewise.
58181         * lib/signal_.h: Likewise.
58182         * lib/stdint_.h: Likewise.
58183         * lib/stdio_.h: Likewise.
58184         * lib/stdlib_.h: Likewise.
58185         * lib/string_.h: Likewise.
58186         * lib/sys_stat_.h: Likewise.
58187         * lib/sys_time_.h: Likewise.
58188         * lib/time_.h: Likewise.
58189         * lib/unistd_.h: Likewise.
58190         * lib/wchar_.h: Likewise.
58191         * lib/wctype_.h: Likewise.
58192         * lib/dirent_.h: Likewise.
58193         * lib/iconv_.h: Likewise.
58194         * lib/locale_.h: Likewise.
58195         * lib/netinet_in_.h: Likewise.
58196         * lib/sys_select_.h: Likewise.
58197         * lib/sys_socket_.h: Likewise.
58198         * lib/sysexits_.h: Likewise.
58199         * modules/fcntl (Depends-on): Depend on include_next, not
58200         absolute_header.
58201         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58202         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58203         * modules/fchdir: Likewise.
58204         * modules/float: Likewise.
58205         * modules/iconv_open: Likewise.
58206         * modules/inttypes: Likewise.
58207         * modules/locale: Likewise.
58208         * modules/math: Likewise.
58209         * modules/netinet_in: Likewise.
58210         * modules/search: Likewise.
58211         * modules/signal: Likewise.
58212         * modules/stdint: Likewise.
58213         * modules/stdio: Likewise.
58214         * modules/stdlib: Likewise.
58215         * modules/string: Likewise.
58216         * modules/sys_select: Likewise.
58217         * modules/sys_socket: Likewise.
58218         * modules/sys_stat: Likewise.
58219         * modules/sys_time: Likewise.
58220         * modules/sysexits: Likewise.
58221         * modules/time: Likewise.
58222         * modules/unistd: Likewise.
58223         * modules/wchar: Likewise.
58224         * modules/wctype: Likewise.
58225         * modules/sys_stat: Change maintainer to "all".
58226         * modules/unistd: Likewise.
58227
58228 2007-06-20  Karl Berry  <karl@gnu.org>
58229
58230         * config/srclist.txt: track www changes in license files.
58231
58232 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58233
58234         * build-aux/bootstrap: Remove stray dot.
58235         Make sure build_aux settings are honored when linking
58236         gnulib_extra_files.
58237
58238 2007-06-19  Eric Blake  <ebb9@byu.net>
58239
58240         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58241         Allow compilation on cygwin.
58242
58243 2007-06-19  Jim Meyering  <jim@meyering.net>
58244
58245         xreadlink-with-size: Remove module.  No longer used.
58246         Ex-callers now use xreadlink or mreadlink-with-size.
58247         * modules/xreadlink-with-size: Remove module.
58248         * lib/xreadlink-with-size.c: Remove file.
58249         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58250         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58251         just before the function definition *is* accurate.
58252
58253         Eliminate one way canonicalize_filename_mode could exit.
58254         * lib/canonicalize.c (canonicalize_filename_mode):
58255         Use mreadlink_with_size, not xreadlink_with_size.
58256
58257 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58258
58259         Detect porting problems to FreeBSD/arm, which has time_t wider than
58260         long int.  Original problem reported for GNU diff by Xin Li in
58261         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58262         * modules/getdate (Depends-on): Add intprops, verify.
58263         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58264         is an integer type no wider than long int.
58265
58266 2007-06-18  Jim Meyering  <jim@meyering.net>
58267
58268         New module: mreadlink-with-size.
58269         * MODULES.html.sh: Add mreadlink-with-size.
58270         * modules/mreadlink-with-size: New module
58271         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58272         not xreadlink-with-size.
58273         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58274
58275 2007-06-16  Bruno Haible  <bruno@clisp.org>
58276
58277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58278         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58279         Reported by Gary V. Vaughan <gary@gnu.org>.
58280
58281 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58282
58283         Revamp lchown so that it lives in unistd.h where it belongs.
58284         * lib/lchown.h: Remove.
58285         * lib/dirchownmod.c: Don't include lib/lchown.h.
58286         * lib/fchownat.c: Likewise.
58287         * lib/openat.c: Likewise.
58288         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58289         does not follow symlinks.
58290         (EOPNOTSUPP): Define if not defined.
58291         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58292         is defined to 0.
58293         (lchown): New decl.
58294         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58295         Do not check for lchown decl.
58296         Set REPLACE_LCHOWN.
58297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58298         REPLACE_LCHOWN.
58299         * modules/chown: Make it clear it follows symlinks.
58300         * modules/lchown: Make it clear it doesn't follow symlinks.
58301         (Files): Remove lib/lchown.h
58302         (Depends-on): Add unistd.
58303         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58304         (Include): Include <unistd.h>, not "lchown.h".
58305         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58306         REPLACE_LCHOWN.
58307
58308 2007-06-15  Jim Meyering  <jim@meyering.net>
58309
58310         Change license (GPL to LGPL) of fsusage and dependents.
58311         * modules/fsusage (License): Change to LGPL.
58312         * modules/full-read (License): Likewise.
58313         * modules/full-write (License): Likewise.
58314         * modules/safe-read (License): Likewise.
58315         * modules/safe-write (License): Likewise.
58316
58317 2007-06-14  Ben Pfaff  <blp@gnu.org>
58318
58319         Missing part of allocsa -> malloca transition.
58320         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58321         gl_MALLOCA.
58322
58323 2007-06-12  Bruno Haible  <bruno@clisp.org>
58324
58325         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58326         to ia64, x86_64, i386.
58327         Reported by Eric Blake.
58328
58329 2007-06-12  Bruno Haible  <bruno@clisp.org>
58330
58331         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58332         cross-compiling to x86_64.
58333
58334 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58335
58336         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58337         glitch reported by Ralf Wildenhues in
58338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58339
58340         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58341         Vin Shelton.
58342
58343 2007-06-11  Bruno Haible  <bruno@clisp.org>
58344
58345         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58346         replacement string.
58347         Reported by Eric Blake.
58348
58349 2007-06-10  Bruno Haible  <bruno@clisp.org>
58350
58351         Prepare vasnprintf code for use with Unicode strings.
58352         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58353         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58354         TYPE_U32_STRING.
58355         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58356         a_u32_string variants.
58357         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58358         * lib/printf-args.c: Don't include config.h and the specification
58359         header if PRINTF_FETCHARGS is already defined.
58360         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58361         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58362         TYPE_U16_STRING, TYPE_U32_STRING.
58363         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58364         u16_directive, u16_directives, u32_directive, u32_directives): New
58365         types.
58366         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58367         New declarations.
58368         * lib/printf-parse.c: Don't include config.h and the specification
58369         header if PRINTF_PARSE is already defined. Eliminate the set of
58370         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58371         them now. Include c-ctype.h.
58372         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58373         directive and CHAR_T_ONLY_ASCII.
58374         * lib/vasnprintf.c: Don't include config.h and the specification header
58375         if VASNPRINTF is already defined.
58376         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58377         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58378         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58379         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58380         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58381         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58382         code accordingly.
58383         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58384         pad_ourselves also in this case, with the 'c' and 's' directives, and
58385         with a different notion of "width".
58386         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58387
58388 2007-06-10  Bruno Haible  <bruno@clisp.org>
58389
58390         * modules/unistr/u32-mbsnlen: New file.
58391         * lib/unistr/u32-mbsnlen.c: New file.
58392
58393         * modules/unistr/u16-mbsnlen: New file.
58394         * lib/unistr/u16-mbsnlen.c: New file.
58395
58396         * modules/unistr/u8-mbsnlen: New file.
58397         * lib/unistr/u8-mbsnlen.c: New file.
58398
58399         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58400         declarations.
58401
58402 2007-06-10  Bruno Haible  <bruno@clisp.org>
58403
58404         * lib/string_.h (mbsnlen): New declaration.
58405         * lib/mbsnlen.c: New file.
58406         * m4/mbsnlen.m4: New file.
58407         * modules/mbsnlen: New file.
58408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58409         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58410         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58411
58412 2007-06-10  Bruno Haible  <bruno@clisp.org>
58413
58414         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58415
58416 2007-06-10  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58419         * lib/mbuiter.h: Likewise.
58420
58421 2007-06-10  Bruno Haible  <bruno@clisp.org>
58422
58423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58424         declaration.
58425
58426 2007-06-10  Karl Berry  <karl@gnu.org>
58427
58428         * config/srclist.txt: remove gettext entries, Bruno prefers
58429         to update individually.
58430
58431 2007-06-10  Bruno Haible  <bruno@clisp.org>
58432
58433         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58434         'maxlen'. Ensure only length + width bytes are allocated, not
58435         length + 1 + width.
58436
58437 2007-06-09  Bruno Haible  <bruno@clisp.org>
58438
58439         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58440         (CHAR_T): Remove macro.
58441         (VASNPRINTF): Update.
58442
58443 2007-06-09  Bruno Haible  <bruno@clisp.org>
58444
58445         * MODULES.html.sh (Unicode string functions): Add the new modules.
58446
58447         * modules/uniconv/u32-conv-to-enc: New file.
58448         * lib/uniconv/u32-conv-to-enc.c: New file.
58449         * modules/uniconv/u32-conv-to-enc-tests: New file.
58450         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58451
58452         * modules/uniconv/u16-conv-to-enc: New file.
58453         * lib/uniconv/u16-conv-to-enc.c: New file.
58454         * lib/uniconv/u-conv-to-enc.h: New file.
58455         * modules/uniconv/u16-conv-to-enc-tests: New file.
58456         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58457
58458         * modules/uniconv/u8-conv-to-enc: New file.
58459         * lib/uniconv/u8-conv-to-enc.c: New file.
58460         * modules/uniconv/u8-conv-to-enc-tests: New file.
58461         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58462
58463         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58464         u32_conv_to_encoding): New declarations.
58465
58466 2007-06-09  Bruno Haible  <bruno@clisp.org>
58467
58468         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58469
58470 2007-06-09  Bruno Haible  <bruno@clisp.org>
58471
58472         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58473         * modules/malloca: Renamed from modules/allocsa, updated.
58474         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58475         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58476         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58477         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58478         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58479         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58480         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58481         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58482         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58483         * modules/c-strcasestr (Depends-on): Update.
58484         * lib/c-strcasestr.c: Update.
58485         * modules/c-strstr (Depends-on): Update.
58486         * lib/c-strstr.c: Update.
58487         * modules/canonicalize-lgpl (Depends-on): Update.
58488         * lib/canonicalize-lgpl.c: Update.
58489         * modules/clean-temp (Depends-on): Update.
58490         * lib/clean-temp.c: Update.
58491         * modules/csharpcomp (Depends-on): Update.
58492         * lib/csharpcomp.c: Update.
58493         * modules/csharpexec (Depends-on): Update.
58494         * lib/csharpexec.c: Update.
58495         * modules/javacomp (Depends-on): Update.
58496         * lib/javacomp.c: Update.
58497         * modules/javaexec (Depends-on): Update.
58498         * lib/javaexec.c: Update.
58499         * modules/mbscasestr (Depends-on): Update.
58500         * lib/mbscasestr.c: Update.
58501         * modules/mbsstr (Depends-on): Update.
58502         * lib/mbsstr.c: Update.
58503         * modules/setenv (Depends-on): Update.
58504         * lib/setenv.c: Update.
58505         * modules/strcasestr (Depends-on): Update.
58506         * lib/strcasestr.c: Update.
58507         * modules/striconveha (Depends-on): Update.
58508         * lib/striconveha.c: Update.
58509         * modules/relocatable-prog-wrapper (Files): Update.
58510         * lib/relocwrapper.c: Update.
58511         * build-aux/install-reloc: Update.
58512         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58513
58514 2007-06-08  Bruno Haible  <bruno@clisp.org>
58515
58516         Port to uClibc.
58517         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58518         * lib/fpurge.c (fpurge): Likewise.
58519         * lib/freading.c (freading): Likewise.
58520         * lib/fseeko.c (rpl_fseeko): Likewise.
58521         * lib/fseterr.c (fseterr): Likewise.
58522         * lib/fwriting.c (fwriting): Likewise.
58523         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58524
58525 2007-06-08  Bruno Haible  <bruno@clisp.org>
58526
58527         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58528         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58529         * modules/gettext (Files): Add m4/intlmacosx.m4.
58530
58531 2007-06-07  Bruno Haible  <bruno@clisp.org>
58532
58533         * modules/localename-tests: New file.
58534         * tests/test-localename.c: New file.
58535
58536         New module 'localename'.
58537         * lib/localename.h: New file.
58538         * lib/localename.c: New file, from GNU gettext.
58539         * m4/localename.m4: New file.
58540         * modules/localename: New file.
58541
58542 2007-06-07  Bruno Haible  <bruno@clisp.org>
58543
58544         Work around the lack of <wchar.h> on some builds of uClibc.
58545         * doc/headers/wchar.texi: Update.
58546         * lib/wchar_.h: Include <wchar.h> only if it exists.
58547         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58548         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58549         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58550         doesn't exist.
58551         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58552         * modules/mbfile (Depends-on): Add wchar.
58553         * modules/mbiter (Depends-on): Likewise.
58554         * modules/mbuiter (Depends-on): Likewise.
58555         Reported by Simon Josefsson.
58556
58557 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58558
58559         Work around problem reported by Steven M. Schweda in
58560         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58561         Tru64 5.1B with the Compaq compiler environment installed declares
58562         an 'isblank' function but does not define it in the C library.
58563         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58564         * lib/regex_internal.h (isblank): Likewise.
58565         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58566         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58567
58568 2007-06-05  Bruno Haible  <bruno@clisp.org>
58569
58570         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58571         ia64.
58572         * modules/printf-safe: New file.
58573         * modules/fprintf-posix (Depends-on): Add printf-safe.
58574         * modules/printf-posix (Depends-on): Likewise.
58575         * modules/snprintf-posix (Depends-on): Likewise.
58576         * modules/sprintf-posix (Depends-on): Likewise.
58577         * modules/vasnprintf-posix (Depends-on): Likewise.
58578         * modules/vasprintf-posix (Depends-on): Likewise.
58579         * modules/vfprintf-posix (Depends-on): Likewise.
58580         * modules/vprintf-posix (Depends-on): Likewise.
58581         * modules/vsnprintf-posix (Depends-on): Likewise.
58582         * modules/vsprintf-posix (Depends-on): Likewise.
58583         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58584         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58585         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58586         "no" on i386, x86_64, ia64.
58587         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58588         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58589         on i386, x86_64, ia64.
58590         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58591         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58592         on i386, x86_64, ia64.
58593         * tests/test-vasnprintf-posix.c: Include float.h.
58594         (LDBL80_WORDS): New macro.
58595         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58596         on i386, x86_64, ia64.
58597         * tests/test-vasprintf-posix.c: Include float.h.
58598         (LDBL80_WORDS): New macro.
58599         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58600         on i386, x86_64, ia64.
58601         * tests/test-snprintf-posix.c: Include float.h.
58602         * tests/test-sprintf-posix.c: Likewise.
58603         * tests/test-vsnprintf-posix.c: Likewise.
58604         * tests/test-vsprintf-posix.c: Likewise.
58605
58606 2007-06-05  Bruno Haible  <bruno@clisp.org>
58607
58608         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58609         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58610         non-IEEE numbers on i386, x86_64, ia64.
58611         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58612         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58613         * tests/test-isnanl.h: Include float.h.
58614         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58615
58616 2007-06-05  Bruno Haible  <bruno@clisp.org>
58617
58618         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58619         also the %a / %A. Handle the %a / %A code before this extra handling.
58620
58621 2007-06-05  Bruno Haible  <bruno@clisp.org>
58622
58623         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58624         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58625
58626 2007-06-05  Bruno Haible  <bruno@clisp.org>
58627
58628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58629         typo in variable name.
58630
58631 2007-06-05  Eric Blake  <ebb9@byu.net>
58632
58633         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58634         Reported by Simon Josefsson.
58635
58636 2007-06-04  Bruno Haible  <bruno@clisp.org>
58637
58638         Avoid test failures on some PowerPC platforms.
58639         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58640         Define differently for PowerPC.
58641         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58642         Reported by Gary V. Vaughan <gary@gnu.org>.
58643
58644 2007-06-02  Bruno Haible  <bruno@clisp.org>
58645
58646         Fix test-stdint failure on FreeBSD/ia64.
58647         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58648         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58649         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58650         * doc/headers/stdint.texi: Update.
58651
58652 2007-06-01  Bruno Haible  <bruno@clisp.org>
58653
58654         * tests/test-binary-io.c (main): Pass a third argument to open().
58655         Reported by Gary V. Vaughan <gary@gnu.org>.
58656
58657 2007-06-01  Bruno Haible  <bruno@clisp.org>
58658
58659         * doc/functions/frexpl.texi: Update for mingw.
58660
58661 2007-06-01  Bruno Haible  <bruno@clisp.org>
58662
58663         * tests/test-lseek.c (main): Disable test of errno for invalid third
58664         argument.
58665         * doc/functions/lseek.texi: Update.
58666         Reported by Gary V. Vaughan <gary@gnu.org>.
58667
58668 2007-05-28  Bruno Haible  <bruno@clisp.org>
58669
58670         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58671
58672 2007-05-31  Eric Blake  <ebb9@byu.net>
58673
58674         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58675         cross compiling.
58676
58677 2007-05-30  Eric Blake  <ebb9@byu.net>
58678         and Bruno Haible  <bruno@clisp.org>
58679
58680         Work around mingw test failures exposed by m4-1.4.9b.
58681         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58682         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58683         moment.
58684
58685 2007-05-30  Bruno Haible  <bruno@clisp.org>
58686
58687         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58688         assuming that they are closed. Needed on HP-UX 11.
58689
58690 2007-05-29  Bruno Haible  <bruno@clisp.org>
58691
58692         Fix a problem with #include_next.
58693         * lib/dirent_.h: Split the double-inclusion guard.
58694         * lib/fcntl_.h: Likewise.
58695         * lib/float_.h: Likewise.
58696         * lib/iconv_.h: Likewise.
58697         * lib/inttypes_.h: Likewise.
58698         * lib/locale_.h: Likewise.
58699         * lib/math_.h: Likewise.
58700         * lib/netinet_in_.h: Likewise.
58701         * lib/search_.h: Likewise.
58702         * lib/signal_.h: Likewise.
58703         * lib/stdint_.h: Likewise.
58704         * lib/stdio_.h: Likewise.
58705         * lib/stdlib_.h: Likewise.
58706         * lib/string_.h: Likewise.
58707         * lib/sys_select_.h: Likewise.
58708         * lib/sys_socket_.h: Likewise.
58709         * lib/sys_stat_.h: Likewise.
58710         * lib/sys_time_.h: Likewise.
58711         * lib/sysexits_.h: Likewise.
58712         * lib/time_.h: Likewise.
58713         * lib/unistd_.h: Likewise.
58714         * lib/wchar_.h: Likewise.
58715         * lib/wctype_.h: Likewise.
58716
58717 2007-05-29  Bruno Haible  <bruno@clisp.org>
58718
58719         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58720         for the moment.
58721
58722 2007-05-29  Bruno Haible  <bruno@clisp.org>
58723
58724         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58725         invocation.
58726         Reported by Eric Blake.
58727
58728 2007-05-29  Bruno Haible  <bruno@clisp.org>
58729
58730         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58731         compiling case.
58732
58733 2007-05-29  Eric Blake  <ebb9@byu.net>
58734             Bruno Haible  <bruno@clisp.org>
58735
58736         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58737         cross compiles.
58738
58739 2007-05-28  Eric Blake  <ebb9@byu.net>
58740
58741         * modules/closein-tests (test_closein_LDADD): Support test on
58742         cygwin with libtool.
58743
58744 2007-05-28  Bruno Haible  <bruno@clisp.org>
58745
58746         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58747         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58748         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58749         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58750         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58751         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58752         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58753         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58754         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58755
58756 2007-05-28  Eric Blake  <ebb9@byu.net>
58757
58758         Unconditionally include <config.h> in unit tests.
58759         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58760         * tests/test-allocsa.c, tests/test-arcfour.c,
58761         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58762         tests/test-array_list.c, tests/test-array_oset.c,
58763         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58764         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58765         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58766         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58767         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58768         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58769         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58770         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58771         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58772         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58773         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58774         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58775         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58776         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58777         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58778         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58779         test-md5.c, test-memmem.c, test-printf-posix.c,
58780         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58781         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58782         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58783         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58784         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58785         test-vasnprintf-posix2.c, test-vasnprintf.c,
58786         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58787         test-vfprintf-posix.c, test-vprintf-posix.c,
58788         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58789         test-xvasprintf.c: Likewise.
58790
58791 2007-05-28  Bruno Haible  <bruno@clisp.org>
58792
58793         * gnulib-tool (func_import): Remember the --with-tests command-line
58794         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58795         Reported by Eric Blake.
58796
58797 2007-05-28  Bruno Haible  <bruno@clisp.org>
58798
58799         * modules/ftell-tests: New file.
58800         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58801         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58802
58803         * lib/ftell.c: New file.
58804         * modules/ftell: New file.
58805         * m4/ftell.m4: New file.
58806         * doc/functions/ftell.texi: Update.
58807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58808         REPLACE_FTELL.
58809         * lib/stdio_.h (rpl_ftell): New declaration.
58810         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58811         REPLACE_FTELL.
58812
58813 2007-05-28  Eric Blake  <ebb9@byu.net>
58814
58815         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58816
58817 2007-05-28  Bruno Haible  <bruno@clisp.org>
58818
58819         * modules/fseek-tests: New file.
58820         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58821         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58822
58823         * lib/fseek.c: New file.
58824         * modules/fseek: New file.
58825         * m4/fseek.m4: New file.
58826         * doc/functions/fseek.texi: Update.
58827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58828         REPLACE_FSEEK.
58829         * lib/stdio_.h (rpl_fseek): New declaration.
58830         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58831         REPLACE_FSEEK.
58832
58833 2007-05-28  Bruno Haible  <bruno@clisp.org>
58834
58835         * lib/stdio_.h (fflush): More comments.
58836
58837 2007-05-28  Bruno Haible  <bruno@clisp.org>
58838
58839         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58840         runtime test.
58841
58842 2007-05-28  Eric Blake  <ebb9@byu.net>
58843
58844         Improve lseek module.
58845         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58846         * lib/unistd_.h (lseek): Scale back link warning message.
58847         * tests/test-lseek.c: Beef up test.
58848         * tests/test-lseek.sh: Exercise more facets of lseek.
58849         Reported by Bruno Haible.
58850
58851 2007-05-28  Bruno Haible  <bruno@clisp.org>
58852
58853         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58854         to define.
58855
58856 2007-05-27  Bruno Haible  <bruno@clisp.org>
58857
58858         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58859
58860 2007-05-27  Bruno Haible  <bruno@clisp.org>
58861
58862         * modules/openmp: New file.
58863         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58864         Noah Misch.
58865
58866 2007-05-26  Bruno Haible  <bruno@clisp.org>
58867
58868         * modules/chdir-long (Depends-on): Add fchdir.
58869         * modules/chdir-safer (Depends-on): Likewise.
58870         * modules/fts (Depends-on): Likewise.
58871         * modules/fts-lgpl (Depends-on): Likewise.
58872         * modules/openat (Depends-on): Likewise.
58873         * modules/savewd (Depends-on): Likewise.
58874
58875 2007-05-24  Eric Blake  <ebb9@byu.net>
58876
58877         Fix lseek on mingw.
58878         * modules/lseek: New module.
58879         * m4/lseek.m4: New file.
58880         * lib/lseek.c: New file.
58881         * modules/lseek-tests: New file.
58882         * tests/test-lseek.c: New file.
58883         * tests/test-lseek.sh: New file.
58884         * MODULES.html.sh: Document lseek module.
58885         * modules/fflush (Depends-on): Add lseek, fseeko.
58886         * modules/fseeko (Depends-on): Likewise.
58887         * modules/ftello (Depends-on): Likewise.
58888         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58889         broken.
58890         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58891         broken.
58892         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58893         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58894         * lib/ftello.c (rpl_ftello): Likewise.
58895         * tests/test-fseeko.c (main): Test this.
58896         * tests/test-fseeko.sh: Likewise.
58897         * tests/test-ftello.c (main): Likewise.
58898         * tests/test-ftello.sh: Likewise.
58899         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58900         implies replacing fseek.
58901         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58902         HAVE_FTELLO.
58903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58904         * modules/unistd (Makefile.am): Likewise.
58905         * lib/unistd_.h (lseek): Declare a replacement.
58906         * doc/functions/lseek.texi (lseek): Document this fix.
58907         * doc/functions/fseek.texi (fseek): Likewise.
58908         * doc/functions/ftell.texi (ftell): Likewise.
58909
58910 2007-05-24  Bruno Haible  <bruno@clisp.org>
58911
58912         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58913         in the printed representation of a NaN.
58914         * tests/test-vasprintf-posix.c (test_function): Likewise.
58915         * tests/test-snprintf-posix.h (test_function): Likewise.
58916         * tests/test-sprintf-posix.h (test_function): Likewise.
58917         Reported by Eric Blake.
58918
58919 2007-05-23  Eric Blake  <ebb9@byu.net>
58920
58921         Fix fseeko/ftello on cygwin 1.5.24.
58922         * doc/functions/fseeko.texi (fseeko): Document the fix.
58923         * doc/functions/ftello.texi (ftello): Document the fix.
58924         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58925         * doc/functions/stdout.text (stdout): New file.
58926         * doc/functions/stderr.text (stderr): New file.
58927         * doc/gnulib.texi (Function Substitutes): Use new files.
58928         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58929         prior to 1.7.0.
58930         * tests/test-ftello.c (main): Likewise for ftello.
58931         * tests/test-fseeko.sh: New file.
58932         * tests/test-ftello.sh: New file.
58933         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58934         with seekable stdin.
58935         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58936         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58937         (gl_REPLACE_FSEEKO): New macro.
58938         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58939         * modules/fseeko (Files): Distribute fseeko.c.
58940         * modules/ftello (Files): Distribute ftello.c.
58941         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58942         mode.
58943         * lib/ftello.c (rpl_ftello): New file.
58944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58945         fseeko, ftello.
58946         (gl_STDIN_LARGE_OFFSET): New macro.
58947         * modules/stdio (Makefile.am): Perform the replacement.
58948         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58949
58950 2007-05-23  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58953         GNULIB_POSIXCHECK is defined.
58954
58955 2007-05-21  Bruno Haible  <bruno@clisp.org>
58956
58957         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58958         Check also the output for NaN arguments. When cross-compiling, guess
58959         no on IRIX.
58960         * lib/vasnprintf.c: Update comments.
58961         * tests/test-vasnprintf-posix.c (strisnan): New function.
58962         (test_function): Use it.
58963         * tests/test-vasprintf-posix.c (strisnan): New function.
58964         (test_function): Use it.
58965         * tests/test-snprintf-posix.h (strisnan): New function.
58966         (test_function): Use it.
58967         * tests/test-sprintf-posix.h (strisnan): New function.
58968         (test_function): Use it.
58969         Reported by Eric Blake.
58970
58971 2007-05-20  Bruno Haible  <bruno@clisp.org>
58972
58973         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58974         numbers that fails on BeOS.
58975         * doc/functions/frexpl.texi: Update.
58976
58977 2007-05-20  Jim Meyering  <jim@meyering.net>
58978
58979         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58980         forced upon us by glibc-2.6.
58981
58982 2007-05-20  Bruno Haible  <bruno@clisp.org>
58983
58984         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58985         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58986         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58987         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58988         NEED_PRINTF_INFINITE.
58989         (is_infinitel): New function.
58990         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58992         gl_PREREQ_VASNPRINTF_INFINITE.
58993         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58994         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58995         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58996         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58997         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58998         gl_PREREQ_VASNPRINTF_INFINITE.
58999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59000         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59001         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59002         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59003         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59004         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59005         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59006         * doc/functions/fprintf.texi: Update.
59007         * doc/functions/printf.texi: Update.
59008         * doc/functions/snprintf.texi: Update.
59009         * doc/functions/sprintf.texi: Update.
59010         * doc/functions/vfprintf.texi: Update.
59011         * doc/functions/vprintf.texi: Update.
59012         * doc/functions/vsnprintf.texi: Update.
59013         * doc/functions/vsprintf.texi: Update.
59014
59015 2007-05-20  Bruno Haible  <bruno@clisp.org>
59016
59017         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59018         was not found in libc.
59019         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59020
59021 2007-05-20  Bruno Haible  <bruno@clisp.org>
59022
59023         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59024         printed as "-nan" instead of "nan".
59025         * tests/test-vasprintf-posix.c (test_function): Likewise.
59026         * tests/test-snprintf-posix.h (test_function): Likewise.
59027         * tests/test-sprintf-posix.h (test_function): Likewise.
59028         Needed for HP-UX 11.
59029
59030 2007-05-20  Jim Meyering  <jim@meyering.net>
59031
59032         Fix buggy test for the fchownat-deref bug.
59033         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59034         symlink required for the run-test.  Without it, this test would
59035         always declare that fchownat doesn't work, and client code would
59036         unnecessarily use the replacement function with fixed libc.
59037         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59038         Reported by Greg Schafer.
59039
59040 2007-05-19  Bruno Haible  <bruno@clisp.org>
59041
59042         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59043         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59044         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59045         Needed for IRIX 6.5 and Solaris 2.5.1.
59046
59047 2007-05-19  Bruno Haible  <bruno@clisp.org>
59048
59049         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59050         (test_function): Skip tests involving -0.0 on platforms where
59051         -0.0 = 0.0.
59052         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59053         (test_function): Skip tests involving -0.0 on platforms where
59054         -0.0 = 0.0.
59055         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59056         (test_function): Skip tests involving -0.0 on platforms where
59057         -0.0 = 0.0.
59058         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59059         (test_function): Skip tests involving -0.0 on platforms where
59060         -0.0 = 0.0.
59061         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59062         tests.
59063         * tests/test-printf-posix.h (test_function): Likewise.
59064         * tests/test-printf-posix.output: Remove all -0.0 related results.
59065         Needed for IRIX 6.5.
59066
59067 2007-05-19  Bruno Haible  <bruno@clisp.org>
59068
59069         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59070         printed as "nan0x7fffffff" instead of "nan".
59071         * tests/test-vasprintf-posix.c (test_function): Likewise.
59072         * tests/test-snprintf-posix.h (test_function): Likewise.
59073         * tests/test-sprintf-posix.h (test_function): Likewise.
59074         * tests/test-fprintf-posix.h (NaN): Remove macro.
59075         (test_function): Remove all NaN related tests.
59076         * tests/test-printf-posix.h (NaN): Remove macro.
59077         (test_function): Remove all NaN related tests.
59078         * tests/test-printf-posix.output: Remove all NaN related results.
59079         Needed for IRIX 6.5.
59080
59081 2007-05-19  Bruno Haible  <bruno@clisp.org>
59082
59083         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59084         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59085
59086 2007-05-19  Bruno Haible  <bruno@clisp.org>
59087
59088         * lib/float_.h: New file.
59089         * m4/float_h.m4: New file.
59090         * modules/float: New file.
59091         * modules/isnanl (Dependencies): Add float.
59092         * modules/isnanl-nolibm (Dependencies): Likewise.
59093         * modules/mathl (Dependencies): Likewise.
59094         * modules/printf-frexpl (Dependencies): Likewise.
59095         * modules/signbit (Dependencies): Likewise.
59096         * modules/vasnprintf (Dependencies): Likewise.
59097         * doc/headers/float.texi: Update.
59098
59099 2007-05-19  Jim Meyering  <jim@meyering.net>
59100
59101         * lib/utimens.c (gl_futimens): Rename from futimens,
59102         now that glibc-2.6 declares futimens.
59103         * lib/utimens.h: Likewise.
59104
59105 2007-05-19  Bruno Haible  <bruno@clisp.org>
59106
59107         Avoid test failures on mingw.
59108         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59109         * tests/test-printf-posix.sh: Likewise.
59110         * tests/test-vfprintf-posix.sh: Likewise.
59111         * tests/test-vprintf-posix.sh: Likewise.
59112
59113 2007-05-19  Bruno Haible  <bruno@clisp.org>
59114
59115         Fix *printf result for NaN, Inf, -0.0 on mingw.
59116         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59117         * lib/vasnprintf.c: Include math.h and isnan.h.
59118         (is_infinite_or_zero): New function.
59119         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59120         values in the %f, %F, %e, %E, %g, %G directives.
59121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59122         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59123         gl_PRINTF_INFINITE and test its result. Invoke
59124         gl_PREREQ_VASNPRINTF_INFINITE.
59125         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59126         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59127         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59128         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59129         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59130         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59131         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59132         * doc/functions/fprintf.texi: Update.
59133         * doc/functions/printf.texi: Update.
59134         * doc/functions/snprintf.texi: Update.
59135         * doc/functions/sprintf.texi: Update.
59136         * doc/functions/vfprintf.texi: Update.
59137         * doc/functions/vprintf.texi: Update.
59138         * doc/functions/vsnprintf.texi: Update.
59139         * doc/functions/vsprintf.texi: Update.
59140
59141 2007-05-19  Bruno Haible  <bruno@clisp.org>
59142
59143         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59144         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59145         Instead of multiplying with 10^k, set extra_zeroes to k.
59146         (scale10_round_long_double): Remove function.
59147
59148 2007-05-18  Bruno Haible  <bruno@clisp.org>
59149
59150         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59151         introduced on 2007-05-06.
59152
59153 2007-05-18  Bruno Haible  <bruno@clisp.org>
59154
59155         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59156         %g directives.
59157         * tests/test-vasprintf-posix.c (test_function): Likewise.
59158         * tests/test-snprintf-posix.h (test_function): Likewise.
59159         * tests/test-sprintf-posix.h (test_function): Likewise.
59160
59161 2007-05-18  Bruno Haible  <bruno@clisp.org>
59162
59163         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59164         (strmatch): New function.
59165         (test_function): Test the %f directive on numbers of various exponents.
59166         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59167         (strmatch): New function.
59168         (test_function): Test the %f directive on numbers of various exponents.
59169         * tests/test-snprintf-posix.h (strmatch): New function.
59170         (test_function): Test the %f directive on numbers of various exponents.
59171         * tests/test-sprintf-posix.h (strmatch): New function.
59172         (test_function): Test the %f directive on numbers of various exponents.
59173         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59174         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59175         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59176         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59177
59178 2007-05-18  Bruno Haible  <bruno@clisp.org>
59179
59180         Add support for 'long double' number output.
59181         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59182         * lib/vasnprintf.c: Include math.h and float+.h.
59183         (mp_limb_t): New type.
59184         (GMP_LIMB_BITS): New macro.
59185         (mp_twolimb_t): New type.
59186         (GMP_TWOLIMB_BITS): New macro.
59187         (mpn_t): New type.
59188         (multiply, divide, convert_to_decimal, decode_long_double,
59189         scale10_round_long_double, scale10_round_decimal_long_double,
59190         floorlog10l): New functions.
59191         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59192         for the %f, %F, %e, %E, %g, %G directives.
59193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59194         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59195         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59196         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59204         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59205         * modules/snprintf-posix (Depends-on): Likewise.
59206         * modules/sprintf-posix (Depends-on): Likewise.
59207         * modules/vasnprintf-posix (Depends-on): Likewise.
59208         * modules/vasprintf-posix (Depends-on): Likewise.
59209         * modules/vfprintf-posix (Depends-on): Likewise.
59210         * modules/vsnprintf-posix (Depends-on): Likewise.
59211         * modules/vsprintf-posix (Depends-on): Likewise.
59212         * modules/vasnprintf (Files): Add lib/float+.h.
59213         * doc/functions/fprintf.texi: Update.
59214         * doc/functions/printf.texi: Update.
59215         * doc/functions/snprintf.texi: Update.
59216         * doc/functions/sprintf.texi: Update.
59217         * doc/functions/vfprintf.texi: Update.
59218         * doc/functions/vprintf.texi: Update.
59219         * doc/functions/vsnprintf.texi: Update.
59220         * doc/functions/vsprintf.texi: Update.
59221
59222 2007-05-18  Bruno Haible  <bruno@clisp.org>
59223
59224         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59225
59226 2007-05-18  Bruno Haible  <bruno@clisp.org>
59227
59228         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59229         for printing 64-bit integers. Needed for mingw.
59230
59231 2007-05-18  Bruno Haible  <bruno@clisp.org>
59232
59233         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59234         gl_FUNC_FREXPL_WORKS.
59235         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59236
59237 2007-05-18  Bruno Haible  <bruno@clisp.org>
59238
59239         * modules/frexpl-nolibm-tests: New file.
59240
59241         * modules/frexpl-nolibm: New file.
59242         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59243
59244 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59245
59246         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59247         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59248         GCC 4.2, which otherwise issues a lot of warnings.
59249         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59250         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59251         Likewise.
59252         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59253         * modules/iconv_open (iconv.h): Likewise.
59254         * modules/locale (locale.h): Likewise.
59255         * modules/netinet_in (netinet/in.h): Likewise.
59256         * modules/sys_select (sys_select.h): Likewise.
59257         * modules/sys_socket (sys/socket.h): Likewise.
59258         * modules/sys_stat (sys/stat.h): Likewise.
59259         * modules/sysexits (sysexits.h): Likewise.
59260         * modules/unistd (unistd.h): Likewise.
59261
59262 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59263
59264         * modules/closein-tests (Makefile.am): Distribute
59265         `test-closein.sh'.
59266
59267 2007-05-17  Bruno Haible  <bruno@clisp.org>
59268
59269         * tests/test-printf-posix.output: Renamed from
59270         tests/test-fprintf-posix.out.
59271         * modules/fprintf-posix-tests: Update.
59272         * modules/printf-posix-tests: Update.
59273         * modules/vfprintf-posix-tests: Update.
59274         * modules/vprintf-posix-tests: Update.
59275         * tests/test-fprintf-posix.sh: Update.
59276         * tests/test-printf-posix.sh: Update.
59277         * tests/test-vfprintf-posix.sh: Update.
59278         * tests/test-vprintf-posix.sh: Update.
59279         Reported by Ralf Wildenhues.
59280
59281 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59284         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59285         GCC 4.2, which otherwise issues a lot of warnings.
59286         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59287         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59288         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59289         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59290         it should no longer be needed.
59291         * lib/string_.h: Likewise.
59292         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59293         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59294         * modules/inttypes (inttypes.h): Likewise.
59295         * modules/math (math.h): Likewise.
59296         * modules/search (search.h): Likewise.
59297         * modules/signal (signal.h): Likewise.
59298         * modules/stdint (stdint.h): Likewise.
59299         * modules/stdio (stdio.h): Likewise.
59300         * modules/stdlib (stdlib.h): Likewise.
59301         * modules/string (string.h): Likewise.
59302         * modules/sys_time (sys/time.h): Likewise.
59303         * modules/time (time.h): Likewise.
59304         * modules/wchar (wchar.h): Likewise.
59305         * modules/wctype (wtype.h): Likewise.
59306
59307 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59308
59309         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59310
59311 2007-05-13  Bruno Haible  <bruno@clisp.org>
59312
59313         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59314         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59315         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59316         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59317         (gl_PREREQ_STRTOK_R): Don't require it here.
59318
59319 2007-05-13  Bruno Haible  <bruno@clisp.org>
59320
59321         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59322         when used in C++ mode.
59323
59324 2007-05-12  Bruno Haible  <bruno@clisp.org>
59325
59326         * lib/linebuffer.h: Tweak doc.
59327         * lib/linebuffer.c: Likewise.
59328
59329 2007-05-12  James Youngman  <jay@gnu.org>
59330
59331         * lib/linebuffer.c (readlinebuffer_delim): New function,
59332         like readlinebuffer, but use a caller-specified delimiter.
59333         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59334         as the delimiter.
59335         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59336
59337 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59338
59339         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59340         * modules/openat (Files): Remove openat-die.c.
59341         (Depends-on): Add openat-die.
59342         * modules/openat-die: New module.
59343
59344 2007-05-06  Bruno Haible  <bruno@clisp.org>
59345
59346         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59347         Update with info about Cygwin.
59348         * doc/functions/fprintf.texi: Update.
59349         * doc/functions/printf.texi: Update.
59350         * doc/functions/snprintf.texi: Update.
59351         * doc/functions/sprintf.texi: Update.
59352         * doc/functions/vfprintf.texi: Update.
59353         * doc/functions/vprintf.texi: Update.
59354         * doc/functions/vsnprintf.texi: Update.
59355         * doc/functions/vsprintf.texi: Update.
59356         Reported by Eric Blake.
59357
59358 2007-05-06  Bruno Haible  <bruno@clisp.org>
59359
59360         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59361         padding ourselves for the floating-point directives.
59362         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59365         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59366         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59374         * tests/test-snprintf-posix.h (test_function): Also check the width
59375         and some flags in the %f directive.
59376         * tests/test-sprintf-posix.h (test_function): Likewise.
59377         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59378         * tests/test-vasprintf-posix.c (test_function): Likewise.
59379         * doc/functions/fprintf.texi: Update.
59380         * doc/functions/printf.texi: Update.
59381         * doc/functions/snprintf.texi: Update.
59382         * doc/functions/sprintf.texi: Update.
59383         * doc/functions/vfprintf.texi: Update.
59384         * doc/functions/vprintf.texi: Update.
59385         * doc/functions/vsnprintf.texi: Update.
59386         * doc/functions/vsprintf.texi: Update.
59387
59388 2007-05-06  Bruno Haible  <bruno@clisp.org>
59389
59390         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59391         pass the ' flag character to sprintf or snprintf.
59392         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59395         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59396         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59397         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59399         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59400         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59401         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59402         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59403         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59404         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59405         flag.
59406         * tests/test-sprintf-posix.h (test_function): Likewise.
59407         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59408         * tests/test-vasprintf-posix.c (test_function): Likewise.
59409         * doc/functions/fprintf.texi: Update.
59410         * doc/functions/printf.texi: Update.
59411         * doc/functions/snprintf.texi: Update.
59412         * doc/functions/sprintf.texi: Update.
59413         * doc/functions/vfprintf.texi: Update.
59414         * doc/functions/vprintf.texi: Update.
59415         * doc/functions/vsnprintf.texi: Update.
59416         * doc/functions/vsprintf.texi: Update.
59417
59418 2007-05-01  Bruno Haible  <bruno@clisp.org>
59419
59420         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59421
59422 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59423
59424         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59425         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59426
59427 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59428
59429         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59430         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59432
59433 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59434
59435         * lib/argp-help.c (struct hol_entry): New member `ord'.
59436         (HOL_ENTRY_PTRCMP): Use ord for comparison
59437         (hol_sort): Initialize ord.
59438
59439 2007-05-01  Bruno Haible  <bruno@clisp.org>
59440
59441         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59442         Reported by Eric Blake.
59443         * doc/gnulib.texi (Function Substitutes): Update.
59444
59445 2007-05-01  Bruno Haible  <bruno@clisp.org>
59446
59447         * doc/functions.texi: Remove file, now redundant through
59448         doc/functions/*.texi.
59449
59450 2007-05-01  Bruno Haible  <bruno@clisp.org>
59451
59452         * modules/argp (Depends-on): Add sleep.
59453
59454 2007-05-01  Bruno Haible  <bruno@clisp.org>
59455
59456         * modules/sleep-tests: New file.
59457         * tests/test-sleep.c: New file.
59458
59459         * modules/sleep: New file.
59460         * lib/sleep.c: New file.
59461         * m4/sleep.m4: New file.
59462         * lib/unistd_.h (sleep): New declaration.
59463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59464         HAVE_SLEEP.
59465         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59466         * doc/functions/sleep.texi: Document the sleep module.
59467
59468 2007-05-01  Bruno Haible  <bruno@clisp.org>
59469
59470         * lib/sigprocmask.h: Remove file.
59471         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59472         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59473         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59474         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59475         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59476         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59477         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59478         HAVE_SIGSET_T as a shell variable.
59479         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59480         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59481         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59482         (Depends-on): Add signal. Remove verify.
59483         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59484         (Include): Mention <signal.h> instead of sigprocmask.h.
59485         * NEWS: Mention the change.
59486         * lib/fatal-signal.c: Don't include sigprocmask.h.
59487
59488 2007-05-01  Bruno Haible  <bruno@clisp.org>
59489
59490         * modules/signal: New file.
59491         * lib/signal_.h: New file.
59492         * m4/signal_h.m4: New file.
59493
59494 2007-05-01  Bruno Haible  <bruno@clisp.org>
59495
59496         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59497         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59498         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59499         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59500
59501 2007-05-01  Bruno Haible  <bruno@clisp.org>
59502
59503         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59504         configure time.
59505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59506         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59507         * modules/sys_stat (Makefile.am): Substitute their values into
59508         sys/stat.h.
59509
59510 2007-05-01  Bruno Haible  <bruno@clisp.org>
59511
59512         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59513         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59514         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59515
59516 2007-05-01  Bruno Haible  <bruno@clisp.org>
59517
59518         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59519         'assert' module here.
59520
59521 2007-05-01  Bruno Haible  <bruno@clisp.org>
59522
59523         * doc/functions/*.texi: New files.
59524         * doc/functions/google-ranking.txt: New file.
59525         * doc/gnulib.texi (Function Substitutes): New chapter.
59526         (ctime, inet_ntoa): Remove sections.
59527         * doc/ctime.texi: Remove file.
59528         * doc/inet_ntoa.texi: Remove file.
59529         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59530         dependencies.
59531         (%.info): New rule, specifying a --reference-limit.
59532
59533 2007-05-01  Bruno Haible  <bruno@clisp.org>
59534
59535         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59536
59537 2007-05-01  Bruno Haible  <bruno@clisp.org>
59538
59539         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59540         the portability of 'mkdir' to mingw systems.
59541
59542 2007-05-01  Bruno Haible  <bruno@clisp.org>
59543
59544         * doc/headers/google-ranking.txt: New file.
59545
59546 2007-04-30  Eric Blake  <ebb9@byu.net>
59547
59548         Prefer fseeko to fseek.
59549         * modules/getpass (Depends-on): Add fseeko.
59550         * lib/getpass.c (getpass): Use fseeko, not fseek.
59551
59552 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59553
59554         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59555         assumes the sorting is stable, while most qsort implementations
59556         are not.  Use argument addresses to ensure they never compare as
59557         equal.
59558
59559         * tests/test-argp-2.sh (usage-indent test): Fix output
59560         (func_compare): Restore diff options
59561         * tests/test-argp.c: Restore #include "progname.h"
59562
59563 2007-04-29  Bruno Haible  <bruno@clisp.org>
59564
59565         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59566         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59567         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59569         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59570         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59571         (TESTS, check_PROGRAMS): Add test-snprintf.
59572         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59573         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59574         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59575         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59576         assertions that fail on HP-UX, OSF/1, or IRIX.
59577         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59578
59579 2007-04-29  Bruno Haible  <bruno@clisp.org>
59580
59581         * MODULES.html.sh (posix_functions): Remove 'contents'.
59582
59583 2007-04-29  Karl Berry  <karl@gnu.org>
59584
59585         * config/srclist.txt (gendocs_template_min): new entry.
59586
59587 2007-04-29  Bruno Haible  <bruno@clisp.org>
59588
59589         Work around fpurge bug on BSD systems.
59590         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59591         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59592         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59593         fpurge to rpl_fpurge if the system already has this function.
59594         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59595         the case where the system already has this function. Correct invariants
59596         on BSD systems.
59597         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59598         BSD systems.
59599
59600 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59601
59602         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59603         proposed by Sven Verdoolaege.
59604
59605         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59606         options.
59607         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59608         (usage and help tests): Update
59609
59610 2007-04-29  Bruno Haible  <bruno@clisp.org>
59611
59612         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59613         Print more information in case of failure. Disable a test on BeOS.
59614
59615 2007-04-29  Bruno Haible  <bruno@clisp.org>
59616
59617         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59618         This helps debugging on systems on which no gdb is available.
59619
59620 2007-04-29  Bruno Haible  <bruno@clisp.org>
59621
59622         * lib/freading.h: Improve comments.
59623         * lib/fwriting.h: Likewise.
59624         * tests/test-freading.c (main): Don't check freading immediately after
59625         repositioning. Needed for glibc.
59626
59627 2007-04-29  Bruno Haible  <bruno@clisp.org>
59628
59629         * lib/freading.c (freading): Trivial simplification.
59630
59631 2007-04-28  Bruno Haible  <bruno@clisp.org>
59632
59633         * tests/test-fwriting.c (main): Also test the interaction between
59634         fflush and fwriting.
59635         * modules/fwriting-tests (Depends-on): Add fflush.
59636
59637         * tests/test-freading.c (main): Also test the interaction between
59638         fflush and freading.
59639         * modules/freading-tests (Depends-on): Add fflush.
59640
59641 2007-04-28  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59644         fseeko and ftello.
59645         Suggested by Eric Blake.
59646
59647 2007-04-28  Jim Meyering  <jim@meyering.net>
59648
59649         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59650         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59651         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59652
59653 2007-04-27  Eric Blake  <ebb9@byu.net>
59654
59655         * doc/headers/assert.texi (assert.h): Document assert module use.
59656
59657 2007-04-27  Bruno Haible  <bruno@clisp.org>
59658
59659         * doc/headers/*.texi: New files.
59660         * doc/gnulib.texi (Header File Substitutes): New chapter.
59661         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59662         dependencies.
59663         (standards.info ,standards.html, standards.dvi): Update dependencies.
59664         (mostlyclean, clean): New targets.
59665
59666 2007-04-27  Bruno Haible  <bruno@clisp.org>
59667
59668         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59669         * modules/sysexits (Files, Makefile.am): Update.
59670
59671         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59672         * modules/sys_socket (Files, Makefile.am): Update.
59673
59674         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59675         * modules/sys_stat (Files, Makefile.am): Update.
59676
59677 2007-04-27  Eric Blake  <ebb9@byu.net>
59678
59679         * lib/freading.h: Improve comments.
59680         * lib/fwriting.h: Likewise.
59681         * lib/fflush.c: Likewise.
59682
59683         Fix closein for mingw.
59684         * modules/closein-tests: Add tests for closein.
59685         * tests/test-closein.c: New file.
59686         * tests/test-closein.sh: Likewise.
59687         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59688         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59689
59690 2007-04-27  Bruno Haible  <bruno@clisp.org>
59691
59692         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59693         version is < 6.
59694         * lib/math_.h [__DECC]: Likewise.
59695         * lib/stdio_.h [__DECC]: Likewise.
59696         * lib/stdlib_.h [__DECC]: Likewise.
59697         * lib/string_.h [__DECC]: Likewise.
59698         * lib/time_.h [__DECC]: Likewise.
59699         * lib/wchar_.h [__DECC]: Likewise.
59700         * lib/wctype_.h [__DECC]: Likewise.
59701
59702 2007-04-27  Bruno Haible  <bruno@clisp.org>
59703
59704         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59705
59706 2007-04-27  Bruno Haible  <bruno@clisp.org>
59707
59708         * lib/fflush.c: Add comments.
59709         * modules/fpurge-tests (Depends-on): Add fflush.
59710         * modules/freadable-tests (Depends-on): Likewise.
59711         * modules/fwritable-tests (Depends-on): Likewise.
59712
59713 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59714
59715         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59716         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59717         Report by Bruno Haible <bruno@clisp.org>.
59718
59719 2007-04-26  Eric Blake  <ebb9@byu.net>
59720
59721         Fix fflush on mingw.
59722         * modules/fflush (Depends-on): Add freading.
59723         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59724         but unread data.
59725
59726 2007-04-26  Eric Blake  <ebb9@byu.net>
59727         and Bruno Haible  <bruno@clisp.org>
59728
59729         Implement freading and fwriting.
59730         * lib/freading.c: New file.
59731         * lib/freading.h: Likewise.
59732         * m4/freading.m4: Likewise.
59733         * modules/freading: Likewise.
59734         * modules/freading-tests: Likewise.
59735         * tests/test-freading.c: Likewise.
59736         * lib/fwriting.c: New file.
59737         * lib/fwriting.h: Likewise.
59738         * m4/fwriting.m4: Likewise.
59739         * modules/fwriting: Likewise.
59740         * modules/fwriting-tests: Likewise.
59741         * tests/test-fwriting.c: Likewise.
59742         * MODULES.html.sh (File stream based Input/Output): Mention them.
59743
59744 2007-04-26  Bruno Haible  <bruno@clisp.org>
59745
59746         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59747         'long' when we assume it.
59748         Suggested by Eric Blake.
59749
59750 2007-04-26  Bruno Haible  <bruno@clisp.org>
59751
59752         Ensure fseeko, ftello are declared on glibc systems.
59753         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59754         * modules/fseeko (configure.ac-early): Likewise.
59755         * modules/ftello (configure.ac-early): Likewise.
59756         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59757         AC_FUNC_FSEEKO for this.
59758         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59759         (gl_CHECK_FSEEKO): Remove macro.
59760
59761 2007-04-26  Bruno Haible  <bruno@clisp.org>
59762
59763         * tests/test-fflush.c (main): Also check the ftell result after
59764         fflush and fseek/fseeko.
59765         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59766         file descriptor position cache in the stream.
59767         * lib/fseeko.c (rpl_fseeko): Likewise.
59768
59769 2007-04-26  Bruno Haible  <bruno@clisp.org>
59770
59771         * modules/fflush-tests (Depends-on): Add fseeko.
59772
59773 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59774             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59775
59776         * lib/argz_.h: ensure error_t definition is obtained in same
59777         mechanism system argz.h would have.
59778         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59779         argz facilities are known bad.  Err on the side of caution if
59780         cross-compiling.
59781
59782 2007-04-25  Eric Blake  <ebb9@byu.net>
59783
59784         * lib/fpurge.c (includes): Use stdlib.h for free.
59785         * tests/test-fflush.c (main): Also test fflush-fseeko.
59786
59787 2007-04-25  Bruno Haible  <bruno@clisp.org>
59788
59789         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59790         * lib/fseeko.c: New file.
59791         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59792         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59793         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59794         gl_FUNC_FSEEKO.
59795         (gl_FUNC_FSEEKO): Invoke it.
59796         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59797         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59798         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59799
59800 2007-04-25  Bruno Haible  <bruno@clisp.org>
59801
59802         * modules/fflush (Depends-on): Add ftello.
59803
59804 2007-04-25  Bruno Haible  <bruno@clisp.org>
59805
59806         * modules/ftello-tests: New file.
59807         * tests/test-ftello.c: New file.
59808
59809         * modules/ftello: New file.
59810         * m4/ftello.m4: New file.
59811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59812         HAVE_FTELLO.
59813         * lib/stdio_.h (ftello): New declaration.
59814         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59815         HAVE_FTELLO.
59816
59817 2007-04-25  Bruno Haible  <bruno@clisp.org>
59818
59819         * modules/fseeko-tests: New file.
59820         * tests/test-fseeko.c: New file.
59821
59822         * modules/fseeko: New file.
59823         * m4/fseeko.m4: New file.
59824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59825         HAVE_FSEEKO.
59826         * lib/stdio_.h (fseeko): New declaration.
59827         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59828         HAVE_FSEEKO.
59829
59830 2007-04-25  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59833
59834 2007-04-25  Bruno Haible  <bruno@clisp.org>
59835
59836         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59837         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59838         * tests/test-unistd.c: Likewise.
59839         * tests/test-fcntl.c: Likewise.
59840
59841 2007-04-23  Eric Blake  <ebb9@byu.net>
59842
59843         * lib/fflush.c: Fix missing include.
59844         Reported by Bruno Haible.
59845
59846 2007-04-23  Bruno Haible  <bruno@clisp.org>
59847
59848         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59849         Reported by Eric Blake.
59850
59851 2007-04-23  Bruno Haible  <bruno@clisp.org>
59852
59853         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59854
59855 2007-04-23  Bruno Haible  <bruno@clisp.org>
59856
59857         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59858
59859 2007-04-23  Bruno Haible  <bruno@clisp.org>
59860
59861         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59862         Needed on HP-UX 11.
59863
59864 2007-04-16  Eric Blake  <ebb9@byu.net>
59865
59866         Make fflush rely on fpurge.
59867         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59868         open coding all variants.
59869         * modules/fflush (Depends-on): Add fpurge and unistd.
59870         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59871         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59872
59873         Fix --with-tests compilation on cygwin.
59874         * modules/argmatch-tests (Makefile.am): List gnulib library first
59875         in LDADD.
59876         * modules/argp-tests (Makefile.am): Likewise.
59877         * modules/array-list-tests (Makefile.am): Likewise.
59878         * modules/array-oset-tests (Makefile.am): Likewise.
59879         * modules/avltree-list-tests (Makefile.am): Likewise.
59880         * modules/avltree-oset-tests (Makefile.am): Likewise.
59881         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59882         * modules/carray-list-tests (Makefile.am): Likewise.
59883         * modules/dirname-tests (Makefile.am): Likewise.
59884         * modules/frexp-tests (Makefile.am): Likewise.
59885         * modules/isnanl-tests (Makefile.am): Likewise.
59886         * modules/linked-list-tests (Makefile.am): Likewise.
59887         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59888         * modules/lock-tests (Makefile.am): Likewise.
59889         * modules/rbtree-list-tests (Makefile.am): Likewise.
59890         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59891         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59892         * modules/tls-tests (Makefile.am): Likewise.
59893         * modules/tsearch-tests (Makefile.am): Likewise.
59894         * modules/xvasprintf-tests (Makefile.am): Likewise.
59895
59896         Fix fpurge for cygwin.
59897         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59898         value.
59899         * modules/fpurge-tests (Depends-on): Clean up trash.
59900
59901 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59902
59903         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59904
59905         * m4/autobuild.m4: Re-indent.
59906
59907 2007-04-13  Bruno Haible  <bruno@clisp.org>
59908
59909         * modules/fpurge-tests: New file.
59910         * tests/test-fpurge.c: New file.
59911
59912         * modules/fpurge: New file.
59913         * lib/fpurge.h: New file.
59914         * lib/fpurge.c: New file.
59915         * m4/fpurge.m4: New file.
59916
59917 2007-04-13  Bruno Haible  <bruno@clisp.org>
59918
59919         * modules/fbufmode-tests: New file.
59920         * tests/test-fbufmode.c: New file.
59921
59922         * modules/fbufmode: New file.
59923         * lib/fbufmode.h: New file.
59924         * lib/fbufmode.c: New file.
59925         * m4/fbufmode.m4: New file.
59926
59927 2007-04-13  Bruno Haible  <bruno@clisp.org>
59928
59929         * modules/fwritable-tests: New file.
59930         * tests/test-fwritable.c: New file.
59931
59932         * modules/fwritable: New file.
59933         * lib/fwritable.h: New file.
59934         * lib/fwritable.c: New file.
59935         * m4/fwritable.m4: New file.
59936
59937 2007-04-13  Bruno Haible  <bruno@clisp.org>
59938
59939         * modules/freadable-tests: New file.
59940         * tests/test-freadable.c: New file.
59941
59942         * modules/freadable: New file.
59943         * lib/freadable.h: New file.
59944         * lib/freadable.c: New file.
59945         * m4/freadable.m4: New file.
59946
59947 2007-04-13  Bruno Haible  <bruno@clisp.org>
59948
59949         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59950         MOSTLYCLEANFILES.
59951
59952 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59953
59954         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59955         gzip bootstrap.conf to avoid dragging in i18n machinery.
59956         (gnulib_tool_option): Use it.
59957
59958 2007-04-13  Bruno Haible  <bruno@clisp.org>
59959
59960         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59961         %F directives.
59962         * tests/test-vasprintf-posix.c (test_function): Likewise.
59963         * tests/test-snprintf-posix.h (test_function): Likewise.
59964         * tests/test-sprintf-posix.h (test_function): Likewise.
59965         * tests/test-fprintf-posix.h (test_function): Likewise.
59966         * tests/test-printf-posix.h (test_function): Likewise.
59967         * tests/test-fprintf-posix.out: Likewise.
59968
59969 2007-04-13  Bruno Haible  <bruno@clisp.org>
59970
59971         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59972         * modules/tls-tests (configure.ac): Likewise.
59973         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59974
59975 2007-04-13  Bruno Haible  <bruno@clisp.org>
59976
59977         * lib/tls.c (glthread_tls_get): Fix return type.
59978         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59979
59980 2007-04-12  Eric Blake  <ebb9@byu.net>
59981
59982         * modules/gettime (Depends-on): Remove gettime.
59983         Reported by Dmitry V. Levin.
59984
59985 2007-04-12  Bruno Haible  <bruno@clisp.org>
59986
59987         * modules/fflush (Include): Mention <stdio.h>.
59988         * modules/strtoimax (Include): Mention <inttypes.h>.
59989         * modules/strtoumax (Include): Likewise.
59990
59991 2007-04-12  Eric Blake  <ebb9@byu.net>
59992
59993         * .cvsignore: New file.
59994         * .gitignore: Likewise.
59995
59996 2007-04-12  Bruno Haible  <bruno@clisp.org>
59997
59998         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59999         not before, since $(LDADD) often contains libgnu.a.
60000         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60001         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60002         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60003         Needed on Cygwin.
60004
60005 2007-04-12  Eric Blake  <ebb9@byu.net>
60006
60007         Work around glibc's failure to flush stdin on fclose.
60008         * lib/closein.c (close_stdin): Flush stdin before closing.
60009
60010         Work around glibc's failure to reset seekable stdin on exit.
60011         * modules/closein: New module.
60012         * lib/closein.c: New file.
60013         * lib/closein.h: Likewise.
60014         * m4/closein.m4: Likewise.
60015         * MODULES.html.sh (File stream based Input/Output): Document it.
60016
60017 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60018
60019         * gnulib-tool: Rename generated 'autobuild' script to
60020         'do-autobuild' in --create-megatestdir output.
60021
60022         * doc/gnulib.texi (Build robot for gnulib): Fix.
60023
60024 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60025
60026         * modules/sysexits (Depends-on): Add absolute-header.
60027
60028 2007-04-12  Eric Blake  <ebb9@byu.net>
60029
60030         No need to preserve errno on success.
60031         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60032         Reported by Bruno Haible.
60033
60034 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60035
60036         * MODULES.html.sh (Support for maintaining and releasing
60037         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60038
60039 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60040
60041         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60042
60043 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60044
60045         * modules/autobuild: New module.
60046
60047         * m4/autobuild.m4: New file.
60048
60049 2007-04-11  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60052         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60055         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60056         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60057         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60059         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60060         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60061         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60062         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60063         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60065         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60066         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60068         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60069         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60071         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60072         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60074         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60075         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60077         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60078         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60079         Reported by Eric Blake.
60080
60081 2007-04-11  Bruno Haible  <bruno@clisp.org>
60082
60083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60084
60085 2007-04-10  Bruno Haible  <bruno@clisp.org>
60086
60087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60088         for NaN and Infinity. Needed on FreeBSD 6.1.
60089         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60090         regarding results for "%010a" of Infinity and NaN.
60091         * tests/test-vasprintf-posix.c (test_function): Likewise.
60092         * tests/test-snprintf-posix.h (test_function): Likewise.
60093         * tests/test-sprintf-posix.h (test_function): Likewise.
60094         * tests/test-fprintf-posix.h (test_function): Likewise.
60095         * tests/test-printf-posix.h (test_function): Likewise.
60096         * tests/test-fprintf-posix.out: Likewise.
60097
60098 2007-04-10  Bruno Haible  <bruno@clisp.org>
60099
60100         * modules/locale-tests: New file.
60101         * tests/test-locale.c: New file.
60102
60103         * modules/locale: New file.
60104         * lib/locale_.h: New file.
60105         * m4/locale_h.m4: New file.
60106
60107 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60108             Bruno Haible  <bruno@clisp.org>
60109
60110         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60111         be determined, test for availability of the copysignf, copysign,
60112         copysignl functions.
60113         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60114         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60115         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60116
60117 2007-04-09  Eric Blake  <ebb9@byu.net>
60118
60119         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60120         * modules/stdio (Makefile.am): Support fflush.
60121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60122         * modules/fflush: New file.
60123         * lib/fflush.c: Likewise.
60124         * m4/fflush.m4: Likewise.
60125         * modules/fflush-tests: New test.
60126         * tests/test-fflush.c: Likewise.
60127         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60128
60129 2007-04-06  Bruno Haible  <bruno@clisp.org>
60130
60131         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60132         (VASNPRINTF): Use signbit for faster determination whether to print a
60133         minus sign.
60134         * modules/vasnprintf (Files): Remove lib/float+.h.
60135         * modules/fprintf-posix (Depends-on): Add signbit.
60136         * modules/snprintf-posix (Depends-on): Likewise.
60137         * modules/sprintf-posix (Depends-on): Likewise.
60138         * modules/vasnprintf-posix (Depends-on): Likewise.
60139         * modules/vasprintf-posix (Depends-on): Likewise.
60140         * modules/vfprintf-posix (Depends-on): Likewise.
60141         * modules/vsnprintf-posix (Depends-on): Likewise.
60142         * modules/vsprintf-posix (Depends-on): Likewise.
60143
60144 2007-04-06  Bruno Haible  <bruno@clisp.org>
60145
60146         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60147         * tests/test-frexpl.c (main): Likewise.
60148         * tests/test-ldexpl.c (main): Likewise.
60149         * modules/frexp-tests (Depends-on): Add signbit.
60150         * modules/frexpl-tests (Depdends-on): Likewise.
60151         * modules/ldexpl-tests (Depdends-on): Likewise.
60152
60153 2007-04-06  Bruno Haible  <bruno@clisp.org>
60154
60155         * modules/signbit-tests: New file.
60156         * tests/test-signbit.c: New file.
60157
60158         * modules/signbit: New file.
60159         * lib/signbitf.c: New file.
60160         * lib/signbitd.c: New file.
60161         * lib/signbitl.c: New file.
60162         * m4/signbit.m4: New file.
60163         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60164         (signbit): New macro.
60165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60166         REPLACE_SIGNBIT.
60167         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60168         REPLACE_FREXPL into math.h.
60169
60170 2007-04-06  Bruno Haible  <bruno@clisp.org>
60171
60172         * modules/isnanf-nolibm-tests: New file.
60173         * tests/test-isnanf.c: New file.
60174
60175         * modules/isnanf-nolibm: New file.
60176         * lib/isnanf.h: New file.
60177         * lib/isnanf.c: New file.
60178         * lib/isnan.c: Consider the USE_FLOAT macro.
60179         * m4/isnanf.m4: New file.
60180
60181 2007-04-06  Bruno Haible  <bruno@clisp.org>
60182
60183         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60184         (Link): New section.
60185
60186         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60187
60188 2007-04-06  Bruno Haible  <bruno@clisp.org>
60189
60190         Assume the 'long double' type.
60191         * m4/longdouble.m4: Remove file.
60192         * config/srclist.txt: Don't mention longdouble.m4.
60193         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60194         * lib/float+.h: Likewise.
60195         * lib/frexp.c: Likewise.
60196         * lib/printf-args.h: Likewise.
60197         * lib/printf-args.c: Likewise.
60198         * lib/printf-frexp.c: Likewise.
60199         * lib/printf-parse.c: Likewise.
60200         * lib/vasnprintf.c: Likewise.
60201         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60202         * m4/intl.m4: Likewise.
60203         * m4/isnanl.m4: Likewise.
60204         * m4/printf.m4: Likewise.
60205         * m4/printf-frexpl.m4: Likewise.
60206         * m4/vasnprintf.m4: Likewise.
60207         * modules/allocsa (Files): Remove m4/longdouble.m4.
60208         * modules/gettext (Files): Likewise.
60209         * modules/relocatable-prog-wrapper (Files): Likewise.
60210         * modules/vasnprintf (Files): Likewise.
60211         * modules/isnanl (Files): Likewise.
60212         (Include): Simplify.
60213         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60214         (Include): Simplify.
60215         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60216         (Include): Simplify.
60217         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60218         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60219         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60220         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60221         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60222         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60223         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60224         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60225         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60226         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60227         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60228         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60229         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60230         * tests/test-isnanl.c: Likewise.
60231         * tests/test-snprintf-posix.h: Likewise.
60232         * tests/test-sprintf-posix.h: Likewise.
60233         * tests/test-vasnprintf-posix.c: Likewise.
60234         * tests/test-vasnprintf-posix2.c: Likewise.
60235         * tests/test-vasprintf-posix.c: Likewise.
60236
60237 2007-04-06  Bruno Haible  <bruno@clisp.org>
60238
60239         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60240         * lib/math_.h [__DECC]: Include the overridden include file through
60241         #include_next, outside the double-inclusion guard.
60242         * lib/stdio_.h [__DECC]: Likewise.
60243         * lib/stdlib_.h [__DECC]: Likewise.
60244         * lib/string_.h [__DECC]: Likewise.
60245         * lib/time_.h [__DECC]: Likewise.
60246         * lib/wchar_.h [__DECC]: Likewise.
60247         * lib/wctype_.h [__DECC]: Likewise.
60248         * lib/inttypes_.h [__DECC]: Likewise.
60249         Reported by Albert Chin <china@thewrittenword.com> in
60250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60251
60252 2007-04-04  Eric Blake  <ebb9@byu.net>
60253
60254         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60255         1.5.x.
60256
60257 2007-04-04  Bruno Haible  <bruno@clisp.org>
60258
60259         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60260         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60261
60262 2007-04-04  Bruno Haible  <bruno@clisp.org>
60263
60264         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60265         results for "%010a" of Infinity and NaN.
60266         * tests/test-vasprintf-posix.c (test_function): Likewise.
60267         * tests/test-snprintf-posix.h (test_function): Likewise.
60268         * tests/test-sprintf-posix.h (test_function): Likewise.
60269         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60270         * tests/test-printf-posix.h (test_function): Likewise.
60271         * tests/test-fprintf-posix.out: Update.
60272         Needed for FreeBSD 6.1.
60273
60274 2007-04-04  Bruno Haible  <bruno@clisp.org>
60275
60276         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60277         directly used by the gnulib modules nor by gnulib-tool.
60278
60279 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         * DEPENDENCIES: Give overall description of version dependency
60282         desirability.  Use more-typical names for apps.
60283         Add shell, coreutils, diffutils, grep, tar, gzip.
60284
60285 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60286
60287         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60288
60289 2007-04-04  Karl Berry  <karl@gnu.org>
60290
60291         * MODULES.html.sh (func_module): missing '.
60292
60293 2007-04-03  Bruno Haible  <bruno@clisp.org>
60294
60295         * modules/argmatch-tests (Makefile.am): New variable
60296         test_argmatch_LDADD.
60297         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60298         * modules/array-list-tests (Makefile.am): New variable
60299         test_array_list_LDADD.
60300         * modules/array-oset-tests (Makefile.am): New variable
60301         test_array_oset_LDADD.
60302         * modules/avltree-list-tests (Makefile.am): New variable
60303         test_avltree_list_LDADD.
60304         * modules/avltree-oset-tests (Makefile.am): New variable
60305         test_avltree_oset_LDADD.
60306         * modules/avltreehash-list-tests (Makefile.am): New variable
60307         test_avltreehash_list_LDADD.
60308         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60309         test_canonicalize_lgpl_LDADD.
60310         * modules/carray-list-tests (Makefile.am): New variable
60311         test_carray_list_LDADD.
60312         * modules/dirname-tests (Makefile.am): New variable
60313         test_dirname_LDADD.
60314         * modules/linked-list-tests (Makefile.am): New variable
60315         test_linked_list_LDADD.
60316         * modules/linkedhash-list-tests (Makefile.am): New variable
60317         test_linkedhash_list_LDADD.
60318         * modules/rbtree-list-tests (Makefile.am): New variable
60319         test_rbtree_list_LDADD.
60320         * modules/rbtree-oset-tests (Makefile.am): New variable
60321         test_rbtree_oset_LDADD.
60322         * modules/rbtreehash-list-tests (Makefile.am): New variable
60323         test_rbtreehash_list_LDADD.
60324         * modules/xvasprintf-tests (Makefile.am): New variable
60325         test_xvasprintf_LDADD.
60326         Reported by Eric Blake.
60327
60328 2007-04-03  Eric Blake  <ebb9@byu.net>
60329
60330         * DEPENDENCIES: Weaken m4 requirements.
60331
60332 2007-04-03  Bruno Haible  <bruno@clisp.org>
60333
60334         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60335         * modules/isnanl-tests (configure.ac): Likewise.
60336
60337 2007-04-03  Ben Pfaff  <blp@gnu.org>
60338
60339         * modules/iconv_open: Add $(srcdir)/ to source directory
60340         references in Makefile fragments that call gperf, to fix VPATH
60341         builds.
60342
60343 2007-04-03  Bruno Haible  <bruno@clisp.org>
60344
60345         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60346         * lib/ldexpl.c: Undo last change.
60347
60348 2007-04-03  Bruno Haible  <bruno@clisp.org>
60349
60350         * modules/printf-frexpl (Depends-on): Undo last change.
60351         (Files): Add m4/ldexpl.m4.
60352
60353 2007-04-03  Bruno Haible  <bruno@clisp.org>
60354
60355         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60356         * modules/isnanl (Link): New section.
60357
60358         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60359         * modules/frexp (Link): New section.
60360
60361         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60362         * modules/frexpl (Link): New section.
60363
60364         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60365         * modules/ldexpl (Link): New section.
60366
60367 2007-04-03  Bruno Haible  <bruno@clisp.org>
60368
60369         * modules/TEMPLATE-EXTENDED: New file.
60370         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60371
60372 2007-04-03  Bruno Haible  <bruno@clisp.org>
60373
60374         * DEPENDENCIES: New file.
60375         Suggested by Simon Josefsson.
60376
60377 2007-04-03  Bruno Haible  <bruno@clisp.org>
60378
60379         * doc/gnulib.texi: Escape @.
60380
60381 2007-04-03  James Youngman  <jay@gnu.org>
60382         and Paul Eggert  <eggert@cs.ucla.edu>
60383
60384         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60385         birthtime on all systems that have birthtime, not just those which
60386         use st_birthtimensec rather than st_birthtim.  Putting zero in
60387         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60388         that the birth time is not available for files on an NFS mount.
60389
60390 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60391
60392         * modules/memxor: Move back from crypto/, suggested by Bruno.
60393         * modules/crypto/hmac-sha1: Fix memxor dependency.
60394
60395         * modules/crypto/gc: Moved from ../.
60396
60397 2007-04-02  Eric Blake  <ebb9@byu.net>
60398
60399         * lib/ldexpl.c (includes): Avoid libm.
60400
60401         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60402
60403 2007-04-02  Bruno Haible  <bruno@clisp.org>
60404
60405         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60406         on IRIX.
60407
60408 2007-04-02  Bruno Haible  <bruno@clisp.org>
60409
60410         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60411         x86 or x86_64 platforms running MacOS X.
60412         Reported by Ryan Schmidt <@ryandesign.com>.
60413
60414 2007-04-02  Bruno Haible  <bruno@clisp.org>
60415
60416         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60417         i386.
60418
60419 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60420
60421         * modules/crypto/arcfour: Moved from ../.
60422         * modules/crypto/arcfour-tests: Moved from ../.
60423         * modules/crypto/arctwo: Moved from ../.
60424         * modules/crypto/arctwo-tests: Moved from ../.
60425         * modules/crypto/des: Moved from ../.
60426         * modules/crypto/des-tests: Moved from ../.
60427         * modules/crypto/gc-arcfour: Moved from ../.
60428         * modules/crypto/gc-arcfour-tests: Moved from ../.
60429         * modules/crypto/gc-arctwo: Moved from ../.
60430         * modules/crypto/gc-arctwo-tests: Moved from ../.
60431         * modules/crypto/gc-des: Moved from ../.
60432         * modules/crypto/gc-des-tests: Moved from ../.
60433         * modules/crypto/gc-hmac-md5: Moved from ../.
60434         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60435         * modules/crypto/gc-hmac-sha1: Moved from ../.
60436         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60437         * modules/crypto/gc-md2: Moved from ../.
60438         * modules/crypto/gc-md2-tests: Moved from ../.
60439         * modules/crypto/gc-md4: Moved from ../.
60440         * modules/crypto/gc-md4-tests: Moved from ../.
60441         * modules/crypto/gc-md5: Moved from ../.
60442         * modules/crypto/gc-md5-tests: Moved from ../.
60443         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60444         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60445         * modules/crypto/gc-random: Moved from ../.
60446         * modules/crypto/gc-rijndael: Moved from ../.
60447         * modules/crypto/gc-rijndael-tests: Moved from ../.
60448         * modules/crypto/gc-sha1: Moved from ../.
60449         * modules/crypto/gc-sha1-tests: Moved from ../.
60450         * modules/crypto/gc-tests: Moved from ../.
60451         * modules/crypto/hmac-md5: Moved from ../.
60452         * modules/crypto/hmac-md5-tests: Moved from ../.
60453         * modules/crypto/hmac-sha1: Moved from ../.
60454         * modules/crypto/hmac-sha1-tests: Moved from ../.
60455         * modules/crypto/md2: Moved from ../.
60456         * modules/crypto/md2-tests: Moved from ../.
60457         * modules/crypto/md4: Moved from ../.
60458         * modules/crypto/md4-tests: Moved from ../.
60459         * modules/crypto/md5: Moved from ../.
60460         * modules/crypto/md5-tests: Moved from ../.
60461         * modules/crypto/memxor: Moved from ../.
60462         * modules/crypto/rijndael: Moved from ../.
60463         * modules/crypto/rijndael-tests: Moved from ../.
60464         * modules/crypto/sha1: Moved from ../.
60465
60466 2007-03-30  James Youngman  <jay@gnu.org>
60467
60468         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60469         rename() to change the ctime of a file (because ctime is unaffected
60470         by rename on jfs2 on AIX 5.1).
60471         (main): Start by doing cleanup, in case a previous run failed leaving
60472         test files behind.
60473
60474 2007-03-31  Bruno Haible  <bruno@clisp.org>
60475
60476         Support old proprietary implementations of iconv.
60477         * modules/iconv_open: New file.
60478         * lib/iconv_.h: New file.
60479         * m4/iconv_h.m4: New file.
60480         * lib/iconv_open.c: New file.
60481         * lib/iconv_open-aix.gperf: New file.
60482         * lib/iconv_open-hpux.gperf: New file.
60483         * lib/iconv_open-irix.gperf: New file.
60484         * lib/iconv_open-osf.gperf: New file.
60485         * m4/iconv_open.m4: New file.
60486         * modules/linebreak (Depends-on): Add iconv_open.
60487         * modules/striconv (Depends-on): Likewise.
60488         * modules/striconveh (Depends-on): Likewise.
60489         * modules/unicodeio (Depends-on): Likewise.
60490         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60491         (iconv_t)(-1).
60492         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60493         conversion if cd is (iconv_t)(-1).
60494         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60495         is not possible.
60496
60497 2007-03-31  Bruno Haible  <bruno@clisp.org>
60498
60499         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60500         work on Solaris either. Protect also second use of "autodetect_jp".
60501
60502 2007-03-31  Bruno Haible  <bruno@clisp.org>
60503
60504         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60505         the function is not present.
60506
60507 2007-03-31  Bruno Haible  <bruno@clisp.org>
60508
60509         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60510         the function is not present.
60511
60512 2007-03-31  Bruno Haible  <bruno@clisp.org>
60513
60514         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60515         a bug in HP-UX iconv_open().
60516
60517 2007-03-31  Bruno Haible  <bruno@clisp.org>
60518
60519         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60520         (Mathematics <math.h>): New section, add fpieee.
60521         (Input/output <stdio.h>): Add fseterr.
60522         (Mathematics <math.h>): New section, add printf-frexp.
60523         (Container data structures): Add sublist.
60524         (Core language properties): Add fpucw, inline.
60525         (Functions for greatest-width integer types <inttypes.h>): Add
60526         imaxabs, imaxdiv, inttypes.
60527         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60528         isnanl-nolibm, ldexp.
60529         (Mathematics <math.h>): New section, add printf-frexpl.
60530         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60531         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60532         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60533         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60534         (Unicode string functions): Add unistr/u*-mbtoucr.
60535         (Java): Add javacomp-script, javaexec-script.
60536         (C#): Add csharpcomp-script, csharpexec-script.
60537         (Support for building libraries and executables): Add havelib,
60538         relocatable-*.
60539         (Support for maintaining and releasing projects): Renamed from
60540         'Support for maintaining and release projects'. Add announce-gen.
60541
60542 2007-03-31  Bruno Haible  <bruno@clisp.org>
60543
60544         * README: Talk primarily about git.
60545         (git and CVS): Renamed from CVS.
60546         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60547         gnulib is available through git.
60548         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60549
60550 2007-03-30  Bruno Haible  <bruno@clisp.org>
60551
60552         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60553         * lib/poll_.h: Likewise.
60554         * lib/stat_.h: Likewise.
60555         * lib/sys_time_.h: Likewise.
60556         * lib/sysexit_.h: Likewise.
60557         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60558         * lib/stdbool_.h: Likewise.
60559         * lib/byteswap_.h: Add double-inclusion guard.
60560
60561 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60562
60563         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60564
60565 2007-03-30  Karl Berry  <karl@gnu.org>
60566
60567         * config/srclist-update: double space after USA in the license
60568         substitution, since that's how it's usually (?) written.
60569
60570 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60571
60572         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60573         reported by Bruno Haible.
60574
60575 2007-03-29  Bruno Haible  <bruno@clisp.org>
60576
60577         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60578         a bug in AIX iconv().
60579
60580 2007-03-29  Bruno Haible  <bruno@clisp.org>
60581
60582         * modules/ldexpl-tests: New file.
60583         * tests/test-ldexpl.c: New file.
60584
60585 2007-03-29  Bruno Haible  <bruno@clisp.org>
60586
60587         * lib/ldexpl.c: Include fpucw.h.
60588         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60589         multiplication.
60590         * modules/ldexpl (Depends-on): Add fpucw.
60591
60592 2007-03-29  Bruno Haible  <bruno@clisp.org>
60593
60594         * modules/ldexpl: New file.
60595         * m4/ldexpl.m4: New file.
60596         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60597         set.
60598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60599         REPLACE_LDEXPL.
60600         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60601         REPLACE_LDEXPL.
60602         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60603         gl_FUNC_LDEXPL_WORKS.
60604         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60605         * modules/mathl (Files): Remove lib/ldexpl.c.
60606         (Depends-on): Add ldexpl.
60607
60608 2007-03-29  Bruno Haible  <bruno@clisp.org>
60609
60610         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60611
60612 2007-03-29  Bruno Haible  <bruno@clisp.org>
60613
60614         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60615         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60616         and possibly also HP-UX.
60617         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60618         work on AIX, IRIX, HP-UX, OSF/1.
60619         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60620         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60621         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60622         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60623         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60624         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60625
60626 2007-03-29  Bruno Haible  <bruno@clisp.org>
60627
60628         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60629
60630 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60631
60632         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60633         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60634
60635 2007-03-29  Eric Blake  <ebb9@byu.net>
60636
60637         * lib/acl-internal.h: Remove redundant include.
60638         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60639         Cygwin when a file is locked.
60640
60641 2007-03-29  Bruno Haible  <bruno@clisp.org>
60642
60643         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60644         file.
60645         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60646
60647 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60650         try to remove a parent directory if the child couldn't be removed
60651         (except for the first rmdir, which could fail because the child
60652         doesn't exist).  Problem reported by Jeff Blaine in
60653         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60654
60655 2007-03-28  Bruno Haible  <bruno@clisp.org>
60656
60657         * lib/striconveh.c (utf8conv_carefully): New function.
60658         (mem_cd_iconveh_internal): Invoke it.
60659
60660 2007-03-28  Bruno Haible  <bruno@clisp.org>
60661
60662         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60663         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60664         input.
60665         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60666         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60667         unistr/u8-uctomb.
60668
60669 2007-03-28  Bruno Haible  <bruno@clisp.org>
60670
60671         * modules/unistr/u8-mbtoucr: New file.
60672         * lib/unistr/u8-mbtoucr.c: New file.
60673         * modules/unistr/u16-mbtoucr: New file.
60674         * lib/unistr/u16-mbtoucr.c: New file.
60675         * modules/unistr/u16-mbtoucr: New file.
60676         * lib/unistr/u16-mbtoucr.c: New file.
60677         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60678
60679 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60680             Bruno Haible  <bruno@clisp.org>
60681
60682         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60683         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60684         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60685
60686         * m4/stdio_h.m4: Add stubs for vasprintf too.
60687
60688         * modules/stdio: Support vasprintf in sed command.
60689
60690         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60691         vasprintf.h.  Add stdio module indicator.
60692
60693         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60694         vasprintf.h.
60695
60696         * lib/vasprintf.h: File removed.
60697
60698         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60699         * lib/vasprintf.c: Ditto.
60700         * lib/xvasprintf.c: Ditto.
60701         * tests/test-vasprintf-posix.c: Ditto.
60702         * tests/test-vasprintf.c: Ditto.
60703
60704 2007-03-27  Bruno Haible  <bruno@clisp.org>
60705
60706         Make vasnprintf multithread-safe.
60707         * lib/vasnprintf.c (decimal_point_char): New function.
60708         (VASNPRINTF): Use it.
60709         Suggested by Simon Josefsson.
60710
60711 2007-03-27  Eric Blake  <ebb9@byu.net>
60712
60713         Support sub-second birthtime on cygwin.
60714         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60715         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60716         (get_stat_birthtime): Also work with st_birthtim.
60717
60718 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60719
60720         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60721         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60722         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60723         (get_stat_birthtime_ns): Simplify compile-time tests.
60724         (get_stat_birthtime): Change the API to look like
60725         get_stat_mtime etc., except return a negative tv_nsec on error.
60726         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60727         Don't check for "spare" fields.
60728         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60729         or for struct stat.st_birthtime, as these tests aren't used.
60730         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60731
60732 2007-03-27  Bruno Haible  <bruno@clisp.org>
60733
60734         * lib/stat-time.h: Include <sys/stat.h>.
60735
60736 2007-03-27  James Youngman  <jay@gnu.org>
60737
60738         * lib/stat-time.h (get_stat_birthtime): New function for
60739           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60740         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60741           and its variants.
60742         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60743         * modules/stat-time-test: New file.
60744         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60745
60746 2007-03-26  Bruno Haible  <bruno@clisp.org>
60747
60748         Better support of signalling NaNs.
60749         * lib/atanl.c: Include isnanl.h.
60750         (atanl): Perform test for NaN at the beginning of the function and
60751         through a call to isnanl.
60752         * lib/cosl.c: Include isnanl.h.
60753         (cosl): Perform test for NaN at the beginning of the function and
60754         through a call to isnanl.
60755         * lib/ldexpl.c: Include isnanl.h.
60756         (ldexpl): Perform test for NaN through a call to isnanl.
60757         * lib/logl.c: Include isnanl.h.
60758         (logl): Perform test for NaN at the beginning of the function and
60759         through a call to isnanl.
60760         * lib/sinl.c: Include isnanl.h.
60761         (sinl): Perform test for NaN at the beginning of the function and
60762         through a call to isnanl.
60763         * lib/sqrtl.c: Include isnanl.h.
60764         (sqrtl): Perform test for NaN at the beginning of the function and
60765         through a call to isnanl.
60766         * lib/tanl.c: Include isnanl.h.
60767         (tanl): Perform test for NaN at the beginning of the function and
60768         through a call to isnanl.
60769         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60770         * modules/mathl (Depends-on): Add isnanl.
60771
60772 2007-03-26  Eric Blake  <ebb9@byu.net>
60773
60774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60775         regression in logic sense of previous patch.
60776
60777 2007-03-26  Bruno Haible  <bruno@clisp.org>
60778
60779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60780         unportable shell command "if ! ...".
60781         Reported by Ralf Wildenhues.
60782
60783 2007-03-25  Bruno Haible  <bruno@clisp.org>
60784
60785         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60786         <sysexits.h> file, and only add EX_CONFIG.
60787         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60788         absolute file name and whether it is sufficient. Substitute also
60789         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60790         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60791         ABSOLUTE_SYSEXITS_H into sysexits.h.
60792
60793 2007-03-25  Bruno Haible  <bruno@clisp.org>
60794
60795         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60796         hints is NULL.
60797
60798 2007-03-25  Bruno Haible  <bruno@clisp.org>
60799
60800         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60801         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60802
60803 2007-03-25  Bruno Haible  <bruno@clisp.org>
60804
60805         * lib/vasnprintf.c: Include langinfo.h.
60806         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60807         multithread-safe.
60808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60809         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60810         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60811         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60812         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60814         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60815         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60816         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60817         Reported by Simon Josefsson.
60818
60819 2007-03-25  Bruno Haible  <bruno@clisp.org>
60820
60821         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60822         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60823         * modules/vasnprintf (Depends-on): Add stdint.
60824
60825 2007-03-25  Bruno Haible  <bruno@clisp.org>
60826
60827         * modules/fpieee: New file.
60828         * m4/fpieee.m4: New file.
60829         * modules/isnan-nolibm (Depends-on): Add fpieee.
60830         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60831         * modules/isnanl (Depends-on): Add fpieee.
60832
60833 2007-03-25  Bruno Haible  <bruno@clisp.org>
60834
60835         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60836
60837 2007-03-25  Bruno Haible  <bruno@clisp.org>
60838
60839         Avoid test failures on IRIX 6.5.
60840         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60841         (main): Use it.
60842         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60843         macros.
60844         (main): Use them.
60845
60846 2007-03-25  Bruno Haible  <bruno@clisp.org>
60847
60848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60849         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60850         exists but doesn't work.
60851         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60852         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60854         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60855         math.h.
60856
60857 2007-03-25  Bruno Haible  <bruno@clisp.org>
60858
60859         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60860         returns inf. Needed on IRIX 6.5.
60861
60862 2007-03-25  Bruno Haible  <bruno@clisp.org>
60863
60864         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60865         (main): Use isnanl instead of x != x idiom.
60866         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60867
60868         * tests/test-frexp.c: Include isnan.h.
60869         (main): Use isnan instead of x != x idiom.
60870         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60871
60872 2007-03-25  Bruno Haible  <bruno@clisp.org>
60873
60874         * tests/test-frexp.c (NaN): New function/macro.
60875         (main): Use it instead of 0.0 / 0.0.
60876         * tests/test-isnan.c (NaN): New function/macro.
60877         (main): Use it instead of 0.0 / 0.0.
60878         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60879         (test_function): Use it instead of 0.0 / 0.0.
60880         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60881         (test_function): Use it instead of 0.0 / 0.0.
60882         * tests/test-snprintf-posix.h (NaN): New function/macro.
60883         (test_function): Use it instead of 0.0 / 0.0.
60884         * tests/test-sprintf-posix.h (NaN): New function/macro.
60885         (test_function): Use it instead of 0.0 / 0.0.
60886         * tests/test-fprintf-posix.h (NaN): New function/macro.
60887         (test_function): Use it instead of 0.0 / 0.0.
60888         * tests/test-printf-posix.h (NaN): New function/macro.
60889         (test_function): Use it instead of 0.0 / 0.0.
60890
60891         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60892
60893 2007-03-25  Bruno Haible  <bruno@clisp.org>
60894
60895         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60896
60897 2007-03-25  Bruno Haible  <bruno@clisp.org>
60898
60899         * lib/regexec.c (merge_state_with_log): Make static.
60900
60901 2007-03-25  Bruno Haible  <bruno@clisp.org>
60902
60903         * lib/trigl.c (kernel_rem_pio2): Make static.
60904
60905 2007-03-25  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/sincosl.c (sincosl_table): Make static.
60908
60909 2007-03-25  Bruno Haible  <bruno@clisp.org>
60910
60911         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60912         if the compiler does not support C99.
60913
60914 2007-03-25  Bruno Haible  <bruno@clisp.org>
60915
60916         * modules/time (Makefile.am): Ensure all rule action lines start with a
60917         tab.
60918
60919 2007-03-24  Bruno Haible  <bruno@clisp.org>
60920
60921         * modules/tsearch-tests: New file.
60922         * tests/test-tsearch.sh: New file.
60923         * tests/test-tsearch.c: New file, mostly copied from glibc.
60924
60925         * modules/search-tests: New file.
60926         * tests/test-search.c: New file.
60927
60928         * modules/search: New file.
60929         * lib/search_.h: New file, incorporating lib/tsearch.h.
60930         * m4/search_h.m4: New file.
60931         * lib/tsearch.h: Remove file.
60932         * lib/tsearch.c: Include search.h instead of tsearch.h.
60933         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60934         HAVE_TSEARCH.
60935         * modules/tsearch (Files): Remove lib/tsearch.h.
60936         (Depends-on): Add search.
60937         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60938         (Include): Change tsearch.h into search.h.
60939
60940 2007-03-24  Bruno Haible  <bruno@clisp.org>
60941
60942         * modules/fpucw: New file.
60943         * lib/fpucw.h: New file.
60944         * lib/frexp.c: Include fpucw.h.
60945         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60946         (FUNC): Use them.
60947         * lib/printf-frexp.c: Include fpucw.h.
60948         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60949         (FUNC): Use them.
60950         * lib/vasnprintf.c: Include fpucw.h.
60951         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60952         'long double' calculations.
60953         * tests/test-frexpl.c: Include fpucw.h.
60954         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60955         * tests/test-printf-frexpl.c: Include fpucw.h.
60956         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60957         * modules/frexpl (Depends-on): Add fpucw.
60958         * modules/printf-frexpl (Depends-on): Likewise.
60959         * modules/fprintf-posix (Depends-on): Likewise.
60960         * modules/snprintf-posix (Depends-on): Likewise.
60961         * modules/sprintf-posix (Depends-on): Likewise.
60962         * modules/vasnprintf-posix (Depends-on): Likewise.
60963         * modules/vasprintf-posix (Depends-on): Likewise.
60964         * modules/vfprintf-posix (Depends-on): Likewise.
60965         * modules/vsnprintf-posix (Depends-on): Likewise.
60966         * modules/vsprintf-posix (Depends-on): Likewise.
60967         * modules/frexpl-tests (Depends-on): Likewise.
60968         * modules/printf-frexpl-tests (Depends-on): Likewise.
60969
60970 2007-03-24  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/float+.h: New file.
60973         * lib/isnan.c: Include float+.h.
60974         (SIZE): New macro.
60975         (FUNC): Compare only SIZE bytes of the value.
60976         * lib/vasnprintf.c: Include float+.h.
60977         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60978         SIZEOF_LDBL or SIZEOF_DBL bytes.
60979         * modules/isnan-nolibm (Files): Add lib/float+.h.
60980         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60981         * modules/isnanl (Files): Add lib/float+.h.
60982         * modules/vasnprintf (Files): Add lib/float+.h.
60983
60984 2007-03-24  Bruno Haible  <bruno@clisp.org>
60985
60986         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60987         include isnanl-nolibm.h.
60988
60989 2007-03-24  Bruno Haible  <bruno@clisp.org>
60990
60991         * tests/test-read-file.c (main): Don't produce spurious output for
60992         expected situations. Make the test fail if it encountered unexpected
60993         results.
60994
60995 2007-03-24  Bruno Haible  <bruno@clisp.org>
60996
60997         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60998         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60999
61000 2007-03-24  Bruno Haible  <bruno@clisp.org>
61001
61002         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61003
61004 2007-03-24  Bruno Haible  <bruno@clisp.org>
61005
61006         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61007         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61008
61009         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61010         * modules/utf8-ucs4: Turn into a symbolic link to module
61011         unistr/u8-mbtouc.
61012
61013         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61014         utf8-ucs4-unsafe.
61015         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61016         unistr/u8-mbtouc-unsafe.
61017
61018         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61019         * modules/utf16-ucs4: Turn into a symbolic link to module
61020         unistr/u16-mbtouc.
61021
61022         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61023         utf16-ucs4-unsafe.
61024         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61025         unistr/u16-mbtouc-unsafe.
61026
61027         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61028         * modules/ucs4-utf8: Turn into a symbolic link to module
61029         unistr/u8-ubtomb.
61030
61031         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61032         * modules/ucs4-utf16: Turn into a symbolic link to module
61033         unistr/u16-ubtomb.
61034
61035 2007-03-24  Bruno Haible  <bruno@clisp.org>
61036
61037         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61038         Enable the function only if HAVE_INLINE.
61039         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61040         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61041         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61042         Enable the function only if HAVE_INLINE.
61043         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61044         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61045         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61046         Enable the function only if HAVE_INLINE.
61047         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61048         Enable the function only if HAVE_INLINE.
61049         * modules/utf8-ucs4: Update.
61050         * modules/utf8-ucs4-unsafe: Update.
61051         * modules/utf16-ucs4: Update.
61052         * modules/utf16-ucs4-unsafe: Update.
61053         * modules/ucs4-utf8: Update.
61054         * modules/ucs4-utf16: Update.
61055
61056 2007-03-24  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/utf8-ucs4.h: Remove file.
61059         * lib/utf8-ucs4-unsafe.h: Remove file.
61060         * lib/utf16-ucs4.h: Remove file.
61061         * lib/utf16-ucs4-unsafe.h: Remove file.
61062         * lib/ucs4-utf8.h: Remove file.
61063         * lib/ucs4-utf16.h: Remove file.
61064         * lib/unistr.h: Include their previous contents.
61065         * m4/utf-ucs4.m4: Remove file.
61066         * m4/ucs4-utf.m4: Remove file.
61067         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61068         (Depends-on): Add unistr/base.
61069         (configure.ac): Remove gl_UTF_UCS4.
61070         (Makefile.am): Update.
61071         (Include): Change to unistr.h.
61072         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61073         (Depends-on): Add unistr/base.
61074         (configure.ac): Remove gl_UTF_UCS4.
61075         (Makefile.am): Update.
61076         (Include): Change to unistr.h.
61077         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61078         (Depends-on): Add unistr/base.
61079         (configure.ac): Remove gl_UTF_UCS4.
61080         (Makefile.am): Update.
61081         (Include): Change to unistr.h.
61082         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61083         (Depends-on): Add unistr/base.
61084         (configure.ac): Remove gl_UTF_UCS4.
61085         (Makefile.am): Update.
61086         (Include): Change to unistr.h.
61087         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61088         (Depends-on): Add unistr/base.
61089         (configure.ac): Remove gl_UCS4_UTF.
61090         (Makefile.am): Update.
61091         (Include): Change to unistr.h.
61092         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61093         (Depends-on): Add unistr/base.
61094         (configure.ac): Remove gl_UCS4_UTF.
61095         (Makefile.am): Update.
61096         (Include): Change to unistr.h.
61097         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61098         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61099         utf8-ucs4-unsafe.h.
61100         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61101         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61102         utf16-ucs4-unsafe.h.
61103         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61104         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61105         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61106         * lib/unistr/u8-strchr.c: Likewise.
61107         * lib/unistr/u8-strrchr.c: Likewise.
61108         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61109         * lib/unistr/u16-strchr.c: Likewise.
61110         * lib/unistr/u16-strrchr.c: Likewise.
61111         * lib/striconveh.c: Update.
61112         * lib/linebreak.c: Update.
61113
61114 2007-03-24  Bruno Haible  <bruno@clisp.org>
61115
61116         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61117         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61118
61119 2007-03-22  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61122
61123 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61124
61125         * MODULES.html.sh (File system functions): New module write-any-file.
61126         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61127         * m4/write-any-file.m4: New files.
61128
61129 2007-03-23  Eric Blake  <ebb9@byu.net>
61130
61131         * gnulib-tool: Rearrange space-tab sequences, since some editors
61132         like to eat them.
61133
61134 2007-03-23  Eric Blake  <ebb9@byu.net>
61135
61136         * lib/version-etc.c (version_etc_va): Update license wording to
61137         be more concise.  Recommended by Richard Stallman.
61138
61139 2007-03-22  Bruno Haible  <bruno@clisp.org>
61140
61141         * lib/poll.c (MSG_PEEK): New fallback definition.
61142
61143 2007-03-22  Bruno Haible  <bruno@clisp.org>
61144
61145         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61146         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61147         (main): Update.
61148         Fixes a compilation error on BeOS.
61149
61150 2007-03-22  Bruno Haible  <bruno@clisp.org>
61151
61152         * modules/frexpl-tests: New file.
61153         * tests/test-frexpl.c: New file.
61154
61155         * modules/frexpl: New file.
61156         * m4/frexpl.m4: New file.
61157         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61158         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61160         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61161         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61162         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61163
61164 2007-03-22  Bruno Haible  <bruno@clisp.org>
61165
61166         * lib/frexpl.c: Share code with lib/frexp.c.
61167         * modules/mathl (Files): Add lib/frexp.c.
61168         (Depends-on): Add isnanl-nolibm.
61169
61170 2007-03-22  Bruno Haible  <bruno@clisp.org>
61171
61172         * modules/printf-frexp (Files): Add m4/frexp.m4.
61173         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61174         only if the found frexp function actually works.
61175
61176 2007-03-22  Bruno Haible  <bruno@clisp.org>
61177
61178         * lib/frexp.c: Remove older implementation that uses divisions.
61179
61180 2007-03-21  Bruno Haible  <bruno@clisp.org>
61181
61182         * modules/frexp-tests: New file.
61183         * tests/test-frexp.c: New file.
61184
61185         * modules/frexp: New file.
61186         * lib/frexp.c: New file.
61187         * m4/frexp.m4: New file.
61188         * lib/math_.h (frexp): New declaration.
61189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61190         REPLACE_FREXP.
61191         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61192
61193 2007-03-21  Bruno Haible  <bruno@clisp.org>
61194
61195         * modules/isnanl-tests: New file.
61196         * tests/test-isnanl.c: New file.
61197
61198         * modules/isnanl: New file.
61199         * lib/isnanl.h: New file.
61200         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61201         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61202         gl_FUNC_ISNANL_WORKS.
61203         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61204         New macros.
61205
61206 2007-03-21  Bruno Haible  <bruno@clisp.org>
61207
61208         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61209         lib/isnanl.h.
61210         (Include): Update.
61211         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61212         * lib/vasnprintf.c: Update.
61213         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61214         tests/test-isnanl.h, remove tests/test-isnanl.c.
61215         (Makefile.am): Update.
61216         * tests/test-isnanl-nolibm.c: New file.
61217         * tests/test-isnanl.h: New file.
61218         * tests/test-isnanl.c: Remove file.
61219
61220 2007-03-21  Jim Meyering  <jim@meyering.net>
61221
61222         When trying to open ".", treat ESTALE like EACCES.
61223         * lib/savewd.c (savewd_save): Resort to forking not just upon
61224         failure with EACCES, but also when errno is ESTALE.
61225
61226 2007-03-20  Bruno Haible  <bruno@clisp.org>
61227
61228         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61229         Needed on AIX 5.1. Reported by Matthew Woehlke.
61230
61231 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61232
61233         Suggestions by Bruno Haible:
61234         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61235         our own.
61236         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61237         * modules/acl (Depends-on): Add gettext.
61238
61239 2007-03-19  Bruno Haible  <bruno@clisp.org>
61240
61241         * modules/iconvme: Remove file.
61242         * lib/iconvme.h: Remove file.
61243         * lib/iconvme.c: Remove file.
61244         * m4/iconvme.m4: Remove file.
61245
61246 2007-03-19  Bruno Haible  <bruno@clisp.org>
61247
61248         * doc/relocatable-maint.texi: Break long shell script line.
61249         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61250
61251 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61252
61253         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61254         handle file_has_acl.
61255         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61256         * lib/acl.c: Move header inclusions and related macro defns into
61257         lib/acl-internal.h.
61258         (S_ISLNK): Remove defn, since that's now done for us.
61259         (file_has_acl): Move to lib/file-has-acl.c.
61260         Call acl_trivial if available.  This is the crucial part of the fix.
61261         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61262         shared within the library.  Rewrite a bit, partly to make it compatible
61263         with the GNU coding style.
61264         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61265         Remove unnecessary double-quotes.
61266         Don't test for acl_to_text; the build will catch that.
61267         Replace acl_entries if it doesn't exist and it is needed.
61268         Check for -lsec and acl_trivial (as used on Solaris 10).
61269         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61270         lib/file-has-acl.c.
61271         (Depends-on): Add sys_stat, for S_ISLNK.
61272
61273 2007-03-19  Ben Pfaff  <blp@gnu.org>
61274
61275         * doc/gnulib.texi: Fix typos.
61276         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61277
61278 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61279
61280         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61281         If size is zero here, buf must be zero.
61282
61283 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61284
61285         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61286         <bruno@clisp.org>.
61287
61288 2007-03-18  Bruno Haible  <bruno@clisp.org>
61289
61290         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61291         Suggested by Eric Blake.
61292
61293 2007-03-18  Ben Pfaff  <blp@gnu.org>
61294
61295         * doc/relocatable.texi: Recommend using as prefix a directory
61296         that does not exist and will never be created.  Based on
61297         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61298         and others.
61299
61300 2007-03-17  Bruno Haible  <bruno@clisp.org>
61301
61302         * lib/fchownat.c: Include lchown.h.
61303
61304 2007-03-17  Bruno Haible  <bruno@clisp.org>
61305
61306         Fix endless loop when the given allocated size was > INT_MAX.
61307         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61308         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61309         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61310         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61311         * lib/sprintf.c (sprintf): Likewise.
61312
61313 2007-03-17  Bruno Haible  <bruno@clisp.org>
61314
61315         * tests/test-argp-2.sh (func_compare): Output a context diff.
61316
61317 2007-03-17  Bruno Haible  <bruno@clisp.org>
61318
61319         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61320         locale's decimal-point character.
61321
61322 2007-03-17  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61325         before comparing it. Needed because on some platforms (e.g. x86) a
61326         'long double' occupies less bytes than sizeof (long double).
61327
61328 2007-03-17  Bruno Haible  <bruno@clisp.org>
61329
61330         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61331         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61332         * tests/test-getaddrinfo.c (simple): Likewise.
61333         * tests/test-read-file.c (main): Likewise.
61334
61335 2007-03-17  Bruno Haible  <bruno@clisp.org>
61336
61337         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61338
61339 2007-03-17  Bruno Haible  <bruno@clisp.org>
61340
61341         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61342         unused variable.
61343
61344 2007-03-17  Bruno Haible  <bruno@clisp.org>
61345
61346         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61347         * tests/test-c-strncasecmp.c: Likewise.
61348
61349 2007-03-17  Bruno Haible  <bruno@clisp.org>
61350
61351         * modules/stdlib (Depends-on): Add unistd.
61352         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61353         Needed for MacOS X 10.3.
61354
61355 2007-03-17  Bruno Haible  <bruno@clisp.org>
61356
61357         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61358
61359 2007-03-17  Bruno Haible  <bruno@clisp.org>
61360
61361         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61362
61363 2007-03-17  Bruno Haible  <bruno@clisp.org>
61364
61365         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61366         to reflect files copied from gnulib (with or without modifications).
61367         Suggested by Jim Meyering.
61368
61369 2007-03-17  Eric Blake  <ebb9@byu.net>
61370
61371         * NEWS: Document stdlib change from 2007-02-18.
61372
61373 2007-03-17  Jim Meyering  <jim@meyering.net>
61374
61375         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61376         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61377         someone uses a name containing shell meta-characters.
61378         Reported by Alfred M. Szmidt.
61379
61380         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61381
61382 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61383
61384         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61385         and copy gettext configuration files only if configure.ac contains
61386         a use of AM_GNU_GETTEXT_VERSION.
61387
61388 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61389
61390         * build-aux/bootstrap (gnulib_name): New variable.
61391         (gnulib_tool_options): Use it.
61392
61393 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61394
61395         * tests/test-des.c: Use new namespace.
61396
61397 2007-03-15  Bruno Haible  <bruno@clisp.org>
61398
61399         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61400         Reported by James Youngman <jay@gnu.org>.
61401
61402 2007-03-15  Bruno Haible  <bruno@clisp.org>
61403
61404         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61405         declared prototype. Needed with cc on OSF/1 5.1.
61406
61407 2007-03-15  Bruno Haible  <bruno@clisp.org>
61408
61409         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61410         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61411         (struct gl_list_implementation): Add dispose_fn argument to the
61412         'create_empty', 'create' methods.
61413         (struct gl_list_impl_base): Add field 'dispose_fn'.
61414         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61415         argument.
61416         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61417         dispose_fn argument.
61418         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61419         dispose_fn on the dropped values.
61420         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61421         dispose_fn argument.
61422         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61423         dropped values.
61424         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61425         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61426         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61427         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61428         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61429         argument.
61430         (gl_tree_list_free): Call dispose_fn on the dropped values.
61431         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61432         the dropped values.
61433         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61434         Add dispose_fn argument.
61435         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61436         Call dispose_fn on the dropped values.
61437         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61438         Add dispose_fn argument.
61439         (gl_sublist_create): Initialize the 'dispose_fn' field.
61440         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61441         * tests/test-array_list.c (main): Update.
61442         * tests/test-carray_list.c (main): Update.
61443         * tests/test-avltree_list.c (main): Update.
61444         * tests/test-rbtree_list.c (main): Update.
61445         * tests/test-avltreehash_list.c (main): Update.
61446         * tests/test-rbtreehash_list.c (main): Update.
61447         * tests/test-linked_list.c (main): Update.
61448         * tests/test-linkedhash_list.c (main): Update.
61449         * tests/test-array_oset.c (main): Update.
61450
61451 2007-03-15  Bruno Haible  <bruno@clisp.org>
61452
61453         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61454         (gl_oset_create_empty): Add dispose_fn argument.
61455         (struct gl_oset_implementation): Add dispose_fn argument to
61456         'create_empty' method.
61457         (struct gl_oset_impl_base): Add dispose_fn field.
61458         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61459         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61460         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61461         values.
61462         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61463         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61464         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61465         dropped value.
61466         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61467         dropped value.
61468         * tests/test-array_oset.c (main): Update.
61469         * tests/test-avltree_oset.c (main): Update.
61470         * tests/test-rbtree_oset.c (main): Update.
61471         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61472
61473 2007-03-13  Bruno Haible  <bruno@clisp.org>
61474
61475         * tests/test-stdbool.c (i): Update after last patch.
61476
61477 2007-03-12  Bruno Haible  <bruno@clisp.org>
61478
61479         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61480         the iswprint macro. Needed on Solaris 2.5.1.
61481
61482 2007-03-12  Bruno Haible  <bruno@clisp.org>
61483
61484         * tests/test-printf-frexp.c (main): Declare x as volatile.
61485
61486 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61487
61488         * doc/gnulib.texi (Build robot for gnulib): New section.
61489
61490 2007-03-12  Jim Meyering  <jim@meyering.net>
61491
61492         * build-aux/bootstrap: New file.
61493         * build-aux/bootstrap.conf: New file, from coreutils.
61494
61495 2007-03-11  Bruno Haible  <bruno@clisp.org>
61496
61497         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61498
61499 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61500
61501         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61502         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61503         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61504
61505 2007-03-11  Bruno Haible  <bruno@clisp.org>
61506
61507         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61508         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61509
61510 2007-03-11  Bruno Haible  <bruno@clisp.org>
61511
61512         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61513         formula. Needed for SunPRO C 5.0.
61514
61515 2007-03-11  Bruno Haible  <bruno@clisp.org>
61516
61517         * modules/long-options (Depends-on): Add getopt.
61518
61519 2007-03-11  Bruno Haible  <bruno@clisp.org>
61520
61521         * modules/modechange (Depends-on): Add stdbool.
61522
61523 2007-03-11  Bruno Haible  <bruno@clisp.org>
61524
61525         * modules/i-ring (Depends-on): Add stdbool.
61526
61527 2007-03-11  Bruno Haible  <bruno@clisp.org>
61528
61529         * modules/gc-des (Depends-on): Add stdbool.
61530
61531 2007-03-11  Bruno Haible  <bruno@clisp.org>
61532
61533         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61534
61535 2007-03-11  Bruno Haible  <bruno@clisp.org>
61536
61537         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61538
61539 2007-03-11  Bruno Haible  <bruno@clisp.org>
61540
61541         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61542
61543 2007-03-11  Bruno Haible  <bruno@clisp.org>
61544
61545         * lib/vasnprintf.c (sprintf): Undefine.
61546
61547 2007-03-11  Bruno Haible  <bruno@clisp.org>
61548
61549         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61550         initializers in SunPRO C and Compaq C compilers.
61551
61552 2007-03-11  Bruno Haible  <bruno@clisp.org>
61553
61554         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61555         decrementing code ANSI C compliant.
61556
61557 2007-03-11  Bruno Haible  <bruno@clisp.org>
61558
61559         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61560         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61561
61562 2007-03-11  Bruno Haible  <bruno@clisp.org>
61563
61564         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61565         <stdbool.h> substitute doesn't pass.
61566
61567 2007-03-11  Bruno Haible  <bruno@clisp.org>
61568
61569         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61570
61571 2007-03-11  Bruno Haible  <bruno@clisp.org>
61572
61573         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61574         script, for submission to autobuild.josefsson.org.
61575
61576 2007-03-10  Bruno Haible  <bruno@clisp.org>
61577
61578         * modules/canonicalize-lgpl-tests: New file.
61579         * tests/test-canonicalize-lgpl.sh: New file.
61580         * tests/test-canonicalize-lgpl.c: New file.
61581
61582         * modules/c-strcase-tests: New file.
61583         * tests/test-c-strcase.sh: New file.
61584         * tests/test-c-strcasecmp.c: New file.
61585         * tests/test-c-strncasecmp.c: New file.
61586
61587         * modules/atexit-tests: New file.
61588         * tests/test-atexit.sh: New file.
61589         * tests/test-atexit.c: New file.
61590
61591 2007-03-10  Bruno Haible  <bruno@clisp.org>
61592
61593         * tests/test-binary-io.sh: Use temporary filenames that are not so
61594         likely to clash with those of other tests (in a parallel make).
61595         * tests/test-binary-io.c: Likewise.
61596
61597 2007-03-10  Bruno Haible  <bruno@clisp.org>
61598
61599         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61600         fallback; use #error instead.
61601         Suggested by Simon Josefsson.
61602
61603 2007-03-10  Bruno Haible  <bruno@clisp.org>
61604
61605         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61606         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61607         first and the last.
61608
61609 2007-03-10  Bruno Haible  <bruno@clisp.org>
61610
61611         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61612
61613 2007-03-10  Bruno Haible  <bruno@clisp.org>
61614
61615         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61616         "make distcheck".
61617         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61618         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61619         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61620
61621 2007-03-10  Bruno Haible  <bruno@clisp.org>
61622
61623         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61624         variable.
61625         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61626         variable.
61627
61628 2007-03-09  Eric Blake  <ebb9@byu.net>
61629         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61630
61631         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61632         types are not being provided by gnulib.
61633         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61634         types are supported.
61635
61636 2007-03-10  Bruno Haible  <bruno@clisp.org>
61637
61638         * lib/stdio_.h (__attribute__): New macro.
61639         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61640         vsprintf): Specify __attribute__ __format__ for GCC.
61641         Suggested by Eric Blake.
61642
61643 2007-03-09  Bruno Haible  <bruno@clisp.org>
61644
61645         * modules/printf-posix-tests: New file.
61646         * tests/test-printf-posix.sh: New file.
61647         * tests/test-printf-posix.c: New file.
61648
61649         * modules/printf-posix: New file.
61650         * lib/printf.c: New file.
61651         * m4/printf-posix-rpl.m4: New file.
61652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61653         REPLACE_PRINTF.
61654         * lib/stdio_.h (printf): New declaration.
61655         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61656         ____strfmon____): New macros.
61657         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61658         REPLACE_PRINTF.
61659
61660 2007-03-09  Bruno Haible  <bruno@clisp.org>
61661
61662         * tests/test-vasnprintf-posix2.sh: New file.
61663         * tests/test-vasnprintf-posix2.c: New file.
61664         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61665         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61666         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61667
61668         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61669         a locale dependent decimal point, rather than always '.'.
61670
61671 2007-03-09  Eric Blake  <ebb9@byu.net>
61672
61673         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61674         spite of platforms like Tandem/NSK that define it to -1.
61675
61676 2007-03-08  Bruno Haible  <bruno@clisp.org>
61677
61678         * modules/vprintf-posix-tests: New file.
61679         * tests/test-vprintf-posix.sh: New file.
61680         * tests/test-vprintf-posix.c: New file.
61681         * tests/test-printf-posix.h: New file.
61682
61683         * modules/vprintf-posix: New file.
61684         * lib/vprintf.c: New file.
61685         * m4/vprintf-posix.m4: New file.
61686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61687         REPLACE_VPRINTF.
61688         * lib/stdio_.h (vprintf): New declaration.
61689         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61690         REPLACE_VPRINTF.
61691
61692 2007-03-08  Bruno Haible  <bruno@clisp.org>
61693
61694         * modules/fprintf-posix-tests: New file.
61695         * tests/test-fprintf-posix.sh: New file.
61696         * tests/test-fprintf-posix.c: New file.
61697
61698         * modules/fprintf-posix: New file.
61699         * lib/fprintf.c: New file.
61700         * m4/fprintf-posix.m4: New file.
61701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61702         REPLACE_FPRINTF.
61703         * lib/stdio_.h (fprintf): New declaration.
61704         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61705         REPLACE_FPRINTF.
61706
61707 2007-03-08  Bruno Haible  <bruno@clisp.org>
61708
61709         * modules/vfprintf-posix-tests: New file.
61710         * tests/test-vfprintf-posix.sh: New file.
61711         * tests/test-vfprintf-posix.c: New file.
61712         * tests/test-fprintf-posix.h: New file.
61713         * tests/test-fprintf-posix.out: New file.
61714
61715         * modules/vfprintf-posix: New file.
61716         * lib/vfprintf.c: New file.
61717         * m4/vfprintf-posix.m4: New file.
61718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61719         REPLACE_VFPRINTF.
61720         * lib/stdio_.h (vfprintf): New declaration.
61721         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61722         REPLACE_VFPRINTF.
61723
61724 2007-03-08  Bruno Haible  <bruno@clisp.org>
61725
61726         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61727
61728 2007-03-08  Bruno Haible  <bruno@clisp.org>
61729
61730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61731         instead of 'expr' invocations.
61732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61733         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61737         Suggested by Paul Eggert.
61738
61739 2007-03-08  Bruno Haible  <bruno@clisp.org>
61740
61741         * modules/fseterr-tests: New file.
61742         * tests/test-fseterr.c: New file.
61743
61744         * modules/fseterr: New file.
61745         * lib/fseterr.h: New file.
61746         * lib/fseterr.c: New file.
61747
61748 2007-03-08  Bruno Haible  <bruno@clisp.org>
61749
61750         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61751         * lib/getopt_.h: Likewise.
61752         * lib/mbswidth.h: Likewise.
61753         * lib/setenv.h: Likewise.
61754         * lib/vasnprintf.h: Likewise.
61755         * lib/vasprintf.h: Likewise.
61756         * lib/verror.h: Likewise.
61757         * lib/xsetenv.h: Likewise.
61758         * lib/xvasprintf.h: Likewise.
61759
61760 2007-03-08  Jim Meyering  <jim@meyering.net>
61761
61762         * users.txt: Add parted.
61763
61764         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61765
61766 2007-03-07  Bruno Haible  <bruno@clisp.org>
61767
61768         * m4/printf.m4: Make the shell script snippets copy&pastable.
61769
61770 2007-03-02  Bruno Haible  <bruno@clisp.org>
61771
61772         * lib/netinet_in_.h: New file.
61773         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61774         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61775         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61776         (Depends-on): Add absolute-header.
61777         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61778         into netinet/in.h.
61779
61780 2007-03-03  Bruno Haible  <bruno@clisp.org>
61781
61782         * lib/sys_select_.h: New file.
61783         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61784         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61785         * modules/sys_select (Files): Add lib/sys_select_.h.
61786         (Depends-on): Add absolute-header.
61787         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61788         into sys/select.h.
61789
61790 2007-03-02  Bruno Haible  <bruno@clisp.org>
61791
61792         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61793         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61794         values.
61795         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61796         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61797         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61798         * modules/sys_socket (Depends-on): Add absolute-header.
61799         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61800         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61801         (Include): Remove requirement of inclusion of <sys/types.h>.
61802
61803 2007-03-02  Bruno Haible  <bruno@clisp.org>
61804
61805         * lib/byteswap_.h (bswap_32): Fix formula.
61806
61807 2007-03-06  Bruno Haible  <bruno@clisp.org>
61808
61809         * modules/sprintf-posix-tests: New file.
61810         * tests/test-sprintf-posix.c: New file.
61811
61812         * modules/sprintf-posix: New file.
61813         * lib/sprintf.c: New file.
61814         * m4/sprintf-posix.m4: New file.
61815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61816         REPLACE_SPRINTF.
61817         * lib/stdio_.h (sprintf): New declaration.
61818         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61819         REPLACE_SPRINTF.
61820
61821 2007-03-06  Bruno Haible  <bruno@clisp.org>
61822
61823         * modules/vsprintf-posix-tests: New file.
61824         * tests/test-vsprintf-posix.c: New file.
61825         * tests/test-sprintf-posix.h: New file.
61826
61827         * modules/vsprintf-posix: New file.
61828         * lib/vsprintf.c: New file.
61829         * m4/vsprintf-posix.m4: New file.
61830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61831         REPLACE_VSPRINTF.
61832         * lib/stdio_.h (vsprintf): New declaration.
61833         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61834         REPLACE_VSPRINTF.
61835
61836 2007-03-06  Bruno Haible  <bruno@clisp.org>
61837
61838         * modules/vsnprintf (Depend-on): Remove minmax.
61839
61840 2007-03-06  Bruno Haible  <bruno@clisp.org>
61841
61842         * modules/snprintf-posix-tests: New file.
61843         * tests/test-snprintf-posix.c: New file.
61844
61845         * modules/snprintf-posix: New file.
61846         * m4/snprintf-posix.m4: New file.
61847         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61848         gl_FUNC_SNPRINTF.
61849         (gl_FUNC_SNPRINTF): Invoke it.
61850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61851         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61852         is set.
61853         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61854
61855 2007-03-06  Bruno Haible  <bruno@clisp.org>
61856
61857         * modules/vsnprintf-posix-tests: New file.
61858         * tests/test-vsnprintf-posix.c: New file.
61859         * tests/test-snprintf-posix.h: New file.
61860
61861         * modules/vsnprintf-posix: New file.
61862         * m4/vsnprintf-posix.m4: New file.
61863         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61864         gl_FUNC_VSNPRINTF.
61865         (gl_FUNC_VSNPRINTF): Invoke it.
61866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61867         * lib/stdio_.h (vsnprintf): Define as a replacement if
61868         REPLACE_VSNPRINTF is set.
61869         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61870
61871 2007-03-06  Bruno Haible  <bruno@clisp.org>
61872
61873         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61874         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61875
61876 2007-03-06  Bruno Haible  <bruno@clisp.org>
61877
61878         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61879         (asinl): Declare also if HAVE_DECL_ASINL is set.
61880         (atanl): Declare also if HAVE_DECL_ATANL is set.
61881         (ceill): Declare also if HAVE_DECL_CEILL is set.
61882         (cosl): Declare also if HAVE_DECL_COSL is set.
61883         (expl): Declare also if HAVE_DECL_EXPL is set.
61884         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61885         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61886         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61887         (logl): Declare also if HAVE_DECL_LOGL is set.
61888         (sinl): Declare also if HAVE_DECL_SINL is set.
61889         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61890         (tanl): Declare also if HAVE_DECL_TANL is set.
61891         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61893         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61894         declaration of frexpl, ldexpl.
61895         * modules/printf-frexpl (Depends-on): Add math.
61896         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61897
61898 2007-03-05  Bruno Haible  <bruno@clisp.org>
61899
61900         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61901         frexpl and ldexpl are declared.
61902         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61903
61904 2007-03-05  Bruno Haible  <bruno@clisp.org>
61905
61906         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61907         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61908
61909 2007-03-05  Bruno Haible  <bruno@clisp.org>
61910
61911         * lib/stdio_.h: Include <stddef.h>.
61912
61913 2007-03-05  Bruno Haible  <bruno@clisp.org>
61914
61915         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61916
61917 2007-03-05  Bruno Haible  <bruno@clisp.org>
61918
61919         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61920         NetBSD 4, from Ralf Wildenhues.
61921
61922 2007-03-04  Bruno Haible  <bruno@clisp.org>
61923
61924         * lib/vasprintf.h: Update #if logic for the case when the functions
61925         exist but are overridden.
61926
61927 2007-03-04  Bruno Haible  <bruno@clisp.org>
61928
61929         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61930         implementations: glibc-2.4 and MacOS X 10.3.
61931         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61932         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61933         * tests/test-vasprintf-posix.c (test_function): Likewise.
61934
61935 2007-03-04  Bruno Haible  <bruno@clisp.org>
61936
61937         * modules/vasprintf-posix-tests: New file.
61938         * tests/test-vasprintf-posix.c: New file.
61939
61940         * modules/vasprintf-posix: New file.
61941         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61942         defined.
61943         * m4/vasprintf-posix.m4: New file.
61944         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61945         gl_FUNC_VASPRINTF.
61946         (gl_FUNC_VASPRINTF): Invoke it.
61947         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61948         here.
61949         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61950
61951 2007-03-04  Bruno Haible  <bruno@clisp.org>
61952
61953         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61954         REPLACE_GETTIMEOFDAY.
61955         * modules/sys_time (Makefile.am): Likewise.
61956         * m4/sys_time_h.m4: Likewise.
61957         * m4/gettimeofday.m4: Likewise.
61958
61959 2007-03-04  Bruno Haible  <bruno@clisp.org>
61960
61961         * modules/vasnprintf-posix-tests: New file.
61962         * tests/test-vasnprintf-posix.c: New file.
61963
61964         * modules/vasnprintf-posix: New file.
61965         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61966         printf-frexpl.h.
61967         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61968         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61969         REPLACE_VASNPRINTF is defined.
61970         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61971         gl_FUNC_VASNPRINTF.
61972         (gl_FUNC_VASNPRINTF): Invoke it.
61973         * m4/vasnprintf-posix.m4: New file.
61974         * m4/printf.m4: New file.
61975
61976 2007-03-04  Bruno Haible  <bruno@clisp.org>
61977
61978         Compile progreloc.c only if --enable-relocatable is specified.
61979         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61980         if --enable-relocatable was specified.
61981         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61982         lib_SOURCES.
61983
61984 2007-03-04  Jim Meyering  <jim@meyering.net>
61985
61986         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61987         Use it consistently, rather than enumerating errno constants.
61988
61989 2007-03-04  Bruno Haible  <bruno@clisp.org>
61990
61991         * modules/xvasprintf-tests: New file.
61992         * tests/test-xvasprintf.c: New file.
61993
61994         * modules/vasprintf-tests: New file.
61995         * tests/test-vasprintf.c: New file.
61996
61997         * modules/vasnprintf-tests: New file.
61998         * tests/test-vasnprintf.c: New file.
61999
62000         * modules/vsnprintf-tests: New file.
62001         * tests/test-vsnprintf.c: New file.
62002
62003         * modules/snprintf-tests: New file.
62004         * tests/test-snprintf.c: New file.
62005
62006 2007-03-04  Bruno Haible  <bruno@clisp.org>
62007
62008         Compile relocatable.c only if --enable-relocatable is specified.
62009         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62010         gl_RELOCATABLE_LIBRARY.
62011         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62012         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62013         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62014         gl_RELOCATABLE_LIBRARY.
62015         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62016         (Makefile.am): Remove lib_SOURCES.
62017         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62018         gl_RELOCATABLE_LIBRARY.
62019         (Makefile.am): Remove lib_SOURCES.
62020         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62021         always.
62022         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62023         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62024
62025 2007-03-04  Bruno Haible  <bruno@clisp.org>
62026
62027         * modules/argmatch-tests: New file.
62028         * tests/test-argmatch.c: New file.
62029
62030         * tests/test-allocsa.c (main): Halve the number of loop runs.
62031
62032         * modules/alloca-opt-tests: New file.
62033         * tests/test-alloca-opt.c: New file.
62034
62035 2007-03-04  Jim Meyering  <jim@meyering.net>
62036
62037         Work around difference between Linux ACLs and Solaris 10 ZFS.
62038         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62039         for EINVAL.
62040
62041 2007-03-03  Bruno Haible  <bruno@clisp.org>
62042
62043         * modules/relocatable-prog (Depends-on): Add back progreloc's
62044         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62045
62046 2007-03-03  Bruno Haible  <bruno@clisp.org>
62047
62048         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62049         * modules/relocatable-lib: New file.
62050
62051 2007-03-03  Bruno Haible  <bruno@clisp.org>
62052
62053         * modules/relocatable-prog: Renamed from modules/relocatable.
62054         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62055
62056 2007-03-03  Bruno Haible  <bruno@clisp.org>
62057
62058         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62059         m4/relocatable-lib.m4.
62060         (Depends-on): Remove 'relocatable'.
62061         (configure.ac): Add gl_RELOCATABLE_NOP.
62062
62063 2007-03-03  Bruno Haible  <bruno@clisp.org>
62064
62065         * modules/relocatable-prog-wrapper: New file.
62066         * modules/relocatable (Depends-on): Add it. Remove all other
62067         dependencies except progname.
62068         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62069
62070         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62071         (gl_FUNC_STRERROR): Nop.
62072         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62073
62074         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62075         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62076
62077         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62078         (gl_FUNC_READLINK): Update.
62079
62080         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62081
62082 2007-03-03  Bruno Haible  <bruno@clisp.org>
62083
62084         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62085         * modules/xreadlink (Depends-on): Add unistd.
62086         * modules/xreadlink-with-size (Depends-on): Likewise.
62087
62088 2007-03-03  Bruno Haible  <bruno@clisp.org>
62089
62090         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62091         extracted from gt_FUNC_SETENV.
62092         (gt_FUNC_SETENV): Remove macro.
62093         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62094         remove gt_FUNC_SETENV.
62095
62096 2007-03-03  Bruno Haible  <bruno@clisp.org>
62097
62098         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62099         ENABLE_RELOCATABLE here.
62100         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62101
62102 2007-03-03  Bruno Haible  <bruno@clisp.org>
62103
62104         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62105         * tests/test-rbtreehash_list.c: Include progname.h.
62106         (main): Call set_program_name.
62107
62108         * modules/rbtree-oset-tests (Depends-on): Add progname.
62109         * tests/test-rbtree_oset.c: Include progname.h.
62110         (main): Call set_program_name.
62111
62112         * modules/rbtree-list-tests (Depends-on): Add progname.
62113         * tests/test-rbtree_list.c: Include progname.h.
62114         (main): Call set_program_name.
62115
62116         * modules/linked-list-tests (Depends-on): Add progname.
62117         * tests/test-linked_list.c: Include progname.h.
62118         (main): Call set_program_name.
62119
62120 2007-03-03  Bruno Haible  <bruno@clisp.org>
62121
62122         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62123         All uses of __restrict changed to _Restrict_.
62124         * lib/glob_.h (__restrict): Remove macro.
62125
62126 2007-03-02  Bruno Haible  <bruno@clisp.org>
62127
62128         * modules/gettext (configure.ac): Require gettext infrastructure
62129         from version 0.16.1.
62130
62131 2007-03-02  Bruno Haible  <bruno@clisp.org>
62132
62133         * modules/linkedhash-list-tests (Depends-on): Add progname.
62134         * tests/test-linkedhash_list.c: Include progname.h.
62135         (main): Call set_program_name.
62136
62137         * modules/carray-list-tests (Depends-on): Add progname.
62138         * tests/test-carray_list.c: Include progname.h.
62139         (main): Call set_program_name.
62140
62141         * modules/avltreehash-list-tests (Depends-on): Add progname.
62142         * tests/test-avltreehash_list.c: Include progname.h.
62143         (main): Call set_program_name.
62144
62145         * modules/avltree-oset-tests (Depends-on): Add progname.
62146         * tests/test-avltree_oset.c: Include progname.h.
62147         (main): Call set_program_name.
62148
62149         * modules/avltree-list-tests (Depends-on): Add progname.
62150         * tests/test-avltree_list.c: Include progname.h.
62151         (main): Call set_program_name.
62152
62153         * modules/array-oset-tests (Depends-on): Add progname.
62154         * tests/test-array_oset.c: Include progname.h.
62155         (main): Call set_program_name.
62156
62157         * modules/array-list-tests (Depends-on): Add progname.
62158         * tests/test-array_list.c: Include progname.h.
62159         (main): Call set_program_name.
62160
62161         * modules/argp-tests (Depends-on): Add progname.
62162         * tests/test-argp.c: Include argp.h first. Include progname.h.
62163         (main): Call set_program_name.
62164
62165 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         * doc/gnulib-tool.texi (Initial import): Reword description of
62168         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62169         limited effect even if defined after the first system include.
62170
62171 2007-03-01  Bruno Haible  <bruno@clisp.org>
62172
62173         * build-aux/config.libpath: Update to libtool-1.5.22.
62174         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62175
62176 2007-03-01  Bruno Haible  <bruno@clisp.org>
62177
62178         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62179         foo_CFLAGS.
62180         Reported by Ralf Wildenhues.
62181
62182 2007-03-01  Bruno Haible  <bruno@clisp.org>
62183
62184         * build-aux/install-reloc: Remove object files left over by some
62185         compilers.
62186         Reported by Ralf Wildenhues.
62187
62188 2007-03-01  Bruno Haible  <bruno@clisp.org>
62189
62190         * build-aux/install-reloc: Break long lines.
62191
62192 2007-03-01  Bruno Haible  <bruno@clisp.org>
62193
62194         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62195         Reported by Ralf Wildenhues.
62196
62197 2007-03-01  Bruno Haible  <bruno@clisp.org>
62198
62199         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62200         include ordering constraints.
62201
62202 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62203
62204         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62205         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62206         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62207         as another example.
62208         * lib/time_.h: Fix misspelling.
62209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62210         Require gl_HEADER_TIME_H_DEFAULTS.
62211         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62212         * m4/time_r.m4 (gl_TIME_R): Likewise.
62213         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62214
62215 2007-03-01  Bruno Haible  <bruno@clisp.org>
62216
62217         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62218         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62219
62220 2007-03-01  Jim Meyering  <jim@meyering.net>
62221
62222         * modules/xreadlink (Maintainer): Add my name.
62223         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62224
62225 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62226             Bruno Haible  <bruno@clisp.org>
62227
62228         * build-aux/install-reloc: Compile also c-ctype.c.
62229         * build-aux/relocatable.sh.in: New file.
62230         * doc/relocatable.texi: New file.
62231         * doc/relocatable-maint.texi: New file.
62232         * doc/gnulib.texi: Include relocatable-maint.texi.
62233         * lib/progreloc.c: Include unistd.h unconditionally.
62234         * lib/relocwrapper.c: Include unistd.h unconditionally.
62235         Include c-ctype.h.
62236         (add_dotbin): Use c_tolower.
62237         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62238         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62239         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62240         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62241         to m4/relocatable-lib.m4.
62242         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62243         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62244         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62245         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62246         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62247         * modules/relocatable: New file.
62248         * modules/relocatable-lib: New file.
62249         * modules/relocatable-script: New file.
62250
62251 2007-02-28  Bruno Haible  <bruno@clisp.org>
62252
62253         Import --enable-relocatable infrastructure.
62254         * build-aux/config.libpath: New file, from GNU gettext.
62255         * build-aux/install-reloc: New file, from GNU gettext.
62256         * build-aux/reloc-ldflags: New file, from GNU gettext.
62257         * lib/relocatable.h: New file, from GNU gettext.
62258         * lib/relocatable.c: New file, from GNU gettext.
62259         * lib/relocwrapper.c: New file, from GNU gettext.
62260         * m4/relocatable.m4: New file, from GNU gettext.
62261
62262 2007-02-28  Bruno Haible  <bruno@clisp.org>
62263
62264         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62265
62266         * modules/xreadlink: New file, from GNU gettext with modifications.
62267         * lib/xreadlink.c: New file, from GNU gettext.
62268         * lib/xreadlink.h: Add comments.
62269         (xreadlink): New declaration.
62270
62271         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62272         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62273         lib/xreadlink-with-size.c.
62274         (configure.ac): Remove gl_XREADLINK invocation.
62275         (Makefile.am): Augment lib_SOURCES.
62276         * m4/xreadlink.m4: Remove file.
62277         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62278         (xreadlink_with_size): Renamed from xreadink.
62279         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62280         * modules/canonicalize (Depends-on): Replace xreadlink with
62281         xreadlink-with-size.
62282         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62283
62284 2007-02-25  Jim Meyering  <jim@meyering.net>
62285
62286         * build-aux/announce-gen: When complaining about excess arguments,
62287         list them.
62288
62289 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62290
62291         * README: Document signed integer overflow situation more
62292         accurately.
62293
62294 2007-02-25  Bruno Haible  <bruno@clisp.org>
62295
62296         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62297         'a' or 'A' conversion.
62298
62299 2007-02-25  Bruno Haible  <bruno@clisp.org>
62300
62301         * modules/filename: Renamed from modules/pathname.
62302         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62303         lib/concatpath.c with lib/concat-filename.c.
62304         (Makefile.am): Update.
62305         (Include): Replace pathname.h with filename.h.
62306         * lib/filename.h: Renamed from lib/pathname.h.
62307         (concatenated_filename): Renamed from concatenated_pathname.
62308         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62309         (concatenated_filename): Renamed from concatenated_pathname.
62310         * lib/findprog.c: Include filename.h instead of pathname.h.
62311         (find_in_path): Update.
62312         * lib/javacomp.c: Include filename.h instead of pathname.h.
62313         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62314         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62315         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62316         is_oldgcj_14_13_usable, is_javac_usable): Update.
62317         * lib/javaexec.c: Include filename.h instead of pathname.h.
62318         (execute_java_class): Update.
62319         * modules/findprog: Update.
62320         * modules/javacomp: Update.
62321         * modules/javaexec: Update.
62322         * MODULES.html.sh (File system functions): Add 'filename', remove
62323         'pathname'.
62324
62325 2007-02-25  Bruno Haible  <bruno@clisp.org>
62326
62327         * modules/printf-frexpl-tests: New file.
62328         * tests/test-printf-frexpl.c: New file.
62329
62330         * modules/printf-frexpl: New file.
62331         * lib/printf-frexpl.h: New file.
62332         * lib/printf-frexpl.c: New file.
62333         * m4/printf-frexpl.m4: New file.
62334
62335 2007-02-25  Bruno Haible  <bruno@clisp.org>
62336
62337         * modules/printf-frexp-tests: New file.
62338         * tests/test-printf-frexp.c: New file.
62339
62340         * modules/printf-frexp: New file.
62341         * lib/printf-frexp.h: New file.
62342         * lib/printf-frexp.c: New file.
62343         * m4/printf-frexp.m4: New file.
62344
62345 2007-02-25  Bruno Haible  <bruno@clisp.org>
62346
62347         Assume automake >= 1.10 for the tests.
62348         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62349         * modules/arctwo-tests: Likewise.
62350         * modules/argp-tests: Likewise.
62351         * modules/avltree-list-tests: Likewise.
62352         * modules/avltree-oset-tests: Likewise.
62353         * modules/avltreehash-list-tests: Likewise.
62354         * modules/carray-list-tests: Likewise.
62355         * modules/crc-tests: Likewise.
62356         * modules/des-tests: Likewise.
62357         * modules/gc-arcfour-tests: Likewise.
62358         * modules/gc-arctwo-tests: Likewise.
62359         * modules/gc-des-tests: Likewise.
62360         * modules/gc-hmac-md5-tests: Likewise.
62361         * modules/gc-hmac-sha1-tests: Likewise.
62362         * modules/gc-md2-tests: Likewise.
62363         * modules/gc-md4-tests: Likewise.
62364         * modules/gc-md5-tests: Likewise.
62365         * modules/gc-pbkdf2-sha1-tests: Likewise.
62366         * modules/gc-rijndael-tests: Likewise.
62367         * modules/gc-sha1-tests: Likewise.
62368         * modules/gc-tests: Likewise.
62369         * modules/getaddrinfo-tests: Likewise.
62370         * modules/hmac-md5-tests: Likewise.
62371         * modules/hmac-sha1-tests: Likewise.
62372         * modules/linked-list-tests: Likewise.
62373         * modules/linkedhash-list-tests: Likewise.
62374         * modules/lock-tests: Likewise.
62375         * modules/md2-tests: Likewise.
62376         * modules/md4-tests: Likewise.
62377         * modules/md5-tests: Likewise.
62378         * modules/rbtree-list-tests: Likewise.
62379         * modules/rbtree-oset-tests: Likewise.
62380         * modules/rbtreehash-list-tests: Likewise.
62381         * modules/read-file-tests: Likewise.
62382         * modules/rijndael-tests: Likewise.
62383         * modules/stdint-tests: Likewise.
62384         * modules/tls-tests: Likewise.
62385
62386 2007-02-24  Bruno Haible  <bruno@clisp.org>
62387
62388         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62389         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62390         function; instead check whether isnan with a double argument links.
62391         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62392         function; instead check whether isnan with a 'long double' argument
62393         links.
62394         Reported by Eric Blake <ebb9@byu.net>.
62395
62396 2007-02-24  Bruno Haible  <bruno@clisp.org>
62397
62398         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62399         defined.
62400         * lib/isnanl.c: Remove all code. Just include isnan.c.
62401         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62402
62403 2007-02-25  Jim Meyering  <jim@meyering.net>
62404
62405         Avoid conflicting types for 'unsetenv' on FreeBSD.
62406         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62407         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62408         in stdlib.h.
62409
62410 2007-02-24  Bruno Haible  <bruno@clisp.org>
62411
62412         * modules/isnanl-nolibm-tests: New file.
62413         * tests/test-isnanl.c: New file.
62414
62415         * modules/isnanl-nolibm: New file.
62416         * lib/isnanl.h: New file.
62417         * lib/isnanl.c: New file.
62418         * m4/isnanl.m4: New file.
62419
62420 2007-02-24  Bruno Haible  <bruno@clisp.org>
62421
62422         * modules/isnan-nolibm-tests: New file.
62423         * tests/test-isnan.c: New file.
62424
62425         * modules/isnan-nolibm: New file.
62426         * lib/isnan.h: New file.
62427         * lib/isnan.c: New file.
62428         * m4/isnan.m4: New file.
62429
62430 2007-02-24  Bruno Haible  <bruno@clisp.org>
62431
62432         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62433         assume that an exponent fits in 20 bits.
62434
62435 2007-02-24  Jim Meyering  <jim@meyering.net>
62436
62437         * m4/regex.m4: Update the description of the configure-time option,
62438         --without-included-regex, to state accurately what the defaults are,
62439         and perhaps to give people an idea why using this option is risky.
62440
62441 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62444         loops on small arguments.  This attempts to avoid the problem
62445         Bruno Haible reported for AIX 4.3.2 in
62446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62447
62448 2007-02-23  Bruno Haible  <bruno@clisp.org>
62449
62450         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62451         Needed for help2man.
62452
62453 2007-02-23  Karl Berry  <karl@gnu.org>
62454
62455         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62456         exists, foo.h should be cvs-ignored, not committed.
62457
62458 2007-02-23  Eric Blake  <ebb9@byu.net>
62459
62460         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62461         * lib/stat-time.h (includes): Likewise.
62462         * lib/utimecmp.c (includes): Likewise.
62463         * lib/utimens.h (includes): Likewise.
62464         * lib/getdate.y (includes): Also include "timespec.h" for use
62465         internal to the module.
62466         * modules/utimens (Depends-on): Revert yesterday's patch.
62467         * modules/nanosleep (Depends-on): Add missing dependency.
62468
62469 2007-02-22  Bruno Haible  <bruno@clisp.org>
62470
62471         * lib/glob.c: Don't include getlogin_r.h.
62472
62473 2007-02-22  Jim Meyering  <jim@meyering.net>
62474
62475         * modules/utimens (Depends-on): Add timespec, required for
62476         utimens.h's inclusion of timespec.h.
62477
62478 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62479
62480         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62481         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62482         Schwab in
62483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62484         I'll try to think of a better way to fix the Solaris problem.
62485
62486         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62487         like glibc; on Solaris 10, it fails with errno == EINVAL.
62488         POSIX says the behavior is unspecified if the first argument is NULL,
62489         so play it safe and never pass NULL to the system getcwd.
62490
62491 2007-02-21  Jim Meyering  <jim@meyering.net>
62492
62493         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62494         of gettimeofday.  It would conflict with the one now always
62495         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62496         an IRIX 6.5 build failure.
62497
62498 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         Minor fixups to port to Solaris 10 with Sun C 5.8.
62501         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62502         * modules/getcwd (Depends-on): Add dirfd.
62503         * lib/putenv.c (putenv): #undef it.
62504         (rpl_putenv): New decl.
62505         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62506
62507 2007-02-20  Bruno Haible  <bruno@clisp.org>
62508
62509         * modules/stdio-tests: New file.
62510         * tests/test-stdio.c: New file.
62511
62512         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62513         (Depends-on): Add stdio.
62514         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62515         (Include): Use <stdio.h> instead of vsnprintf.h.
62516         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62517         HAVE_DECL_VSNPRINTF.
62518         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62519
62520         * modules/snprintf (Files): Remove lib/snprintf.h.
62521         (Depends-on): Add stdio.
62522         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62523         (Include): Use <stdio.h> instead of snprintf.h.
62524         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62525         HAVE_DECL_SNPRINTF.
62526         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62527         * lib/getaddrinfo.c: Likewise.
62528
62529         * modules/stdio: New file.
62530         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62531         * lib/snprintf.h: Remove file.
62532         * lib/vsnprintf.h: Remove file.
62533         * lib/.cppi-disable: Remove snprintf.h.
62534         * m4/stdio_h.m4: New file.
62535         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62536
62537 2007-02-20  Jim Meyering  <jim@meyering.net>
62538
62539         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62540         used by e.g., mingw.  From Bruno Haible.
62541
62542 2007-02-19  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62545         warnings.
62546         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62547
62548 2007-02-19  Bruno Haible  <bruno@clisp.org>
62549
62550         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62551         from mingw users.
62552
62553 2007-02-19  Bruno Haible  <bruno@clisp.org>
62554
62555         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62556         warnings.
62557         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62558
62559 2007-02-19  Jim Meyering  <jim@meyering.net>
62560
62561         Don't use FD after a successful "fdopendir (fd)".
62562         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62563         Reset it by calling dirfd on the just-obtained DIR*.
62564
62565         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62566         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62567
62568 2007-02-18  Bruno Haible  <bruno@clisp.org>
62569
62570         * lib/readlink.c: Include <unistd.h>.
62571         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62572         HAVE_READLINK.
62573         * modules/readlink (Depends-on): Add unistd.
62574         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62575         (Include): Add <unistd.h>.
62576
62577         * lib/getlogin_r.h: Remove file.
62578         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62579         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62580         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62581         HAVE_DECL_GETLOGIN_R.
62582         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62583         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62584         (Include): Use <unistd.h> instead of getlogin_r.h.
62585
62586         * lib/getcwd.h: Remove file.
62587         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62588         * lib/xgetcwd.c: Likewise.
62589         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62590         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62591         * modules/getcwd (Files): Remove lib/getcwd.h.
62592         (Depends-on): Add unistd.
62593         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62594         (Include): Use <unistd.h> instad of getcwd.h.
62595
62596         * lib/ftruncate.c: Include <unistd.h> first.
62597         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62598         Set HAVE_FTRUNCATE.
62599         * modules/ftruncate (Depends-on): Add unistd.
62600         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62601
62602         * lib/fchdir.c: Include <unistd.h> first.
62603         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62605         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62606         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62607         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62608
62609         * lib/dup2.c: Include <unistd.h> first.
62610         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62611         HAVE_DUP2.
62612         * modules/dup2 (Depends-on): Add unistd.
62613         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62614
62615         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62616         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62617         REPLACE_CHOWN. Don't define chown as a macro here.
62618         * modules/chown (Depends-on): Add unistd.
62619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62620
62621         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62622         Add definition for GL_LINK_WARNING.
62623         (chown, dup2): New declarations.
62624         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62625         link warning.
62626         (ftruncate): New declaration.
62627         (getcwd): New declaration, taken from old getcwd.h.
62628         (getlogin_r): New declaration, taken from old getlogin_r.h.
62629         (readlink): New declaration.
62630         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62631         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62632         (gl_PREREQ_UNISTD): Remove macro.
62633         (gl_UNISTD_MODULE_INDICATOR): New macro.
62634         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62635         many new variables. Don't set UNISTD_H.
62636         * modules/unistd (Description): Change.
62637         (Depends-on): Add link-warning.
62638         (configure.ac): Update.
62639         (Makefile.am): Create unistd.h always. Substitute many new variables
62640         into it.
62641
62642 2007-02-18  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62645         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62646         HAVE_GETSUBOPT.
62647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62648         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62649         * lib/getsubopt.h: Remove file.
62650         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62651         (Depends-on): Add stdlib.
62652         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62653         (Includes): Use <stdlib.h> instead of getsubopt.h.
62654         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62655         Set HAVE_GETSUBOPT.
62656         * lib/getsubopt.c: Don't include getsubopt.h.
62657
62658 2007-02-18  Bruno Haible  <bruno@clisp.org>
62659
62660         * modules/fchdir (Depends-on): Add dup2.
62661
62662 2007-02-18  Bruno Haible  <bruno@clisp.org>
62663
62664         * lib/stdlib_.h: Handle glibc's special invocation convention
62665         specially.
62666
62667 2007-02-18  Bruno Haible  <bruno@clisp.org>
62668
62669         * modules/stdlib-tests: New file.
62670         * tests/test-stdlib.c: New file.
62671
62672         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62673         (Depends-on): Add stdlib.
62674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62675         (Includes): Use <stdlib.h> instead of mkstemp.h.
62676         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62677         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62678         * lib/mkstemp.c: Don't include mkstemp.h.
62679         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62680         * lib/stdlib--.h: Don't include mkstemp.h.
62681
62682         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62683         (Depends-on): Add stdlib.
62684         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62685         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62686         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62687         HAVE_MKDTEMP.
62688         * lib/mkdtemp.c: Don't include mkdtemp.h.
62689         * lib/clean-temp.c: Don't include mkdtemp.h.
62690
62691         * modules/exit (Files): Remove lib/exit.h.
62692         (Depends-on): Add stdlib.
62693         (Makefile.am): Remove lib_SOURCES.
62694         (Include): Use <stdlib.h> instead of exit.h.
62695         * lib/argmatch.c: Don't include exit.h.
62696         * lib/execute.c: Likewise.
62697         * lib/pagealign_alloc.c: Likewise.
62698         * lib/pipe.c: Likewise.
62699         * lib/wait-process.c: Likewise.
62700         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62701         * lib/exitfail.c: Likewise.
62702         * lib/savewd.c: Likewise.
62703         * lib/xsetenv.c: Likewise.
62704
62705         * modules/stdlib: New file.
62706         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62707         and extra comments about mkstemp().
62708         * lib/exit.h: Remove file.
62709         * lib/mkdtemp.h: Remove file.
62710         * lib/mkstemp.h: Remove file.
62711         * m4/stdlib_h.m4: New file.
62712         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62713
62714 2007-02-18  Bruno Haible  <bruno@clisp.org>
62715
62716         * modules/math-tests: New file.
62717         * tests/test-math.c: New file.
62718
62719         * modules/math: New file.
62720         * modules/mathl (Files): Remove lib/mathl.h.
62721         (Depends-on): Add math.
62722         (Makefile.am): Don't mention mathl.h.
62723         (Include): Use <math.h> instead of mathl.h.
62724         * lib/math_.h: New file.
62725         * lib/mathl.h: Remove file.
62726         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62727         mathl.h.
62728         * lib/asinl.c: Likewise.
62729         * lib/atanl.c: Likewise.
62730         * lib/ceill.c: Likewise.
62731         * lib/cosl.c: Likewise.
62732         * lib/expl.c: Likewise.
62733         * lib/floorl.c: Likewise.
62734         * lib/frexpl.c: Likewise.
62735         * lib/ldexpl.c: Likewise.
62736         * lib/logl.c: Likewise.
62737         * lib/sincosl.c: Likewise.
62738         * lib/sinl.c: Likewise.
62739         * lib/sqrtl.c: Likewise.
62740         * lib/tanl.c: Likewise.
62741         * lib/trigl.c: Likewise.
62742         * m4/math_h.m4: New file.
62743         * MODULES.html.sh (Mathematics): Add math.
62744
62745 2007-02-17  Bruno Haible  <bruno@clisp.org>
62746
62747         * modules/wctype-tests: New file.
62748         * tests/test-wctype.c: New file.
62749
62750         * modules/wchar-tests: New file.
62751         * tests/test-wchar.c: New file.
62752
62753         * modules/unistd-tests: New file.
62754         * tests/test-unistd.c: New file.
62755
62756         * modules/time-tests: New file.
62757         * tests/test-time.c: New file.
62758
62759         * modules/sysexits-tests: New file.
62760         * tests/test-sysexits.c: New file.
62761
62762         * modules/sys_time-tests: New file.
62763         * tests/test-sys_time.c: New file.
62764
62765         * modules/sys_stat-tests: New file.
62766         * tests/test-sys_stat.c: New file.
62767
62768         * modules/sys_socket-tests: New file.
62769         * tests/test-sys_socket.c: New file.
62770
62771         * modules/sys_select-tests: New file.
62772         * tests/test-sys_select.c: New file.
62773
62774         * modules/string-tests: New file.
62775         * tests/test-string.c: New file.
62776
62777         * modules/stdbool-tests: New file.
62778         * tests/test-stdbool.c: New file.
62779
62780         * modules/netinet_in-tests: New file.
62781         * tests/test-netinet_in.c: New file.
62782
62783         * modules/inttypes-tests: New file.
62784         * tests/test-inttypes.c: New file.
62785
62786         * modules/fcntl-tests: New file.
62787         * tests/test-fcntl.c: New file.
62788
62789         * modules/byteswap-tests: New file.
62790         * tests/test-byteswap.c: New file.
62791
62792         * modules/arpa_inet-tests: New file.
62793         * tests/test-arpa_inet.c: New file.
62794
62795 2007-02-17  Bruno Haible  <bruno@clisp.org>
62796
62797         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62798         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62799         if the corresponding module is not enabled. Emit link warnings if
62800         the function is used nevertheless.
62801         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62802         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62803         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62804         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62805         * modules/inttypes (Depends-on): Add link-warning.
62806         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62807         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62808         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62809         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62810         * modules/imaxdiv (configure.ac): Likewise.
62811         * modules/strtoimax (configure.ac): Likewise.
62812         * modules/strtoumax (configure.ac): Likewise.
62813
62814 2007-02-17  Bruno Haible  <bruno@clisp.org>
62815
62816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62817         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62818         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62819         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62820
62821 2007-02-17  Bruno Haible  <bruno@clisp.org>
62822
62823         * modules/link-warning: New file.
62824         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62825         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62826         * modules/string (Depends-on): Add link-warning.
62827         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62828         string.h.
62829         * MODULES.html.sh (Support for building libraries and executables): Add
62830         link-warning.
62831
62832 2007-02-17  Bruno Haible  <bruno@clisp.org>
62833
62834         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62835         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62836         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62837         long lines.
62838
62839 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62840             Bruno Haible  <bruno@clisp.org>
62841
62842         * modules/tmpfile: New file.
62843         * lib/tmpfile.c: New file.
62844         * m4/tmpfile.m4: New file.
62845         * MODULES.html.sh (func_all_modules): New section "Input/output".
62846
62847 2007-02-15  Bruno Haible  <bruno@clisp.org>
62848
62849         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62850         (supports_delete_on_close): New function.
62851         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62852
62853 2007-02-14  Bruno Haible  <bruno@clisp.org>
62854
62855         * modules/mbspcasecmp-tests: New file.
62856         * tests/test-mbspcasecmp.sh: New file.
62857         * tests/test-mbspcasecmp.c: New file.
62858
62859         New module mbspcasecmp.
62860         * modules/mbspcasecmp: New file.
62861         * lib/mbspcasecmp.c: New file.
62862         * lib/string_.h (strncasecmp): Change warning message.
62863         (mbspcasecmp): New declaration.
62864         * m4/mbspcasecmp.m4: New file.
62865         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62866         GNULIB_MBSPCASECMP.
62867         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62868         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62869
62870 2007-02-14  Bruno Haible  <bruno@clisp.org>
62871
62872         * modules/mbsncasecmp-tests: New file.
62873         * tests/test-mbsncasecmp.sh: New file.
62874         * tests/test-mbsncasecmp.c: New file.
62875
62876         New module mbsncasecmp.
62877         * modules/mbsncasecmp: New file.
62878         * lib/mbsncasecmp.c: New file.
62879         * lib/string_.h (mbsncasecmp): New declaration.
62880         * m4/mbsncasecmp.m4: New file.
62881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62882         GNULIB_MBSNCASECMP.
62883         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62884         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62885
62886 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62887
62888         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62889         Verify that it doesn't overlap with our flags.
62890         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62891         do not have the desired effect in multibyte locales; instead, use
62892         mbscasecmp.
62893         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62894         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62895         we don't require GNU fnmatch ourselves (if our users require it, they
62896         should do so explicitly).
62897
62898         Fix regex code so it doesn't rely on strcasecmp.
62899         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62900         Otherwise, include gnulib's langinfo.h.
62901         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62902         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62903         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62904         * modules/regex (FILES): Remove m4/codeset.m4.
62905         (Depends-on): Add localcharset.  Remove strcase.
62906
62907 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62908
62909         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62910         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62911
62912 2007-02-13  Bruno Haible  <bruno@clisp.org>
62913
62914         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62915         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62916
62917 2007-02-12  Bruno Haible  <bruno@clisp.org>
62918
62919         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62920         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62921         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62922         time warning rather than a link error.
62923
62924 2007-02-12  Bruno Haible  <bruno@clisp.org>
62925
62926         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62927         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62929
62930 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62931
62932         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62933         args, not 2.
62934
62935 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62936
62937         New module 'time', so that apps can include <time.h> as per
62938         POSIX and GNU instead of separate include files like time_r.h
62939         and timegm.h.  This implementation tries out a simpler approach
62940         for replacing decls in standard include files (as compared to
62941         the string module), somewhat as an experiment.
62942
62943         * config/srclist.txt: Comment out mktime.c for now.
62944         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62945         since it doesn't apply any more.  Use generic wording instead.
62946         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62947         'time'.
62948         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62949         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62950         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62951         Don't include <sys/types.h>; no longer needed since we assume C89.
62952         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62953         * lib/strftime.c: Likewise.
62954         * lib/time_r.c: Likewise.
62955         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62956         * lib/nanosleep.c: Include <time.h> first, to check interface.
62957         * lib/strptime.c: Likewise.
62958         * lib/time_r.c: Likewise.
62959         * lib/timegm.c: Likewise.
62960         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62961         needed.
62962         * lib/timegm.c: Don't include timegm.h; no longer needed.
62963         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62964         time.h now handles any problems in that area.
62965         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62966         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62967         that time.h defines struct timespec.
62968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62969         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62970         handles that.
62971         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62972         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62973         needed.  Set REPLACE_LOCALTIME.
62974         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62975         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62976         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62977         nanosleep; time_h.m4 now does that.  Don't require
62978         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62979         module handles this now.
62980         * modules/getdate (Depends-on): Remove timespec.  Add time.
62981         * modules/nanosleep (Depends-on): Likewise.
62982         * modules/stat-time (Depends-on): Likewise.
62983         * modules/nanosleep (Include): Include time.h, not timespec.h.
62984         * modules/strptime (Files): Remove lib/strptime.h.
62985         (Depends-on): Add extensions, time.
62986         (Include): Include time.h, not strptime.h.
62987         * modules/time_r (Files): Remove lib/time_r.h.
62988         (Depends-on): Add time.
62989         (Include): Include time.h, not time_r.h.
62990         * modules/timegm: Likewise.
62991         * modules/timespec (Description): Now does timespec-related decls
62992         of our own, instead of struct timespec itself.
62993         (Depends-on): Add time; remove extensions.
62994         (Maintainer): Add self.
62995         * modules/utimecmp (Depends-on): Add time; remove timespec.
62996         * modules/utimens (Depends-on): Likewise.
62997         * modules/xnanosleep (Depends-on): Likewise.
62998
62999 2007-02-11  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/c-strstr.c: Include allocsa.h.
63002         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63003         * lib/c-strcasestr.c: Include allocsa.h.
63004         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63005         * lib/strcasestr.c: Include allocsa.h.
63006         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63007         * lib/mbsstr.c: Include allocsa.h.
63008         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63009         allocsa/freesa instead of malloc/free.
63010         * lib/mbscasestr.c: Include allocsa.h.
63011         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63012         allocsa/freesa instead of malloc/free.
63013         * modules/c-strstr (Depends-on): Add allocsa.
63014         * modules/c-strcasestr (Depends-on): Likewise.
63015         * modules/strcasestr (Depends-on): Likewise.
63016         * modules/mbsstr (Depends-on): Likewise.
63017         * modules/mbscasestr (Depends-on): Likewise.
63018
63019 2007-02-11  Bruno Haible  <bruno@clisp.org>
63020
63021         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63022
63023         * modules/mbsspn-tests: New file.
63024         * tests/test-mbsspn.sh: New file.
63025         * tests/test-mbsspn.c: New file.
63026
63027 2007-02-11  Bruno Haible  <bruno@clisp.org>
63028
63029         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63030
63031         * modules/mbspbrk-tests: New file.
63032         * tests/test-mbspbrk.sh: New file.
63033         * tests/test-mbspbrk.c: New file.
63034
63035 2007-02-11  Bruno Haible  <bruno@clisp.org>
63036
63037         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63038         unneeded cast.
63039
63040         * modules/mbscspn-tests: New file.
63041         * tests/test-mbscspn.sh: New file.
63042         * tests/test-mbscspn.c: New file.
63043
63044 2007-02-11  Bruno Haible  <bruno@clisp.org>
63045
63046         * modules/mbscasecmp-tests: New file.
63047         * tests/test-mbscasecmp.sh: New file.
63048         * tests/test-mbscasecmp.c: New file.
63049
63050 2007-02-11  Bruno Haible  <bruno@clisp.org>
63051
63052         Ensure O(n) worst-case complexity of mbscasestr.
63053         * lib/mbscasestr.c: Include stdbool.h.
63054         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63055         functions.
63056         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63057         the bookkeeping indicates that it's worth it.
63058         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63059
63060         * modules/mbscasestr-tests: New file.
63061         * tests/test-mbscasestr1.c: New file.
63062         * tests/test-mbscasestr2.sh: New file.
63063         * tests/test-mbscasestr2.c: New file.
63064         * tests/test-mbscasestr3.sh: New file.
63065         * tests/test-mbscasestr3.c: New file.
63066         * tests/test-mbscasestr4.sh: New file.
63067         * tests/test-mbscasestr4.c: New file.
63068         * m4/locale-tr.m4: New file.
63069
63070 2007-02-11  Bruno Haible  <bruno@clisp.org>
63071
63072         Ensure O(n) worst-case complexity of mbsstr.
63073         * lib/mbsstr.c: Include stdbool.h.
63074         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63075         functions.
63076         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63077         bookkeeping indicates that it's worth it.
63078         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63079
63080         * modules/mbsstr-tests: New file.
63081         * tests/test-mbsstr1.c: New file.
63082         * tests/test-mbsstr2.sh: New file.
63083         * tests/test-mbsstr2.c: New file.
63084         * tests/test-mbsstr3.sh: New file.
63085         * tests/test-mbsstr3.c: New file.
63086         * m4/locale-fr.m4: New file.
63087
63088 2007-02-11  Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/mbsrchr.c (mbsrchr): Fix bug.
63091
63092         * modules/mbsrchr-tests: New file.
63093         * tests/test-mbsrchr.sh: New file.
63094         * tests/test-mbsrchr.c: New file.
63095
63096 2007-02-11  Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/mbschr.c (mbschr): Fix bug.
63099
63100         * modules/mbschr-tests: New file.
63101         * tests/test-mbschr.sh: New file.
63102         * tests/test-mbschr.c: New file.
63103         * m4/locale-zh.m4: New file.
63104
63105 2007-02-11  Bruno Haible  <bruno@clisp.org>
63106
63107         Support for copying multibyte string iterators.
63108         * lib/mbiter.h: Include <string.h>.
63109         (mbiter_multi_copy): New function.
63110         (mbi_copy): New macro.
63111         * lib/mbuiter.h: Include <string.h>.
63112         (mbuiter_multi_copy): New function.
63113         (mbui_copy): New macro.
63114
63115 2007-02-11  Bruno Haible  <bruno@clisp.org>
63116
63117         New module mbslen.
63118         * modules/mbslen: New file.
63119         * lib/mbslen.c: New file.
63120         * lib/string_.h (mbslen): New declaration.
63121         * m4/mbslen.m4: New file.
63122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63123         GNULIB_MBSLEN.
63124         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63125         * MODULES.html.sh (Internationalization functions): Add mbslen.
63126
63127 2007-02-11  Bruno Haible  <bruno@clisp.org>
63128
63129         Ensure O(n) worst-case complexity of strcasestr substitute.
63130         * lib/strcasestr.c: Include stdbool.h.
63131         (knuth_morris_pratt): New function.
63132         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63133         bookkeeping indicates that it's worth it.
63134         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63135
63136         * modules/strcasestr-tests: New file.
63137         * tests/test-strcasestr.c: New file.
63138
63139 2007-02-11  Bruno Haible  <bruno@clisp.org>
63140
63141         Ensure O(n) worst-case complexity of c_strcasestr.
63142         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63143         (knuth_morris_pratt): New function.
63144         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63145         the bookkeeping indicates that it's worth it.
63146         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63147
63148         * modules/c-strcasestr-tests: New file.
63149         * tests/test-c-strcasestr.c: New file.
63150
63151 2007-02-11  Bruno Haible  <bruno@clisp.org>
63152
63153         Ensure O(n) worst-case complexity of c_strstr.
63154         * lib/c-strstr.c: Include stdbool.h, string.h.
63155         (knuth_morris_pratt): New function.
63156         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63157         bookkeeping indicates that it's worth it.
63158         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63159
63160         * lib/c-strstr.c: Complete rewrite for maintainability.
63161
63162         * modules/c-strstr-tests: New file.
63163         * tests/test-c-strstr.c: New file.
63164
63165 2007-02-11  Bruno Haible  <bruno@clisp.org>
63166
63167         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63168         5.2.1 and earlier, whereby \055 was treated just like the range
63169         delimiter '-'.
63170         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63171
63172 2007-02-08  Bruno Haible  <bruno@clisp.org>
63173
63174         * modules/regex (Depends-on): Add stdbool.
63175         Reported by Dalibor Topic <robilad@kaffe.org>.
63176
63177 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63178
63179         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63180         Prefer returning from main to exiting from it.
63181         Remove unnecessary parens after sizeof.
63182
63183 2007-02-05  Bruno Haible  <bruno@clisp.org>
63184
63185         New module mbssep.
63186         * modules/mbssep: New file.
63187         * lib/mbssep.c: New file.
63188         * lib/string_.h (strsep): Add a conditional link warning.
63189         (mbssep): New declaration.
63190         * m4/mbssep.m4: New file.
63191         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63192         GNULIB_MBSSEP.
63193         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63194         * MODULES.html.sh (Internationalization functions): Add mbssep.
63195
63196 2007-02-05  Bruno Haible  <bruno@clisp.org>
63197
63198         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63199         Optimize search in case of 1 delimiter.
63200
63201 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63202
63203         * lib/acl.h: Include sys/types.h before sys/acl.h.
63204
63205 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63206
63207         Merge upstream fix for glibc bugzilla #3957:
63208
63209         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63210
63211         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63212         bit for RE_HAT_LISTS_NOT_NEWLINE.
63213         (build_charclass_op): Remove bogus comment.
63214
63215 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63216
63217         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63218
63219 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63220
63221         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63222         * lib/memmem.c [!defined _LIBC]: Include config.h.
63223
63224 2007-02-04  Bruno Haible  <bruno@clisp.org>
63225
63226         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63227         warning message.
63228
63229 2007-02-04  Bruno Haible  <bruno@clisp.org>
63230
63231         New module mbstok_r.
63232         * modules/mbstok_r: New file.
63233         * lib/mbstok_r.c: New file.
63234         * lib/string_.h (strtok_r): Change argument names to match the
63235         comments. Add a conditional link warning.
63236         (mbstok_r): New declaration.
63237         * m4/mbstok_r.m4: New file.
63238         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63239         GNULIB_MBSTOK_R.
63240         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63241         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63242
63243 2007-02-04  Bruno Haible  <bruno@clisp.org>
63244
63245         New module mbsspn.
63246         * modules/mbsspn: New file.
63247         * lib/mbsspn.c: New file.
63248         * lib/string_.h (strspn): Add a conditional link warning.
63249         (mbsspn): New declaration.
63250         * m4/mbsspn.m4: New file.
63251         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63252         GNULIB_MBSSPN.
63253         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63254         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63255
63256 2007-02-04  Bruno Haible  <bruno@clisp.org>
63257
63258         New module mbspbrk.
63259         * modules/mbspbrk: New file.
63260         * lib/mbspbrk.c: New file.
63261         * lib/string_.h (strpbrk): Add a conditional link warning.
63262         (mbspbrk): New declaration.
63263         * m4/mbspbrk.m4: New file.
63264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63265         GNULIB_MBSPBRK.
63266         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63267         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63268
63269 2007-02-04  Bruno Haible  <bruno@clisp.org>
63270
63271         New module mbscspn.
63272         * modules/mbscspn: New file.
63273         * lib/mbscspn.c: New file.
63274         * lib/string_.h (strcspn): Add a conditional link warning.
63275         (mbscspn): New declaration.
63276         * m4/mbscspn.m4: New file.
63277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63278         GNULIB_MBSCSPN.
63279         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63280         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63281
63282 2007-02-04  Bruno Haible  <bruno@clisp.org>
63283
63284         New module mbscasestr, reduced goal of strcasestr.
63285         * modules/mbscasestr: New file.
63286         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63287         (mbscasestr): Renamed from strcasestr.
63288         * lib/strcasestr.c: Don't include mbuiter.h.
63289         (strcasestr): Remove support for multibyte locales.
63290         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63291         Change the conditional link warning.
63292         (mbscasestr): New declaration.
63293         * m4/mbscasestr.m4: New file.
63294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63295         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63296         REPLACE_STRCASESTR.
63297         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63299         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63300         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63301         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63302         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63303         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63304         (Depends-on): Remove mbuiter.
63305         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63306
63307 2007-02-04  Bruno Haible  <bruno@clisp.org>
63308
63309         Simplify handling of strncasecmp.
63310         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63311         the conditional link warning.
63312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63313         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63314         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63315         * modules/strcase (configure.ac): Don't invoke
63316         gl_STRING_MODULE_INDICATOR.
63317         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63318
63319 2007-02-04  Bruno Haible  <bruno@clisp.org>
63320
63321         New module mbscasecmp, reduced goal of strcasecmp.
63322         * modules/mbscasecmp: New file.
63323         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63324         (mbscasecmp): Renamed from strcasecmp.
63325         * lib/strcasecmp.c: Don't include mbuiter.h.
63326         (strcasecmp): Remove support for multibyte locales.
63327         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63328         Change the conditional link warning.
63329         (mbscasecmp): New declaration.
63330         * m4/mbscasecmp.m4: New file.
63331         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63332         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63333         REPLACE_STRCASECMP.
63334         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63336         GNULIB_MBSCASECMP.
63337         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63338         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63339         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63340         (Depends-on): Remove mbuiter.
63341         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63342
63343 2007-02-04  Bruno Haible  <bruno@clisp.org>
63344
63345         New module mbsstr. Remove module strstr.
63346         * modules/mbsstr: New file.
63347         * modules/strstr: Remove file.
63348         * lib/mbsstr.c: Renamed from lib/strstr.c.
63349         (mbsstr): Renamed from strstr.
63350         * lib/string_.h (strstr): Remove declaration. Change the conditional
63351         link warning.
63352         (mbsstr): New declaration.
63353         * m4/mbsstr.m4: New file.
63354         * m4/strstr.m4: Remove file.
63355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63356         REPLACE_STRSTR.
63357         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63358         Don't initialize GNULIB_STRSTR.
63359         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63360         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63361         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63362         (Support for systems lacking ANSI C 89): Remove strstr.
63363
63364 2007-02-04  Bruno Haible  <bruno@clisp.org>
63365
63366         New module mbsrchr.
63367         * modules/mbsrchr: New file.
63368         * lib/mbsrchr.c: New file.
63369         * lib/string_.h (strrchr): Add a conditional link warning.
63370         (mbsrchr): New declaration.
63371         * m4/mbsrchr.m4: New file.
63372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63373         GNULIB_MBSRCHR.
63374         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63375         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63376
63377 2007-02-04  Bruno Haible  <bruno@clisp.org>
63378
63379         New module mbschr.
63380         * modules/mbschr: New file.
63381         * lib/mbschr.c: New file.
63382         * lib/string_.h (strchr): Add a conditional link warning.
63383         (mbschr): New declaration.
63384         * m4/mbschr.m4: New file.
63385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63386         GNULIB_MBSCHR.
63387         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63388         * MODULES.html.sh (Internationalization functions): Add mbschr.
63389
63390 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63391
63392         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63393
63394         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63395
63396 2007-02-04  Bruno Haible  <bruno@clisp.org>
63397
63398         New module description section 'configure.ac-early'.
63399         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63400         (func_get_autoconf_early_snippet): New function.
63401         (func_import, func_create_testdir): Use it. Remove special cases for
63402         modules 'extensions' and 'lock'.
63403         * modules/extensions (configure.ac-early): Require
63404         gl_USE_SYSTEM_EXTENSIONS.
63405         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63406
63407 2007-02-04  Bruno Haible  <bruno@clisp.org>
63408
63409         Make use of gcj-4.3's -fsource and -ftarget option.
63410         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63411         and if so try the options -fsource and -ftarget.
63412         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63413         source_version, ftarget_option, target_version arguments.
63414         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63415         (is_envjavac_oldgcj_14_14_usable): Renamed from
63416         is_envjavac_gcj_14_14_usable.
63417         (is_envjavac_oldgcj_14_13_usable): Renamed from
63418         is_envjavac_gcj_14_13_usable.
63419         (is_gcj_present): Update.
63420         (is_gcj_43, is_gcj43_usable): New functions.
63421         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63422         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63423         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63424         try the options -fsource and -ftarget.
63425
63426 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63427
63428         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63429         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63430         larger value.
63431
63432 2007-02-03  Jim Meyering  <jim@meyering.net>
63433
63434         Give tools a better chance to allocate space for very large buffers.
63435         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63436
63437         Make pwd and readlink work also when run with an unreadable parent dir
63438         on systems with openat support.
63439         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63440         provided getcwd function, even when we have openat support.
63441         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63442
63443 2007-02-02  Bruno Haible  <bruno@clisp.org>
63444
63445         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63446         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63447         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63448         portability problems if one of these functions is only used on specific
63449         platforms.
63450         Reported by Paul Eggert.
63451
63452 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63453
63454         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63455         is causing more trouble than it's curing.
63456         * lib/regex_internal.h (__mempcpy): Remove.
63457         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63458         (and make the code a tad smaller to boot).
63459         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63460
63461 2007-02-02  Jim Meyering  <jim@meyering.net>
63462
63463         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63464         section, not in the Makefile.am: one.
63465
63466 2007-02-02  Eric Blake  <ebb9@byu.net>
63467
63468         * lib/strchrnul.c: Always include config.h first.
63469
63470         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63471         gnulib strstr is not necessary here.
63472
63473 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63474
63475         * m4/socklen.m4: Fix typo.
63476
63477 2007-02-02  Eric Blake  <ebb9@byu.net>
63478
63479         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63480         * modules/netinet_in (Makefile.am): Likewise.
63481
63482 2007-02-01  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/string_.h (GL_LINK_WARNING): New macro.
63485         (strcasecmp, strstr, strcasestr): If provided by the system,
63486         conditionally define as a macro that leads to a warning instead of to
63487         an error.
63488         (strncasecmp): Conditionally define as a macro that leads to a warning.
63489
63490 2007-02-01  Karl Berry  <karl@gnu.org>
63491
63492         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63493
63494 2007-02-01  Bruno Haible  <bruno@clisp.org>
63495
63496         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63497         renamings.
63498
63499 2007-02-01  Eric Blake  <ebb9@byu.net>
63500
63501         * modules/regex (Depends-on): Revert dependence on mempcpy.
63502         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63503         module's definition of mempcpy.
63504         Reported by Paul Eggert.
63505
63506 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63507
63508         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63509         the symbol XYZ before redefining it.  This fixes a problem with
63510         programs that don't use XYZ, when compiled on systems that define
63511         XYZ to something else.
63512
63513 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63514
63515         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63516         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63517         writeable to group or other and (2) is intended to have a special
63518         mode bit that is set or cleared.  In such a case, the directory
63519         should be neither group- nor other-writeable until the special
63520         mode bits are right.
63521
63522 2007-01-31  Eric Blake  <ebb9@byu.net>
63523
63524         * modules/mountlist (Depends-on): Add strstr.
63525
63526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63527         bug.
63528         * modules/string (Makefile.am): Remove redundant replacement.
63529         * modules/regex (Depends-on): Add mempcpy.
63530
63531 2007-01-31  Bruno Haible  <bruno@clisp.org>
63532
63533         New module description field 'Link'.
63534         * gnulib-tool (func_usage): Document --extract-link-directive.
63535         (sed_extract_prog): Recognize 'Link' directive.
63536         (func_get_link_directive): New function.
63537         (func_import): Show summary of link directives.
63538         Handle --extract-link-directive option.
63539         * modules/acl (Link): New section.
63540         * modules/clock-time (Link): New section.
63541         * modules/euidaccess (Link): New section.
63542         * modules/gettext (Link): New section.
63543         * modules/iconv (Link): New section.
63544         * modules/lock (Link): New section.
63545         * modules/nanosleep (Link): New section.
63546         * modules/readline (Link): New section.
63547
63548 2007-01-27  Bruno Haible  <bruno@clisp.org>
63549
63550         Enforce the use of gnulib modules for unportable <string.h> functions.
63551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63552         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63553         (gl_HEADER_STRING_H_BODY): Require it.
63554         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63555         the symbol XYZ to one that gives a link error.
63556         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63557         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63558         * modules/mempcpy (configure.ac): Likewise.
63559         * modules/memrchr (configure.ac): Likewise.
63560         * modules/stpcpy (configure.ac): Likewise.
63561         * modules/stpncpy (configure.ac): Likewise.
63562         * modules/strcase (configure.ac): Likewise.
63563         * modules/strcasestr (configure.ac): Likewise.
63564         * modules/strchrnul (configure.ac): Likewise.
63565         * modules/strdup (configure.ac): Likewise.
63566         * modules/strndup (configure.ac): Likewise.
63567         * modules/strnlen (configure.ac): Likewise.
63568         * modules/strpbrk (configure.ac): Likewise.
63569         * modules/strsep (configure.ac): Likewise.
63570         * modules/strstr (configure.ac): Likewise.
63571         * modules/strtok_r (configure.ac): Likewise.
63572
63573 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63574
63575         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63576
63577 2007-01-30  Jim Meyering  <jim@meyering.net>
63578
63579         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63580
63581 2007-01-29  Bruno Haible  <bruno@clisp.org>
63582
63583         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63584         * lib/execute.c: Likewise.
63585         * lib/pipe.c: Likewise.
63586         * lib/printf-args.h: Likewise.
63587         * lib/printf-args.c: Likewise.
63588         * lib/printf-parse.c: Likewise.
63589         * lib/vasnprintf.c: Likewise.
63590
63591 2007-01-29  Eric Blake  <ebb9@byu.net>
63592
63593         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63594         declaration.
63595
63596 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63597
63598         * lib/strptime.h (strptime): Use 'restrict' for args where
63599         POSIX requires this.
63600         * lib/strptime.c (strptime): Likewise.
63601         Change license notice from LGPL to GPL, since gnulib-tool will
63602         change this as needed.
63603         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63604         defined.
63605         Include "strptime.h" first, to check interface.
63606         Do not #undef _LIBC and _NL_CURRENT.
63607         Do not include <stdlib.h>; no longer needed.
63608         Include "time_r.h" and declare ptime_locale_status
63609         only if _LIBC is not defined.
63610         (__P): Remove unused macro.
63611         (match_string): Bring back glibc version, but use it only if _LIBC
63612         is defined.
63613         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63614         Remove unnecessary assertion and abort() call.
63615         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63616         * m4/strptime.m4: Fix serial number comment.
63617         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63618         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63619         (Depends-on): Add time_r.
63620
63621 2007-01-29  Bruno Haible  <bruno@clisp.org>
63622
63623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63624         strptime.
63625         * modules/strptime (Depends-on): Add stdbool.
63626         * lib/strptime.h: Include <time.h> always. Add comments.
63627
63628 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63629
63630         * modules/strptime: New file.
63631         * lib/strptime.h: New file.
63632         * lib/strptime.c: New file.
63633         * m4/strptime.m4: New file.
63634
63635 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63636
63637         * MODULES.html.sh: New module mpsort.
63638         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63639
63640         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63641         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63643         All uses changed.
63644         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63645         All uses changed.
63646         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63647         to _Restrict_.
63648         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63649         the parameter matches the prototype.
63650
63651 2007-01-28  Jim Meyering  <jim@meyering.net>
63652
63653         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63654         sys/time.h here, reverting that part of the previous patch:
63655         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63656
63657 2007-01-28  Bruno Haible  <bruno@clisp.org>
63658
63659         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63660         value of $(SYS_TIME_H).
63661         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63662         remove it conditionally, too. [added by Jim Meyering]
63663         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63665         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63666         GETTIMEOFDAY_REPLACEMENT to 1.
63667
63668 2007-01-28  Bruno Haible  <bruno@clisp.org>
63669
63670         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63671         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63673         Set UNISTD_H instead of UNISTD_H2.
63674         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63675
63676 2007-01-28  Bruno Haible  <bruno@clisp.org>
63677
63678         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63679         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63680
63681 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63682
63683         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63684         (func_create_testdir): Ensure C locale for `grep' and `tr'
63685         character ranges.
63686         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63687         ACLOCAL_AMFLAGS parsing state machine.
63688
63689 2007-01-27  Bruno Haible  <bruno@clisp.org>
63690
63691         * modules/unistr/base: Update.
63692
63693 2007-01-27  Bruno Haible  <bruno@clisp.org>
63694
63695         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63696         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63697         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63698         modules/unistr/u32-mbtouc.
63699         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63700         * lib/unistr.h: Update.
63701         * lib/linebreak.c: Update.
63702         * modules/unistr/u32-mbtouc: Renamed from
63703         modules/unistr/u32-mbtouc-safe.
63704         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63705         * lib/unistr.h: Update.
63706         * lib/unistr/u32-to-u8.c: Update.
63707         * lib/unistr/u32-to-u16.c: Update.
63708
63709 2007-01-27  Bruno Haible  <bruno@clisp.org>
63710
63711         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63712         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63713         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63714         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63715         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63716         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63717         modules/unistr/u16-mbtouc.
63718         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63719         * lib/unistr.h: Update.
63720         * lib/linebreak.c: Update.
63721         * modules/linebreak: Update.
63722         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63723         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63724         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63725         * modules/unistr/u16-mbtouc: Renamed from
63726         modules/unistr/u16-mbtouc-safe.
63727         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63728         * lib/unistr.h: Update.
63729         * lib/unistr/u16-to-u8.c: Update.
63730         * modules/unistr/u16-to-u8: Update.
63731         * lib/unistr/u16-to-u32.c: Update.
63732         * modules/unistr/u16-to-u32: Update.
63733
63734 2007-01-27  Bruno Haible  <bruno@clisp.org>
63735
63736         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63737         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63738         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63739         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63740         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63741         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63742         modules/unistr/u8-mbtouc.
63743         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63744         * lib/unistr.h: Update.
63745         * lib/striconveh.c: Update.
63746         * modules/striconveh: Update.
63747         * lib/linebreak.c: Update.
63748         * modules/linebreak: Update.
63749         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63750         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63751         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63752         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63753         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63754         * lib/unistr.h: Update.
63755         * lib/striconveh.c: Update.
63756         * modules/striconveh: Update.
63757         * lib/unistr/u8-to-u16.c: Update.
63758         * modules/unistr/u8-to-u16: Update.
63759         * lib/unistr/u8-to-u32.c: Update.
63760         * modules/unistr/u8-to-u32: Update.
63761
63762 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63763
63764         Sync from Libtool.
63765         * lib/argz.c: Do not include strings.h nor memory.h, include
63766         string.h unconditionally.  Patch by Simon Josefsson.
63767
63768 2007-01-27  Bruno Haible  <bruno@clisp.org>
63769
63770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63771         from gl_HEADER_STRING_H_BODY.
63772         (gl_HEADER_STRING_H_BODY): Require it.
63773         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63774         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63775         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63776         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63777         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63778         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63780         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63781         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63782         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63783         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63784         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63785         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63786         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63787         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63788
63789 2007-01-27  Bruno Haible  <bruno@clisp.org>
63790
63791         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63792         check_PROGRAMS into noinst_PROGRAMS.
63793         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63794         check_PROGRAMS in this case.
63795         (func_import): Set for_test to false.
63796         (func_create_testdir): Set for_test to true.
63797
63798 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63799             Bruno Haible  <bruno@clisp.org>
63800
63801         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63802         (Depends-on): Add string.
63803         (Includes): Use <string.h> instead of strcasestr.h.
63804         * modules/string (Makefile.am): Also substitute the value of
63805         REPLACE_STRCASESTR.
63806         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63807         assume strcasestr is declared in <string.h> not <strings.h>. Also
63808         set REPLACE_STRCASESTR.
63809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63810         REPLACE_STRCASESTR.
63811         * lib/strcasestr.h: Remove file.
63812         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63813         * lib/string_.h (strcasestr): New declaration.
63814
63815 2007-01-27  Bruno Haible  <bruno@clisp.org>
63816
63817         * lib/string_.h: Use 'extern'.
63818
63819 2007-01-27  Jim Meyering  <jim@meyering.net>
63820
63821         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63822         of set-but-not-used local, "q".
63823
63824         * lib/mempcpy.c: Include <config.h> before <string.h>.
63825         This fixes a compilation error on HP-UX, due to the system's
63826         "restrict"-using mempcpy prototype.
63827
63828 2007-01-26  Bruno Haible  <bruno@clisp.org>
63829
63830         Small optimization.
63831         * lib/javacomp.c: Include c-strstr.h.
63832          (is_envjavac_gcj): Use c_strstr instead of strstr.
63833         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63834
63835 2007-01-26  Bruno Haible  <bruno@clisp.org>
63836
63837         * MODULES.html.sh (Unicode string functions): Add the new modules.
63838
63839         * modules/uniconv/u32-strconv-to-locale: New file.
63840         * lib/uniconv/u32-strconv-to-locale.c: New file.
63841
63842         * modules/uniconv/u16-strconv-to-locale: New file.
63843         * lib/uniconv/u16-strconv-to-locale.c: New file.
63844
63845         * modules/uniconv/u8-strconv-to-locale: New file.
63846         * lib/uniconv/u8-strconv-to-locale.c: New file.
63847
63848         * modules/uniconv/u32-strconv-from-locale: New file.
63849         * lib/uniconv/u32-strconv-from-locale.c: New file.
63850
63851         * modules/uniconv/u16-strconv-from-locale: New file.
63852         * lib/uniconv/u16-strconv-from-locale.c: New file.
63853
63854         * modules/uniconv/u8-strconv-from-locale: New file.
63855         * lib/uniconv/u8-strconv-from-locale.c: New file.
63856
63857         * modules/uniconv/u32-strconv-to-enc: New file.
63858         * lib/uniconv/u32-strconv-to-enc.c: New file.
63859         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63860         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63861
63862         * modules/uniconv/u16-strconv-to-enc: New file.
63863         * lib/uniconv/u16-strconv-to-enc.c: New file.
63864         * lib/uniconv/u-strconv-to-enc.h: New file.
63865         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63866         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63867
63868         * modules/uniconv/u8-strconv-to-enc: New file.
63869         * lib/uniconv/u8-strconv-to-enc.c: New file.
63870         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63871         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63872
63873         * modules/uniconv/u32-strconv-from-enc: New file.
63874         * lib/uniconv/u32-strconv-from-enc.c: New file.
63875         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63876         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63877
63878         * modules/uniconv/u16-strconv-from-enc: New file.
63879         * lib/uniconv/u16-strconv-from-enc.c: New file.
63880         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63881         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63882
63883         * modules/uniconv/u8-strconv-from-enc: New file.
63884         * lib/uniconv/u8-strconv-from-enc.c: New file.
63885         * lib/uniconv/u-strconv-from-enc.h: New file.
63886         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63887         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63888
63889         * modules/uniconv/u32-conv-from-enc: New file.
63890         * lib/uniconv/u32-conv-from-enc.c: New file.
63891         * modules/uniconv/u32-conv-from-enc-tests: New file.
63892         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63893
63894         * modules/uniconv/u16-conv-from-enc: New file.
63895         * lib/uniconv/u16-conv-from-enc.c: New file.
63896         * lib/uniconv/u-conv-from-enc.h: New file.
63897         * modules/uniconv/u16-conv-from-enc-tests: New file.
63898         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63899
63900         * modules/uniconv/u8-conv-from-enc: New file.
63901         * lib/uniconv/u8-conv-from-enc.c: New file.
63902         * modules/uniconv/u8-conv-from-enc-tests: New file.
63903         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63904
63905         * modules/uniconv/base: New file.
63906         * lib/uniconv.h: New file.
63907
63908 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63909
63910         * doc/gnulib-tool.texi (Initial import): Update to match current
63911         behavior with strdup module.
63912         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63913         * lib/memmem.h: Remove; all uses removed.  This is now done
63914         by <string.h>.
63915         * lib/mempcpy.h: Likewise.
63916         * lib/memrchr.h: Likewise.
63917         * lib/stpcpy.h: Likewise.
63918         * lib/stpncpy.h: Likewise.
63919         * lib/strcase.h: Likewise.
63920         * lib/strchrnul.h: Likewise.
63921         * lib/strdup.h: Likewise.
63922         * lib/strndup.h: Likewise.
63923         * lib/strnlen.h: Likewise.
63924         * lib/strpbrk.h: Likewise.
63925         * lib/strsep.h: Likewise.
63926         * lib/strstr.h: Likewise.
63927         * lib/strtok_r.h: Likewise.
63928         * lib/string_.h: New file.
63929         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63930         Rely on <string.h> instead.
63931         * lib/canon-host.c: Likewise.
63932         * lib/chdir-long.c: Likewise.
63933         * lib/concatpath.c: Likewise.
63934         * lib/exclude.c: Likewise.
63935         * lib/fchdir.c: Likewise.
63936         * lib/getaddrinfo.c: Likewise.
63937         * lib/getcwd.c: Likewise.
63938         * lib/getsubopt.c: Likewise.
63939         * lib/glob.c: Likewise.
63940         * lib/hard-locale.c: Likewise.
63941         * lib/iconvme.c: Likewise.
63942         * lib/javacomp.c: Likewise.
63943         * lib/mempcpy.c: Likewise.
63944         * lib/memrchr.c: Likewise.
63945         * lib/regex_internal.h: Likewise.
63946         * lib/stpncpy.c: Likewise.
63947         * lib/strcasecmp.c: Likewise.
63948         * lib/strchrnul.c: Likewise.
63949         * lib/strdup.c: Likewise.
63950         * lib/striconv.c: Likewise.
63951         * lib/striconveh.c: Likewise.
63952         * lib/striconveha.c: Likewise.
63953         * lib/strncasecmp.c: Likewise.
63954         * lib/strndup.c: Likewise.
63955         * lib/strnlen.c: Likewise.
63956         * lib/strsep.c: Likewise.
63957         * lib/strstr.c: Likewise.
63958         * lib/strtok_r.c: Likewise.
63959         * lib/userspec.c: Likewise.
63960         * lib/w32spawn.h: Likewise.
63961         * lib/xstrndup.c: Likewise.
63962         * lib/mountlist.c (strstr): Remove decl.
63963         * m4/string_h.m4: New file.
63964         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63965         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63966         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63967         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63968         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63969         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63970         Set REPLACE_STRCASECMP if necessary.
63971         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63972         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63973         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63974         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63975         HAVE_DECL_STRDUP if necessary.
63976         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63977         since gl_FUNC_STRNDUP does that now.
63978         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63979         Check for decl here...
63980         (gl_PREREQ_STRNLEN): ... not here.
63981         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63982         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63983         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63984         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63985         necessary.
63986         * modules/string: New file.
63987         * modules/memmem (Files): Remove special-purpose include file.
63988         (Depends-on): Add string.
63989         (Include): Include <string.h>, not the removed file.
63990         * modules/mempcpy: Likewise.
63991         * modules/memrchr: Likewise.
63992         * modules/stpcpy: Likewise.
63993         * modules/stpncpy: Likewise.
63994         * modules/strcase: Likewise.
63995         * modules/strchrnul: Likewise.
63996         * modules/strdup: Likewise.
63997         * modules/strndup: Likewise.
63998         * modules/strnlen: Likewise.
63999         * modules/strpbrk: Likewise.
64000         * modules/strsep: Likewise.
64001         * modules/strstr: Likewise.
64002         * modules/strtok_r: Likewise.
64003         * tests/test-dirname.c: Don't include "strdup.h", since
64004         <string.h> now suffices.
64005         * tests/test-memmem.c: Don't include "memmem.h", since
64006         <string.h> now suffices.
64007
64008 2007-01-25  Bruno Haible  <bruno@clisp.org>
64009
64010         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64011         *resultp is 0.
64012
64013         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64014         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64015         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64016         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64017
64018         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64019         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64020         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64021         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64022         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64023         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64024
64025 2007-01-24  Bruno Haible  <bruno@clisp.org>
64026
64027         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64028         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64029         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64030         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64031         gl_FUNC_FTS_CORE.
64032         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64033         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64034         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64035         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64036         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64037         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64038         gl_FUNC_FCHOWNAT.
64039         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64040         gl_FUNC_STRFTIME.
64041         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64042         Reported by Ralf Wildenhues.
64043
64044 2007-01-24  Bruno Haible  <bruno@clisp.org>
64045
64046         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64047         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64048         gl_GETADDRINFO.
64049         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64050         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64051         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64052
64053 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64054
64055         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64056         Don't use 'exit'; just return from 'main'.
64057         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64058
64059         * lib/fnmatch_.h: Readjust white space and comments to match
64060         glibc, to avoid spurious diffs.
64061
64062 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64063
64064         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64065         2004-12-01 change by Jakub Jelinek, since this code won't compile
64066         if !LIBC.  Problem reported by Bob Proulx.
64067
64068 2007-01-23  Bruno Haible  <bruno@clisp.org>
64069
64070         * lib/striconveh.c: Include c-strcaseeq.h.
64071         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64072         * modules/striconveh (Depends-on): Add c-strcaseeq.
64073
64074 2007-01-23  Bruno Haible  <bruno@clisp.org>
64075
64076         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64077
64078         * modules/c-strcaseeq: New file.
64079         * lib/c-strcaseeq.h: New file.
64080
64081         * modules/streq: New file.
64082         * lib/streq.h: New file.
64083
64084 2007-01-23  Bruno Haible  <bruno@clisp.org>
64085
64086         * modules/striconveha-tests: New file.
64087         * tests/test-striconveha.c: New file.
64088
64089         * lib/striconveha.h: Include <stdbool.h>.
64090         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64091         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64092         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64093         (mem_iconveha): New function.
64094         (str_iconveha_notranslit): Renamed from str_iconveha.
64095         (str_iconveha): New function.
64096         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64097         c-strcase.
64098
64099 2007-01-23  Bruno Haible  <bruno@clisp.org>
64100
64101         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64102         encodings without forgiving before trying any encoding with handler.
64103         (str_iconveha): Try all encodings without forgiving before trying any
64104         encoding with handler.
64105
64106 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64107
64108         Import the following changes from libc.
64109
64110         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64111
64112         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64113
64114         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64115
64116         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64117         normal_bracket label.
64118
64119         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64120
64121         [BZ #361]
64122         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64123         to normal_bracket after fetching the next character.
64124
64125 2007-01-22  Bruno Haible  <bruno@clisp.org>
64126
64127         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64128         argument.
64129         * lib/striconveh.c (iconv_carefully_1): New function.
64130         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64131         argument.
64132         (str_cd_iconveh): Update.
64133         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64134         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64135         * tests/test-striconveh.c (MAGIC): New macro.
64136         (new_offsets): New function.
64137         (main): Test call with and without offsets.
64138
64139 2007-01-22  Bruno Haible  <bruno@clisp.org>
64140
64141         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64142         * modules/sys_select (Makefile.am): Likewise.
64143         * modules/sys_socket (Makefile.am): Likewise.
64144         * modules/sys_time (Makefile.am): Likewise.
64145
64146 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64147
64148         * modules/gettimeofday (License): Change from GPL to LGPL, since
64149         gettimeofday is a library function.
64150
64151 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64152
64153         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64154
64155 2007-01-21  Bruno Haible  <bruno@clisp.org>
64156
64157         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64158
64159 2007-01-21  Bruno Haible  <bruno@clisp.org>
64160
64161         * modules/striconveha: New file.
64162         * lib/striconveha.h: New file.
64163         * lib/striconveha.c: New file.
64164         * MODULES.html.sh (Internationalization functions): Add striconveha.
64165         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64166         string.
64167         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64168
64169 2007-01-21  Bruno Haible  <bruno@clisp.org>
64170
64171         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64172         * lib/striconveh.c (str_iconveh): Likewise.
64173
64174 2007-01-21  Bruno Haible  <bruno@clisp.org>
64175
64176         * lib/striconveh.h (mem_iconveh): New declaration.
64177         * lib/striconveh.c (mem_iconveh): New function.
64178         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64179
64180 2007-01-21  Bruno Haible  <bruno@clisp.org>
64181
64182         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64183
64184         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64185         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64186         original result buffer.
64187         (str_cd_iconveh): Update.
64188         * tests/test-striconveh.c (main): Update.
64189
64190         * lib/striconv.h (mem_cd_iconv): Change specification.
64191         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64192         result buffer.
64193         (str_cd_iconv): Update.
64194         * tests/test-striconv.c (main): Update.
64195
64196 2007-01-21  Bruno Haible  <bruno@clisp.org>
64197
64198         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64199
64200 2007-01-20  Jim Meyering  <jim@meyering.net>
64201
64202         * lib/userspec.c (parse_with_separator): If a user or group string
64203         starts with "+", skip the corresponding name-to-ID look-up, since
64204         such a look-up must fail: user and group names may not include "+".
64205
64206 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64207
64208         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64209         since we now assume the sys_time module.
64210         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64211         check for sys/time.h; no longer needed.
64212         * modules/poll (Depends-on): Depend on sys_time.
64213
64214 2007-01-18  Bruno Haible  <bruno@clisp.org>
64215
64216         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64217         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64218
64219         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64220         gettimeofday.
64221
64222         * tests/test-gettimeofday.c: Include <time.h>.
64223         (dummy): Remove variable.
64224
64225         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64226         gl_HEADER_SYS_TIME_H.
64227         (gl_HEADER_SYS_TIME_H): New macro.
64228
64229         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64230         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64232         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64233         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64234         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64235         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64236         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64237         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64238         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64239         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64240
64241         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64242         last change; it caused a compilation error when cross-compiling to
64243         Cygwin.
64244
64245 2007-01-18  Jim Meyering  <jim@meyering.net>
64246
64247         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64248         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64249         than the race-prone "test -d sys || mkdir sys".
64250         (configure.ac): Use AC_PROG_MKDIR_P.
64251         * modules/sys_select: Likewise.
64252         * modules/sys_socket: Likewise.
64253         * modules/sys_time: Likewise.
64254
64255 2007-01-18  Eric Blake  <ebb9@byu.net>
64256
64257         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64258         replace gettimeofday.
64259         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64260         name, to avoid infinite recursion.
64261
64262 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64263
64264         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64265         module sys_time.
64266         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64267         assume timespec.h defines struct timeval.
64268         * lib/settime.c: Likewise.
64269         * lib/utimens.c: Likewise.
64270         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64271         since we now assume the gettimeofday module.
64272         * lib/tempname.c (__gen_tempname): Likewise.
64273         * lib/gettimeofday.h: Remove.
64274         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64275         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64276         Include <time.h>, for 'time()'.
64277         (localtime_buffer_addr): Also use this workaround if
64278         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64279         to simplify the uses.  All uses changed.
64280         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64281         that #undef is inside {}, and 'const' follows type name consistently.
64282         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64283         (gettimeofday): Do not use the maximum possible value for
64284         tv->tv_usec, since that might break usages other than ls.c.
64285         Instead, we'll leave ls.c alone.  This undoes today's patch
64286         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64287         we've never observed the problem but might as well keep the
64288         canary.
64289         * lib/nanosleep.c: Include timespec.h first, for interface check.
64290         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64291         now assume the sys_time module.
64292         * lib/tempname.c: Likewise.
64293         * lib/timespec.h: Likewise.
64294         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64295         needed.
64296         * lib/strftime.c: Likewise.
64297         * lib/timespec.h: Likewise.
64298         * lib/posixtm.c: Include posixtm.h first, for interface check.
64299         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64300         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64301         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64302         * lib/sys_time_.h: New file.
64303         * lib/timespec.h (struct timespec): Use long int, not long.
64304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64305         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64306         Remove obsolescent call to AC_HEADER_TIME.
64307         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64308         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64309         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64310         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64311         Likewise.
64312         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64313         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64314         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64315         into the sys_time module.  Check for gettimeofday just once.
64316         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64317         for gettimeofday signature to just check the signature.  Merely
64318         compile it, since linking doesn't test signature.  Improve test for
64319         whether gettimeofday.o is actually needed.
64320         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64321         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64322         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64323         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64324         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64325         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64326         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64327         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64328         than worrying about sys/time.h.
64329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64330         Don't bother worrying about TIME_WITH_SYS_TIME.
64331         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64332         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64333         * m4/sys_time_h.m4: New file.
64334         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64335         Don't include sys/time.h.  Return from main rather than exiting.
64336         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64337         all uses changed.
64338         * modules/gethrxtime (Depends-on): Add sys_time.
64339         * modules/gettime (Depends-on): Likewise.
64340         * modules/gettimeofday (Depends-on): Likewise.
64341         * modules/nanosleep (Depends-on): Likewise.
64342         * modules/settime (Depends-on): Likewise.
64343         * modules/tempname (Depends-on): Likewise.
64344         * modules/utimens (Depends-on): Likewise.
64345         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64346         (Include): Change back to <sys/time.h>.
64347         (Maintainer): Add self.
64348         * modules/sys_time: New file.
64349         * modules/tempname (Depends-on): Add gettimeofday.
64350         * tests/test-gettimeofday.c: Include <sys/time.h>
64351         rather than gettimeofday.h.
64352
64353 2007-01-17  Bruno Haible  <bruno@clisp.org>
64354
64355         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64356         the license default to GPL.
64357         (func_create_testdir): Don't complain if a module is LGPL and its
64358         tests module depends on GPLed modules.
64359
64360 2007-01-17  Bruno Haible  <bruno@clisp.org>
64361
64362         * lib/gettimeofday.c (gettimeofday): Add code for the case
64363         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64364         maximum possible value for tv->tv_usec, rather than the minimum one.
64365
64366 2005-10-08  Martin Lambers  <marlam@marlam.de>
64367 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64368 2007-01-16  Bruno Haible  <bruno@clisp.org>
64369
64370         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64371         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64372         gl_FUNC_GETTIMEOFDAY.
64373         (Include): Add gettimeofday.h.
64374         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64375         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64376         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64377         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64378         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64379         * lib/gettimeofday.h: New file.
64380         * lib/gettimeofday.c: Include <sys/timeb.h>.
64381         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64382         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64383         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64384         fall back on time().
64385
64386         * tests/test-gettimeofday.c: New file.
64387         * modules/gettimeofday-tests: New file.
64388
64389 2007-01-16  Eric Blake  <ebb9@byu.net>
64390
64391         * modules/fnmatch (Depends-on): Depend on wchar.
64392         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64393         * m4/fnmatch.m4: Likewise.
64394         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64395         * m4/mbchar.m4: Likewise.
64396         * modules/mbswidth (Depends-on): Depend on wchar.
64397         * lib/mbswidth.c: Assume <wchar.h>.
64398         * m4/mbswidth.m4: Likewise.
64399         * modules/quotearg (Depends-on): Depend on wchar.
64400         * lib/quotearg.c: Assume <wchar.h>.
64401         * m4/quotearg.m4: Likewise.
64402         * modules/regex (Depends-on): Depend on wchar.
64403         * lib/regex_internal.h: Assume <wchar.h>.
64404         * m4/regex.m4: Likewise.
64405         * modules/stdint (Depends-on): Depend on wchar.
64406         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64407         * m4/stdint.m4: Likewise.
64408         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64409         * modules/strftime (Depends-on): Depend on wchar.
64410         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64411         * modules/strtol (Depends-on): Depend on wchar.
64412         * lib/strtol.c: Assume <wchar.h>.
64413         * modules/wcwidth (Depends-on): Depend on wchar.
64414         * lib/wcwidth.h: Assume <wchar.h>.
64415         * m4/wcwidth.m4: Likewise.
64416
64417 2007-01-16  Bruno Haible  <bruno@clisp.org>
64418
64419         * modules/csharpexec-script: New, created from...
64420         * modules/csharpexec: ... this.
64421
64422 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64423
64424         * modules/javaexec-script: New, created from...
64425         * modules/javaexec: ... this.
64426
64427 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64428
64429         * modules/poll (Dependencies): Add sys_select.
64430
64431 2007-01-15  Jim Meyering  <jim@meyering.net>
64432
64433         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64434         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64435         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64436         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64437
64438 2007-01-15  Bruno Haible  <bruno@clisp.org>
64439
64440         * modules/striconveh: New file.
64441         * lib/striconveh.h: New file.
64442         * lib/striconveh.c: New file.
64443         * MODULES.html.sh (Internationalization functions): Add striconveh.
64444
64445         * modules/striconveh-tests: New file.
64446         * tests/test-striconveh.c: New file.
64447
64448 2007-01-15  Bruno Haible  <bruno@clisp.org>
64449
64450         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64451         not from GNU libiconv or GNU libc.
64452
64453 2007-01-15  Bruno Haible  <bruno@clisp.org>
64454
64455         * doc/gnulib-intro.texi (Copyright): Explain the different license
64456         terms for module descriptions, autoconf macros, tests, documentation.
64457
64458 2007-01-14  Bruno Haible  <bruno@clisp.org>
64459
64460         * modules/striconv-tests: New file.
64461         * tests/test-striconv.c: New file.
64462
64463 2007-01-14  Bruno Haible  <bruno@clisp.org>
64464
64465         * modules/iconv-tests: New file.
64466         * tests/test-iconv.c: New file.
64467
64468 2007-01-14  Bruno Haible  <bruno@clisp.org>
64469
64470         * gnulib-tool (func_get_license): For test modules, use the license of
64471         the main module.
64472
64473 2007-01-14  Bruno Haible  <bruno@clisp.org>
64474
64475         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64476         if iconv is found to exist.
64477
64478 2007-01-14  Bruno Haible  <bruno@clisp.org>
64479
64480         * modules/c-ctype-tests: New file.
64481         * tests/test-c-ctype.c: New file.
64482
64483 2007-01-14  Bruno Haible  <bruno@clisp.org>
64484
64485         * modules/binary-io-tests: New file.
64486         * tests/test-binary-io.sh: New file.
64487         * tests/test-binary-io.c: New file.
64488
64489 2007-01-14  Bruno Haible  <bruno@clisp.org>
64490
64491         * modules/array-oset-tests: New file.
64492         * tests/test-array_oset.c: New file.
64493
64494 2007-01-14  Bruno Haible  <bruno@clisp.org>
64495
64496         * modules/array-list-tests: New file.
64497         * tests/test-array_list.c: New file.
64498
64499 2007-01-14  Bruno Haible  <bruno@clisp.org>
64500
64501         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64502         and make.
64503         Reported by Simon Josefsson in
64504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64505
64506 2007-01-14  Bruno Haible  <bruno@clisp.org>
64507
64508         * modules/allocsa-tests: New file.
64509         * tests/test-allocsa.c: New file.
64510
64511 2007-01-14  Bruno Haible  <bruno@clisp.org>
64512
64513         * modules/fchdir (Depends-on): Add absolute-header.
64514         * modules/unistd (Depends-on): Likewise.
64515
64516 2006-12-30  Bruno Haible  <bruno@clisp.org>
64517
64518         * modules/fchdir: New file.
64519         * modules/unistd (Files): Add lib/unistd_.h.
64520         (Makefile.am): Generate unistd.h from unistd_.h.
64521         * lib/fchdir.c: New file.
64522         * lib/dirent_.h: New file.
64523         * lib/unistd_.h: New file.
64524         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64525         * m4/fchdir.m4: New file.
64526         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64527         (gl_HEADER_UNISTD): Invoke it.
64528         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64529         function.
64530         * lib/backupfile.c (opendir, closedir): Undefine.
64531         * lib/chown.c (open, close): Undefine.
64532         * lib/clean-temp.c (open, close): Undefine.
64533         * lib/copy-file.c (open, close): Undefine.
64534         * lib/execute.c (open, close): Undefine.
64535         * lib/fsusage.c (open, close): Undefine.
64536         * lib/gc-gnulib.c (open, close): Undefine.
64537         * lib/getcwd.c (opendir, closedir): Undefine.
64538         * lib/glob.c (opendir, closedir): Undefine.
64539         * lib/javacomp.c (open, close): Undefine.
64540         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64541         * lib/openat-proc.c (open, close): Undefine.
64542         * lib/pagealign_alloc.c (open, close): Undefine.
64543         * lib/pipe.c (open, close): Undefine.
64544         * lib/progreloc.c (open, close): Undefine.
64545         * lib/savedir.c (opendir, closedir): Undefine.
64546         * lib/utime.c (open, close): Undefine.
64547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64548
64549 2007-01-10  Bruno Haible  <bruno@clisp.org>
64550
64551         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64552
64553 2007-01-12  Eric Blake  <ebb9@byu.net>
64554
64555         Provide a robust <wchar.h>.  Further simplifications are now
64556         possible in other modules, but not included here.
64557         * modules/wchar: New module.
64558         * m4/wchar.m4: New file.
64559         * lib/wchar_.h: Likewise.
64560         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64561         of the new module.
64562         * MODULES.html.sh (Extended multibyte and wide character utilities):
64563         New section.
64564
64565 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64566
64567         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64568         to a reasonable default for memory allocation.
64569         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64570         file system that reports garbage st_size values for symlinks.
64571         Problem reported by Liyang Hu.
64572
64573 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64574
64575         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64576         Emacs .#* auto-save files).
64577
64578 2007-01-11  Bruno Haible  <bruno@clisp.org>
64579
64580         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64581         directory.
64582
64583 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64584
64585         Use @...@ consistently in lib/wctype_.h.
64586         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64587         on it being set to 1 or 0.
64588         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64589         go back to AC_SUBSTing it.
64590         * modules/wctype (Makefile.am): Undo previous change.
64591
64592 2007-01-10  Eric Blake  <ebb9@byu.net>
64593
64594         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64595         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64596         * modules/wctype (Makefile.am): Likewise.
64597         Reported by Chris McGuire.
64598
64599 2007-01-10  Jim Meyering  <jim@meyering.net>
64600
64601         fts.c: a small readability/maintainability improvement
64602         * lib/fts.c (fts_read): Make this code slightly more readable and
64603         maintainable by hoisting the "sp->fts_cur = p" assignments to
64604         immediately follow the statements that set P.  Derived from
64605         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64606
64607 2007-01-10  Eric Blake  <ebb9@byu.net>
64608
64609         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64610         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64611         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64612         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64613         Reported by Chris McGuire.
64614
64615 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64616
64617         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64618         in sed script.
64619
64620 2007-01-09  Bruno Haible  <bruno@clisp.org>
64621
64622         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64623         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64624         variables.
64625         (func_module): Use them.
64626
64627 2007-01-09  Bruno Haible  <bruno@clisp.org>
64628
64629         * modules/unistr/base: New file.
64630         * lib/unistr.h: New file.
64631
64632         * modules/unistr/u8-to-u16: New file.
64633         * lib/unistr/u8-to-u16.c: New file.
64634
64635         * modules/unistr/u8-to-u32: New file.
64636         * lib/unistr/u8-to-u32.c: New file.
64637
64638         * modules/unistr/u16-to-u8: New file.
64639         * lib/unistr/u16-to-u8.c: New file.
64640
64641         * modules/unistr/u16-to-u32: New file.
64642         * lib/unistr/u16-to-u32.c: New file.
64643
64644         * modules/unistr/u32-to-u8: New file.
64645         * lib/unistr/u32-to-u8.c: New file.
64646
64647         * modules/unistr/u32-to-u16: New file.
64648         * lib/unistr/u32-to-u16.c: New file.
64649
64650         * modules/unistr/u8-check: New file.
64651         * modules/unistr/u16-check: New file.
64652         * modules/unistr/u32-check: New file.
64653         * lib/unistr/u8-check.c: New file.
64654         * lib/unistr/u16-check.c: New file.
64655         * lib/unistr/u32-check.c: New file.
64656
64657         * modules/unistr/u8-chr: New file.
64658         * modules/unistr/u16-chr: New file.
64659         * modules/unistr/u32-chr: New file.
64660         * lib/unistr/u8-chr.c: New file.
64661         * lib/unistr/u16-chr.c: New file.
64662         * lib/unistr/u32-chr.c: New file.
64663
64664         * modules/unistr/u8-cmp: New file.
64665         * modules/unistr/u16-cmp: New file.
64666         * modules/unistr/u32-cmp: New file.
64667         * lib/unistr/u8-cmp.c: New file.
64668         * lib/unistr/u16-cmp.c: New file.
64669         * lib/unistr/u32-cmp.c: New file.
64670
64671         * modules/unistr/u8-cpy: New file.
64672         * modules/unistr/u16-cpy: New file.
64673         * modules/unistr/u32-cpy: New file.
64674         * lib/unistr/u8-cpy.c: New file.
64675         * lib/unistr/u16-cpy.c: New file.
64676         * lib/unistr/u32-cpy.c: New file.
64677         * lib/unistr/u-cpy.h: New file.
64678
64679         * modules/unistr/u8-cpy-alloc: New file.
64680         * modules/unistr/u16-cpy-alloc: New file.
64681         * modules/unistr/u32-cpy-alloc: New file.
64682         * lib/unistr/u8-cpy-alloc.c: New file.
64683         * lib/unistr/u16-cpy-alloc.c: New file.
64684         * lib/unistr/u32-cpy-alloc.c: New file.
64685         * lib/unistr/u-cpy-alloc.h: New file.
64686
64687         * modules/unistr/u8-endswith: New file.
64688         * modules/unistr/u16-endswith: New file.
64689         * modules/unistr/u32-endswith: New file.
64690         * lib/unistr/u8-endswith.c: New file.
64691         * lib/unistr/u16-endswith.c: New file.
64692         * lib/unistr/u32-endswith.c: New file.
64693         * lib/unistr/u-endswith.h: New file.
64694
64695         * modules/unistr/u8-mblen: New file.
64696         * modules/unistr/u16-mblen: New file.
64697         * modules/unistr/u32-mblen: New file.
64698         * lib/unistr/u8-mblen.c: New file.
64699         * lib/unistr/u16-mblen.c: New file.
64700         * lib/unistr/u32-mblen.c: New file.
64701
64702         * modules/unistr/u8-mbtouc: New file.
64703         * modules/unistr/u16-mbtouc: New file.
64704         * modules/unistr/u32-mbtouc: New file.
64705         * lib/unistr/u8-mbtouc.c: New file.
64706         * lib/unistr/u16-mbtouc.c: New file.
64707         * lib/unistr/u32-mbtouc.c: New file.
64708
64709         * modules/unistr/u8-mbtouc-safe: New file.
64710         * modules/unistr/u16-mbtouc-safe: New file.
64711         * modules/unistr/u32-mbtouc-safe: New file.
64712         * lib/unistr/u8-mbtouc-safe.c: New file.
64713         * lib/unistr/u16-mbtouc-safe.c: New file.
64714         * lib/unistr/u32-mbtouc-safe.c: New file.
64715
64716         * modules/unistr/u8-move: New file.
64717         * modules/unistr/u16-move: New file.
64718         * modules/unistr/u32-move: New file.
64719         * lib/unistr/u8-move.c: New file.
64720         * lib/unistr/u16-move.c: New file.
64721         * lib/unistr/u32-move.c: New file.
64722         * lib/unistr/u-move.h: New file.
64723
64724         * modules/unistr/u8-next: New file.
64725         * modules/unistr/u16-next: New file.
64726         * modules/unistr/u32-next: New file.
64727         * lib/unistr/u8-next.c: New file.
64728         * lib/unistr/u16-next.c: New file.
64729         * lib/unistr/u32-next.c: New file.
64730
64731         * modules/unistr/u8-prev: New file.
64732         * modules/unistr/u16-prev: New file.
64733         * modules/unistr/u32-prev: New file.
64734         * lib/unistr/u8-prev.c: New file.
64735         * lib/unistr/u16-prev.c: New file.
64736         * lib/unistr/u32-prev.c: New file.
64737
64738         * modules/unistr/u8-set: New file.
64739         * modules/unistr/u16-set: New file.
64740         * modules/unistr/u32-set: New file.
64741         * lib/unistr/u8-set.c: New file.
64742         * lib/unistr/u16-set.c: New file.
64743         * lib/unistr/u32-set.c: New file.
64744         * lib/unistr/u-set.h: New file.
64745
64746         * modules/unistr/u8-startswith: New file.
64747         * modules/unistr/u16-startswith: New file.
64748         * modules/unistr/u32-startswith: New file.
64749         * lib/unistr/u8-startswith.c: New file.
64750         * lib/unistr/u16-startswith.c: New file.
64751         * lib/unistr/u32-startswith.c: New file.
64752         * lib/unistr/u-startswith.h: New file.
64753
64754         * modules/unistr/u8-stpcpy: New file.
64755         * modules/unistr/u16-stpcpy: New file.
64756         * modules/unistr/u32-stpcpy: New file.
64757         * lib/unistr/u8-stpcpy.c: New file.
64758         * lib/unistr/u16-stpcpy.c: New file.
64759         * lib/unistr/u32-stpcpy.c: New file.
64760         * lib/unistr/u-stpcpy.h: New file.
64761
64762         * modules/unistr/u8-stpncpy: New file.
64763         * modules/unistr/u16-stpncpy: New file.
64764         * modules/unistr/u32-stpncpy: New file.
64765         * lib/unistr/u8-stpncpy.c: New file.
64766         * lib/unistr/u16-stpncpy.c: New file.
64767         * lib/unistr/u32-stpncpy.c: New file.
64768         * lib/unistr/u-stpncpy.h: New file.
64769
64770         * modules/unistr/u8-strcat: New file.
64771         * modules/unistr/u16-strcat: New file.
64772         * modules/unistr/u32-strcat: New file.
64773         * lib/unistr/u8-strcat.c: New file.
64774         * lib/unistr/u16-strcat.c: New file.
64775         * lib/unistr/u32-strcat.c: New file.
64776         * lib/unistr/u-strcat.h: New file.
64777
64778         * modules/unistr/u8-strchr: New file.
64779         * modules/unistr/u16-strchr: New file.
64780         * modules/unistr/u32-strchr: New file.
64781         * lib/unistr/u8-strchr.c: New file.
64782         * lib/unistr/u16-strchr.c: New file.
64783         * lib/unistr/u32-strchr.c: New file.
64784
64785         * modules/unistr/u8-strcmp: New file.
64786         * modules/unistr/u16-strcmp: New file.
64787         * modules/unistr/u32-strcmp: New file.
64788         * lib/unistr/u8-strcmp.c: New file.
64789         * lib/unistr/u16-strcmp.c: New file.
64790         * lib/unistr/u32-strcmp.c: New file.
64791
64792         * modules/unistr/u8-strcpy: New file.
64793         * modules/unistr/u16-strcpy: New file.
64794         * modules/unistr/u32-strcpy: New file.
64795         * lib/unistr/u8-strcpy.c: New file.
64796         * lib/unistr/u16-strcpy.c: New file.
64797         * lib/unistr/u32-strcpy.c: New file.
64798         * lib/unistr/u-strcpy.h: New file.
64799
64800         * modules/unistr/u8-strcspn: New file.
64801         * modules/unistr/u16-strcspn: New file.
64802         * modules/unistr/u32-strcspn: New file.
64803         * lib/unistr/u8-strcspn.c: New file.
64804         * lib/unistr/u16-strcspn.c: New file.
64805         * lib/unistr/u32-strcspn.c: New file.
64806         * lib/unistr/u-strcspn.h: New file.
64807
64808         * modules/unistr/u8-strdup: New file.
64809         * modules/unistr/u16-strdup: New file.
64810         * modules/unistr/u32-strdup: New file.
64811         * lib/unistr/u8-strdup.c: New file.
64812         * lib/unistr/u16-strdup.c: New file.
64813         * lib/unistr/u32-strdup.c: New file.
64814         * lib/unistr/u-strdup.h: New file.
64815
64816         * modules/unistr/u8-strlen: New file.
64817         * modules/unistr/u16-strlen: New file.
64818         * modules/unistr/u32-strlen: New file.
64819         * lib/unistr/u8-strlen.c: New file.
64820         * lib/unistr/u16-strlen.c: New file.
64821         * lib/unistr/u32-strlen.c: New file.
64822         * lib/unistr/u-strlen.h: New file.
64823
64824         * modules/unistr/u8-strmblen: New file.
64825         * modules/unistr/u16-strmblen: New file.
64826         * modules/unistr/u32-strmblen: New file.
64827         * lib/unistr/u8-strmblen.c: New file.
64828         * lib/unistr/u16-strmblen.c: New file.
64829         * lib/unistr/u32-strmblen.c: New file.
64830
64831         * modules/unistr/u8-strmbtouc: New file.
64832         * modules/unistr/u16-strmbtouc: New file.
64833         * modules/unistr/u32-strmbtouc: New file.
64834         * lib/unistr/u8-strmbtouc.c: New file.
64835         * lib/unistr/u16-strmbtouc.c: New file.
64836         * lib/unistr/u32-strmbtouc.c: New file.
64837
64838         * modules/unistr/u8-strncat: New file.
64839         * modules/unistr/u16-strncat: New file.
64840         * modules/unistr/u32-strncat: New file.
64841         * lib/unistr/u8-strncat.c: New file.
64842         * lib/unistr/u16-strncat.c: New file.
64843         * lib/unistr/u32-strncat.c: New file.
64844         * lib/unistr/u-strncat.h: New file.
64845
64846         * modules/unistr/u8-strncmp: New file.
64847         * modules/unistr/u16-strncmp: New file.
64848         * modules/unistr/u32-strncmp: New file.
64849         * lib/unistr/u8-strncmp.c: New file.
64850         * lib/unistr/u16-strncmp.c: New file.
64851         * lib/unistr/u32-strncmp.c: New file.
64852
64853         * modules/unistr/u8-strncpy: New file.
64854         * modules/unistr/u16-strncpy: New file.
64855         * modules/unistr/u32-strncpy: New file.
64856         * lib/unistr/u8-strncpy.c: New file.
64857         * lib/unistr/u16-strncpy.c: New file.
64858         * lib/unistr/u32-strncpy.c: New file.
64859         * lib/unistr/u-strncpy.h: New file.
64860
64861         * modules/unistr/u8-strnlen: New file.
64862         * modules/unistr/u16-strnlen: New file.
64863         * modules/unistr/u32-strnlen: New file.
64864         * lib/unistr/u8-strnlen.c: New file.
64865         * lib/unistr/u16-strnlen.c: New file.
64866         * lib/unistr/u32-strnlen.c: New file.
64867         * lib/unistr/u-strnlen.h: New file.
64868
64869         * modules/unistr/u8-strpbrk: New file.
64870         * modules/unistr/u16-strpbrk: New file.
64871         * modules/unistr/u32-strpbrk: New file.
64872         * lib/unistr/u8-strpbrk.c: New file.
64873         * lib/unistr/u16-strpbrk.c: New file.
64874         * lib/unistr/u32-strpbrk.c: New file.
64875         * lib/unistr/u-strpbrk.h: New file.
64876
64877         * modules/unistr/u8-strrchr: New file.
64878         * modules/unistr/u16-strrchr: New file.
64879         * modules/unistr/u32-strrchr: New file.
64880         * lib/unistr/u8-strrchr.c: New file.
64881         * lib/unistr/u16-strrchr.c: New file.
64882         * lib/unistr/u32-strrchr.c: New file.
64883
64884         * modules/unistr/u8-strspn: New file.
64885         * modules/unistr/u16-strspn: New file.
64886         * modules/unistr/u32-strspn: New file.
64887         * lib/unistr/u8-strspn.c: New file.
64888         * lib/unistr/u16-strspn.c: New file.
64889         * lib/unistr/u32-strspn.c: New file.
64890         * lib/unistr/u-strspn.h: New file.
64891
64892         * modules/unistr/u8-strstr: New file.
64893         * modules/unistr/u16-strstr: New file.
64894         * modules/unistr/u32-strstr: New file.
64895         * lib/unistr/u8-strstr.c: New file.
64896         * lib/unistr/u16-strstr.c: New file.
64897         * lib/unistr/u32-strstr.c: New file.
64898         * lib/unistr/u-strstr.h: New file.
64899
64900         * modules/unistr/u8-strtok: New file.
64901         * modules/unistr/u16-strtok: New file.
64902         * modules/unistr/u32-strtok: New file.
64903         * lib/unistr/u8-strtok.c: New file.
64904         * lib/unistr/u16-strtok.c: New file.
64905         * lib/unistr/u32-strtok.c: New file.
64906         * lib/unistr/u-strtok.h: New file.
64907
64908         * modules/unistr/u8-uctomb: New file.
64909         * modules/unistr/u16-uctomb: New file.
64910         * modules/unistr/u32-uctomb: New file.
64911         * lib/unistr/u8-uctomb.c: New file.
64912         * lib/unistr/u16-uctomb.c: New file.
64913         * lib/unistr/u32-uctomb.c: New file.
64914
64915         * MODULES.html.sh (Unicode string functions): Add the new modules.
64916
64917 2007-01-08  Bruno Haible  <bruno@clisp.org>
64918
64919         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64920         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64921         subdirectories.
64922
64923 2007-01-08  Karl Berry  <karl@gnu.org>
64924
64925         * doc/error.texi: mention that main() fns must set program_name
64926         when progname is used.
64927
64928 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64931         WCTYPE_H is empty, for the benefit of builds from non-distclean
64932         directories.  Problem reported by Eric Blake in
64933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64934
64935 2007-01-08  Bruno Haible  <bruno@clisp.org>
64936
64937         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64938         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64939         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64940         PROVIDE_CANONICALIZE_FILENAME_MODE.
64941         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64942
64943 2007-01-08  Bruno Haible  <bruno@clisp.org>
64944
64945         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64946         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64947         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64948         * lib/fts.c: Likewise.
64949         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64950
64951 2006-12-25  Bruno Haible  <bruno@clisp.org>
64952
64953         * modules/utf8-ucs4-safe: New file.
64954         * lib/utf8-ucs4-safe.h: New file.
64955         * lib/unistr/utf8-ucs4-safe.c: New file.
64956
64957         * modules/utf16-ucs4-safe: New file.
64958         * lib/utf16-ucs4-safe.h: New file.
64959         * lib/unistr/utf16-ucs4-safe.c: New file.
64960
64961         * MODULES.html.sh (Unicode string functions): Add the new modules.
64962
64963 2007-01-08  Bruno Haible  <bruno@clisp.org>
64964
64965         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64966         (Depends-on): Add unitypes.
64967         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64968         (u8_mbtouc_aux): Move out to separate file.
64969         (u8_mbtouc): Use ucs4_t, uint8_t types.
64970         * lib/unistr/utf8-ucs4.c: New file.
64971
64972         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64973         (Depends-on): Add unitypes.
64974         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64975         (u16_mbtouc_aux): Move out to separate file.
64976         (u16_mbtouc): Use ucs4_t, uint16_t types.
64977         * lib/unistr/utf16-ucs4.c: New file.
64978
64979         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64980         (Depends-on): Add unitypes.
64981         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64982         (u8_uctomb_aux): Move out to separate file.
64983         (u8_uctomb): Use ucs4_t, uint8_t types.
64984         * lib/unistr/ucs4-utf8.c: New file.
64985
64986         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64987         (Depends-on): Add unitypes.
64988         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64989         (u16_uctomb_aux): Move out to separate file.
64990         (u16_uctomb): Use ucs4_t, uint16_t types.
64991         * lib/unistr/ucs4-utf16.c: New file.
64992
64993 2006-12-25  Bruno Haible  <bruno@clisp.org>
64994
64995         * modules/unitypes: New file.
64996         * lib/unitypes.h: New file.
64997         * MODULES.html.sh (func_all_modules): New section "Unicode string
64998         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64999         this section. Add unitypes.
65000
65001 2007-01-08  Bruno Haible  <bruno@clisp.org>
65002
65003         Avoid variable names that conflict with those from libtool.
65004         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65005         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65006         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65007         library_names_spec to acl_library_names_spec, hardcode_* to
65008         acl_hardcode_*.
65009         Reported by Ralf Wildenhues.
65010
65011 2007-01-08  Bruno Haible  <bruno@clisp.org>
65012
65013         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65014         definition.
65015         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65016         definition.
65017         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65018         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65019         definition.
65020         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65021         definition.
65022         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65023         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65024         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65025         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65026         definition.
65027         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65028         definition.
65029         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65030         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65031         GC_USE_<algorithm>.
65032         * lib/gc-libgcrypt.c: Likewise.
65033         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65034         * modules/gc-arctwo (configure.ac): Likewise.
65035         * modules/gc-des (configure.ac): Likewise.
65036         * modules/gc-hmac-md5 (configure.ac): Likewise.
65037         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65038         * modules/gc-md2 (configure.ac): Likewise.
65039         * modules/gc-md4 (configure.ac): Likewise.
65040         * modules/gc-md5 (configure.ac): Likewise.
65041         * modules/gc-random (configure.ac): Likewise.
65042         * modules/gc-rijndael (configure.ac): Likewise.
65043         * modules/gc-sha1 (configure.ac): Likewise.
65044
65045 2007-01-08  Bruno Haible  <bruno@clisp.org>
65046
65047         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65048         macro definition.
65049         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65050         definition.
65051         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65052         definition.
65053         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65054         * modules/fcntl-safer (configure.ac): Likewise.
65055         * modules/fopen-safer (configure.ac): Likewise.
65056         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65057         GNULIB_FWRITEERROR macro definition.
65058
65059 2007-01-08  Bruno Haible  <bruno@clisp.org>
65060
65061         * m4/gnulib-common.m4: New file.
65062         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65063         (func_get_filelist): Add m4/gnulib-common.m4.
65064
65065 2007-01-08  Bruno Haible  <bruno@clisp.org>
65066
65067         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65068         command.
65069
65070 2007-01-08  Jim Meyering  <jim@meyering.net>
65071
65072         Use a more robust test for a "can't happen" condition.
65073         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65074         narrowed the st_size value.  Presuming the "can't happen" condition
65075         is true, that narrowing could conceivably convert an invalid st_size
65076         value into a valid one.  Instead, use a change based on Matthew
65077         Woehlke's original patch.
65078
65079         Slight readability improvement: use an assert-like macro
65080         in place of literal "abort ()" uses.
65081         * lib/fts.c (fts_assert): Define.
65082         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65083         Use this macro instead of a bare 'abort'.
65084
65085 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65086
65087         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65088         simply work around them.
65089         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65090         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65091         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65092         declaring.
65093         Don't bother to define as macros, since the standard doesn't require it.
65094         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65095         longer worry about IRIX 5.3.
65096         (HAVE_WCTYPE_CTMP_BUG): Remove.
65097
65098 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65101         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65102         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65103         Problems reported by Georg Schwarz for IRIX 5.3.
65104
65105         * gnulib-tool (autoconf_minversion): Take the maximum version number
65106         found, not the minimum.  Problem reported by James Youngman.
65107
65108 2007-01-03  Karl Berry  <karl@gnu.org>
65109
65110         * doc/error.texi: new file, explaining interaction with progname.
65111         * doc/gnulib.texi: include it.  Update copyright.
65112
65113 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65114
65115         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65116         AC_CANONICAL_HOST, to improve autobuild outputs.
65117
65118 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65119             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65120
65121         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65122         sockets, server sockets, and other file descriptors.  Count errors
65123         to compute the return value.  Reorder the code a bit to be easier
65124         to follow.  Don't set event bits that were not requested (except
65125         POLLERR and POLLHUP).
65126
65127 2007-01-01  Bruno Haible  <bruno@clisp.org>
65128
65129         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65130
65131 2007-01-03  Jim Meyering  <jim@meyering.net>
65132
65133         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65134
65135 2007-01-02  Bruno Haible  <bruno@clisp.org>
65136
65137         * modules/settime (Include): Require timespec.h.
65138         * modules/nanosleep (Include): Likewise.
65139
65140 2007-01-01  Bruno Haible  <bruno@clisp.org>
65141
65142         * gnulib-tool (func_emit_copyright_notice): Bump year.
65143         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65144
65145 2007-01-01  Bruno Haible  <bruno@clisp.org>
65146
65147         Improve support for OpenBSD.
65148         * build-aux/config.rpath (libname_spec): Export.
65149         (library_names_spec): New variable. Export.
65150         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65151         library_names_spec from the config.rpath output. Locate shared library
65152         through the name pattern in library_names_spec.
65153
65154 2007-01-01  Eric Blake  <ebb9@byu.net>
65155
65156         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65157
65158 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65159
65160         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65161         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65162         assume the C locale, and avoid an "eval" that could cause trouble.
65163         Problem with SORT reported by Bob Proulx.
65164
65165         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65166         Define.  Trivial patch from Henning Nielsen Lund, originally
65167         sent to bug-grep@gnu.org today.
65168
65169 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65172         struct stat.  Problem reported by Henning Nielsen Lund.
65173         * lib/acl.c: Include acl.h first, to check interface.  Don't
65174         bother to include sys/types.h and sys/stat.h again.
65175
65176 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65177
65178         Import the following change from libc; problem reported by
65179         Sven Verdoolaege.
65180
65181         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65182
65183         [BZ #1373]
65184         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65185
65186 2006-12-28  Jim Meyering  <jim@meyering.net>
65187
65188         * build-aux/announce-gen: Do not assume that the package
65189         builds any of tar.gz, tar.bz2, and .xdelta files.
65190         Suggestion from Simon Josefsson.
65191
65192 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65193
65194         * modules/announce-gen: New file.
65195
65196 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65197
65198         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65199         handles its gotchas now.
65200         * lib/mbswidth.c: Likewise.
65201         * lib/wcwidth.h: Likewise.
65202         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65203         and iswcntrl; the wctype module does this stuff now.
65204         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65205         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65206         * modules/mbchar (Depends-on): Add wctype.
65207         * modules/mbswidth (Depends-on): Likewise.
65208         * modules/wcwidth (Depends-on): Likewise.
65209
65210 2006-12-27  Eric Blake  <ebb9@byu.net>
65211
65212         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65213         module uses more than what <wctype.h> is required to provide.
65214
65215 2006-12-26  Eric Blake  <ebb9@byu.net>
65216
65217         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65218
65219 2006-12-26  Eric Blake  <ebb9@byu.net>
65220
65221         * modules/absolute-header: New module.
65222         * modules/fcntl (Depends-on): Depend on it.
65223         * modules/inttypes (Depends-on): Likewise.
65224         * modules/stdint (Depends-on): Likewise.
65225         * modules/sys_stat (Depends-on): Likewise.
65226         * modules/wctype (Depends-on): Likewise.
65227         * MODULES.html.sh (Support for building libraries and
65228         executables): Document it.
65229
65230 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65231
65232         * gnulib-tool (SED): Remove, undoing previous change.
65233         The problem was that it broke coreutils on Solaris, because
65234         "sed --posix" leaked into a makefile.
65235         (sed): New alias, if 'alias' and GNU sed.
65236
65237 2006-12-24  Jim Meyering  <jim@meyering.net>
65238
65239         Work around an fchownat bug in glibc-2.4:
65240         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65241         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65242         in spite of the -P option.
65243         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65244         New macros.
65245         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65246         * modules/openat (Files): Add lib/fchownat.c.
65247         * lib/openat.c (fchownat): Don't define here.  Move to...
65248         * lib/fchownat.c: ...this new file.
65249
65250 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65251
65252         Fix bug reported by Bruno Haible in
65253         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65254         where quotearg.c didn't compile on Mac OS X 10.2 because it
65255         lacks <wchar.h> and wint_t.
65256         * lib/wctype_.h (__wctype_wint_t): New type.
65257         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65258         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65259         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65260         Arg is now of type __wctype_wint_t, not wint_t.
65261         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65262         substitute HAVE_WINT_T.
65263         * modules/wctype (Files): Add m4/wint_t.m4.
65264         (wctype.h): Substitute HAVE_WINT_T.
65265
65266 2006-12-23  Bruno Haible  <bruno@clisp.org>
65267
65268         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65269
65270 2006-12-23  Bruno Haible  <bruno@clisp.org>
65271
65272         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65273         S_ISLNK.
65274         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65275         mingw.
65276
65277 2006-12-22  Bruno Haible  <bruno@clisp.org>
65278
65279         * lib/copy-file.c: Include acl.h.
65280         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65281         Close the file descriptors only after being done with copy_acl.
65282         * modules/copy-file (Depends-on): Add acl.
65283
65284 2006-12-22  Bruno Haible  <bruno@clisp.org>
65285
65286         * gnulib-tool (SED): New variable.
65287         Use $SED instead of sed everywhere.
65288
65289 2006-12-22  Bruno Haible  <bruno@clisp.org>
65290
65291         * modules/no-c++: New file.
65292         * m4/no-c++.m4: New file.
65293         * MODULES.html.sh (Support for building libraries and executables):
65294         Add no-c++.
65295
65296 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65297
65298         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65299         Include <limits.h>, and use its INT_MAX to rewrite the
65300         j loop so that it does not overflow 'int'.  Problem reported by
65301         Ralf Wildenhues in
65302         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65303         Play it safe by shifting left by 1 rather than multiplying by 2,
65304         as GCC is less likely to optimize this away when the value
65305         is signed (when it assumes overflow leads to undefined behavior).
65306         Also, don't assume time_t uses two's complement.
65307
65308 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65309
65310         * MODULES.html.sh: New module wctype.
65311         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65312         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65313         <wctype.h>, since the new wctype module should fix this.
65314         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65315         the wctype module should arrange for it.
65316         * lib/regex_internal.h: Likewise.
65317         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65318         since the wctype module should handle this now.
65319         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65320         * modules/fnmatch (Depends-on): Add wctype.
65321         * modules/quotearg (Depends-on): Likewise.
65322         * modules/regex (Depends-on): Likewise.
65323
65324 2006-12-19  Bruno Haible  <bruno@clisp.org>
65325
65326         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65327         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65328
65329 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65330
65331         * modules/savewd (Depends-on): Fix dependency on fcntl.
65332
65333 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65334
65335         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65336         conforms to C99, rather than relying on the user's environment
65337         setting of STDINT_H.
65338
65339 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65340         and Eric Blake  <ebb9@byu.net>
65341
65342         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65343         This is more consistent with the other defines here.
65344         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65345         Port to z/OS.  Problem reported by Paul Gilmartin.
65346         Change local vars to use gl_ prefix rather than ac_.
65347         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65348         with other defines.
65349         * modules/double-slash-root: New module.
65350         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65351         (Depends-on): Add double-slash-root.
65352         * MODULES.html.sh (File system functions): Mention new module.
65353
65354 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65355
65356         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65357         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65358         This is for the benefit of gzip, which doesn't do i18n.
65359
65360 2006-12-12  Jim Meyering  <jim@meyering.net>
65361
65362         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65363         Reported by Andreas Schwab <schwab@suse.de>.
65364
65365 2006-12-12  Bruno Haible  <bruno@clisp.org>
65366
65367         Merge these changes.
65368         2006-09-05  Bruno Haible  <bruno@clisp.org>
65369         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65370         iconv_alloc succeeded.
65371         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65372         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65373         test for " && dest " at the end - dest is always != NULL there. Call
65374         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65375         with 2xNULL arguments, also to flush the state storage. Handle the
65376         IRIX iconv behaviour. Realloc the final result, to throw away unused
65377         memory.
65378
65379 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65380
65381         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65382         and fchmodat unconditionally, since glibc 2.4 has them.
65383         Problem reported by Arkadiusz Miskiewicz.
65384
65385 2006-12-10  Bruno Haible  <bruno@clisp.org>
65386
65387         * gnulib-tool (func_import): Show the include files only for those
65388         modules that are copied and specified.
65389         Reported by Karl Berry.
65390
65391 2006-12-08  Jim Meyering  <jim@meyering.net>
65392
65393         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65394         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65395
65396         * build-aux/announce-gen: Add two new options, both optional:
65397         --bootstrap-tools=TOOL_LIST
65398               a comma-separated list of tools, e.g.,
65399               autoconf,automake,bison,gnulib
65400         --gnulib-snapshot-date=DATE
65401               if gnulib is in the bootstrap tool list,
65402               then report this as the snapshot date.
65403               If not specified, use the current date/time.
65404               If you specify a date here, be sure it's UTC.
65405
65406 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65407
65408         * tests/test-argp-2.sh: Fix test to match actual output.
65409         (func_compare): Fix sed script to be portable.
65410
65411 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65412
65413         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65414         workaround for this case.  It is not autoconfigured now; offhand
65415         it's hard to see how to autoconfigure it.
65416
65417 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65418
65419         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65420         a directory that is about to be chowned.  Such a directory's
65421         initial file permissions should permit the owner only and this
65422         should not be changed until after the chown, since the group and
65423         other bits would be incorrect if they granted permission before
65424         the chown.
65425
65426         Fix porting problem for iswctype reported by Georg Schwarz in:
65427         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65428         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65429         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65430         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65431         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65432
65433 2006-12-03  Jim Meyering  <jim@meyering.net>
65434
65435         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65436         p->fts_statp may not yet be defined.
65437         (fts_read): Instead, set it in the caller, once p->fts_statp is
65438         sure to be defined, and corresponds to a top-level directory.
65439         This bug made du -x fail.  Here's the coreutils test case:
65440         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65441         Reported by Mike Frysinger.
65442
65443 2006-12-01  Jim Meyering  <jim@meyering.net>
65444
65445         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65446         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65447         Reported by Simon Josefsson.
65448
65449 2006-11-30  Jim Meyering  <jim@meyering.net>
65450
65451         * m4/warning.m4: Use the all-permissive copyright notice
65452         recommended by RMS (rather than LGPL).
65453         * m4/vararrays.m4: Likewise.
65454         * m4/flexmember.m4: Likewise.
65455
65456 2006-11-29  Bruno Haible  <bruno@clisp.org>
65457
65458         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65459         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65460         using +=.
65461         Reported by Simon Josefsson <simon@josefsson.org>.
65462
65463 2006-11-28  James Youngman <jay@gnu.org>
65464
65465         * README: Advise users that they might find the bug-gnulib@gnu.org
65466         and autotools-announce@gnu.org mailing lists useful.
65467
65468 2006-11-28  Bruno Haible  <bruno@clisp.org>
65469
65470         * m4/ptrdiff_max.m4: Remove file.
65471
65472 2006-11-21  Bruno Haible  <bruno@clisp.org>
65473
65474         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65475         _AC_COMPUTE_INT.
65476         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65477         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65478         _AC_COMPUTE_INT.
65479         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65480         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65481         _AC_COMPUTE_INT.
65482         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65483
65484 2006-11-28  Jim Meyering  <jim@meyering.net>
65485
65486         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65487         warning from "gcc -Wshadow" about shadowing the builtin.
65488
65489 2006-11-27  Bruno Haible  <bruno@clisp.org>
65490
65491         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65492         _AC_COMPUTE_INT.
65493         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65494
65495 2006-11-27  Bruno Haible  <bruno@clisp.org>
65496             Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65499
65500 2006-11-26  Bruno Haible  <bruno@clisp.org>
65501
65502         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65503         noinst_LTLIBRARIES.
65504
65505 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65506             Bruno Haible  <bruno@clisp.org>
65507
65508         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65509         if compiling with "gcc -ansi".
65510
65511 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65512
65513         Fix some incompatibilities with gcc -ansi -pedantic.
65514         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65515         if compiling pedantically with GCC, unless it's C99 or later.
65516         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65517         it mishandles gcc -ansi -pedantic as well.
65518         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65519         if gcc -pedantic.
65520         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65521         initializers for struct if -pedantic, unless it's C99 or later.
65522
65523 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65524
65525         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65526         Don't close an fd more than once. Identical atimes indicate
65527         success, not failure.
65528
65529 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65530
65531         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65532
65533 2006-11-23  Jim Meyering  <jim@meyering.net>
65534
65535         * build-aux/announce-gen: New file.  From coreutils.
65536
65537 2006-11-22  Jim Meyering  <jim@meyering.net>
65538
65539         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65540         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65541         (fts_read): Use a temporary to narrow the overused st_size member
65542         before using it in a switch statement.  Reported by Matthew Woehlke.
65543
65544         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65545         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65546
65547 2006-11-20  Bruno Haible  <bruno@clisp.org>
65548
65549         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65550         changequote instead of pairs of brackets.
65551         Reported by Andreas Schwab <schwab@suse.de>.
65552
65553 2006-11-21  Jim Meyering  <jim@meyering.net>
65554
65555         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65556         so as to remain compatible with older compilers.
65557         Patch from Michael Deutschmann.
65558
65559 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * MODULES.html.sh (File system functions): Add openat.
65562
65563         * lib/openat.h (rpl_fstatat): New macro, if
65564         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65565         (fstatat): Define to rpl_fstatat under the same conditions,
65566         unless COMPILING_FSTATAT.
65567         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65568         seems to have the bug.
65569         * lib/fstatat.c: New file.
65570         * modules/openat (Files): Add it.
65571
65572 2006-11-20  Bruno Haible  <bruno@clisp.org>
65573
65574         * Makefile: New file.
65575
65576 2006-11-20  Jim Meyering  <jim@meyering.net>
65577
65578         The beginnings of syntax-related checks for gnulib.
65579         * lib/Makefile: New file.
65580         * lib/t-idcache: New script.  Ensure that the two halves of
65581         idcache.c stay in sync.
65582
65583         * lib/idcache.c: Adjust comments in user- and group- portions to
65584         be more accurate, and to be consistent with one another.
65585
65586 2006-11-20  Jim Meyering  <jim@meyering.net>
65587
65588         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65589         continue using the flexible array member (thus, this module performs
65590         half as many malloc calls), with the addition that...
65591         (getgroup, getuser): Consistently record a non-match via an empty
65592         "name" string, and map an empty string match to a NULL return value.
65593         * modules/idcache (Depends-on): Re-add flexmember.
65594
65595         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65596         (getuidbyname, getgroup, getgidbyname): Likewise.
65597
65598         Use cleaner syntax: NULL rather than 0.
65599         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65600
65601 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65602
65603         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65604         It mishandled the case where the group was missing.
65605         Problem reported by Greg Schafer.
65606         * modules/idcache: Likewise.
65607
65608 2006-11-18  Jim Meyering  <jim@meyering.net>
65609
65610         * check-module (%exempt_header): Add exception for some
65611         conditionally-included headers.
65612
65613         * modules/i-ring (Depends-on): Add verify.
65614         (License): Change to LGPL.
65615
65616 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65617
65618         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65619         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65620         and inttostr.h.  Use snprintf rather than uinttostr, so that
65621         LGPLed code doesn't depend on GPLed.
65622
65623 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         * modules/inline (License): Change from GPL to LGPL.
65626
65627 2006-11-17  Jim Meyering  <jim@meyering.net>
65628
65629         * modules/d-type (License): Switch to LGPL.
65630
65631 2006-11-15  Bruno Haible  <bruno@clisp.org>
65632
65633         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65634
65635 2006-11-15  Eric Blake  <ebb9@byu.net>
65636
65637         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65638         the module dependency.
65639
65640 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65641             Bruno Haible  <bruno@clisp.org>
65642
65643         * gnulib-tool (func_create_testdir): Add license consistency check.
65644
65645 2006-11-15  Eric Blake  <ebb9@byu.net>
65646
65647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65648         random "(cached)" in configure output.
65649
65650 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65651
65652         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65653         test for conforming inttypes.h is both announced and cached.
65654
65655         * MODULES.html.sh (seen_modules, seen_files): New variables.
65656         (func_module): Rewrite to use a few less gnulib-tool and sed
65657         invocations.  Avoid a couple of quadratic algorithms for ...
65658         (missed_modules, missed_files): ... these, with ...
65659         (func_append, func_tmpdir): ... these new functions, from
65660         gnulib-tool.  Analogously, install traps for cleanup.
65661
65662         * tests/test-gc.c (main): Remove unused variables.
65663         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65664
65665 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65666
65667         * modules/inttostr (License): Change to LGPL.
65668
65669 2006-11-14  Eric Blake  <ebb9@byu.net>
65670
65671         * modules/tempname (License): Change to LGPL.
65672
65673 2006-11-14  Eric Blake  <ebb9@byu.net>
65674
65675         * doc/functions.texi (Function Portability): *printf functions on
65676         Cygwin now understand all POSIX size specifiers.
65677
65678 2006-11-14  Bruno Haible  <bruno@clisp.org>
65679
65680         * modules/c-ctype (License): Change to LGPL.
65681
65682 2006-11-12  Bruno Haible  <bruno@clisp.org>
65683
65684         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65685         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65686         for GNOME libraries, for which the include files are installed in
65687         subdirectories of $prefix/include.
65688
65689 2006-11-12  Bruno Haible  <bruno@clisp.org>
65690
65691         * m4/lib-link.m4: Require at least autoconf-2.54.
65692         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65693         name to underscores for the --with option.
65694
65695 2006-11-13  Bruno Haible  <bruno@clisp.org>
65696
65697         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65698         the tests directory.
65699         Reported by Ralf Wildenhues.
65700
65701 2006-11-13  Bruno Haible  <bruno@clisp.org>
65702
65703         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65704         (func_emit_initmacro_end): Undo the override here.
65705         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65706         Works around the famous automake error in coreutils.
65707
65708 2006-11-13  Eric Blake  <ebb9@byu.net>
65709
65710         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65711         element, not its node.
65712
65713 2006-11-12  Bruno Haible  <bruno@clisp.org>
65714
65715         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65716         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65717
65718 2006-11-12  Bruno Haible  <bruno@clisp.org>
65719
65720         * gnulib-tool: New option --local-symlink.
65721         (func_usage): Document it.
65722         (lsymbolic): New variable.
65723         (func_import, func_create_testdir): If --symlink was not specified,
65724         test whether --local-symlink was specified and the file comes from
65725         the local_gnulib_dir.
65726
65727 2006-11-12  Bruno Haible  <bruno@clisp.org>
65728
65729         * gnulib-tool (func_ln): New function.
65730         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65731
65732 2006-11-12  Bruno Haible  <bruno@clisp.org>
65733
65734         Finish support for source files in subdirectories.
65735         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65736         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65737         AUTOMAKE_OPTIONS.
65738         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65739
65740 2006-11-12  Bruno Haible  <bruno@clisp.org>
65741
65742         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65743         EXTRA_lib_SOURCES augmentation.
65744         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65745
65746 2006-11-12  Jim Meyering  <jim@meyering.net>
65747
65748         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65749         file descriptors.  This also averts a failure on systems with
65750         native openat support when a traversed directory lacks "x" access.
65751         * lib/fts_.h: Include "i-ring.h"
65752         (struct FTS) [fts_fd_ring]: New member.
65753         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65754         (FCHDIR): Add parentheses.
65755         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65756         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65757         When descending, rather than simply closing the previous
65758         fts_cwd_fd value, push that file descriptor onto the ring.
65759         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65760         (fts_open): Initialize the new fd_ring member.
65761         (fts_close): Clear the ring.
65762         (fts_safe_changedir): When possible, use our new fd_ring to skip
65763         the diropen and fstat and dev/ino comparison that would normally
65764         accompany a virtual `chdir ("..")'.
65765
65766         * modules/fts (Depends-on): Add i-ring.
65767         * modules/i-ring: New module.
65768         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65769         * m4/i-ring.m4: New file.
65770
65771 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65772
65773         * gnulib-tool (func_create_testdir): Fix replacement of
65774         `build-aux' in configure.ac.  Run autotools in gltests
65775         subdirectory.
65776         (func_create_testdir, func_create_megatestdir, test): There is
65777         no need for '--force' in most autotool invocations in a new
65778         tree.  Actually fail the whole test if any of the tools, or the
65779         configure or make stages fail.
65780
65781         Sync from Automake.
65782         * build-aux/gnupload: Revert last change.  Add pointer to upload
65783         instructions of the GNU Maintenance Instructions.
65784         Suggestion by Karl Berry.
65785
65786 2006-11-10  Jim Meyering  <jim@meyering.net>
65787
65788         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65789
65790 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65791
65792         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65793         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65794         (bind_textdomain_codeset) [! ENABLE_NLS]:
65795         Evaluate all the arguments.  That way, callers get compatible behavior
65796         if the arguments have side effects.  Also, it avoids some GCC
65797         diagnostics in some cases; Joel E. Denny reported problems when Bison
65798         was configured with --enable-gcc-warnigs.
65799
65800 2006-11-10  Jim Meyering  <jim@meyering.net>
65801
65802         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65803         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65804         account.
65805
65806 2006-11-10  Jim Meyering  <jim@meyering.net>
65807
65808         * modules/inline: New file/module.
65809         * modules/xalloc (Files): Remove m4/inline.m4.
65810         (Depends-on): Add inline, instead.
65811         * modules/oset: Likewise.
65812         * modules/list: Likewise.
65813
65814 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65815
65816         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65817         Problem reported by Matthew Woehlke.
65818
65819 2006-11-09  Bruno Haible  <bruno@clisp.org>
65820
65821         * lib/tempname.c (gen_tempname): Remove variant that invokes
65822         __gen_tempname.
65823         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65824         __gen_tempname.
65825
65826 2006-11-08  Bruno Haible  <bruno@clisp.org>
65827
65828         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65829         to 'yes' instead of 'cross-compiling'.
65830
65831 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65832
65833         * lib/quotearg.h (quotearg_free): New decl.
65834         * lib/quotearg.c (quotearg_free): New function.
65835         (slot0, nslots, slotvec0, slotvec):
65836         Now file-scope so that quotearg_free can get at them.
65837
65838 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65839
65840         Sync from Automake.
65841         * build-aux/gnupload: Add missing 'gnu' to example URL.
65842         Report by Karl Berry.
65843
65844 2006-11-08  Bruno Haible  <bruno@clisp.org>
65845
65846         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65847         Suggested by Paul Eggert.
65848
65849 2006-11-08  Jim Meyering  <jim@meyering.net>
65850
65851         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65852         It's already included if !_LIBC.
65853         (fts_safe_changedir): Add a comment.
65854
65855 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65856
65857         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65858         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65859         Matthew Woehlke.
65860
65861         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65862         definitions up, to avoid colliding with change below.
65863         (static_inline) [HAVE_INLINE]: New macro.
65864         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65865         Provide extern decls when !HAVE_INLINE.  Do not define unless
65866         static_inline is defined, either by us or by xmalloc.c.  Use
65867         static_inline rather than static inline.
65868         (XCALLOC): Optimize sizeof(T) = 1 case.
65869         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65870
65871 2006-11-07  Bruno Haible  <bruno@clisp.org>
65872
65873         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65874         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65875         AC_C_INLINE.
65876         * modules/xalloc (Files): Add m4/inline.m4.
65877
65878 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65879
65880         * README: Fix typo.
65881         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65882         (Miscellanous Notes): ...from this.
65883
65884 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65887         Mention that offsetof should be used instead of sizeof.
65888         From Bruno Haible.
65889
65890 2006-11-07  Bruno Haible  <bruno@clisp.org>
65891
65892         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65893
65894 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65895
65896         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65897         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65898         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65899         (gl_tree_add_before, gl_tree_add_after):
65900         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65901         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65902         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65903         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65904         (gl_linked_add_after, gl_linked_add_at): Likewise.
65905         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65906         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65907         (gl_tree_add_before, gl_tree_add_after): Likewise.
65908         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65909         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65910         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65911
65912 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65913
65914         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65915
65916 2006-11-06  Bruno Haible  <bruno@clisp.org>
65917
65918         * m4/inline.m4: New file.
65919         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65920         * modules/list (Files): Add m4/inline.m4.
65921         * modules/oset (Files): Likewise.
65922
65923 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65924
65925         * lib/idcache.c: Include <stddef.h>, for offsetof.
65926         (struct userid.name): Change from char * to a flexible array member.
65927         All uses changed.
65928         * modules/idcache (Depends-on): Add flexmember.
65929
65930         * MODULES.html.sh (Core language properties): New module flexmember.
65931         * modules/flexmember, m4/flexmember.m4: New files.
65932
65933         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65934         inline functions that are identical with the old xnmalloc_inline,
65935         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65936         that we can avoid some unnecessary integer multiplications and
65937         divisions in the common case where the element size is known at
65938         compile time.
65939         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65940         needed.
65941         (xnboundedmalloc): Remove.
65942         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65943         arguments, for consistency with rest of this header.
65944         (xcharalloc): Rewrite using XNMALLOC.
65945         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65946         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65947         versions have been moved to lib/xalloc.h and renamed to be the
65948         non-*_inline versions.
65949         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65950         and xnrealloc functions, since those functions are now inline and
65951         now call us.
65952         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65953         renaming described above.
65954         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65955         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65956         captures the dependency in AC_C_INLINE.
65957
65958         New module canonicalize-lgpl, proposed by Charles Wilson in
65959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65960         with a few small changes afterwards.
65961         * MODULES.html.sh (File system functions): New module
65962         canonicalize-lgpl.
65963         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65964         and canonicalize_file_name.
65965         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65966         * modules/canonicalize-lgpl: New files.
65967
65968 2006-11-05  Bruno Haible  <bruno@clisp.org>
65969
65970         * gnulib-tool (func_import, func_create_testdir): Create directories
65971         also for files in subdirectories of lib/.
65972
65973 2006-11-05  Bruno Haible  <bruno@clisp.org>
65974
65975         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65976         ANSI C compliant.
65977
65978 2006-11-03  Bruno Haible  <bruno@clisp.org>
65979
65980         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65981         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65982         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65983         (xnboundedmalloc): New inline function.
65984         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65985         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65986         xmalloc.
65987         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65988         xmalloc.
65989         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65990         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65991         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65992         xmalloc.
65993         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65994         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65995         xmalloc.
65996         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65997         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65998         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65999         xmalloc.
66000         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66001         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66002         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66003         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66004         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66005         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66006         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66007
66008 2006-11-03  Bruno Haible  <bruno@clisp.org>
66009
66010         * lib/c-ctype.h [C++]: Define functions without name mangling.
66011         * lib/fwriteerror.h [C++]: Likewise.
66012         * lib/gcd.h [C++]: Likewise.
66013         * lib/linebreak.h [C++]: Likewise.
66014
66015 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66016
66017         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66018         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66019         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66020         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66021         Check for functions and headers just once.
66022         Check for declaration of canonicalize_file_name.
66023         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66024
66025 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66026
66027         * gnulib-tool (func_import): Fix typo in actioncmd.
66028
66029 2006-11-02  Bruno Haible  <bruno@clisp.org>
66030
66031         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66032         newline sequence in the Makefile.am snippet as a space, like "make"
66033         does.
66034         Reported by Roger Persson <perrog@gmail.com>.
66035
66036 2006-11-01  Bruno Haible  <bruno@clisp.org>
66037
66038         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66039         already declared in <string.h>.
66040         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66041
66042 2006-11-01  Bruno Haible  <bruno@clisp.org>
66043
66044         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66045         * lib/strcase.h: Include <string.h>.
66046         (strcasecmp): Define to rpl_strcasecmp here.
66047
66048 2006-11-01  Bruno Haible  <bruno@clisp.org>
66049
66050         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66051
66052 2006-11-01  Eric Blake  <ebb9@byu.net>
66053
66054         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66055
66056         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66057
66058 2006-10-29  Bruno Haible  <bruno@clisp.org>
66059
66060         Make it compile in C++ mode.
66061         * lib/full-write.c (full_rw): Add a cast.
66062
66063 2006-11-01  Bruno Haible  <bruno@clisp.org>
66064
66065         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66066         be POSIX compliant.
66067         Reported by Roger Persson <perrog@gmail.com>.
66068
66069 2006-11-01  Eric Blake  <ebb9@byu.net>
66070
66071         * lib/getopt_.h: Fix comments.
66072
66073 2006-10-31  Eric Blake  <ebb9@byu.net>
66074
66075         * modules/tmpdir (Depends-on): Add sys_stat.
66076         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66077         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66078         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66079         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66080         tempname.
66081
66082 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66083
66084         Avoid some C++ diagnostics reported by Bruno Haible.
66085         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66086         xmalloc.
66087         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66088         (struct slotvec): Move to top level.
66089         (quotearg_n_options): Rewrite to avoid xmalloc.
66090         * lib/xalloc.h (xcharalloc): New function.
66091         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66092         [defined __cplusplus]: Add function template that provides result
66093         type propagation.  This part of the change is from Bruno Haible.
66094
66095 2006-10-29  Bruno Haible  <bruno@clisp.org>
66096
66097         Make it compile in C++ mode.
66098         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66099         * lib/strnlen1.c (strnlen1): Cast memchr result.
66100         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66101         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66102         (create_temp_dir): Rename local variable 'template'.
66103         (compile_csharp_using_sscli): Add cast.
66104         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66105         * lib/findprog.c (find_in_path): Likewise.
66106         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66107         * lib/wait-process.c (register_slave_subprocess): Likewise.
66108
66109 2006-10-22  Bruno Haible  <bruno@clisp.org>
66110
66111         * modules/tsearch: New file.
66112         * lib/tsearch.h: New file.
66113         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66114         * m4/tsearch.m4: New file.
66115         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66116
66117 2006-10-29  Eric Blake  <ebb9@byu.net>
66118
66119         * lib/arcfour.c: Assume config.h.
66120         * lib/arctwo.c: Likewise.
66121         * lib/base64.c: Likewise.
66122         * lib/check-version.c: Likewise.
66123         * lib/crc.c: Likewise.
66124         * lib/des.c: Likewise.
66125         * lib/gc-gnulib.c: Likewise.
66126         * lib/gc-libgcrypt.c: Likewise.
66127         * lib/gc-pbkdf2-sha1.c: Likewise.
66128         * lib/getaddrinfo.c: Likewise.
66129         * lib/getdelim.c: Likewise.
66130         * lib/getline.c: Likewise.
66131         * lib/hmac-md5.c: Likewise.
66132         * lib/hmac-sha1.c: Likewise.
66133         * lib/iconvme.c: Likewise.
66134         * lib/md2.c: Likewise.
66135         * lib/md4.c: Likewise.
66136         * lib/memxor.c: Likewise.
66137         * lib/read-file.c: Likewise.
66138         * lib/readline.c: Likewise.
66139         * lib/rijndael-alg-fst.c: Likewise.
66140         * lib/rijndael-api-fst.c: Likewise.
66141         * lib/xgetdomainname.c: Likewise.
66142
66143 2006-10-28  Eric Blake  <ebb9@byu.net>
66144
66145         * lib/xstrndup.c: Assume config.h.
66146
66147 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66148
66149         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66150         stat-macros.h is now for our own macros, whereas stat_h is for
66151         macros in the <sys/stat.h> name space.
66152         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66153         (STAT_MACROS_H): Remove.
66154         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66155         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66156         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66157         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66158         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66159         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66160         Move these macros to ...
66161         * lib/stat_.h: here.  Don't include stat-macros.h.
66162         * lib/canonicalize.c: Don't include stat-macros.h.
66163         * lib/chown.c: Likewise.
66164         * lib/euidaccess.c: Likewise.
66165         * lib/file-type.c: Likewise.
66166         * lib/filemode.c: Likewise.
66167         * lib/glob.c: Likewise.
66168         * lib/isapipe.c: Likewise.
66169         * lib/lchown.c: Likewise.
66170         * lib/lstat.c: Likewise.
66171         * lib/mkdir-p.c: Likewise.
66172         * lib/rmdir.c: Likewise.
66173         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66174         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66175         unless mkdir isn't declared, to speed up 'configure'.
66176         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66177         would define all the S_* symbols.
66178         * modules/canonicalize (Depends-on):
66179         Depend on sys_stat, not stat-macros.
66180         * modules/chown: Likewise.
66181         * modules/euidaccess: Likewise.
66182         * modules/filemode: Likewise.
66183         * modules/file-type: Likewise.
66184         * modules/glob: Likewise.
66185         * modules/isapipe: Likewise.
66186         * modules/lchown: Likewise.
66187         * modules/lstat: Likewise.
66188         * modules/mkancesdirs: Likewise.
66189         * modules/rmdir: Likewise.
66190         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66191         * modules/modechange: Likewise.
66192         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66193         (configure.ac): Remove gl_STAT_MACROS.
66194         * modules/sys_stat (Depends-on): Remove stat-macros.
66195
66196 2006-10-27  Bruno Haible  <bruno@clisp.org>
66197
66198         * m4/signed.m4: Remove file.
66199         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66200         invocation.
66201         * modules/vasnprintf (Files): Remove m4/signed.m4.
66202
66203 2006-10-27  Bruno Haible  <bruno@clisp.org>
66204
66205         Update to GNU gettext 0.16.
66206         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66207         m4/inttypes-h.m4, m4/signed.m4.
66208         * m4/gettext.m4: Update to GNU gettext 0.16.
66209         * m4/intl.m4: New file, from GNU gettext.
66210         * m4/intldir.m4: New file, from GNU gettext.
66211         * config/srclist.txt: Update
66212
66213 2006-10-27  Eric Blake  <ebb9@byu.net>
66214
66215         * MODULES.html.sh: Document tempname.
66216         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66217         dependencies.
66218         (Files): Move lib/tempname.c...
66219         * modules/tempname: ...to this new module.
66220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66221         (gl_PREREQ_TEMPNAME): Move...
66222         * m4/tempname.m4: ...to this new file.
66223         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66224         * modules/sys_stat (Depends-on): Add stat-macros.
66225         * lib/stat_.h (includes): Pick up stat macros.
66226         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66227         if stat macros are broken.
66228         * lib/tempname.c (includes): No need to include "stat-macros.h".
66229         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66230         (direxists, __path_search) [!_LIBC]: Don't compile these in
66231         gnulib; the tmpdir module covers that.
66232         * lib/tempname.h: New file.
66233
66234 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * COPYING: Explain how gnulib-tool converts licence headers.
66237         Almost all wording by Eric Blake.
66238
66239 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66240
66241         * lib/mbchar.h (is_basic_table): Make read-only.
66242         * lib/mbchar.c (is_basic_table): Likewise.
66243         Reported by John Darrington.
66244
66245 2006-10-25  Bruno Haible  <bruno@clisp.org>
66246
66247         * lib/progname.h (set_program_name): Undefine before defining.
66248
66249 2006-10-25  Bruno Haible  <bruno@clisp.org>
66250
66251         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66252         false for non-gcc C++ compilers.
66253         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66254
66255 2006-10-24  Bruno Haible  <bruno@clisp.org>
66256
66257         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66258         iconv implementations like Irix iconv.
66259
66260 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         * modules/vararrays: New file.
66263         * m4/vararrays.m4: New file, taken from diffutils.
66264         * MODULES.html.sh: New module vararrays.
66265
66266 2006-10-24  Karl Berry  <karl@gnu.org>
66267
66268         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66269         Don't call GNU Unix.
66270
66271 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66272
66273         * users.txt: Add Libtool.
66274
66275         Sync from Libtool:
66276
66277         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66278
66279         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66280         to gnulib's policy of including config.h unconditionally.
66281
66282 2006-10-24  Bruno Haible  <bruno@clisp.org>
66283
66284         * modules/wcwidth (Files): Add m4/wint_t.m4.
66285         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66286         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66287
66288 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66289
66290         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66291         to pacify GCC with some -W flags enabled.  Problem reported by
66292         Bruno Haible.
66293
66294 2006-10-24  Jim Meyering  <jim@meyering.net>
66295
66296         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66297         Reported by Karl Berry.
66298
66299 2006-10-23  Bruno Haible  <bruno@clisp.org>
66300
66301         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66302
66303 2006-10-24  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/gl_list.h: Use C comment style, not C++ comment style.
66306
66307 2006-10-23  Eric Blake  <ebb9@byu.net>
66308
66309         * lib/getaddrinfo.c (includes): Add missing include.
66310
66311 2006-10-23  Bruno Haible  <bruno@clisp.org>
66312             Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         Ability to rename obstack_free.
66315         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66316         obstack_free.
66317         (obstack_free): Invoke the __obstack_free macro.
66318         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66319
66320 2006-10-23  Bruno Haible  <bruno@clisp.org>
66321             Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66324         __argc, __argv from the declaration. (They are defined as macros on
66325         mingw.)
66326
66327 2006-10-22  Bruno Haible  <bruno@clisp.org>
66328
66329         * doc/gnulib-intro.texi: New file.
66330         * doc/gnulib.texi: Include it.
66331
66332 2006-10-21  Bruno Haible  <bruno@clisp.org>
66333
66334         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66335         "Introduction", "Miscellanous Notes", "Particular Modules".
66336
66337 2006-10-21  Bruno Haible  <bruno@clisp.org>
66338
66339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66340         Change mostlyclean-local rule to avoid sh syntax error from bash
66341         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66342
66343 2006-10-23  Jim Meyering  <jim@meyering.net>
66344
66345         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66346         in place of snprintf.
66347
66348         * modules/inttostr (Files): Add lib/uinttostr.c.
66349         * lib/uinttostr.c (inttostr): New file/function.
66350         * lib/inttostr.h (uinttostr): Declare.
66351         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66352         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66353         Add uinttostr.
66354         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66355
66356 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66357
66358         * lib/canonicalize.c (ELOOP): Define if not already defined.
66359         Problem reported by Bruno Haible in
66360         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66361
66362 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66363
66364         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66365         Problem reported by Perry Smith and Ville Laurikari.
66366
66367         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66368         uses.
66369
66370 2006-10-19  Bruno Haible  <bruno@clisp.org>
66371
66372         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66373         for mingw.
66374
66375 2006-10-19  Bruno Haible  <bruno@clisp.org>
66376
66377         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66378         Needed for mingw.
66379
66380 2006-10-19  Bruno Haible  <bruno@clisp.org>
66381
66382         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66383
66384 2006-10-19  Bruno Haible  <bruno@clisp.org>
66385
66386         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66387         it.
66388
66389 2006-10-19  Bruno Haible  <bruno@clisp.org>
66390
66391         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66392         invocation.
66393
66394 2006-10-19  Bruno Haible  <bruno@clisp.org>
66395
66396         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66397         mountlist by default.
66398
66399 2006-10-16  Bruno Haible  <bruno@clisp.org>
66400
66401         * lib/c-strstr.c: Include c-strstr.h.
66402
66403 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66404
66405         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66406         in a slash.
66407
66408 2006-10-18  Bruno Haible  <bruno@clisp.org>
66409
66410         * lib/lock.h [C++]: Wrap definitions in extern "C".
66411
66412 2006-10-18  Bruno Haible  <bruno@clisp.org>
66413
66414         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66415         gl_LIBOBJS list.
66416
66417 2006-10-18  Bruno Haible  <bruno@clisp.org>
66418
66419         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66420
66421 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66422
66423         * lib/xstrtol.h: Include gettext.h.
66424         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66425         Problem reported by Eric Blake.
66426         * modules/xstrtol (Depends-on): Add gettext-h.
66427
66428 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66429
66430         * lib/strftime.c (advance): New macro.
66431         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66432         incomplete type, so you can't add 0 to it.  Problem and patch
66433         reported by Eelco Dolstra for dietlibc.
66434
66435 2006-10-18  Jim Meyering  <jim@meyering.net>
66436
66437         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66438         type for a local, and rename it: s/up/user_proc/.
66439
66440 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66441
66442         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66443         READ_UTMP_USER_PROCESS.
66444         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66445
66446 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66449         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66450
66451 2006-10-17  Eric Blake  <ebb9@byu.net>
66452
66453         * lib/sigprocmask.c (sigprocmask): Fix typo.
66454
66455         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66456
66457         * modules/clean-temp (Makefile.am): Don't add to make output...
66458         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66459         config.h.
66460
66461 2006-10-17  Bruno Haible  <bruno@clisp.org>
66462
66463         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66464         differently if DEFAULT_TEXT_DOMAIN is set.
66465
66466 2006-10-16  Bruno Haible  <bruno@clisp.org>
66467
66468         * lib/clean-temp.c: Include fwriteerror.h.
66469
66470 2006-10-16  Bruno Haible  <bruno@clisp.org>
66471
66472         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66473
66474 2006-10-16  Bruno Haible  <bruno@clisp.org>
66475
66476         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66477         * lib/sigprocmask.h: Include <sys/types.h>.
66478         (sigset_t): Use the system's definition if present.
66479
66480 2006-10-17  Eric Blake  <ebb9@byu.net>
66481
66482         * lib/xvasprintf.c (includes): Assume config.h.
66483         * lib/xasprintf.c (includes): Likewise.
66484
66485 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66486
66487         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66488         at least as wide as intmax_t.
66489
66490 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66491
66492         (Imported from Automake.)
66493         * build-aux/gnupload: Update to version 1.1 of directive file.
66494
66495 2006-10-16  Eric Blake  <ebb9@byu.net>
66496
66497         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66498         match Automake 1.10a.
66499
66500 2006-10-14  Bruno Haible  <bruno@clisp.org>
66501
66502         * modules/sigprocmask: New file.
66503         * lib/sigprocmask.h: New file.
66504         * lib/sigprocmask.c: New file.
66505         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66506         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66507         request sigprocmask.o.
66508         (gl_PREREQ_SIGPROCMASK): New macro.
66509         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66510         (Depends-on): Add sigprocmask.
66511         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66512         gt_SIGNALBLOCKING. Test for 'raise' only once.
66513         * lib/fatal-signal.c: Include sigprocmask.h.
66514         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66515         unblock_fatal_signals): Define always.
66516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66517         sigprocmask.
66518
66519 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         Sync from Automake.
66522         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66523         which incorrectly sets the mode of an existing destination
66524         directory.  In some cases the unpatched install-sh could do the
66525         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66526         system.  We hope this is rare in practice, but it's clearly worth
66527         fixing.  Problem reported by Alex Unleashed in
66528         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66529         Also, don't bother to check for -m bugs unless we're using -m;
66530         suggested by Stepan Kasal.
66531
66532 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66533
66534         Sync from Automake.
66535         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66536         `-c' flag, so they appear at the same position as in %FASTDEP%
66537         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66538         which ignores unknown options only after the first non-option.
66539         Bug report against M4 by Nelson H. F. Beebe.
66540
66541 2006-10-13  Jim Meyering  <jim@meyering.net>
66542
66543         Fix a bug in yesterday's change.
66544         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66545         p->fts_statp->st_dev would be used uninitialized.
66546         Ensures that we always call fts_stat on the very first entry.
66547         Miklos Szeredi reported that find -xdev stopped working.
66548
66549 2006-10-12  Bruno Haible  <bruno@clisp.org>
66550
66551         * gnulib-tool (func_get_automake_snippet): Append an automatically
66552         computed EXTRA_DIST augmentation.
66553         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66554         * modules/alloca-opt (Makefile.am): Likewise.
66555         * modules/allocsa (Makefile.am): Likewise.
66556         * modules/arcfour (Makefile.am): Likewise.
66557         * modules/arctwo (Makefile.am): Likewise.
66558         * modules/argmatch (Makefile.am): Likewise.
66559         * modules/argz (Makefile.am): Likewise.
66560         * modules/atexit (Makefile.am): Likewise.
66561         * modules/backupfile (Makefile.am): Likewise.
66562         * modules/byteswap (Makefile.am): Likewise.
66563         * modules/c-strtod (Makefile.am): Likewise.
66564         * modules/c-strtold (Makefile.am): Likewise.
66565         * modules/calloc (Makefile.am): Likewise.
66566         * modules/canon-host (Makefile.am): Likewise.
66567         * modules/canonicalize (Makefile.am): Likewise.
66568         * modules/chdir-long (Makefile.am): Likewise.
66569         * modules/chdir-safer (Makefile.am): Likewise.
66570         * modules/check-version (Makefile.am): Likewise.
66571         * modules/chown (Makefile.am): Likewise.
66572         * modules/cloexec (Makefile.am): Likewise.
66573         * modules/close-stream (Makefile.am): Likewise.
66574         * modules/closeout (Makefile.am): Likewise.
66575         * modules/crc (Makefile.am): Likewise.
66576         * modules/csharpexec (Makefile.am): Likewise.
66577         * modules/cycle-check (Makefile.am): Likewise.
66578         * modules/des (Makefile.am): Likewise.
66579         * modules/dev-ino (Makefile.am): Likewise.
66580         * modules/dirfd (Makefile.am): Likewise.
66581         * modules/dirname (Makefile.am): Likewise.
66582         * modules/dup2 (Makefile.am): Likewise.
66583         * modules/eealloc (Makefile.am): Likewise.
66584         * modules/error (Makefile.am): Likewise.
66585         * modules/euidaccess (Makefile.am): Likewise.
66586         * modules/exclude (Makefile.am): Likewise.
66587         * modules/exitfail (Makefile.am): Likewise.
66588         * modules/fcntl-safer (Makefile.am): Likewise.
66589         * modules/fcntl (Makefile.am): Likewise.
66590         * modules/file-type (Makefile.am): Likewise.
66591         * modules/fileblocks (Makefile.am): Likewise.
66592         * modules/filemode (Makefile.am): Likewise.
66593         * modules/filenamecat (Makefile.am): Likewise.
66594         * modules/fnmatch (Makefile.am): Likewise.
66595         * modules/fopen-safer (Makefile.am): Likewise.
66596         * modules/fpending (Makefile.am): Likewise.
66597         * modules/fprintftime (Makefile.am): Likewise.
66598         * modules/free (Makefile.am): Likewise.
66599         * modules/fsusage (Makefile.am): Likewise.
66600         * modules/ftruncate (Makefile.am): Likewise.
66601         * modules/fts (Makefile.am): Likewise.
66602         * modules/gc-arcfour (Makefile.am): Likewise.
66603         * modules/gc-des (Makefile.am): Likewise.
66604         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66605         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66606         * modules/gc-md4 (Makefile.am): Likewise.
66607         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66608         * modules/gc-sha1 (Makefile.am): Likewise.
66609         * modules/gc (Makefile.am): Likewise.
66610         * modules/getaddrinfo (Makefile.am): Likewise.
66611         * modules/getcwd (Makefile.am): Likewise.
66612         * modules/getdelim (Makefile.am): Likewise.
66613         * modules/getdomainname (Makefile.am): Likewise.
66614         * modules/getgroups (Makefile.am): Likewise.
66615         * modules/gethostname (Makefile.am): Likewise.
66616         * modules/gethrxtime (Makefile.am): Likewise.
66617         * modules/getline (Makefile.am): Likewise.
66618         * modules/getloadavg (Makefile.am): Likewise.
66619         * modules/getlogin_r (Makefile.am): Likewise.
66620         * modules/getndelim2 (Makefile.am): Likewise.
66621         * modules/getopt (Makefile.am): Likewise.
66622         * modules/getpagesize (Makefile.am): Likewise.
66623         * modules/getpass-gnu (Makefile.am): Likewise.
66624         * modules/getpass (Makefile.am): Likewise.
66625         * modules/getsubopt (Makefile.am): Likewise.
66626         * modules/gettime (Makefile.am): Likewise.
66627         * modules/gettimeofday (Makefile.am): Likewise.
66628         * modules/getugroups (Makefile.am): Likewise.
66629         * modules/getusershell (Makefile.am): Likewise.
66630         * modules/glob (Makefile.am): Likewise.
66631         * modules/group-member (Makefile.am): Likewise.
66632         * modules/hard-locale (Makefile.am): Likewise.
66633         * modules/hash (Makefile.am): Likewise.
66634         * modules/hmac-md5 (Makefile.am): Likewise.
66635         * modules/hmac-sha1 (Makefile.am): Likewise.
66636         * modules/human (Makefile.am): Likewise.
66637         * modules/idcache (Makefile.am): Likewise.
66638         * modules/imaxabs (Makefile.am): Likewise.
66639         * modules/imaxdiv (Makefile.am): Likewise.
66640         * modules/inet_ntop (Makefile.am): Likewise.
66641         * modules/inet_pton (Makefile.am): Likewise.
66642         * modules/intprops (Makefile.am): Likewise.
66643         * modules/inttostr (Makefile.am): Likewise.
66644         * modules/inttypes (Makefile.am): Likewise.
66645         * modules/isapipe (Makefile.am): Likewise.
66646         * modules/javaversion (Makefile.am): Likewise.
66647         * modules/lchmod (Makefile.am): Likewise.
66648         * modules/lchown (Makefile.am): Likewise.
66649         * modules/localcharset (Makefile.am): Likewise.
66650         * modules/long-options (Makefile.am): Likewise.
66651         * modules/lstat (Makefile.am): Likewise.
66652         * modules/malloc (Makefile.am): Likewise.
66653         * modules/mathl (Makefile.am): Likewise.
66654         * modules/mbchar (Makefile.am): Likewise.
66655         * modules/md2 (Makefile.am): Likewise.
66656         * modules/md4 (Makefile.am): Likewise.
66657         * modules/md5 (Makefile.am): Likewise.
66658         * modules/memcasecmp (Makefile.am): Likewise.
66659         * modules/memchr (Makefile.am): Likewise.
66660         * modules/memcmp (Makefile.am): Likewise.
66661         * modules/memcoll (Makefile.am): Likewise.
66662         * modules/memcpy (Makefile.am): Likewise.
66663         * modules/memmem (Makefile.am): Likewise.
66664         * modules/memmove (Makefile.am): Likewise.
66665         * modules/mempcpy (Makefile.am): Likewise.
66666         * modules/memrchr (Makefile.am): Likewise.
66667         * modules/memset (Makefile.am): Likewise.
66668         * modules/memxor (Makefile.am): Likewise.
66669         * modules/mkancesdirs (Makefile.am): Likewise.
66670         * modules/mkdir-p (Makefile.am): Likewise.
66671         * modules/mkdir (Makefile.am): Likewise.
66672         * modules/mkdtemp (Makefile.am): Likewise.
66673         * modules/mkstemp (Makefile.am): Likewise.
66674         * modules/mktime (Makefile.am): Likewise.
66675         * modules/modechange (Makefile.am): Likewise.
66676         * modules/mountlist (Makefile.am): Likewise.
66677         * modules/nanosleep (Makefile.am): Likewise.
66678         * modules/obstack (Makefile.am): Likewise.
66679         * modules/openat (Makefile.am): Likewise.
66680         * modules/pagealign_alloc (Makefile.am): Likewise.
66681         * modules/pathmax (Makefile.am): Likewise.
66682         * modules/physmem (Makefile.am): Likewise.
66683         * modules/poll (Makefile.am): Likewise.
66684         * modules/posixtm (Makefile.am): Likewise.
66685         * modules/posixver (Makefile.am): Likewise.
66686         * modules/putenv (Makefile.am): Likewise.
66687         * modules/quote (Makefile.am): Likewise.
66688         * modules/quotearg (Makefile.am): Likewise.
66689         * modules/raise (Makefile.am): Likewise.
66690         * modules/read-file (Makefile.am): Likewise.
66691         * modules/readline (Makefile.am): Likewise.
66692         * modules/readlink (Makefile.am): Likewise.
66693         * modules/readtokens (Makefile.am): Likewise.
66694         * modules/readutmp (Makefile.am): Likewise.
66695         * modules/realloc (Makefile.am): Likewise.
66696         * modules/regex (Makefile.am): Likewise.
66697         * modules/rename-dest-slash (Makefile.am): Likewise.
66698         * modules/rename (Makefile.am): Likewise.
66699         * modules/rijndael (Makefile.am): Likewise.
66700         * modules/rmdir (Makefile.am): Likewise.
66701         * modules/rpmatch (Makefile.am): Likewise.
66702         * modules/safe-read (Makefile.am): Likewise.
66703         * modules/safe-write (Makefile.am): Likewise.
66704         * modules/same-inode (Makefile.am): Likewise.
66705         * modules/same (Makefile.am): Likewise.
66706         * modules/save-cwd (Makefile.am): Likewise.
66707         * modules/savedir (Makefile.am): Likewise.
66708         * modules/setenv (Makefile.am): Likewise.
66709         * modules/settime (Makefile.am): Likewise.
66710         * modules/sha1 (Makefile.am): Likewise.
66711         * modules/sig2str (Makefile.am): Likewise.
66712         * modules/snprintf (Makefile.am): Likewise.
66713         * modules/stat-macros (Makefile.am): Likewise.
66714         * modules/stat-time (Makefile.am): Likewise.
66715         * modules/stdbool (Makefile.am): Likewise.
66716         * modules/stdint (Makefile.am): Likewise.
66717         * modules/stdlib-safer (Makefile.am): Likewise.
66718         * modules/stpcpy (Makefile.am): Likewise.
66719         * modules/stpncpy (Makefile.am): Likewise.
66720         * modules/strcase (Makefile.am): Likewise.
66721         * modules/strcasestr (Makefile.am): Likewise.
66722         * modules/strchrnul (Makefile.am): Likewise.
66723         * modules/strcspn (Makefile.am): Likewise.
66724         * modules/strdup (Makefile.am): Likewise.
66725         * modules/strerror (Makefile.am): Likewise.
66726         * modules/strftime (Makefile.am): Likewise.
66727         * modules/strndup (Makefile.am): Likewise.
66728         * modules/strnlen (Makefile.am): Likewise.
66729         * modules/strpbrk (Makefile.am): Likewise.
66730         * modules/strsep (Makefile.am): Likewise.
66731         * modules/strstr (Makefile.am): Likewise.
66732         * modules/strtod (Makefile.am): Likewise.
66733         * modules/strtoimax (Makefile.am): Likewise.
66734         * modules/strtok_r (Makefile.am): Likewise.
66735         * modules/strtol (Makefile.am): Likewise.
66736         * modules/strtoll (Makefile.am): Likewise.
66737         * modules/strtoul (Makefile.am): Likewise.
66738         * modules/strtoull (Makefile.am): Likewise.
66739         * modules/strtoumax (Makefile.am): Likewise.
66740         * modules/strverscmp (Makefile.am): Likewise.
66741         * modules/sys_socket (Makefile.am): Likewise.
66742         * modules/sys_stat (Makefile.am): Likewise.
66743         * modules/sysexits (Makefile.am): Likewise.
66744         * modules/time_r (Makefile.am): Likewise.
66745         * modules/timegm (Makefile.am): Likewise.
66746         * modules/timespec (Makefile.am): Likewise.
66747         * modules/tmpfile-safer (Makefile.am): Likewise.
66748         * modules/trim (Makefile.am): Likewise.
66749         * modules/unistd-safer (Makefile.am): Likewise.
66750         * modules/unlinkdir (Makefile.am): Likewise.
66751         * modules/unlocked-io (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         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66768
66769 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * modules/error (Makefile.am): Distribute files through
66772         EXTRA_DIST, not lib_SOURCES.
66773
66774 2006-10-12  Eric Blake  <ebb9@byu.net>
66775
66776         * modules/error (Makefile.am): Distribute files in /lib.
66777         * modules/obstack (Makefile.am): Likewise.
66778
66779 2006-10-12  Bruno Haible  <bruno@clisp.org>
66780
66781         * modules/acl (Makefile.am): Distribute all files in lib/ through
66782         EXTRA_DIST.
66783         * modules/arcfour (Makefile.am): Likewise.
66784         * modules/arctwo (Makefile.am): Likewise.
66785         * modules/argmatch (Makefile.am): Likewise.
66786         * modules/argz (Makefile.am): Likewise.
66787         * modules/atexit (Makefile.am): Likewise.
66788         * modules/backupfile (Makefile.am): Likewise.
66789         * modules/c-strtod (Makefile.am): Likewise.
66790         * modules/c-strtold (Makefile.am): Likewise.
66791         * modules/calloc (Makefile.am): Likewise.
66792         * modules/canon-host (Makefile.am): Likewise.
66793         * modules/canonicalize (Makefile.am): Likewise.
66794         * modules/chdir-long (Makefile.am): Likewise.
66795         * modules/chdir-safer (Makefile.am): Likewise.
66796         * modules/check-version (Makefile.am): Likewise.
66797         * modules/chown (Makefile.am): Likewise.
66798         * modules/cloexec (Makefile.am): Likewise.
66799         * modules/close-stream (Makefile.am): Likewise.
66800         * modules/closeout (Makefile.am): Likewise.
66801         * modules/crc (Makefile.am): Likewise.
66802         * modules/cycle-check (Makefile.am): Likewise.
66803         * modules/des (Makefile.am): Likewise.
66804         * modules/dirfd (Makefile.am): Likewise.
66805         * modules/dirname (Makefile.am): Likewise.
66806         * modules/dup2 (Makefile.am): Likewise.
66807         * modules/euidaccess (Makefile.am): Likewise.
66808         * modules/exclude (Makefile.am): Likewise.
66809         * modules/exitfail (Makefile.am): Likewise.
66810         * modules/fcntl-safer (Makefile.am): Likewise.
66811         * modules/file-type (Makefile.am): Likewise.
66812         * modules/fileblocks (Makefile.am): Likewise.
66813         * modules/filemode (Makefile.am): Likewise.
66814         * modules/filenamecat (Makefile.am): Likewise.
66815         * modules/fnmatch (Makefile.am): Likewise.
66816         * modules/fopen-safer (Makefile.am): Likewise.
66817         * modules/fpending (Makefile.am): Likewise.
66818         * modules/fprintftime (Makefile.am): Likewise.
66819         * modules/free (Makefile.am): Likewise.
66820         * modules/fsusage (Makefile.am): Likewise.
66821         * modules/ftruncate (Makefile.am): Likewise.
66822         * modules/fts (Makefile.am): Likewise.
66823         * modules/gc (Makefile.am): Likewise.
66824         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66825         * modules/getaddrinfo (Makefile.am): Likewise.
66826         * modules/getcwd (Makefile.am): Likewise.
66827         * modules/getdelim (Makefile.am): Likewise.
66828         * modules/getdomainname (Makefile.am): Likewise.
66829         * modules/getgroups (Makefile.am): Likewise.
66830         * modules/gethostname (Makefile.am): Likewise.
66831         * modules/gethrxtime (Makefile.am): Likewise.
66832         * modules/getline (Makefile.am): Likewise.
66833         * modules/getloadavg (Makefile.am): Likewise.
66834         * modules/getlogin_r (Makefile.am): Likewise.
66835         * modules/getopt (Makefile.am): Likewise.
66836         * modules/getpass (Makefile.am): Likewise.
66837         * modules/getpass-gnu (Makefile.am): Likewise.
66838         * modules/getsubopt (Makefile.am): Likewise.
66839         * modules/gettime (Makefile.am): Likewise.
66840         * modules/gettimeofday (Makefile.am): Likewise.
66841         * modules/getugroups (Makefile.am): Likewise.
66842         * modules/getusershell (Makefile.am): Likewise.
66843         * modules/glob (Makefile.am): Likewise.
66844         * modules/group-member (Makefile.am): Likewise.
66845         * modules/hard-locale (Makefile.am): Likewise.
66846         * modules/hash (Makefile.am): Likewise.
66847         * modules/hmac-md5 (Makefile.am): Likewise.
66848         * modules/hmac-sha1 (Makefile.am): Likewise.
66849         * modules/human (Makefile.am): Likewise.
66850         * modules/idcache (Makefile.am): Likewise.
66851         * modules/imaxabs (Makefile.am): Likewise.
66852         * modules/imaxdiv (Makefile.am): Likewise.
66853         * modules/inet_ntop (Makefile.am): Likewise.
66854         * modules/inet_pton (Makefile.am): Likewise.
66855         * modules/inttostr (Makefile.am): Likewise.
66856         * modules/isapipe (Makefile.am): Likewise.
66857         * modules/lchown (Makefile.am): Likewise.
66858         * modules/long-options (Makefile.am): Likewise.
66859         * modules/lstat (Makefile.am): Likewise.
66860         * modules/malloc (Makefile.am): Likewise.
66861         * modules/mathl (Makefile.am): Likewise.
66862         * modules/mbchar (Makefile.am): Likewise.
66863         * modules/md2 (Makefile.am): Likewise.
66864         * modules/md4 (Makefile.am): Likewise.
66865         * modules/md5 (Makefile.am): Likewise.
66866         * modules/memcasecmp (Makefile.am): Likewise.
66867         * modules/memchr (Makefile.am): Likewise.
66868         * modules/memcmp (Makefile.am): Likewise.
66869         * modules/memcoll (Makefile.am): Likewise.
66870         * modules/memcpy (Makefile.am): Likewise.
66871         * modules/memmem (Makefile.am): Likewise.
66872         * modules/memmove (Makefile.am): Likewise.
66873         * modules/mempcpy (Makefile.am): Likewise.
66874         * modules/memrchr (Makefile.am): Likewise.
66875         * modules/memset (Makefile.am): Likewise.
66876         * modules/memxor (Makefile.am): Likewise.
66877         * modules/mkancesdirs (Makefile.am): Likewise.
66878         * modules/mkdir (Makefile.am): Likewise.
66879         * modules/mkdir-p (Makefile.am): Likewise.
66880         * modules/mkdtemp (Makefile.am): Likewise.
66881         * modules/mkstemp (Makefile.am): Likewise.
66882         * modules/mktime (Makefile.am): Likewise.
66883         * modules/modechange (Makefile.am): Likewise.
66884         * modules/mountlist (Makefile.am): Likewise.
66885         * modules/nanosleep (Makefile.am): Likewise.
66886         * modules/openat (Makefile.am): Likewise.
66887         * modules/pagealign_alloc (Makefile.am): Likewise.
66888         * modules/physmem (Makefile.am): Likewise.
66889         * modules/poll (Makefile.am): Likewise.
66890         * modules/posixtm (Makefile.am): Likewise.
66891         * modules/posixver (Makefile.am): Likewise.
66892         * modules/putenv (Makefile.am): Likewise.
66893         * modules/quote (Makefile.am): Likewise.
66894         * modules/quotearg (Makefile.am): Likewise.
66895         * modules/raise (Makefile.am): Likewise.
66896         * modules/read-file (Makefile.am): Likewise.
66897         * modules/readline (Makefile.am): Likewise.
66898         * modules/readlink (Makefile.am): Likewise.
66899         * modules/readtokens (Makefile.am): Likewise.
66900         * modules/readutmp (Makefile.am): Likewise.
66901         * modules/realloc (Makefile.am): Likewise.
66902         * modules/regex (Makefile.am): Likewise.
66903         * modules/rename (Makefile.am): Likewise.
66904         * modules/rename-dest-slash (Makefile.am): Likewise.
66905         * modules/rijndael (Makefile.am): Likewise.
66906         * modules/rmdir (Makefile.am): Likewise.
66907         * modules/rpmatch (Makefile.am): Likewise.
66908         * modules/safe-read (Makefile.am): Likewise.
66909         * modules/safe-write (Makefile.am): Likewise.
66910         * modules/same (Makefile.am): Likewise.
66911         * modules/save-cwd (Makefile.am): Likewise.
66912         * modules/savedir (Makefile.am): Likewise.
66913         * modules/setenv (Makefile.am): Likewise.
66914         * modules/settime (Makefile.am): Likewise.
66915         * modules/sha1 (Makefile.am): Likewise.
66916         * modules/sig2str (Makefile.am): Likewise.
66917         * modules/snprintf (Makefile.am): Likewise.
66918         * modules/stdlib-safer (Makefile.am): Likewise.
66919         * modules/stpcpy (Makefile.am): Likewise.
66920         * modules/stpncpy (Makefile.am): Likewise.
66921         * modules/strcase (Makefile.am): Likewise.
66922         * modules/strcasestr (Makefile.am): Likewise.
66923         * modules/strchrnul (Makefile.am): Likewise.
66924         * modules/strcspn (Makefile.am): Likewise.
66925         * modules/strdup (Makefile.am): Likewise.
66926         * modules/strerror (Makefile.am): Likewise.
66927         * modules/strftime (Makefile.am): Likewise.
66928         * modules/strndup (Makefile.am): Likewise.
66929         * modules/strnlen (Makefile.am): Likewise.
66930         * modules/strpbrk (Makefile.am): Likewise.
66931         * modules/strsep (Makefile.am): Likewise.
66932         * modules/strstr (Makefile.am): Likewise.
66933         * modules/strtod (Makefile.am): Likewise.
66934         * modules/strtoimax (Makefile.am): Likewise.
66935         * modules/strtok_r (Makefile.am): Likewise.
66936         * modules/strtol (Makefile.am): Likewise.
66937         * modules/strtoll (Makefile.am): Likewise.
66938         * modules/strtoul (Makefile.am): Likewise.
66939         * modules/strtoull (Makefile.am): Likewise.
66940         * modules/strtoumax (Makefile.am): Likewise.
66941         * modules/strverscmp (Makefile.am): Likewise.
66942         * modules/time_r (Makefile.am): Likewise.
66943         * modules/timegm (Makefile.am): Likewise.
66944         * modules/tmpfile-safer (Makefile.am): Likewise.
66945         * modules/unistd-safer (Makefile.am): Likewise.
66946         * modules/unlinkdir (Makefile.am): Likewise.
66947         * modules/userspec (Makefile.am): Likewise.
66948         * modules/utime (Makefile.am): Likewise.
66949         * modules/utimecmp (Makefile.am): Likewise.
66950         * modules/utimens (Makefile.am): Likewise.
66951         * modules/vasnprintf (Makefile.am): Likewise.
66952         * modules/vasprintf (Makefile.am): Likewise.
66953         * modules/vsnprintf (Makefile.am): Likewise.
66954         * modules/xalloc (Makefile.am): Likewise.
66955         * modules/xgetcwd (Makefile.am): Likewise.
66956         * modules/xnanosleep (Makefile.am): Likewise.
66957         * modules/xreadlink (Makefile.am): Likewise.
66958         * modules/xstrtod (Makefile.am): Likewise.
66959         * modules/xstrtol (Makefile.am): Likewise.
66960         * modules/xstrtold (Makefile.am): Likewise.
66961         * modules/yesno (Makefile.am): Likewise.
66962
66963 2006-10-12  Jim Meyering  <jim@meyering.net>
66964
66965         * m4/getloadavg.m4: Revert the change below.
66966
66967         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66968         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66969         fail with a symlink, which is what coreutils' ./bootstrap now
66970         creates by default.
66971
66972 2006-10-12  Bruno Haible  <bruno@clisp.org>
66973
66974         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66975         mingw.
66976         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66977         MSVC and mingw explicitly.
66978
66979 2006-10-11  Simon Josefsson  <jas@extundo.com>
66980             Bruno Haible  <bruno@clisp.org>
66981
66982         Add support for multiple gnulib-tool invocations in the scope of a
66983         single configure.ac file.
66984         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66985         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66986         with the same contents as the _LIBADD variable.
66987         (func_emit_initmacro_start, func_emit_initmacro_end,
66988         func_emit_initmacro_done): New functions.
66989         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66990         gl_LIBOBJS and gl_LTLIBOBJS.
66991
66992 2006-10-11  Bruno Haible  <bruno@clisp.org>
66993
66994         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66995         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66996         autoreconf. Instead, invoke autopoint explicitly but move back the
66997         *.m4 files from gnulib.
66998
66999 2006-10-11  Bruno Haible  <bruno@clisp.org>
67000
67001         * gnulib-tool (func_usage): Make module names after --create-testdir
67002         optional.
67003         (func_create_testdir): If no module was specified, use nearly all
67004         modules.
67005
67006 2006-10-12  Jim Meyering  <jim@meyering.net>
67007
67008         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67009         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67010         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67011         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67012         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67013         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67014         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67015         (fts_set_stat_required): New function.
67016         (fts_open): Defer the calls to fts_stat, if possible or requested.
67017         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67018         into fts_stat itself.
67019         (fts_read): Perform any required (deferred) fts_stat call.
67020         (fts_build): Likewise, for the directory we're about to open and read.
67021         In the readdir loop, carefully decide whether each entry will require
67022         an eventual call to fts_stat, using dirent.d_type info if available.
67023         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67024         a command line argument into this function.  Update all callers.
67025         Map a return value of FTS_DOT to FTS_D for a command line argument.
67026         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67027         Thanks to Miklos Szeredi for his tenacity and for the initial
67028         bug report about "find" failing on a FUSE-based file system.
67029
67030         * lib/fts.c (fts_open): Use consistent indentation.
67031
67032 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67033
67034         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67035         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67036         reported by Jim Meyering.  All uses of cache variables renamed
67037         to match Autoconf's.
67038         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67039         the other one.
67040
67041         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67042         Fix misspelling in diagnostic.
67043
67044 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67045
67046         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67047         defined.  Problem reported by Matthew Woehlke.
67048
67049         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67050         Add support for Tandem NonStop R series.
67051         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67052         Use new macro.
67053
67054         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67055         (has_trailing_slash): Omit size arg; all callers changed.
67056         Omit 'inline', since it doesn't help performance and we'd
67057         need to configure it.
67058         Don't count //, ///, etc. as having a trailing slash.
67059         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67060         (rpl_rename_dest_slash): On failure, use rename's errno rather
67061         than (in some cases) an incorrect or junk errno.
67062         Simplify code by removing need to compute length; this does
67063         cause it to make two passes instead of one over the file name,
67064         but it's worth it.
67065
67066         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67067         change, since Autoconf's version may no longer be appropriate now
67068         that we are using CVS Autoconf's version.  Add support for Tandem.
67069
67070 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67071             Bruno Haible  <bruno@clisp.org>
67072
67073         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67074         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67075         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67076         gl_AC_TYPE_LONG_LONG.
67077
67078         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67079         instead of HAVE_LONG_LONG.
67080         * lib/printf-args.c (printf_fetchargs): Likewise.
67081         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67082         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67083         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67084         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67085         gl_AC_TYPE_LONG_LONG.
67086
67087 2006-10-11  Bruno Haible  <bruno@clisp.org>
67088
67089         * m4/longlong.m4: Add comments.
67090         * m4/ulonglong.m4: Likewise.
67091
67092 2006-10-10  Bruno Haible  <bruno@clisp.org>
67093
67094         Make it possible to #define stpcpy, strdup to aliases.
67095         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67096         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67097
67098 2006-10-10  Bruno Haible  <bruno@clisp.org>
67099
67100         Make it possible to #define gcd to an alias.
67101         * lib/gcd.c: Include config.h.
67102
67103 2006-10-10  Bruno Haible  <bruno@clisp.org>
67104
67105         Make it possible to #define c_isascii to an alias.
67106         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67107         defined. Undefine the macros before defining them, to avoid gcc
67108         warnings.
67109         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67110         define NO_C_CTYPE_MACROS early.
67111
67112 2006-10-10  Bruno Haible  <bruno@clisp.org>
67113
67114         Make it possible to #define set_program_name to an alias.
67115         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67116         ENABLE_RELOCATABLE early.
67117
67118 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67119
67120         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67121         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67122         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67123         More generally, don't assume that 64-bit signed int is available
67124         if unsigned int is, and vice versa.
67125         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67126         unsigned symbols, not on their signed counterparts.
67127         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67128         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67129         (UINT64_C, UINTMAX_C):
67130         Likewise.
67131         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67132         unsigned counterparts.
67133         (Have_long_long, Unsigned): New macros.
67134         (Int): Renamed from INT.
67135         (strtoimax): Use the new macros.
67136         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67137         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67138         * modules/inttypes (inttypes.h): Substitute
67139         HAVE_UNSIGNED_LONG_LONG_INT.
67140         * modules/stdint (stdint.h): Likewise.
67141         (Files): Add m4/ulonglong.m4.
67142
67143 2006-10-10  Bruno Haible  <bruno@clisp.org>
67144
67145         Fix a gcc -Wshadow warning.
67146         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67147         to 'bucket'.
67148         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67149         gl_linked_indexof_from_to): Likewise.
67150         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67151         Likewise.
67152         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67153         Likewise.
67154         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67155         Reported by Eric Blake.
67156
67157 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67158
67159         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67160         for NetBSD.  Problem reported by Bruno Haible.
67161
67162 2006-10-09  Jim Meyering  <jim@meyering.net>
67163
67164         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67165         Patch from Bruno Haible.
67166
67167 2006-10-09  Jim Meyering  <jim@meyering.net>
67168
67169         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67170         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67171         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67172
67173 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67174
67175         Don't include <config.h> twice; this doesn't work in some cases,
67176         e.g., when config.h has "#define intmax_t long long int" and
67177         we include <config.h>, <inttypes.h>, <config.h> in that order.
67178         Problem reported by Matthew Woehlke in:
67179         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67180         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67181         * lib/fts-cycle.c: Don't include config.h.
67182         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67183         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67184         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67185         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67186         inttypes.h.
67187         * lib/xstrtoumax.c: Likewise.
67188         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67189         __strtol and the like, so that this module is more like its siblings.
67190         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67191         Remove; no longer needed now that we assume gnulib inttypes.h.
67192
67193 2006-10-08  Bruno Haible  <bruno@clisp.org>
67194
67195         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67196         option.
67197
67198 2006-10-07  Jim Meyering  <jim@meyering.net>
67199
67200         * modules/inttypes (inttypes.h): Revert what seems to have been
67201         an inadvertent part of today's change: use "|", not "/" in the
67202         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67203
67204 2006-10-07  Bruno Haible  <bruno@clisp.org>
67205
67206         * modules/sublist: New file.
67207
67208 2006-10-07  Bruno Haible  <bruno@clisp.org>
67209
67210         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67211         * modules/argz (argz.h): Likewise.
67212         * modules/arpa_inet (arpa/inet.h): Likewise.
67213         * modules/byteswap (byteswap.h): Likewise.
67214         * modules/configmake (configmake.h): Likewise.
67215         * modules/fcntl (fcntl.h): Likewise.
67216         * modules/fnmatch (fnmatch.h): Likewise.
67217         * modules/getopt (getopt.h): Likewise.
67218         * modules/glob (glob.h): Likewise.
67219         * modules/inttypes (inttypes.h): Likewise.
67220         * modules/netinet_in (netinet/in.h): Likewise.
67221         * modules/poll (poll.h): Likewise.
67222         * modules/stdbool (stdbool.h): Likewise.
67223         * modules/stdint (stdint.h): Likewise.
67224         * modules/sys_select (sys/select.h): Likewise.
67225         * modules/sys_socket (sys/socket.h): Likewise.
67226         * modules/sys_stat (sys/stat.h): Likewise.
67227         * modules/sysexits (sysexits.h): Likewise.
67228         * modules/unistd (unistd.h): Likewise.
67229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67230         Add a "DO NOT EDIT" comment to the generated file.
67231         (func_import): Likewise for gnulib-comp.m4.
67232
67233 2006-10-07  Bruno Haible  <bruno@clisp.org>
67234
67235         * lib/gl_sublist.h: New file.
67236         * lib/gl_sublist.c: New file.
67237
67238 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67239
67240         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67241         name (relative to the original working directory) and the file
67242         name component (relative to the temporary working directory).  All
67243         callers changed.
67244         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67245         * lib/mkdir-p.c (make_dir_parents): Likewise.
67246         * lib/mkdir-p.h (make_dir_parents): Likewise.
67247
67248 2006-10-06  Eric Blake  <ebb9@byu.net>
67249
67250         Define several macros for use by the clean-temp module.
67251         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67252         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67253         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67254
67255         * lib/clean-temp.h (close_stream_temp): New declaration.
67256         * lib/clean-temp.c (includes): Pull in headers according to what
67257         other modules are in use.
67258         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67259
67260 2006-10-06  Bruno Haible  <bruno@clisp.org>
67261
67262         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67263         instead of fopen, fwriteerror.
67264
67265 2006-10-06  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67268         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67269         int.
67270         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67271         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67272         Return an error indicator.
67273         Suggested by Eric Blake.
67274
67275 2006-10-06  Bruno Haible  <bruno@clisp.org>
67276
67277         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67278         Reported by Eric Blake.
67279
67280 2006-10-06  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/closeout (Description): Mention stderr too.
67283
67284 2006-10-06  Bruno Haible  <bruno@clisp.org>
67285         and Paul Eggert  <eggert@cs.ucla.edu>
67286
67287         * lib/closeout.c (close_stdout): Also close stderr.
67288         * lib/closeout.h: Update comment.
67289
67290 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67291
67292         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67293         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67294         * lib/dirchownmod.c: Include lchown.h.
67295         * lib/lchown.c: Don't include files that lchown.h now includes.
67296         Don't declare chown, since lchown.h now does that.
67297         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67298         (lchown): Define to rpl_chown if lchown is declared but
67299         does not exist.  Declare using a prototype if lchown is not
67300         declared.  Add a copyright notice.
67301         * lib/mkstemp.h: Include <unistd.h>.
67302         * lib/openat.c: Include lchown.h.
67303
67304         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67305         we now test for that separately.
67306         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67307         rather than O_NOFOLLOW, when testing whether it's possible to
67308         avoid a race condition reliably.
67309         * lib/savewd.c (savewd_chdir): Likewise.
67310
67311         Remove macros that are no longer needed now that stdint.h is
67312         reliable.
67313         * lib/fsusage.c (UINTMAX_MAX): Remove.
67314         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67315         * lib/utimecmp.c (SIZE_MAX): Remove.
67316
67317         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67318
67319         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67320         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67321         O_NOATIME works.
67322
67323 2006-10-05  Bruno Haible  <bruno@clisp.org>
67324
67325         * lib/gl_list.h (gl_sortedlist_search_from_to,
67326         gl_sortedlist_indexof_from_to): New declarations.
67327         (gl_list_implementation): New fields sortedlist_search_from_to,
67328         sortedlist_indexof_from_to.
67329         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67330         inline functions.
67331         * lib/gl_list.c (gl_sortedlist_search_from_to,
67332         gl_sortedlist_indexof_from_to): New functions.
67333         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67334         function.
67335         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67336         (gl_array_sortedlist_search_from_to): New function.
67337         (gl_array_list_implementation): Update.
67338         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67339         function.
67340         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67341         (gl_carray_sortedlist_search_from_to): New function.
67342         (gl_carray_list_implementation): Update.
67343         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67344         gl_linked_sortedlist_indexof_from_to): New functions.
67345         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67346         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67347         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67348         gl_tree_sortedlist_indexof_from_to): New functions.
67349         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67350         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67351         Update.
67352         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67353         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67354         Update.
67355
67356 2006-10-05  Bruno Haible  <bruno@clisp.org>
67357
67358         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67359         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67360         (struct gl_list_implementation): Add fields search_from_to,
67361         indexof_from_to. Remove fields search, indexof.
67362         (gl_list_search): Use the search_from_to method.
67363         (gl_list_search_from, gl_list_search_from_to): New functions.
67364         (gl_list_indexof): Use the indexof_from_to method.
67365         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67366         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67367         (gl_list_search_from, gl_list_search_from_to): New functions.
67368         (gl_list_indexof): Use the indexof_from_to method.
67369         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67370         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67371         gl_array_indexof. Add start_index, end_index arguments.
67372         (gl_array_search_from_to): Renamed from gl_array_search. Add
67373         start_index, end_index arguments.
67374         (gl_array_remove, gl_array_list_implementation): Update.
67375         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67376         gl_carray_indexof. Add start_index, end_index arguments.
67377         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67378         start_index, end_index arguments.
67379         (gl_carray_remove, gl_carray_list_implementation): Update.
67380         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67381         gl_linked_search. Add start_index, end_index arguments.
67382         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67383         start_index, end_index arguments.
67384         (gl_linked_remove): Update.
67385         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67386         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67387         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67388         field to 'size_t'.
67389         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67390         gl_tree_search. Add start_index, end_index arguments.
67391         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67392         start_index, end_index arguments.
67393         (gl_tree_remove): Update.
67394         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67395         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67396         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67397         function.
67398         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67399         gl_tree_search. Add start_index, end_index arguments.
67400         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67401         start_index, end_index arguments.
67402         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67403         Update.
67404         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67405
67406 2006-10-05  Bruno Haible  <bruno@clisp.org>
67407
67408         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67409
67410         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67411         fwriteerror_temp): New declarations.
67412         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67413         (descriptors): New variable.
67414         (cleanup): First, close the descriptors.
67415         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67416         fclose_temp, fwriteerror_temp): New functions.
67417
67418 2006-10-04  Jim Meyering  <jim@meyering.net>
67419
67420         * lib/fts.c (fts_open): Tiny comment change.
67421
67422 2006-10-04  Bruno Haible  <bruno@clisp.org>
67423
67424         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67425         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67426         gl_LOCK_BODY.
67427         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67428         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67429         gl_LOCK_EARLY_BODY.
67430         (gl_LOCK): Require gl_LOCK_BODY.
67431
67432 2006-10-04  Bruno Haible  <bruno@clisp.org>
67433
67434         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67435         (gl_oset_search_atleast): New declaration.
67436         (struct gl_oset_implementation): Add field 'search_atleast'.
67437         (gl_oset_search_atleast): New inline function.
67438         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67439         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67440         (gl_array_oset_implementation): Update.
67441         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67442         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67443         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67444
67445 2006-10-04  Bruno Haible  <bruno@clisp.org>
67446
67447         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67448
67449 2006-10-03  Bruno Haible  <bruno@clisp.org>
67450
67451         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67452         from gl_avltreehash_list_implementation.
67453
67454 2006-10-03  Bruno Haible  <bruno@clisp.org>
67455
67456         * lib/gl_oset.c (gl_oset_add): Fix return type.
67457
67458 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67459
67460         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67461
67462 2006-10-02  Eric Blake  <ebb9@byu.net>
67463
67464         * modules/strnlen (Depends-on): Add extensions.
67465
67466 2006-10-02  Eric Blake  <ebb9@byu.net>
67467
67468         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67469         definition in 2.60+.
67470
67471 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67472
67473         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67474         checks.
67475
67476 2006-10-02  Bruno Haible  <bruno@clisp.org>
67477
67478         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67479         to the AUTOMAKE_OPTIONS.
67480         Reported by Jim Meyering.
67481
67482 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67483
67484         Work around bug in Solaris 10 /proc file system:
67485         /proc/self/fd/NNN/.. isn't the parent directory of
67486         the directory whose file descriptor is NNN.  This needs to
67487         be worked around at run time, not compile time, since a
67488         program might be built on Solaris 8, where things work, and
67489         run on Solaris 10.
67490         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67491         to use the following interface instead:
67492         (OPENAT_BUFFER_SIZE): New macro.
67493         (openat_proc_name): New function.
67494         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67495         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67496         Likewise.
67497         * lib/openat-proc.c: New file.
67498         * modules/openat (Files): Add lib/openat-proc.c.
67499         (Depends-on): Add same-inode, stdbool.
67500         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67501
67502 2006-09-29  Bruno Haible  <bruno@clisp.org>
67503
67504         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67505         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67506         argument. Set stdout_closed before testing for ferror, not after.
67507         (fwriteerror, fwriteerror_no_ebadf): New functions.
67508
67509 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67510
67511         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67512
67513 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67514
67515         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67516         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67517
67518 2006-09-28  Jim Meyering  <jim@meyering.net>
67519
67520         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67521         Include <unistd.h>.
67522
67523 2006-09-28  Bruno Haible  <bruno@clisp.org>
67524
67525         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67526         * modules/linkedhash-list (Depends-on): Likewise.
67527         * modules/rbtreehash-list (Depends-on): Likewise.
67528
67529 2006-09-28  Bruno Haible  <bruno@clisp.org>
67530
67531         * lib/strndup.h: Simplify the redefinition of strndup.
67532         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67533         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67534
67535 2006-09-28  Bruno Haible  <bruno@clisp.org>
67536
67537         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67538         * lib/gl_linkedhash_list.c: Likewise.
67539         * lib/gl_rbtreehash_list.c: Likewise.
67540
67541 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67544         getaddrinfo.
67545
67546         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67547         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67548         it causes <stdio_ext.h> to cause a compile-time error.
67549         Problem reported by Nelson H. F. Beebe.
67550         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67551         of HAVE_DECL___PENDING.
67552
67553         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67554         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67555         declaration.
67556
67557 2006-09-27  Jim Meyering  <jim@meyering.net>
67558
67559         This file could end up with a definition for a function
67560         named __strndup, rather than rpl_strndup on a system with
67561         incomplete weak_alias support.
67562         * lib/strndup.c (strndup): Rename from __strndup.
67563         Remove #defines that used to map __strndup to strndup.
67564         Don't use K&R prototypes.
67565         Remove LIBC-related code, since this file is not sync'd with glibc.
67566         * lib/strndup.h: Revamp, accordingly.
67567         * m4/strndup.m4: Modernize.
67568
67569 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67570
67571         * modules/savewd (Depends-on): Add 'raise'.
67572         * lib/savewd.c: Include <signal.h>, for 'raise'.
67573
67574 2006-09-26  Jim Meyering  <jim@meyering.net>
67575
67576         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67577         when we detect Darwin 8.7.0's acl_get_file bug.
67578         Rearrange to perform the new (below) run-test while $LIBS
67579         contains any acl-related library.  Set USE_ACL at the end.
67580         (gl_ACL_GET_FILE): New function.
67581
67582 2006-09-26  Eric Blake  <ebb9@byu.net>
67583
67584         * lib/verror.c: Include <config.h> unconditionally.
67585
67586 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67587
67588         * modules/clock-time (Maintainer): Add self.
67589         * modules/getlogin_r (Depends-on): Add extensions.
67590
67591 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67592
67593         * modules/clock-time: New module.
67594         * modules/nanosleep (Depends-on): Add clock-time.
67595         * modules/gethrxtime (Depends-on): Likewise.
67596         * modules/gettime (Depends-on): Likewise.
67597         * modules/settime (Depends-on): Likewise.
67598
67599         * modules/fts-lgpl: Depend on openat.
67600         * modules/mkancesdirs: Depend on savewd.
67601         * modules/mkdir-p: Likewise.
67602
67603 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67604
67605         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67606
67607         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67608         `gl_have_arbitrary_file_name_length_limit' to
67609         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67610         actually works between configure runs.
67611
67612 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67613             Bruno Haible  <bruno@clisp.org>
67614
67615         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67616
67617 2006-09-25  Jim Meyering  <jim@meyering.net>
67618
67619         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67620         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67621
67622 2006-09-25  Eric Blake  <ebb9@byu.net>
67623
67624         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67625         exec's in 2006-09-18 patch when shuffling fds.
67626
67627 2006-09-25  Bruno Haible  <bruno@clisp.org>
67628
67629         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67630         Reported by Jim Meyering.
67631
67632 2006-09-24  Jim Meyering  <jim@meyering.net>
67633
67634         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67635         compare a pointer against a literal "0".  That caused failures with
67636         at least HP-UX's hpcc.
67637
67638 2006-09-22  Simon Josefsson  <jas@extundo.com>
67639
67640         * modules/gc-sha1:
67641         * modules/gc-md4:
67642         * modules/gc-hmac-sha1:
67643         * modules/gc-hmac-md5:
67644         * modules/gc-des:
67645         * modules/gc-arcfour: Distribute more files.
67646
67647 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67648
67649         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67650         (gl_linked_iterator_from_to): Initialize struct completely.
67651         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67652         (gl_tree_iterator_from_to): Likewise
67653         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67654         * lib/gl_array_list.c [lint] (gl_array_iterator)
67655         (gl_array_iterator_from_to): Likewise.
67656         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67657         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67658         (gl_carray_iterator_from_to): Likewise.
67659
67660         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67661         * lib/md4.c (md4_process_block): Remove unused variable.
67662         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67663         parentheses for clarity.
67664
67665 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67666
67667         * modules/bison-i18n (Depends-on): Add gettext.
67668
67669 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67670
67671         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67672         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67673         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67674         also add missing comma that caused broken test.
67675         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67676         stdlib.h, for `abort'.
67677         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67678         variables.
67679         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67680         include unistd.h if present, for `rmdir'.
67681         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67682         variables.
67683         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67684         in the process include standard headers for prototypes.
67685         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67686         gets declared on GNU/Linux.
67687         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67688         unistd.h, for `rmdir'.
67689         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67690
67691         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67692         always true.
67693         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67694
67695         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67696
67697 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67698
67699         * gnulib-tool (func_version): Create output all at once.  This
67700         may help avoid triggering unnecessary SIGPIPEs, and at any
67701         rate it doesn't hurt.
67702
67703 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67704             Bruno Haible  <bruno@clisp.org>
67705
67706         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67707         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67708         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67709
67710         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67711         (gl_FUNC_VASPRINTF): Invoke it.
67712
67713 2006-09-22  Bruno Haible  <bruno@clisp.org>
67714
67715         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67716         getloadavg.c as first argument.
67717
67718 2006-09-22  Bruno Haible  <bruno@clisp.org>
67719
67720         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67721         at the beginning of the gl_INIT macro.
67722         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67723         gl_GETLOADAVG.
67724
67725 2006-09-22  Bruno Haible  <bruno@clisp.org>
67726
67727         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67728         module.
67729         Suggested by Ralf Wildenhues.
67730
67731 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67732
67733         Import this patch from libc:
67734
67735         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67736
67737         * lib/regex_internal.c (re_string_reconstruct): Handle
67738         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67739         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67740         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67741         re_string_context_at.
67742
67743         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67744         now requires it.
67745         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67746         gl_REGEX now does it for us.
67747         (gl_REGEX): Add test taken from
67748         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67749
67750         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67751         Check that large offsets work.  Modernize Autoconf usages.
67752         Prefer "yes" to mean a good thing rather than a bad.
67753         Don't put "#define mkstemp" in config.h, as this might interfere
67754         with standard system headers that "#define mkstemp mkstemp64".
67755
67756         * modules/mkstemp (Depends-on): Add extensions, so that
67757         mkstemp is visible on some platforms.
67758         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67759         (Include): Change to "mkstemp.h" from <stdlib.h>.
67760         (Files): Add mkstemp.h.
67761
67762         * lib/mkstemp.h: New file, since some standard headers
67763         #define mkstemp.
67764         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67765         Include "mkstemp.h".
67766         Make the _LIBC code resemble glibc original more,
67767         e.g., use K&R style.
67768         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67769         (mkstemp): Remove, since mkstemp.h does this for us.
67770         * lib/stdlib--.h: Include mkstemp.h.
67771
67772         Import this patch from libc:
67773
67774         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67775
67776         * lib/tempname.c (__gen_tempname): Change attempts_min
67777         into a macro.  Use preprocessor to decide how to initialize
67778         attempts [Coverity CID 67].
67779
67780 2006-09-20  Bruno Haible  <bruno@clisp.org>
67781
67782         * lib/mkdtemp.c: Import from libc.
67783         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67784                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67785                 attempts_min into a macro.  Use preprocessor to decide how to
67786                 initialize attempts [Coverity CID 67].
67787         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67788                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67789                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67790
67791 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67792
67793         * gnulib-tool (func_exit): New function, to allow to pass the
67794         exit status portably through the trap.  Use everywhere.
67795         (--help, --version): Signal a write error.
67796         (trap): catch SIGPIPE, for write errors.
67797         Exit at the end of the trap, with the correct exit status.
67798
67799 2006-09-19  Karl Berry  <karl@gnu.org>
67800
67801         * doc/gnulib.texi: note about the license texinfo files.
67802
67803 2006-09-19  Eric Blake  <ebb9@byu.net>
67804
67805         * gnulib-tool: Avoid space-tab.
67806
67807 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67808
67809         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67810         that prevented coreutils 6.1 from building.  Problem reported
67811         by Petter Reinholdtsen.
67812
67813 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67814
67815         * gnulib-tool (avoidlist): Fix typo that broke options like
67816         --avoid=lock that are used by coreutils bootstrap.
67817
67818 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67819
67820         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67821         more systematically.
67822
67823 2006-09-18  Jim Meyering  <jim@meyering.net>
67824
67825         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67826
67827 2006-09-18  Bruno Haible  <bruno@clisp.org>
67828
67829         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67830
67831 2006-09-18  Bruno Haible  <bruno@clisp.org>
67832
67833         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67834         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67835         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67836         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67837         * m4/gettext.m4: Require autoconf >= 2.52.
67838         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67839         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67840         of gl_cv_header_inttypes_h.
67841
67842 2006-09-18  Bruno Haible  <bruno@clisp.org>
67843
67844         * lib/javaversion.c: Include configmake.h.
67845
67846 2006-09-18  Bruno Haible  <bruno@clisp.org>
67847
67848         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67849         avoid that the while loops be executed in a subshell.
67850
67851 2006-09-18  Bruno Haible  <bruno@clisp.org>
67852
67853         * MODULES.html.sh (func_module): Break long lines.
67854         Suggested by Bruce Korb <bkorb@gnu.org>.
67855
67856 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67857
67858         Speed up by a factor of 1.12.
67859         * gnulib-tool (nl): New variable.
67860         (func_import): Rewrite include directive extraction to only read each
67861         directive once.
67862
67863 2006-09-17  Bruno Haible  <bruno@clisp.org>
67864
67865         * modules/javaversion (Makefile.am): Remove DEFS setting.
67866         (Depends-on): Add configmake, for PKGDATADIR definition.
67867
67868 2006-09-17  Bruno Haible  <bruno@clisp.org>
67869
67870         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67871
67872 2006-09-17  Bruno Haible  <bruno@clisp.org>
67873
67874         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67875         (func_modules_transitive_closure, func_modules_add_dummy,
67876         func_modules_to_filelist, func_import, func_create_testdir,
67877         func_create_megatestdir, ...): Use it wherever possible.
67878         Suggested by Ralf Wildenhues.
67879
67880 2006-09-16  Karl Berry  <karl@gnu.org>
67881
67882         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67883         to avoid sectioning errors.
67884         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67885         [ifinfo]: blank line after @center-ed titles.
67886         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67887         Spell FSF address consistently with others.
67888         (These changes approved by rms.)
67889
67890 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67891
67892         Speed up by a factor of 1.61.
67893         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67894         already checked module names again.
67895
67896 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67897
67898         Speed up by a factor of 1.13.
67899         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67900         for new_files, and the input to func_add_or_update.
67901
67902 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67903
67904         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67905         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67906
67907 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         * modules/mkancesdirs (Depends-on): Add fcntl.
67910         * modules/savewd: New file.
67911         * MODULES.html.sh (File system functions): Add savewd.
67912
67913         * modules/configmake (Makefile.am): Add support for the
67914         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67915
67916 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * m4/savewd.m4: New file.
67919
67920 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67923         (dirchownmod): New arg FD.  All callers changed.
67924         Use FD rather than opening the directory ourself, as opening is
67925         now the caller's responsibility.
67926         * lib/dirchownmod.h: Likewise.
67927         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67928         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67929         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67930         (test_dir): Remove.
67931         (mkancesdirs): Return length of prefix of FILE that has already
67932         been made, or -2 if there is a child doing the work.  Redo
67933         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67934         ".", and treat ".." specially since it might stray back into
67935         already-created areas.  Use a subprocess if necessary.  New arg
67936         WD; all users changed.  MAKE_DIR function should now return 1
67937         if it creates a directory that is not readable.  Return -2 if
67938         a child process is spun off.
67939         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67940         Adjust signature to match code.
67941         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67942         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67943         all users changed.
67944         * lib/savewd.c, lib/savewd.h: New files.
67945
67946 2006-09-15  Jim Meyering  <jim@meyering.net>
67947
67948         * modules/rename-dest-slash: New module.
67949         * MODULES.html.sh (posix_compat): Add it here.
67950
67951         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67952
67953 2006-09-15  Jim Meyering  <jim@meyering.net>
67954
67955         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67956         file.
67957
67958         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67959
67960 2006-09-15  Jim Meyering  <jim@meyering.net>
67961
67962         * lib/rename-dest-slash.c (has_trailing_slash): Use
67963         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67964         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67965         test before testing whether SRC is a directory.
67966         Suggestions from Bruno Haible.
67967
67968         Avoid a warning about an unused variable.
67969         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67970         into the #ifdef block where it's used.
67971
67972         * lib/rename-dest-slash.c: New file.
67973
67974 2006-09-14  Bruno Haible  <bruno@clisp.org>
67975
67976         * lib/allocsa.c: Include <config.h> unconditionally.
67977         * lib/asnprintf.c: Likewise.
67978         * lib/asprintf.c: Likewise.
67979         * lib/c-strcasecmp.c: Likewise.
67980         * lib/c-strcasestr.c: Likewise.
67981         * lib/c-strncasecmp.c: Likewise.
67982         * lib/c-strstr.c: Likewise.
67983         * lib/classpath.c: Likewise.
67984         * lib/clean-temp.c: Likewise.
67985         * lib/concatpath.c: Likewise.
67986         * lib/copy-file.c: Likewise.
67987         * lib/csharpcomp.c: Likewise.
67988         * lib/csharpexec.c: Likewise.
67989         * lib/execute.c: Likewise.
67990         * lib/fatal-signal.c: Likewise.
67991         * lib/findprog.c: Likewise.
67992         * lib/fwriteerror.c: Likewise.
67993         * lib/gl_array_list.c: Likewise.
67994         * lib/gl_array_oset.c: Likewise.
67995         * lib/gl_avltree_list.c: Likewise.
67996         * lib/gl_avltree_oset.c: Likewise.
67997         * lib/gl_avltreehash_list.c: Likewise.
67998         * lib/gl_carray_list.c: Likewise.
67999         * lib/gl_linked_list.c: Likewise.
68000         * lib/gl_linkedhash_list.c: Likewise.
68001         * lib/gl_list.c: Likewise.
68002         * lib/gl_oset.c: Likewise.
68003         * lib/gl_rbtree_list.c: Likewise.
68004         * lib/gl_rbtree_oset.c: Likewise.
68005         * lib/gl_rbtreehash_list.c: Likewise.
68006         * lib/imaxabs.c: Likewise.
68007         * lib/imaxdiv.c: Likewise.
68008         * lib/javacomp.c: Likewise.
68009         * lib/javaexec.c: Likewise.
68010         * lib/javaversion.c: Likewise.
68011         * lib/linebreak.c: Likewise.
68012         * lib/localcharset.c: Likewise.
68013         * lib/lock.c: Likewise.
68014         * lib/mbchar.c: Likewise.
68015         * lib/mbswidth.c: Likewise.
68016         * lib/mkdtemp.c: Likewise.
68017         * lib/pipe.c: Likewise.
68018         * lib/printf-args.c: Likewise.
68019         * lib/printf-parse.c: Likewise.
68020         * lib/progname.c: Likewise.
68021         * lib/progreloc.c: Likewise.
68022         * lib/readlink.c: Likewise.
68023         * lib/sh-quote.c: Likewise.
68024         * lib/stpcpy.c: Likewise.
68025         * lib/stpncpy.c: Likewise.
68026         * lib/strcasecmp.c: Likewise.
68027         * lib/strcasestr.c: Likewise.
68028         * lib/strcspn.c: Likewise.
68029         * lib/striconv.c: Likewise.
68030         * lib/strncasecmp.c: Likewise.
68031         * lib/strnlen1.c: Likewise.
68032         * lib/strstr.c: Likewise.
68033         * lib/strtok_r.c: Likewise.
68034         * lib/tls.c: Likewise.
68035         * lib/tmpdir.c: Likewise.
68036         * lib/unicodeio.c: Likewise.
68037         * lib/unsetenv.c: Likewise.
68038         * lib/vasnprintf.c: Likewise.
68039         * lib/vasprintf.c: Likewise.
68040         * lib/wait-process.c: Likewise.
68041         * lib/xallocsa.c: Likewise.
68042         * lib/xsetenv.c: Likewise.
68043         * lib/xstriconv.c: Likewise.
68044
68045 2006-09-13  Simon Josefsson  <jas@extundo.com>
68046
68047         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68048         that internally, suggested by Ralf Wildenhues
68049         <Ralf.Wildenhues@gmx.de>.
68050
68051 2006-09-13  Simon Josefsson  <jas@extundo.com>
68052
68053         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68054         @LIBOBJS@.
68055         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68056
68057 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68058
68059         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68060         longer worry about uses that don't define HAVE_CONFIG_H.
68061         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68062         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68063         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68064         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68065         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68066         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68067         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68068         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68069         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68070         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68071         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68072         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68073         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68074         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68075         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68076         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68077         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68078         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68079         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68080         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68081         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68082         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68083         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68084         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68085         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68086         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68087         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68088         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68089         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68090         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68091         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68092         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68093         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68094         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68095         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68096         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68097         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68098         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68099         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68100         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68101         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68102         Likewise.
68103
68104 2006-09-13  Eric Blake  <ebb9@byu.net>
68105
68106         * lib/getopt.c: Fix typo in last commit.
68107
68108 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68109
68110         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68111         dgettext.
68112
68113 2006-09-12  Jim Meyering  <jim@meyering.net>
68114
68115         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68116         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68117         Reported by Nelson H. F. Beebe.
68118
68119 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68120
68121         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68122         program_invocation_name and program_invocation_short_name are
68123         initialized.
68124         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68125         and program_invocation_short_name to argp.h, so they are visible
68126         to user programs.
68127         * lib/argp.h: Likewise
68128
68129 2006-09-10  Bruno Haible  <bruno@clisp.org>
68130
68131         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68132         m4/inttypes_h.m4, m4/uintmax_t.m4.
68133
68134 2006-09-10  Bruno Haible  <bruno@clisp.org>
68135
68136         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68137         gl_AC_TYPE_UINTMAX_T.
68138
68139 2006-09-10  Bruno Haible  <bruno@clisp.org>
68140
68141         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68142
68143 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68144
68145         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68146         convention.  Text proposed by Bruno Haible.
68147         (struct argp_option): Document the use of N_() wrappers.
68148
68149         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68150         '\v', and translate the two parts separately, instead of feeding
68151         the whole string to gettext.  This allows to exclude
68152         '\v' from the strings visible to the translator by writing doc
68153         strings as N_("..") "\v" N_("..").
68154
68155 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68156
68157         * config/srclist.txt: Undo latest change; the bug was fixed.
68158
68159 2006-09-09  Bruno Haible  <bruno@clisp.org>
68160
68161         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68162         assignments if building a library without libtool.
68163         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68164         in func_emit_lib_Makefile_am.
68165         (func_import): When building a static library libfoo.a, arrange to
68166         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68167         (func_create_testdir): Likewise.
68168         * modules/gc (configure.ac, Makefile.am): If building statically,
68169         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68170         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68171         * modules/striconv (configure.ac, Makefile.am): Likewise.
68172         Based on a suggestion by Ralf Wildenhues.
68173
68174 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68175
68176         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68177         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68178         Also:
68179
68180         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68181         Add year_2050_test to catch glibc bug 2821
68182         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68183
68184         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68185         Prefer #ifdef to #if.
68186
68187         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68188         Return from 'main' instead of calling 'exit'.
68189
68190 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68191
68192         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68193         returned the maximum time_t value rather than (time_t) -1.
68194         Problem originally reported by William Bardwell
68195         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68196
68197         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68198         Moved to here ...
68199         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68200         ... from here.
68201
68202 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68203
68204         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68205         2821 is fixed.
68206
68207 2006-09-08  Jim Meyering  <jim@meyering.net>
68208
68209         Don't make generated files read-only.  That would bother too many
68210         people.  However, do retain the ability to work when targets are
68211         read-only: remove the destination and temporary files before writing
68212         them (when generated via sed or echo), or by using the -f option for
68213         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68214         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68215         * modules/byteswap, modules/configmake, modules/fcntl:
68216         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68217         * modules/localcharset, modules/netinet_in, modules/poll:
68218         * modules/stdbool, modules/stdint, modules/sys_select:
68219         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68220
68221 2006-09-08  Jim Meyering  <jim@meyering.net>
68222
68223         Avoid new build failure on FreeBSD 6.0.
68224         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68225         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68226         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68227
68228 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68229
68230         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68231
68232 2006-09-07  Jim Meyering  <jim@meyering.net>
68233
68234         Fix global typo in last change: use chmod u-w, not chmod u-x.
68235         Spotted by Paul Eggert and Bruce Korb.
68236         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68237         * modules/byteswap, modules/configmake, modules/fcntl:
68238         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68239         * modules/localcharset, modules/netinet_in, modules/poll:
68240         * modules/stdbool, modules/stdint, modules/sys_select:
68241         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68242
68243 2006-09-06  Jim Meyering  <jim@meyering.net>
68244
68245         Make generated files be read-only.
68246         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68247         Ensure that each generated file is now read-only.
68248         * modules/argz: Likewise.
68249         * modules/arpa_inet: Likewise.
68250         * modules/byteswap: Likewise.
68251         * modules/configmake: Likewise.
68252         * modules/fcntl: Likewise.
68253         * modules/fnmatch: Likewise.
68254         * modules/getopt: Likewise.
68255         * modules/glob: Likewise.
68256         * modules/inttypes: Likewise.
68257         * modules/netinet_in: Likewise.
68258         * modules/poll: Likewise.
68259         * modules/stdbool: Likewise.
68260         * modules/stdint: Likewise.
68261         * modules/sys_select: Likewise.
68262         * modules/sys_socket: Likewise.
68263         * modules/sys_stat: Likewise.
68264         * modules/sysexits: Likewise.
68265         * modules/localcharset: Same as above, but continue using temporary
68266         file named "t-$@" (why different?) rather than the "$@-t" used
68267         everywhere else.
68268
68269         * modules/sysexits (Makefile.am): Replace literal occurrences
68270         of "sysexit.h" more readable, and more consistent, "$@".
68271
68272 2006-09-06  Bruno Haible  <bruno@clisp.org>
68273
68274         * modules/striconv: New file.
68275         * modules/xstriconv: New file.
68276         * MODULES.html.sh (Internationalization functions): Add striconv,
68277         xstriconv.
68278
68279 2006-09-06  Bruno Haible  <bruno@clisp.org>
68280
68281         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68282         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68283         not using libtool correctly.
68284
68285 2006-09-06  Bruno Haible  <bruno@clisp.org>
68286
68287         * lib/striconv.h: New file.
68288         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68289         iconvstring.c.
68290         * lib/xstriconv.h: New file.
68291         * lib/xstriconv.c: New file.
68292
68293 2006-09-06  Bruno Haible  <bruno@clisp.org>
68294
68295         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68296         lib_..._LDFLAGS.
68297
68298 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68299
68300         * lib/argz_.h: Sync from Libtool.
68301
68302         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68303                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68304
68305         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68306
68307 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68308
68309         * modules/trim: New file.
68310
68311 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68312
68313         * lib/trim.h: New file.
68314         * lib/trim.c: New file.
68315
68316 2006-09-05  Bruno Haible  <bruno@clisp.org>
68317
68318         * MODULES.html.sh (String handling): Add trim.
68319
68320 2006-09-04  Karl Berry  <karl@gnu.org>
68321
68322         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68323         until next release.
68324
68325 2006-09-03  Bruno Haible  <bruno@clisp.org>
68326
68327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68328         correctly.
68329
68330 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68333         not gl_GETLOADAVG.  Omit unneeded semicolons.
68334         Problems reported by Ralf Wildenhues in
68335         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68336         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68337         at the end, which is the usual gnulib style.
68338
68339         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68340         of doing all the work ourselves.
68341         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68342         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68343
68344 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68345
68346         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68347         Problem reported by Ralf Wildenhues in
68348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68349
68350         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68351         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68352
68353 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68354
68355         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68356         yesterday's patch by changing test -n to test -z.
68357
68358 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68361         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68362         the former is now obsolescent.
68363
68364         * modules/chdir-long (Depends-on): Add fcntl.
68365
68366 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68367
68368         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68369         obsolescent, and programs should use gnulib instead.
68370         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68371         but with prefixes changed.
68372
68373 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68374
68375         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68376         or stdbool.h, because they might not exist while configuring.
68377
68378         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68379         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68380         does that for us.
68381         (O_DIRECTORY): Remove.
68382
68383 2006-08-31  Eric Blake  <ebb9@byu.net>
68384
68385         * gnulib-tool: Don't let emacs change spaces to TAB.
68386
68387 2006-08-31  Bruno Haible  <bruno@clisp.org>
68388
68389         * gnulib-tool: When calling func_import more than once, do it in a
68390         subshell.
68391         Reported by Eric Blake <ebb9@byu.net>.
68392
68393 2006-08-31  Bruno Haible  <bruno@clisp.org>
68394
68395         * gnulib-tool (nl): Remove variable.
68396         (sed_transform_lib_file): Use more robust test for config-h module.
68397         (func_import): Fix typo in 2006-08-25 patch.
68398
68399 2006-08-31  Bruno Haible  <bruno@clisp.org>
68400
68401         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68402         specified, augment Makefile.am variables instead of assigning them.
68403
68404 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68405
68406         Work around a bug in both the Linux and SunOS 64-bit kernels:
68407         nanosleep mishandles sleeps for longer than 2**31 seconds.
68408         Problem reported by Frank v Waveren in
68409         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68411         Check for nanosleep bug.
68412         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68413
68414 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68415
68416         Work around a bug in both the Linux and SunOS 64-bit kernels:
68417         nanosleep mishandles sleeps for longer than 2**31 seconds.
68418         Problem reported by Frank v Waveren in
68419         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68420         * lib/nanosleep.c (BILLION): New constant.
68421         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68422         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68423         implementation.
68424
68425 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68426
68427         * modules/nanosleep (Depends-on): Add gettime.
68428
68429 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68430         and Simon Josefsson  <jas@extundo.com>
68431         and Oskar Liljeblad  <oskar@osk.mine.nu>
68432
68433         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68434         * gnulib-tool (func_import): New license type 'unmodifiable license
68435         text'.
68436         * modules/fdl: Use it.  Longer description.
68437         * module/gpl, module/lgpl: New files.
68438
68439 2006-08-30  Jim Meyering  <jim@meyering.net>
68440
68441         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68442         shadowing the parameter.
68443
68444 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68445
68446         Sync from Libtool:
68447
68448         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68449
68450         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68451         sharing with gnulib.  Report by Eric Blake.
68452
68453 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68454
68455         * modules/isapipe: New file.
68456         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68457
68458 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         * modules/configmake (Makefile.am): Add a comment, and omit
68461         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68462         by Bruno Haible.
68463
68464 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68465
68466         * m4/isapipe.m4: New file.
68467
68468 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68469
68470         * lib/isapipe.c, lib/isapipe.h: New files.
68471
68472 2006-08-29  Jim Meyering  <jim@meyering.net>
68473
68474         * modules/configmake (Makefile.am): Make configmake.h depend on
68475         Makefile.  Otherwise, a stale configmake.h could hang around.
68476
68477 2006-08-29  Eric Blake  <ebb9@byu.net>
68478
68479         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68480         resolution of upstream bug 3044.
68481
68482 2006-08-29  Bruno Haible  <bruno@clisp.org>
68483
68484         * modules/localcharset (Depends-on): Add configmake.
68485         (Makefile.am): Remove setting of LIBDIR through DEFS.
68486
68487 2006-08-29  Bruno Haible  <bruno@clisp.org>
68488
68489         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68490         defined.
68491
68492 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68493
68494         * modules/fcntl: New file.
68495         * modules/chdir-safer (Depends-on): Add fcntl.
68496         * modules/fts: Likewise.
68497         * modules/mkdir-p: Likewise.
68498
68499         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68500         This undoes the most recent change, since we're now addressing the
68501         problem in a different way.
68502
68503         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68504         into output, since the output might be called Makefile.am even
68505         if $makefile_name is something different.
68506         (func_import): Use $makefile_am rather than
68507         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68508         empty.
68509
68510         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68511
68512 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68515         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68516         recent change to stdint.m4, since we're now addressing the problem in a
68517         different way.
68518
68519 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68520
68521         * m4/fcntl_h.m4: New file.
68522
68523 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         * lib/fcntl_.h: New file.
68526         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68527         the fcntl module.
68528         * lib/dirchownmod.c: Likewise.
68529         * lib/fts.c: Likewise.
68530
68531         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68532         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68533         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68534         just before including <inttypes.h>, to avoid circular inclusion.
68535
68536 2006-08-28  Jim Meyering  <jim@meyering.net>
68537
68538         * doc/visibility.texi: Actually read and correct the grammar of the
68539         sentence affected by yesterday's change.
68540
68541 2006-08-28  Eric Blake  <ebb9@byu.net>
68542
68543         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68544         needs wrapper.
68545
68546 2006-08-28  Eric Blake  <ebb9@byu.net>
68547
68548         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68549
68550 2006-08-28  Eric Blake  <ebb9@byu.net>
68551
68552         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68553
68554 2006-08-28  Bruno Haible  <bruno@clisp.org>
68555
68556         * modules/c-strstr: New file, from GNU gettext.
68557         * MODULES.html.sh (String handling): Add c-strstr.
68558
68559 2006-08-28  Bruno Haible  <bruno@clisp.org>
68560
68561         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68562         macros.
68563         Reported by Eric Blake.
68564
68565 2006-08-28  Bruno Haible  <bruno@clisp.org>
68566
68567         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68568         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68569         * lib/vasprintf.c: Include errno.h, limits.h.
68570         (EOVERFLOW): New fallback definition.
68571         (vasprintf): Test here whether the string length is > INT_MAX.
68572         * lib/vsnprintf.c: Include errno.h, limits.h.
68573         (EOVERFLOW): New fallback definition.
68574         (vsnprintf): Fix bug when generated string was too long for the buffer.
68575         Test here whether the string length is > INT_MAX.
68576
68577 2006-08-28  Bruno Haible  <bruno@clisp.org>
68578
68579         * lib/inttypes_.h (SCNX*): Remove definitions.
68580         Reported by Eric Blake.
68581
68582 2006-08-28  Bruno Haible  <bruno@clisp.org>
68583
68584         * lib/c-strstr.h: New file, from GNU gettext.
68585         * lib/c-strstr.c: New file, from GNU gettext.
68586
68587 2006-08-28  Bruno Haible  <bruno@clisp.org>
68588
68589         * gnulib-tool: Reorder some statements.
68590
68591 2006-08-28  Bruno Haible  <bruno@clisp.org>
68592
68593         * gnulib-tool: New option --makefile-name.
68594         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68595         $makefile_name.
68596         (func_import): Write $makefile_name to the cache file, and read it from
68597         there unless explicitly specified. Use $makefile_name as file name
68598         instead of Makefile.am. Adjust the recommendations accordingly.
68599
68600 2006-08-28  Bruno Haible  <bruno@clisp.org>
68601
68602         * gnulib-tool (func_verify_module): Check against misapplying patch.
68603
68604 2006-08-28  Bruno Haible  <bruno@clisp.org>
68605
68606         * gnulib-tool (func_relativize, func_relconcat): New functions.
68607         Give an error if --local-dir is given with --update.
68608         Remove trailing slashes from $local_gnulib_dir.
68609         (func_import): Store the relativized $local_gnulib_dir in
68610         gnulib-cache.m4, and read it from there if not specified explicitly.
68611
68612 2006-08-28  Bruno Haible  <bruno@clisp.org>
68613
68614         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68615         is the current directory. Respect also $local_gnulib_dir.
68616
68617 2006-08-28  Bruno Haible  <bruno@clisp.org>
68618             Simon Josefsson  <jas@extundo.com>
68619
68620         BeOS portability.
68621         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68622
68623 2006-08-27  Jim Meyering  <jim@meyering.net>
68624
68625         * doc/visibility.texi: Remove duplicate word: "pointer".
68626
68627 2006-08-26  Bruno Haible  <bruno@clisp.org>
68628
68629         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68630         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68631         (Makefile.am): Create inttypes.h from inttypes_.h.
68632         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68633
68634         * modules/imaxabs: New file.
68635
68636         * modules/imaxdiv: New file.
68637
68638 2006-08-26  Bruno Haible  <bruno@clisp.org>
68639
68640         * m4/inttypes.m4: New file.
68641         * m4/_inttypes_h.m4: Remove file.
68642         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68643         PRI_MACROS_BROKEN.
68644         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68645
68646         * m4/imaxabs.m4: New file.
68647
68648         * m4/imaxdiv.m4: New file.
68649
68650 2006-08-26  Bruno Haible  <bruno@clisp.org>
68651
68652         * lib/inttypes_.h: New file.
68653         * lib/inttypes.h: Remove file.
68654         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68655
68656         * lib/imaxabs.c: New file.
68657
68658         * lib/imaxdiv.c: New file.
68659
68660 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68661
68662         New config-h module, so that "make" output needn't be cluttered
68663         by -DHAVE_CONFIG_H.
68664         * MODULES.html.sh (Support for building libraries and executables):
68665         Add config-h.
68666         * modules/config-h: New file.
68667         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68668         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68669         the config-h module is used.
68670
68671         New configmake module, so that "make" output needn't be cluttered
68672         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68673         * MODULES.html.sh (Support for building libraries and executables):
68674         Add configmake.
68675         * modules/configmake: New file.
68676
68677 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         * m4/config-h.m4: New file.
68680
68681 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68682
68683         * config/srclist.txt: Add elisp-comp.
68684
68685 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         * MODULES.html.sh (Support for building libraries and executables):
68688         Add elisp-comp.
68689         * build-aux/elisp-comp: New file.
68690         * modules/elisp-comp: New file.
68691
68692 2006-08-24  Bruno Haible  <bruno@clisp.org>
68693
68694         * gnulib-tool (func_create_testdir): Use non-default values of
68695         sourcebase and m4base.
68696
68697 2006-08-24  Bruno Haible  <bruno@clisp.org>
68698
68699         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68700         HTML structure.
68701
68702 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * modules/openat (Depends-on): Add lchown.
68705
68706 2006-08-23  Bruno Haible  <bruno@clisp.org>
68707
68708         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68709         of gl_LOCK_EARLY instead of gl_LOCK.
68710
68711 2006-08-23  Bruno Haible  <bruno@clisp.org>
68712
68713         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68714         on OSF/1 to no.
68715         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68716
68717 2006-08-23  Bruno Haible  <bruno@clisp.org>
68718
68719         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68720         as unusable.
68721
68722         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68723         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68724         (gl_LOCK): New macro.
68725
68726 2006-08-22  Simon Josefsson  <jas@extundo.com>
68727
68728         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68729         to md5 module.
68730
68731 2006-08-22  Simon Josefsson  <jas@extundo.com>
68732
68733         * MODULES.html.sh: Add "Support for maintaining and release
68734         projects".
68735
68736         * build-aux/gnupload: New file, from coreutils.
68737
68738 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         Avoid the need for AC_LIBSOURCES in m4 macros.
68741         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68742         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68743         * modules/check-version (EXTRA_DIST): Add check-version.h.
68744         * modules/crc (EXTRA_DIST): Add crc.h.
68745         * modules/des (EXTRA_DIST): Add des.h.
68746         * modules/gc (EXTRA_DIST): Add gc.h.
68747         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68748         * modules/getline (EXTRA_DIST): Add getline.h.
68749         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68750         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68751         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68752         * modules/md2 (EXTRA_DIST): Add md2.h.
68753         * modules/md4 (EXTRA_DIST): Add md4.h.
68754         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68755         * modules/read-file (EXTRA_DIST): Add read-file.h.
68756         * modules/readline (EXTRA_DIST): Add readline.h.
68757         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68758         rijndael-api-fst.h.
68759
68760 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68761
68762         * m4/rijndael.m4 (gl_ARCFOUR):
68763         * m4/arctwo.m4 (gl_ARCTWO):
68764         * m4/check-version.m4 (gl_CHECK_VERSION):
68765         * m4/crc.m4 (gl_CRC):
68766         * m4/des.m4 (gl_DES):
68767         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68768         * m4/gc.m4 (gl_GC):
68769         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68770         * m4/getline.m4 (gl_FUNC_GETLINE):
68771         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68772         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68773         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68774         * m4/md2.m4 (gl_MD2):
68775         * m4/md4.m4 (gl_MD4):
68776         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68777         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68778         * m4/readline.m4 (gl_FUNC_READLINE):
68779         * m4/rijndael.m4 (gl_RIJNDAEL):
68780         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68781         to get the necessary .h files and whatnot.
68782
68783 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68784
68785         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68786         gnulib rather than the other way around.
68787         * config/srclistvars.sh (COREUTILS): Remove.
68788
68789 2006-08-22  Jim Meyering  <jim@meyering.net>
68790
68791         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68792
68793         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68794
68795 2006-08-22  Eric Blake  <ebb9@byu.net>
68796
68797         * modules/regexprops-generic: New file.
68798         * MODULES.html.sh (Support for building documentation): List it.
68799
68800 2006-08-22  Eric Blake  <ebb9@byu.net>
68801
68802         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68803         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68804         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68805         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68806
68807 2006-08-22  Bruno Haible  <bruno@clisp.org>
68808
68809         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68810         and lib_LTLIBRARIES like the other lib_* variables.
68811
68812 2006-08-22  Bruno Haible  <bruno@clisp.org>
68813
68814         * build-aux/x-to-1.in: New file, from GNU gettext.
68815
68816 2006-08-22  Bruno Haible  <bruno@clisp.org>
68817
68818         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68819         <utmpx.h> exists.
68820
68821 2006-08-22  Bruno Haible  <bruno@clisp.org>
68822
68823         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68824         <utmpx.h> exists.
68825
68826 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         BeOS portability.
68829         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68830         exist.
68831         Problem reported by Bruno Haible.
68832
68833 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         Avoid the need for AC_LIBSOURCES in m4 macros.
68836         * modules/acl (EXTRA_DIST): Add acl.h.
68837         * modules/argmatch (Files): Add m4/argmatch.m4.
68838         (configure.ac): Add gl_ARGMATCH.
68839         (EXTRA_DIST): Renamed from lib_SOURCES, for
68840         consistency with the other modules.  Remove argmatch.c.
68841         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68842         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68843         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68844         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68845         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68846         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68847         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68848         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68849         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68850         * modules/closeout (EXTRA_DIST): Add closeout.h.
68851         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68852         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68853         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68854         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68855         dirname.h; remove basename.c and stripslash.c.
68856         * modules/exclude (EXTRA_DIST): Add exclude.h.
68857         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68858         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68859         * modules/file-type (EXTRA_DIST): Add file-type.h.
68860         * modules/filemode (EXTRA_DIST): Add filemode.h.
68861         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68862         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68863         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68864         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68865         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68866         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68867         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68868         * modules/getdate (EXTRA_DIST): Add getdate.c.
68869         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68870         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68871         * modules/getpass (EXTRA_DIST): Add getpass.h.
68872         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68873         * modules/group-member (EXTRA_DIST): Add group-member.h.
68874         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68875         * modules/hash (EXTRA_DIST): Add hash.h.
68876         * modules/human (EXTRA_DIST): Add human.h.
68877         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68878         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68879         * modules/lchown (EXTRA_DIST): Add lchown.h.
68880         * modules/long-options (EXTRA_DIST): Add long-options.h.
68881         * modules/lstat (EXTRA_DIST): Add lstat.h.
68882         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68883         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68884         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68885         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68886         * modules/memxor (EXTRA_DIST): Add memxor.h.
68887         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68888         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68889         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68890         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68891         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68892         * modules/physmem (EXTRA_DIST): Add physmem.h.
68893         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68894         * modules/posixver (EXTRA_DIST): Add posixver.h.
68895         * modules/quote (EXTRA_DIST): Add quote.h.
68896         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68897         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68898         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68899         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68900         regex_internal.h regexec.c.
68901         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68902         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68903         * modules/same (EXTRA_DIST): Add same.h.
68904         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68905         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68906         * modules/savedir (EXTRA_DIST): Add savedir.h.
68907         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68908         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68909         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68910         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68911         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68912         * modules/strdup (EXTRA_DIST): Add strdup.h.
68913         * modules/strftime (EXTRA_DIST): Add strftime.h.
68914         * modules/strndup (EXTRA_DIST): Add strndup.h.
68915         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68916         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68917         * modules/time_r (EXTRA_DIST): Add time_r.h.
68918         * modules/timespec (EXTRA_DIST): Add timespec.h.
68919         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68920         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68921         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68922         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68923         * modules/userspec (EXTRA_DIST): Add userspec.h.
68924         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68925         * modules/utimens (EXTRA_DIST): Add utimens.h.
68926         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68927         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68928         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68929         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68930         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68931         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68932         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68933         * modules/yesno (EXTRA_DIST): Add yesno.h.
68934
68935 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68938
68939         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68940         * m4/dev-ino.m4, same-inode.m4: Remove.
68941
68942         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68943         * m4/acl.m4 (AC_FUNC_ACL):
68944         * m4/backupfile.m4 (gl_BACKUPFILE):
68945         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68946         * m4/canon-host.m4 (gl_CANON_HOST):
68947         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68948         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68949         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68950         * m4/cloexec.m4 (gl_CLOEXEC):
68951         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68952         * m4/closeout.m4 (gl_CLOSEOUT):
68953         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68954         * m4/dirname.m4 (gl_DIRNAME):
68955         * m4/exclude.m4 (gl_EXCLUDE):
68956         * m4/exitfail.m4 (gl_EXITFAIL):
68957         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68958         * m4/file-type.m4 (gl_FILE_TYPE):
68959         * m4/filemode.m4 (gl_FILEMODE):
68960         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68961         * m4/fpending.m4 (gl_FUNC_FPENDING):
68962         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68963         * m4/fts.m4 (gl_FUNC_FTS):
68964         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68965         * m4/getdate.m4 (gl_GETDATE):
68966         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68967         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68968         * m4/getpass.m4 (gl_FUNC_GETPASS):
68969         * m4/gettime.m4 (gl_GETTIME):
68970         * m4/getugroups.m4 (gl_GETUGROUPS):
68971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68972         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68973         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68974         * m4/hash.m4 (gl_HASH):
68975         * m4/idcache.m4 (gl_IDCACHE):
68976         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68977         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68978         * m4/long-options.m4 (gl_LONG_OPTIONS):
68979         * m4/lstat.m4 (gl_FUNC_LSTAT):
68980         * m4/md5.m4 (gl_MD5):
68981         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68982         * m4/memcoll.m4 (gl_MEMCOLL):
68983         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68984         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68985         * m4/memxor.m4 (gl_MEMXOR):
68986         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68987         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68988         * m4/modechange.m4 (gl_MODECHANGE):
68989         * m4/mountlist.m4 (gl_MOUNTLIST):
68990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68991         * m4/openat.m4 (gl_FUNC_OPENAT):
68992         * m4/pathmax.m4 (gl_PATHMAX):
68993         * m4/physmem.m4 (gl_PHYSMEM):
68994         * m4/posixtm.m4 (gl_POSIXTM):
68995         * m4/posixver.m4 (gl_POSIXVER):
68996         * m4/quote.m4 (gl_QUOTE):
68997         * m4/quotearg.m4 (gl_QUOTEARG):
68998         * m4/readtokens.m4 (gl_READTOKENS):
68999         * m4/readutmp.m4 (gl_READUTMP):
69000         * m4/regex.m4 (gl_REGEX):
69001         * m4/safe-read.m4 (gl_SAFE_READ):
69002         * m4/safe-write.m4 (gl_SAFE_WRITE):
69003         * m4/same.m4 (gl_SAME):
69004         * m4/save-cwd.m4 (gl_SAVE_CWD):
69005         * m4/savedir.m4 (gl_SAVEDIR):
69006         * m4/settime.m4 (gl_SETTIME):
69007         * m4/sha1.m4 (gl_SHA1):
69008         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69009         * m4/stat-macros.m4 (gl_STAT_MACROS):
69010         * m4/stat-time.m4 (gl_STAT_TIME):
69011         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69012         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69013         * m4/strdup.m4 (gl_FUNC_STRDUP):
69014         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69015         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69016         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69017         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69018         * m4/time_r.m4 (gl_TIME_R):
69019         * m4/timespec.m4 (gl_TIMESPEC):
69020         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69021         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69022         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69023         * m4/userspec.m4 (gl_USERSPEC):
69024         * m4/utimecmp.m4 (gl_UTIMECMP):
69025         * m4/utimens.m4 (gl_UTIMENS):
69026         * m4/xalloc.m4 (gl_XALLOC):
69027         * m4/xgetcwd.m4 (gl_XGETCWD):
69028         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69029         * m4/xreadlink.m4 (gl_XREADLINK):
69030         * m4/xstrtod.m4 (gl_XSTRTOD):
69031         * m4/yesno.m4 (gl_YESNO):
69032         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69033         to get the necessary .h files and whatnot.
69034
69035 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69036             Bruno Haible  <bruno@clisp.org>
69037
69038         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69039         /bin/sh understanding of '!' conditional negation.
69040
69041 2006-08-21  Jim Meyering  <jim@meyering.net>
69042
69043         * modules/openat (Depends-on): Really alphabetize.
69044
69045         * modules/acl (Depends-on): Add error and quote.
69046
69047         * check-module (find_included_lib_files): Add at-func.c to the
69048         ok-to-include-more-than-once white list.
69049
69050         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69051
69052 2006-08-21  Bruno Haible  <bruno@clisp.org>
69053
69054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69055         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69056         Reported by Martin Lambers <marlam@marlam.de>.
69057
69058 2006-08-21  Bruno Haible  <bruno@clisp.org>
69059
69060         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69061         specify an installation location, don't emit a noinst_LIBRARIES or
69062         noinst_LTLIBRARIES assignment.
69063
69064 2006-08-21  Bruno Haible  <bruno@clisp.org>
69065
69066         BeOS portability.
69067         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69068         BeOS has mbrtowc() but no <wctype.h>.
69069
69070 2006-08-21  Bruno Haible  <bruno@clisp.org>
69071
69072         BeOS portability.
69073         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69074         exist.
69075
69076 2006-08-21  Bruno Haible  <bruno@clisp.org>
69077
69078         BeOS portability.
69079         * lib/mbchar.h: Include <wctype.h> only if it exists.
69080
69081 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         Remove files that are no longer needed by their respective modules.
69084         * m4/obstack.m4: Remove.
69085         * m4/strerror_r.m4: Remove.
69086         * m4/uint32_t.m4: Remove.
69087         * m4/uintptr_t.m4: Remove.
69088         * m4/ullong_max.m4: Remove.
69089         * m4/xstrtoimax.m4: Remove.
69090         * m4/xstrtoumax.m4: Remove.
69091
69092         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69093         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69094         dependencies now capture this.
69095
69096         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69097         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69098         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69099         * m4/human.m4 (gl_HUMAN): Likewise.
69100         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69101         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69102
69103         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69104
69105         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69106         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69107         stdint.
69108         * m4/human.m4 (gl_HUMAN): Likewise.
69109         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69110         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69111         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69112         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69113         * m4/xstrtol (gl_XSTRTOL): Likewise.
69114
69115         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69116         AC_TYPE_LONG_LONG_INT.
69117         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69118         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69119         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69120         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69121
69122         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69123         on stdbool.
69124
69125         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69126         (gl_PREREQ_XSTRTOUL): Remove.
69127
69128         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69129
69130         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69131         mode.
69132
69133 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69134
69135         Add and change modules to make it easier for coreutils to use
69136         gnulib-tool.
69137         * modules/backupfile (Files): Remove m4/d-ino.m4.
69138         (Depends-on): Add d-ino.
69139         * modules/cycle-check (Depends-on): Add stdint.
69140         (lib_SOURCES): Add cycle-check.h.
69141         * modules/d-ino: New module.
69142         * modules/d-type: New module.
69143         * modules/error (Files): Remove m4/strerror_r.m4.
69144         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69145         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69146         m4/inttypes_h.m4, m4/uintmax_t.m4.
69147         (Depends-on): Add stdint.
69148         (lib_SOURCES): Add fsusage.h.
69149         * modules/getcwd (Files): Remove d-ino.m4.
69150         (Depends-on): Add d-ino.
69151         * modules/getndelim2 (Depends-on): Add stdint.
69152         * modules/glob (Files): Remove m4/d-type.m4.
69153         (Depends-on): Add d-type.
69154         * modules/host-os: New module.
69155         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69156         m4/inttypes_h.m4, m4/uintmax_t.m4.
69157         * Depends-on: Add stdint.
69158         (lib_SOURCES): Add human.h.
69159         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69160         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69161         m4/uintmax_t.m4, m4/ulonglong.m4.
69162         (Depends-on): Add stdint.
69163         (EXTRA_DIST): Add inttostr.h.
69164         * modules/lchmod: New module.
69165         * modules/link-follow: New module.
69166         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69167         (Depends-on): Add lchmod.
69168         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69169         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69170         (Depends-on): Add stdint.
69171         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69172         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69173         (Depends-on): Add stdint.
69174         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69175         * modules/perl: New module.
69176         * modules/regex (Depends-on): Add stdint.
69177         * modules/rmdir-errno: New module.
69178         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69179         m4/intmax_t.m4.
69180         (Depends-on): Add stdint.
69181         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69182         m4/uintmax_t.m4.
69183         (Depends-on): Add stdint.
69184         * modules/unlink-busy: New module.
69185         * modules/utimecmp (Depends-on): Add stdint.
69186         * modules/uptime: New module.
69187         * modules/winsz-ioctl: New module.
69188         * modules/winsz-termios: New module.
69189         * modules/xnanosleep (Depends-on): Add nanosleep.
69190         * modules/ullong_max: Remove.
69191         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69192         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69193         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69194         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69195         (Depends-on): Add inttypes.
69196         (lib_SOURCES): Add xstrtol.h.
69197         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69198         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69199         * MODULES.html.sh: Move 'assert' into the assert section.
69200         Move 'dummy' into the linking section.
69201         Remove ullong_max.
69202         Add section for compatibility checks for POSIX:2001 functions,
69203         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69204         winsz-ioctl, and winsz-termios into it.
69205         Add lchmod.
69206         Add top-level Misc section and put host-os, perl, and uptime
69207         into it.
69208
69209 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69210
69211         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69212         now assume the stdint module.  Do not include inttypes.h.
69213         * lib/fsusage.h: Likewise.
69214         * lib/getndelim2.c: Likewise.
69215         * lib/human.h: Likewise.
69216         * lib/inttostr.h: Likewise.
69217         * lib/obstack.c: Likewise.
69218         * lib/regex_internal.h: Likewise.
69219         * lib/tempname.c: Likewise.
69220         * lib/utimecmp.c: Likewise.
69221         * lib/xstrtol.h: Likewise.
69222
69223         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69224
69225         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69226         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69227         * lib/xtime.h: Likewise.
69228
69229 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69230
69231         * modules/openat (Files): Add lib/fchmodat.c.
69232         Fixes problem reported by Jay Youngman.
69233
69234 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69235
69236         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69237         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69238
69239 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69240             Bruno Haible  <bruno@clisp.org>
69241
69242         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69243         and is a script that invokes bison. Tighten the code. Add comments.
69244
69245 2006-08-18  Jim Meyering  <jim@meyering.net>
69246
69247         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69248         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69249         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69250         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69251
69252 2006-08-18  Bruno Haible  <bruno@clisp.org>
69253
69254         * modules/bison-i18n: New file.
69255         * MODULES.html.sh (Internationalization functions): Add it.
69256
69257 2006-08-18  Bruno Haible  <bruno@clisp.org>
69258
69259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69260         sys/statvfs.h. When getmntinfo was found, check its declaration and
69261         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69262
69263 2006-08-18  Bruno Haible  <bruno@clisp.org>
69264
69265         * m4/bison-i18n.m4: New file, from bison.
69266
69267 2006-08-18  Bruno Haible  <bruno@clisp.org>
69268
69269         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69270         (ME_DUMMY): Treat "kernfs" as a dummy.
69271         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69272
69273 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         Update from coreutils.
69276
69277         2006-08-15  Jim Meyering  <jim@meyering.net>
69278
69279         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69280
69281         2006-01-17  Jim Meyering  <jim@meyering.net>
69282
69283         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69284
69285         2006-01-11  Jim Meyering  <jim@meyering.net>
69286
69287         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69288         Check for the lchmod function.
69289
69290 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         Update from coreutils.
69293
69294         * lib/__fpending.h: Add copyright notice.
69295         * lib/fprintftime.h: Likewise.
69296         * lib/savedir.c: Use (C) in copyright notice.
69297         * lib/savedir.h: Likewise.
69298
69299         2006-08-15  Jim Meyering  <jim@meyering.net>
69300
69301         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69302         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69303         in support of the EXPECTED_ERRNO macro.
69304         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69305         definitions.  Instead, define the appropriate symbols and include
69306         "at-func.c".
69307         * lib/mkdirat.c (mkdirat): Likewise.
69308         * lib/fchmodat.c (fchmodat): Likewise.
69309         (ENOSYS): Remove definition.
69310         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69311         it.  Don't include "unistd--.h" -- it wasn't ever used.
69312
69313         2006-01-17  Jim Meyering  <jim@meyering.net>
69314
69315         Rewrite fts.c not to change the current working directory,
69316         by using openat, fstatat, fdopendir, etc..
69317
69318         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69319         (HAVE_OPENAT_SUPPORT): Define.
69320         [_LIBC] (fchdir): Don't undef or define; no longer used.
69321         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69322         Now, this `function' always succeeds, and consumes its file descriptor
69323         parameter -- so callers must not close such FDs.  Update callers.
69324         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69325         (diropen): Add parameter, SP.  Adjust all callers.
69326         Implement using diropen_fd, rather than open.
69327         (fts_open): Initialize new member, fts_cwd_fd.
69328         Remove fts_rft-setting code.
69329         (fts_close): Close fts_cwd_fd, if necessary.
69330         (__opendir2): Define in terms of opendir or opendirat,
69331         depending on whether the FST_NOCHDIR flag is set.
69332         (fts_build): Since fts_safe_changedir consumes its FD, and since
69333         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69334         and close the dup'd file descriptor upon failure.
69335         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69336         (fts_safe_changedir): Tweak semantics to reflect that this function
69337         now calls cwd_advance_fd and hence consumes its FD argument.
69338         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69339         [struct FTS] (fts_rft): Remove now-unused member.
69340         [struct FTS] (fts_cycle.state): Improve comment.
69341
69342         * lib/openat.c (openat_needs_fchdir): New function.
69343         * lib/openat.h (openat_needs_fchdir): Declare it.
69344
69345 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69346
69347         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69348         Problem and fix reported by Pádraig Brady in
69349         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69350
69351 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69354
69355 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         * lib/memcoll.c (memcoll): Optimize for the common case where the
69358         arguments are bytewise equal.
69359
69360 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         * doc/regexprops-generic.texi: Add a copyright notice.
69363
69364 2006-08-15  Bruno Haible  <bruno@clisp.org>
69365
69366         * modules/tmpdir (License): Change to LGPL.
69367
69368 2006-08-15  Bruno Haible  <bruno@clisp.org>
69369
69370         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69371         module.
69372
69373 2006-08-14  Simon Josefsson  <jas@extundo.com>
69374
69375         * config/srclist.txt: Add gnupload.
69376
69377 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69378
69379         Change copyright notice from LGPL 2 to GPL 2, since that's the
69380         standard form used in the gnulib repository.
69381         * tests/test-lock.c: Likewise.
69382         * tests/test-stdint.c: Likewise.
69383         * tests/test-tls.c: Likewise.
69384
69385         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69386         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69387         Add copyright notice.
69388
69389         * check-module: Add copyright notice.  Output a copyright
69390         notice if "--version" is specified.
69391         * modules/COPYING: New file.
69392         * tests/test-getaddrinfo.c: Add copyright notice.
69393         * tests/test-verify.c: Likewise.
69394
69395 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69396
69397         Change copyright notice from LGPL 2 to GPL 2, since that's the
69398         standard form used in the gnulib repository.
69399         * lib/lock.c: LGPL -> GPL.
69400         * lib/lock.h: Likewise.
69401         * lib/strnlen1.c: Likewise.
69402         * lib/strnlen1.h: Likewise.
69403         * lib/tls.c: Likewise.
69404         * lib/tls.h: Likewise.
69405         * lib/tmpdir.c: Likewise.
69406
69407         * lib/TODO: Remove; this belongs only in coreutils.
69408
69409 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69410
69411         Add copyright notices to long-enough files that lack them, since
69412         otherwise the files aren't clearly free.  Use the same notice that
69413         getdate.texi already uses.
69414         * doc/alloca-opt.texi: Add copyright notice.
69415         * doc/alloca.texi: Likewise.
69416         * doc/ctime.texi: Likewise.
69417         * doc/functions.texi: Likewise.
69418         * doc/gcd.texi: Likewise.
69419         * doc/gnulib-tool.texi: Likewise.
69420         * doc/inet_ntoa.texi: Likewise.
69421         * doc/visibility.texi: Likewise.
69422
69423         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69424         * doc/quote.texi: Add copyright notice.
69425
69426         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69427         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69428         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69429         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69430         is now obsolete, and give a pointer to the Sun list.
69431         Add copyright notice.
69432
69433 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * config/srclistvars.sh: Add copyright notice.
69436
69437 2006-08-14  Eric Blake  <ebb9@byu.net>
69438
69439         Import the following change from libc:
69440
69441         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69442
69443         Upstream bug 2997.
69444         * lib/misc/error.c: Add space between program name and message if file
69445         name is missing.
69446
69447 2006-08-12  Karl Berry  <karl@gnu.org>
69448
69449         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69450         remove, these originate in gnulib now.
69451
69452 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69453
69454         * doc/Makefile (standards.info standards.html standards.dvi):
69455         Also depend on make-stds.texi.
69456
69457 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69460         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69461
69462         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69463         in wchar_t.  Problem reported by Eric Blake.
69464
69465         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69466         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69467         Also, help the compiler to keep LEN in a register.
69468
69469 2006-08-11  Eric Blake  <ebb9@byu.net>
69470
69471         * users.txt: Sort.  Add tar.
69472
69473 2006-08-11  Bruno Haible  <bruno@clisp.org>
69474
69475         * users.txt: New file.
69476
69477 2006-08-11  Bruno Haible  <bruno@clisp.org>
69478
69479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69480         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69481
69482 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * modules/snprintf (Depends-on): Remove minmax.
69485         (Maintainer): Add self and Bruno.
69486
69487 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69488
69489         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69490         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69491         (EOVERFLOW): Define if the system does not.
69492         Do not include "minmax.h"; it wasn't used.
69493         (snprintf): Don't assume size_t promotes to an unsigned type.
69494         Fix bug when generated string was too long for the buffer: the
69495         buffer's contents are supposed to be the initial prefix of the
69496         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69497         exceeds INT_MAX; do the check ourselves.
69498
69499         Import the following changes from libc:
69500
69501         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69502
69503         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69504         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69505         set wc to the byte which couldn't be converted.
69506         (re_string_reconstruct): Don't clear valid_raw_len before calling
69507         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69508         tip_context using re_string_context_at.
69509
69510         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69511
69512         * lib/posix/regex.h: g++ still cannot handled [restrict].
69513
69514         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69515
69516         * lib/posix/regex.h: Remove special handling for VMS.
69517
69518 2006-08-10  Jim Meyering  <jim@meyering.net>
69519
69520         * modules/same-inode: New module.
69521         * modules/dev-ino: New module.
69522         * modules/cycle-check: Depend on these modules, rather than simply
69523         including their .h files.
69524         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69525         required via m4/cycle-check.m4.
69526         * modules/same: Depend on new same-inode module, rather than
69527         including same-inode.h.
69528         * modules/chdir-safer: New file.
69529
69530         * modules/chown (Depends-on): Add stat-macros.
69531
69532 2006-08-10  Jim Meyering  <jim@meyering.net>
69533
69534         * m4/cycle-check.m4: New file.
69535         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69536         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69537
69538 2006-08-10  Eric Blake  <ebb9@byu.net>
69539
69540         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69541         in from original proposal.
69542
69543 2006-08-10  Eric Blake  <ebb9@byu.net>
69544         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69545
69546         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69547         namespace.
69548
69549 2006-08-10  Bruno Haible  <bruno@clisp.org>
69550
69551         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69552         as well.
69553
69554 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         Sync from coreutils.
69557
69558         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69559
69560         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69561         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69562
69563 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * modules/restrict: Remove; no longer needed now that we assume
69566         Autoconf 2.59 or later.
69567         * MODULES.html.sh: Remove 'restrict'.
69568         * modules/argp (Depends-on): Remove 'restrict'.
69569         * modules/base64 (Depends-on): Likewise.
69570         * modules/gc (Depends-on): Likewise.
69571         * modules/getaddrinfo (Depends-on): Likewise.
69572         * modules/glob (Depends-on): Likewise.
69573         * modules/inet_ntop (Depends-on): Likewise.
69574         * modules/inet_pton (Depends-on): Likewise.
69575         * modules/memxor (Depends-on): Likewise.
69576         * modules/regex (Depends-on): Likewise.
69577         * modules/strtok_r (Depends-on): Likewise.
69578         * modules/time_r (Depends-on): Likewise.
69579
69580 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69581
69582         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69583         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69584         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69585         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69586         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69587         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69588         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69589         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69590
69591         Merge from coreutils.
69592         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69593         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69594         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69595         * m4/time_r.m4 (gl_TIME_R): Likewise.
69596
69597 2006-08-09  Karl Berry  <karl@gnu.org>
69598
69599         * config/srclist.txt: no more gettext-tools, per Bruno.
69600
69601 2006-08-08  Eric Blake  <ebb9@byu.net>
69602
69603         * modules/verror: New module.
69604         * MODULES.html.sh: Document it.
69605
69606 2006-08-08  Eric Blake  <ebb9@byu.net>
69607
69608         * lib/verror.h, lib/verror.c: New files.
69609
69610 2006-08-08  Eric Blake  <ebb9@byu.net>
69611
69612         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69613         verror_at_line output complies with GNU Coding Standards even when
69614         file is NULL.
69615
69616 2006-08-07  Bruno Haible  <bruno@clisp.org>
69617
69618         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69619         versions of AIX.
69620         Reported by Ralf Wildenhues.
69621
69622 2006-08-07  Bruno Haible  <bruno@clisp.org>
69623
69624         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69625         in an AC_DEFUN. Needed so that the autoconf snippets can use
69626         AC_REQUIRE.
69627
69628 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69629
69630         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69631         Initialize pkgdata_DATA.
69632         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69633         overriding it.
69634
69635 2006-08-06  Eric Blake  <ebb9@byu.net>
69636
69637         * lib/error.h: Fold in some upstream changes from glibc.
69638         * lib/error.c: Likewise.
69639
69640 2006-08-04  Bruno Haible  <bruno@clisp.org>
69641
69642         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69643         Make the mostlyclean-local rule depend on mostlyclean-generic.
69644         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69645
69646 2006-07-31  Bruno Haible  <bruno@clisp.org>
69647
69648         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69649         <stdlib.h>, <string.h>.
69650
69651 2006-07-30  Bruno Haible  <bruno@clisp.org>
69652
69653         * modules/readlink (License): Change to LGPL.
69654
69655 2006-07-30  Bruno Haible  <bruno@clisp.org>
69656
69657         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69658         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69659         set PKGDATADIR to point to it.
69660
69661 2006-07-30  Bruno Haible  <bruno@clisp.org>
69662
69663         * modules/csharpexec (configure.ac): Comment out macro invocation.
69664         * modules/javaexec (configure.ac): Likewise.
69665         * modules/javacomp-script (configure.ac): Likewise.
69666
69667         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69668
69669 2006-07-30  Bruno Haible  <bruno@clisp.org>
69670
69671         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69672         linked-list.
69673
69674 2006-07-30  Bruno Haible  <bruno@clisp.org>
69675
69676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69677
69678 2006-07-30  Bruno Haible  <bruno@clisp.org>
69679
69680         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69681         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69682         get removed.
69683
69684 2006-07-29  Bruno Haible  <bruno@clisp.org>
69685
69686         Make it possible for gnulib-tool to work with locally modified or
69687         augmented gnulib repositories.
69688         * gnulib-tool (func_usage): Document --local-dir option.
69689         (local_gnulib_dir): New variable.
69690         Handle --local-dir option.
69691         (func_lookup_file): New function.
69692         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69693         (func_get_description, func_get_filelist, func_get_description,
69694         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69695         func_get_automake_snippet, func_get_include_directive,
69696         func_get_license, func_get_maintainer): Use func_lookup_file.
69697         (func_import, func_create_testdir): Use func_lookup_file.
69698
69699 2006-07-29  Bruno Haible  <bruno@clisp.org>
69700
69701         * modules/setenv (Depends-on): Add unistd.
69702
69703 2006-07-29  Bruno Haible  <bruno@clisp.org>
69704
69705         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69706
69707 2006-07-29  Bruno Haible  <bruno@clisp.org>
69708
69709         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69710
69711 2006-07-29  Bruno Haible  <bruno@clisp.org>
69712
69713         * gnulib-tool (import, update): If there is no Makefile.am, look at
69714         aclocal.m4, instead of bailing out.
69715
69716 2006-07-29  Bruno Haible  <bruno@clisp.org>
69717
69718         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69719         Categorize the options by when they are useful.
69720
69721 2006-07-29  Bruno Haible  <bruno@clisp.org>
69722
69723         * gnulib-tool (func_usage): Document option --no-libtool.
69724         Handle option --no-libtool.
69725         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69726         for changed semantics of $libtool variable.
69727         (func_import): Likewise. If libtool is not used, show this through
69728         an option --no-libtool.
69729         (func_create_testdir): Update.
69730
69731 2006-07-29  Bruno Haible  <bruno@clisp.org>
69732
69733         * gnulib-tool (func_import): Extend error message about missing
69734         --doc-base.
69735
69736 2006-07-29  Bruno Haible  <bruno@clisp.org>
69737
69738         * gnulib-tool (func_import): Don't create the $docbase directory if
69739         there is no file to store there.
69740
69741 2006-07-29  Bruno Haible  <bruno@clisp.org>
69742
69743         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69744         relevant, look for configure.ac there, not in the current directory.
69745         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69746
69747 2006-07-29  Bruno Haible  <bruno@clisp.org>
69748
69749         * gnulib-tool (SORT): New variable.
69750         (func_usage): Undocument --assume-autoconf option.
69751         Remove --assume-autoconf option handling.
69752         (autoconf_minversion): Determine from the contents of configure.ac.
69753         (func_import): Remove autoconf_minversion handling.
69754         Suggested by Eric Blake.
69755
69756 2006-07-29  Bruno Haible  <bruno@clisp.org>
69757
69758         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69759
69760 2006-07-29  Bruno Haible  <bruno@clisp.org>
69761
69762         * config/srclist.txt (*setenv.[ch]): Remove rules.
69763
69764 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69765
69766         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69767
69768 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69769
69770         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69771         arpa/inet.h.
69772
69773 2006-07-28  Simon Josefsson  <jas@extundo.com>
69774
69775         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69776         * modules/inet_pton (Depends-on): Likewise.
69777
69778 2006-07-28  Simon Josefsson  <jas@extundo.com>
69779
69780         * m4/netinet_in_h.m4: New file.
69781
69782 2006-07-28  Simon Josefsson  <jas@extundo.com>
69783
69784         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69785         #include's.
69786
69787 2006-07-28  Simon Josefsson  <jas@extundo.com>
69788
69789         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69790         #include's.
69791
69792 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69795         setgid on directories only if they set these bits.
69796         * lib/modechange.h: Remove obsolete comment about masks.
69797
69798 2006-07-28  Eric Blake  <ebb9@byu.net>
69799
69800         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69801         macro expansion.
69802
69803 2006-07-28  Bruno Haible  <bruno@clisp.org>
69804
69805         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69806
69807 2006-07-28  Bruno Haible  <bruno@clisp.org>
69808
69809         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69810
69811 2006-07-28  Bruno Haible  <bruno@clisp.org>
69812
69813         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69814         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69815         Define fallbacks.
69816         Avoids link error on FreeBSD 4.x.
69817         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69818
69819         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69820         encoding.
69821         * lib/mbswidth.c (iswcntrl): Likewise.
69822
69823 2006-07-27  Bruno Haible  <bruno@clisp.org>
69824
69825         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69826         test.
69827
69828 2006-07-27  Bruno Haible  <bruno@clisp.org>
69829
69830         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69831         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69832         defined.
69833
69834 2006-07-26  Eric Blake  <ebb9@byu.net>
69835
69836         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69837
69838 2006-07-26  Eric Blake  <ebb9@byu.net>
69839
69840         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69841         like mingw that lack mkstemp.
69842         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69843         avoid compilation warning on mingw.
69844
69845 2006-07-26  Bruno Haible  <bruno@clisp.org>
69846
69847         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69848         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69849         INT_FAST*_MIN, INTPTR_MIN.
69850
69851 2006-07-25  Bruno Haible  <bruno@clisp.org>
69852
69853         * modules/version-etc (Depends-on): Add stdarg.
69854
69855 2006-07-25  Bruno Haible  <bruno@clisp.org>
69856
69857         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69858         complex commands.
69859
69860 2006-07-25  Bruno Haible  <bruno@clisp.org>
69861
69862         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69863         defined in <stdarg.h> or config.h.
69864
69865 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69866
69867         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69868         (gl_STDIO_SAFER): Remove.
69869
69870 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69871
69872         * MODULES.html.sh (File stream based Input/Output):
69873         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69874         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69875         * modules/fopen-safer, modules/tmpfile-safer: New files.
69876         * modules/stdio-safer: Remove.
69877
69878 2006-07-24  Bruno Haible  <bruno@clisp.org>
69879
69880         * modules/tmpdir: New file.
69881         * MODULES.html.sh (File system functions): Add it.
69882
69883 2006-07-24  Bruno Haible  <bruno@clisp.org>
69884
69885         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69886         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69887
69888 2006-07-24  Bruno Haible  <bruno@clisp.org>
69889
69890         * modules/clean-temp: New file.
69891
69892 2006-07-24  Bruno Haible  <bruno@clisp.org>
69893
69894         * m4/tmpdir.m4: New file, from GNU gettext.
69895
69896 2006-07-24  Bruno Haible  <bruno@clisp.org>
69897
69898         * lib/tmpdir.h: New file, from GNU gettext.
69899         * lib/tmpdir.c: New file, from GNU gettext.
69900
69901 2006-07-24  Bruno Haible  <bruno@clisp.org>
69902
69903         * lib/clean-temp.h: New file, from GNU gettext.
69904         * lib/clean-temp.c: New file, from GNU gettext.
69905
69906 2006-07-23  Eric Blake  <ebb9@byu.net>
69907
69908         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69909         (Depends-on): Add binary-io.
69910
69911 2006-07-23  Eric Blake  <ebb9@byu.net>
69912
69913         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69914
69915 2006-07-23  Eric Blake  <ebb9@byu.net>
69916
69917         * lib/tmpfile-safer.c: New file.
69918         * lib/stdio-safer.h (fopen_safer): Add prototype.
69919         * lib/stdio--.h (tmpfile): Make safer.
69920
69921 2006-07-23  Bruno Haible  <bruno@clisp.org>
69922
69923         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69924         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69925         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69926         gl_linked_remove_at): Use it.
69927
69928 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69929         and Simon Josefsson <jas@extundo.com>
69930
69931         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69932
69933         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69934
69935 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69936
69937         * modules/close-stream: New file.
69938         * modules/closeout (Description): Make it clear that it exits
69939         with a diagnostic on error.
69940         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69941         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69942
69943 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         * m4/close-stream.m4: New file.
69946
69947 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69948
69949         * lib/close-stream.c, lib/close-stream.h: New files.
69950
69951 2006-07-22  Bruno Haible  <bruno@clisp.org>
69952
69953         Merge from GNU gettext 0.15.
69954
69955         2006-05-01  Bruno Haible  <bruno@clisp.org>
69956
69957                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69958
69959         2006-07-22  Bruno Haible  <bruno@clisp.org>
69960
69961                 * modules/javaversion: New file.
69962                 * MODULES.html.sh (Java): Add javaversion.
69963
69964         2006-03-12  Bruno Haible  <bruno@clisp.org>
69965
69966                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69967
69968         2005-12-04  Bruno Haible  <bruno@clisp.org>
69969
69970                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69971                 (untested).
69972
69973         2006-06-21  Bruno Haible  <bruno@clisp.org>
69974
69975                 Avoid warnings from recent versions of mcs.
69976                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69977                 -o, -L, -r any more. Use options documented since mcs-1.0
69978                 instead. Similarly for -g.
69979
69980         2005-12-04  Bruno Haible  <bruno@clisp.org>
69981
69982                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69983                 .resources, not .resource.
69984
69985         2005-07-09  Bruno Haible  <bruno@clisp.org>
69986
69987                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69988                 add a .dll suffix.
69989                 Reported by Mark Junker <mjscod@gmx.de>.
69990
69991         2006-07-22  Bruno Haible  <bruno@clisp.org>
69992
69993                 * modules/gettext: Upgrade to gettext-0.15.
69994                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69995                 m4/visibility.m4.
69996                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69997
69998 2006-07-22  Bruno Haible  <bruno@clisp.org>
69999
70000         Merge from GNU gettext 0.15.
70001
70002         2006-03-25  Bruno Haible  <bruno@clisp.org>
70003
70004                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70005
70006         2006-07-21  Bruno Haible  <bruno@clisp.org>
70007
70008                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70009                 "1.1".
70010
70011         2006-05-09  Bruno Haible  <bruno@clisp.org>
70012
70013                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70014                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70015                 for the conftestver execution.
70016
70017         2006-05-01  Bruno Haible  <bruno@clisp.org>
70018
70019                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70020                 optional target-version argument. Verify that the compiler
70021                 groks source of the specified source-version, or add -source
70022                 option as necessary. Verify that the compiler produces
70023                 bytecode in the specified target-version, or add -target and
70024                 -source options as necessary. Make the result of the test
70025                 available as variable CONF_JAVAC. Also log error output in
70026                 config.log.
70027
70028         2006-03-11  Bruno Haible  <bruno@clisp.org>
70029
70030                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70031
70032         2006-05-09  Bruno Haible  <bruno@clisp.org>
70033
70034                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70035                 CLASSPATH_SEPARATOR to a semicolon.
70036
70037         2006-03-12  Bruno Haible  <bruno@clisp.org>
70038
70039                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70040                 available as variable CONF_JAVA, for subsequent autoconf
70041                 tests. Also log error output in config.log.
70042
70043         2006-07-19  Bruno Haible  <bruno@clisp.org>
70044
70045                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70046                 that getline works on glibc2 systems. Needed to avoid trouble
70047                 in relocatable.c.
70048                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70049
70050         2005-12-04  Bruno Haible  <bruno@clisp.org>
70051
70052                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70053                 launcher (untested).
70054
70055         2005-12-04  Bruno Haible  <bruno@clisp.org>
70056
70057                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70058
70059         2006-07-22  Bruno Haible  <bruno@clisp.org>
70060
70061                 * gettext.m4: Update from GNU gettext-0.15.
70062                 * nls.m4: Likewise.
70063                 * po.m4: Likewise.
70064                 * inttypes-pri.m4: Likewise.
70065                 * inttypes-h.m4: Renamed from inttypes.m4.
70066                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70067
70068 2006-07-22  Bruno Haible  <bruno@clisp.org>
70069
70070         Merge from GNU gettext 0.15.
70071
70072         2005-07-05  Bruno Haible  <bruno@clisp.org>
70073
70074                 * printf-args.c (printf_fetchargs): Work around broken
70075                 definition of wint_t on mingw.
70076
70077         2005-02-12  Bruno Haible  <bruno@clisp.org>
70078
70079                 * xallocsa.h: Add extern "C" for C++.
70080
70081         2006-05-17  Bruno Haible  <bruno@clisp.org>
70082
70083                 Cygwin portability.
70084                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70085
70086         2006-04-30  Bruno Haible  <bruno@clisp.org>
70087
70088                 * progreloc.c: Include <mach-o/dyld.h> if available.
70089                 (find_executable): Use _NSGetExecutablePath when possible.
70090
70091         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70092
70093                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70094                 function.
70095
70096         2005-12-29  Bruno Haible  <bruno@clisp.org>
70097
70098                 * progreloc.c (set_program_name_and_installdir): Fix
70099                 compilation error.
70100
70101         2005-12-04  Bruno Haible  <bruno@clisp.org>
70102
70103                 Cygwin portability.
70104                 * progreloc.c: Include <windows.h> also on Cygwin.
70105                 (find_executable): Add support for Cygwin.
70106                 (set_program_name_and_installdir): Handle also platforms with
70107                 nonempty EXEEXT.
70108
70109         2006-07-11  Bruno Haible  <bruno@clisp.org>
70110
70111                 * javacomp.c: Fix a comment.
70112                 Reported by Jim Meyering.
70113
70114         2006-04-30  Bruno Haible  <bruno@clisp.org>
70115
70116                 * javacomp.h (compile_java_class): Add source_version,
70117                 target_version arguments.
70118                 * javacomp.c: Rewritten to choose only a compiler that
70119                 respects the specified source_version and target_version.
70120
70121         2006-06-27  Bruno Haible  <bruno@clisp.org>
70122
70123                 Assume correct S_ISDIR macro.
70124                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70125
70126         2006-07-22  Bruno Haible  <bruno@clisp.org>
70127
70128                 * javaversion.h: New file, from GNU gettext.
70129                 * javaversion.c: New file, from GNU gettext.
70130                 * javaversion.java: New file, from GNU gettext.
70131                 * javaversion.class: New file, from GNU gettext.
70132
70133         2006-05-17  Bruno Haible  <bruno@clisp.org>
70134
70135                 Cygwin portability.
70136                 * javaexec.c (execute_java_class): Test for jview program
70137                 also on Cygwin.
70138
70139         2006-04-09  Bruno Haible  <bruno@clisp.org>
70140
70141                 * fatal-signal.c: Don't include string.h.
70142                 (at_fatal_signal): Use a copying loop instead of memcpy.
70143
70144         2005-12-04  Bruno Haible  <bruno@clisp.org>
70145
70146                 * csharpexec.c: Add support for 'clix' launcher (untested).
70147                 (execute_csharp_using_sscli): New function.
70148                 (execute_csharp_program): Call it.
70149
70150         2006-06-21  Bruno Haible  <bruno@clisp.org>
70151
70152                 Avoid warnings from recent versions of mcs.
70153                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70154                 -o, -L, -r any more. Use options documented since mcs-1.0
70155                 instead. Similarly for -g.
70156
70157         2005-07-09  Bruno Haible  <bruno@clisp.org>
70158
70159                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70160                 add a .dll suffix.
70161                 Reported by Mark Junker <mjscod@gmx.de>.
70162
70163         2006-06-17  Bruno Haible  <bruno@clisp.org>
70164
70165                 * config.charset: Update for NetBSD 3.0.
70166
70167         2006-05-17  Bruno Haible  <bruno@clisp.org>
70168
70169                 Cygwin portability.
70170                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70171
70172         2006-05-16  Bruno Haible  <bruno@clisp.org>
70173
70174                 * localcharset.c [CYGWIN]: Include <windows.h>.
70175                 (get_charset_aliases): For Cygwin, return the same CPxxx
70176                 aliases list as under WIN32.
70177                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70178                 the environment variables. Fall back to GetACP().
70179
70180         2006-04-05  Bruno Haible  <bruno@clisp.org>
70181
70182                 * config.charset: Update Juan Manuel Guerrero's address.
70183
70184         2005-02-12  Bruno Haible  <bruno@clisp.org>
70185
70186                 * allocsa.h: Add extern "C" for C++.
70187
70188         2005-02-10  Bruno Haible  <bruno@clisp.org>
70189
70190                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70191                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70192
70193         2006-07-22  Bruno Haible  <bruno@clisp.org>
70194
70195                 * gettext.h: Update to GNU gettext-0.15.
70196
70197 2006-07-22  Bruno Haible  <bruno@clisp.org>
70198
70199         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70200         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70201         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70202
70203 2006-07-21  Eric Blake  <ebb9@byu.net>
70204
70205         * modules/stdlib-safer: New file.
70206         * MODULES.html.sh (File stream based Input/Output): Add
70207         stdlib-safer.
70208
70209 2006-07-21  Eric Blake  <ebb9@byu.net>
70210
70211         * lib/stdlib-safer.h: New file from coreutils, required by
70212         stdlib--.h.
70213
70214 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70215
70216         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70217
70218 2006-07-20  Bruno Haible  <bruno@clisp.org>
70219
70220         * gnulib-tool: Recognize new option --assume-autoconf.
70221         (autoconf_minversion): New variable.
70222         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70223
70224 2006-07-20  Bruno Haible  <bruno@clisp.org>
70225
70226         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70227
70228 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70229
70230         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70231         Reindent and repaginate.
70232
70233 2006-07-19  Derek Price  <derek@ximbiot.com>
70234
70235         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70236         Correct grammar.
70237
70238 2006-07-17  Bruno Haible  <bruno@clisp.org>
70239
70240         * modules/list: New file.
70241         * modules/array-list: New file.
70242         * modules/carray-list, modules/carray-list-tests: New files.
70243         * modules/linked-list, modules/linked-list-tests: New files.
70244         * modules/avltree-list, modules/avltree-list-tests: New files.
70245         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70246         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70247         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70248         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70249         * modules/oset: New file.
70250         * modules/array-oset: New file.
70251         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70252         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70253         * tests/test-carray_list.c: New file.
70254         * tests/test-linked_list.c: New file.
70255         * tests/test-avltree_list.c: New file.
70256         * tests/test-rbtree_list.c: New file.
70257         * tests/test-linkedhash_list.c: New file.
70258         * tests/test-avltreehash_list.c: New file.
70259         * tests/test-rbtreehash_list.c: New file.
70260         * tests/test-avltree_oset.c: New file.
70261         * tests/test-rbtree_oset.c: New file.
70262         * MODULES.html.sh (Container data structures): New section.
70263
70264 2006-07-17  Bruno Haible  <bruno@clisp.org>
70265
70266         * m4/gl_list.m4: New file.
70267
70268 2006-07-17  Bruno Haible  <bruno@clisp.org>
70269
70270         * lib/gl_list.h: New file.
70271         * lib/gl_list.c: New file.
70272         * lib/gl_array_list.h: New file.
70273         * lib/gl_array_list.c: New file.
70274         * lib/gl_carray_list.h: New file.
70275         * lib/gl_carray_list.c: New file.
70276         * lib/gl_linked_list.h: New file.
70277         * lib/gl_linked_list.c: New file.
70278         * lib/gl_anylinked_list1.h: New file.
70279         * lib/gl_anylinked_list2.h: New file.
70280         * lib/gl_avltree_list.h: New file.
70281         * lib/gl_avltree_list.c: New file.
70282         * lib/gl_anyavltree_list1.h: New file.
70283         * lib/gl_anyavltree_list2.h: New file.
70284         * lib/gl_rbtree_list.h: New file.
70285         * lib/gl_rbtree_list.c: New file.
70286         * lib/gl_anyrbtree_list1.h: New file.
70287         * lib/gl_anyrbtree_list2.h: New file.
70288         * lib/gl_anytree_list1.h: New file.
70289         * lib/gl_anytree_list2.h: New file.
70290         * lib/gl_linkedhash_list.h: New file.
70291         * lib/gl_linkedhash_list.c: New file.
70292         * lib/gl_anyhash_list1.h: New file.
70293         * lib/gl_anyhash_list2.h: New file.
70294         * lib/gl_avltreehash_list.h: New file.
70295         * lib/gl_avltreehash_list.c: New file.
70296         * lib/gl_rbtreehash_list.h: New file.
70297         * lib/gl_rbtreehash_list.c: New file.
70298         * lib/gl_anytreehash_list1.h: New file.
70299         * lib/gl_anytreehash_list2.h: New file.
70300
70301         * lib/gl_oset.h: New file.
70302         * lib/gl_oset.c: New file.
70303         * lib/gl_array_oset.h: New file.
70304         * lib/gl_array_oset.c: New file.
70305         * lib/gl_avltree_oset.h: New file.
70306         * lib/gl_avltree_oset.c: New file.
70307         * lib/gl_rbtree_oset.h: New file.
70308         * lib/gl_rbtree_oset.c: New file.
70309         * lib/gl_anytree_oset.h: New file.
70310
70311 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70312
70313         * m4/mkancesdirs.m4: New file.
70314         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70315         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70316         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70317         it.
70318
70319 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70320
70321         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70322         * lib/mkancesdirs.h: New files.
70323         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70324         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70325         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70326         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70327         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70328         callers changed.  Revamp internals significantly, by not
70329         attempting to create directories that are temporarily more
70330         permissive than the final results.  Do not attempt to use
70331         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70332         This removes some race conditions, fixes some bugs, and simplifies
70333         things.  Use new dirchownmod function to do owner and mode changes.
70334         * lib/mkdir-p.h: Likewise.
70335         * lib/modechange.c (octal_to_mode): New function.
70336         (struct mode_change): New member mentioned.
70337         (make_node_op_equals): New arg mentioned.  All callers changed.
70338         (mode_compile): Keep track of which mode bits the user has explicitly
70339         mentioned.
70340         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70341         New arg PMODE_BITS, to keep track of which mode bits the user
70342         mentioned; it treats S_ISUID and S_ISGID speciall.
70343         All callers changed.
70344         * lib/modechange.h: Likewise.
70345
70346 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70347
70348         * MODULES.html.sh: Add mkancestors.
70349         * modules/mkancesdirs: New module.
70350         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70351         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70352         The chdir-safer and afs files are now orphans; I'll remove them
70353         unless someone speaks up.
70354         Add lib/dirchownmod.c, lib/dirchownmod.h.
70355         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70356         Add lchown, mkancesdirs.
70357         (Maintainer): Add self.
70358
70359 2006-07-15  Karl Berry  <karl@gnu.org>
70360
70361         * gnulib-tool: help message wording/arrangement.
70362
70363 2006-07-14  Simon Josefsson  <jas@extundo.com>
70364
70365         * doc/gnulib.texi (Libtool and Windows): New section.
70366
70367 2006-07-12  Simon Josefsson  <jas@extundo.com>
70368
70369         * modules/gendocs (License): Fix license, approved by Karl.
70370
70371 2006-07-12  Eric Blake  <ebb9@byu.net>
70372
70373         * MODULES.html.sh: Add gendocs.
70374
70375 2006-07-11  Eric Blake  <ebb9@byu.net>
70376
70377         * modules/fdl: New module, to install doc/fdl.texi.
70378         * MODULES.html.sh: Add new section for documentation modules.
70379         * gnulib-tool: Avoid space-tab.
70380         (--doc-base): New option, to manage files from doc.
70381
70382 2006-07-11  Eric Blake  <ebb9@byu.net>
70383
70384         * m4/absolute-header.m4: Fix comments to match recent change.
70385
70386 2006-07-11  Eric Blake  <ebb9@byu.net>
70387
70388         * gnulib-tool: List --doc-base before --tests-base.
70389
70390 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70391
70392         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70393
70394 2006-07-11  Bruno Haible  <bruno@clisp.org>
70395
70396         * README: Mention where to put documentation.
70397
70398 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70399
70400         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70401
70402 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70403
70404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70405         to stdint.m4.
70406
70407 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70408
70409         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70410         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70411         "no/such/file/stdint.h" when there is no such file, so that
70412         the resulting C code can be parsed by dodgy compilers.
70413         Problems reported by Bob Proulx.
70414
70415 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70416
70417         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70418         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70419         macros into the GNU _D_EXACT_NAMLEN.
70420         * lib/savedir.c:  Likewise.
70421         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70422
70423 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70424         and Paul Eggert  <eggert@cs.ucla.edu>
70425
70426         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70427         * m4/savedir.m4:
70428         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70429         macros into the GNU _D_EXACT_NAMLEN.
70430
70431 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70432
70433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70434         around the absolute name, to work around a problem with the HP-UX
70435         11.23 native C compiler, reported by Bob Proulx.
70436
70437 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70438
70439         * doc/maintain.texi, make-stds.texi: Sync from
70440         <http://savannah.gnu.org/projects/gnustandards>.
70441
70442 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70443
70444         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70445
70446 2006-07-09  Jim Meyering  <jim@meyering.net>
70447
70448         * m4/glob.m4: Remove a doubled word in a comment.
70449
70450 2006-07-09  Jim Meyering  <jim@meyering.net>
70451
70452         * lib/argp-pv.c: Remove a doubled word in a comment.
70453         * lib/check-version.c (check_version): Likewise.
70454         * lib/javacomp.c (compile_java_class): Likewise.
70455
70456 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70459         for the benefit of people using Autoconf 2.60.  If you want to
70460         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70461         (or m4/onceonly.m4, if pre-2.57) manually.
70462
70463 2006-07-08  Jim Meyering  <jim@meyering.net>
70464
70465         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70466         comment.
70467         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70468         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70469         comment.
70470
70471 2006-07-08  Jim Meyering  <jim@meyering.net>
70472
70473         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70474
70475 2006-07-07  Simon Josefsson  <jas@extundo.com>
70476
70477         * tests/test-crc.c: Change expected crc value, the test vector
70478         were probably computed using the old broken crc.c?
70479
70480 2006-07-06  Simon Josefsson  <jas@extundo.com>
70481
70482         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70483         now the canonical place for the M4 file).
70484
70485         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70486         from the sys_socket dependency now.
70487
70488         * modules/inet_pton (Files): Ditto.
70489
70490         * modules/inet_ntop (Files): Ditto.
70491
70492 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70493
70494         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70495         not gl_PREREQ_GETUSERSHELL.
70496
70497 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70498
70499         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70500         with only one argument, for Autoconf 2.60.
70501         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70502         expand to nothing, so add a shell command to avoid syntax error.
70503         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70504
70505 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70506
70507         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70508
70509 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70510
70511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70512         no longer needed.  Check for isblank decl.
70513         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70514         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70515         of existence.
70516
70517 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70518
70519         * lib/getloadavg.c: Use __VMS, not VMS.
70520         * lib/getopt.c: Likewise.
70521         * lib/getpagesize.h: Likewise.
70522         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70523         and probably does not work.
70524
70525 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70526
70527         * lib/.cppi-disable: Add wcwidth.
70528         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70529         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70530         (ISGRAPH): Remove.  All uses changed to isgraph.
70531         (FOLD) [!defined _LIBC]: Remove special case.
70532         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70533         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70534         HAVE_ISBLANK.
70535         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70536         case.
70537
70538 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70539
70540         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70541         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70542         brackets.  Other minor changes to suppress some compiler
70543         warnings.
70544
70545 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70546         and Paul Eggert  <eggert@cs.ucla.edu>
70547
70548         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70549         of invoking obsolescent AC_HEADER_DIRENT macro.
70550         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70551         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70552         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70553         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70554         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70555         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70556         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70557         * m4/readdir.m4: Remove; no longer needed.
70558
70559 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70560         and Paul Eggert  <eggert@cs.ucla.edu>
70561
70562         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70563         Don't worry about this obsolete case any more.
70564         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70565         directories.
70566         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70567         worry about this obsolete case any more.
70568         * lib/fts.c: Likewise.
70569         * lib/getcwd.c: Likewise.
70570         * lib/glob.h: Likewise.
70571         * lib/savedir.c: Likewise.
70572
70573 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70574
70575         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70576         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70577         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70578         needed.
70579         All uses removed.
70580         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70581         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70582         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70583         needed.
70584         * m4/getdate.m4 (gl_GETDATE): Likewise.
70585         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70586         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70587         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70588         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70589         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70590         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70591         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70592         needed.
70593
70594 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70595
70596         * lib/memcasecmp.c: Include <limits.h>.
70597         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70598         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70599         Don't assume isdigit succeeds only on '0' through '9'.
70600
70601 2006-07-05  Eric Blake  <ebb9@byu.net>
70602
70603         * modules/getaddrinfo (Depends-on): Add snprintf.
70604
70605 2006-07-05  Eric Blake  <ebb9@byu.net>
70606
70607         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70608         to avoid 'header present but could not be compiled' on cygwin.
70609
70610 2006-07-05  Eric Blake  <ebb9@byu.net>
70611
70612         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70613         missing from netdb.h.
70614         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70615
70616 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70617
70618         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70619         no longer needed.
70620         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70621         * m4/getdate.m4 (gl_GETDATE): Likewise.
70622         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70623         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70624         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70625         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70626         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70627
70628 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70629
70630         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70631         All uses of is_space replaced by isspace.
70632         * lib/exit.h: Don't talk about STDC_HEADERS.
70633         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70634         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70635         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70636         replaced by isprint etc.
70637         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70638         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70639         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70640         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70641         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70642         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70643
70644 2006-07-05  Bruno Haible  <bruno@clisp.org>
70645
70646         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70647         the function exists, before testing against AIX.
70648         Reported by Martin Lambers <marlam@marlam.de>.
70649
70650 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70653         From Mark D. Baushke.
70654
70655 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70656
70657         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70658         to the absolute name, not just one, to bypass Sun C 5.8's
70659         "warning: #include of /usr/include/... may be non-portable".
70660
70661 2006-07-04  Eric Blake  <ebb9@byu.net>
70662
70663         * modules/dirname-tests: New test module.
70664         * tests/test-dirname.c: New file, replacing dirname.c
70665         TEST_DIRNAME section that was recently deleted.
70666
70667 2006-07-04  Bruno Haible  <bruno@clisp.org>
70668
70669         Assume ANSI C header files and <ctype.h> functions.
70670         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70671         (mbsnwidth): Use isprint, iscntrl instead.
70672
70673 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         Merge from coreutils.
70676         * MODULES.html.sh: Add xstrtold.
70677         * modules/xstrtold: New file.
70678         * modules/cycle-check (Files): Add lib/same-inode.h.
70679         * modules/dirname (Files): Add m4/double-slash-root.m4.
70680         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70681         * modules/mkdir-p (Files): Add lib/same-inode.h.
70682         * modules/same (Files): Add lib/same-inode.h.
70683
70684 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70685
70686         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70687         This is to keep the terminology clean; POSIX talks about
70688         "absolute pathnames", not "full pathnames", but the GNU
70689         Coding Standards say to use "path" for something else;
70690         so use "absolute" to keep both sides happy.
70691         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70692         Set gl_absolute_header, not gl_full_header_path.
70693         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70694         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70695         All uses changed.
70696
70697         Merge from coreutils.
70698
70699         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70702         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70703         want to require the building of c-strtod.o.
70704         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70705         needs -lm directly.
70706         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70707
70708         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70711         --as-needed option if available.  Problem reported by Albert Chin in
70712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70713         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70714         cc merely issues a bunch of annoying warnings for --as-needed
70715         (this problem was reported by Bob Proulx).  Also, try linking with
70716         -lm to detect a bug in binutils 2.16 (this problem was reported
70717         by Ralf Wildenhues).
70718
70719         2006-06-18  Jim Meyering  <jim@meyering.net>
70720
70721         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70722         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70723         macro.
70724         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70725         also check for glibc-2.4's abort-inducing bug.
70726
70727         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70728         Low-probability clean-up should be to use rmdir to get rid of
70729         the just-created directory, not unlink.
70730
70731         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70732         configure fail, and request a bug report to inform us about it.
70733         Add a comment that, barring reports to the contrary, in 2007 we'll
70734         assume ftruncate is universally available.
70735
70736         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70737
70738         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70739
70740         2006-03-12  Jim Meyering  <jim@meyering.net>
70741
70742         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70743         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70744         * m4/same.m4 (gl_SAME): Likewise.
70745         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70746
70747         2006-03-11  Eric Blake  <ebb9@byu.net>
70748
70749         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70750         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70751         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70752         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70753
70754 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70755
70756         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70757         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70758         reported by Mark D. Baushke, one in
70759         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70760
70761         Merge from coreutils.
70762
70763         * lib/.cppi-disable: Add stdint_.h.
70764         * lib/.cvsignore: Add stdint.h.
70765
70766         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70767
70768         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70769         both double and long double versions.
70770         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70771         * lib/xstrtold.c: New file.
70772         * lib/xstrtod.h (xstrtold): New decl.
70773
70774         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         * lib/filemode.c (setst): Remove.
70777         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70778         (arguably) clearer, and the generated code is a bit smaller on my
70779         Debian GNU/Linux stable x86 host.
70780
70781         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70782
70783         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70784         Assume that filemode.h includes sys/types.h and sys/stat.h.
70785         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70786         (ftypelet): Reorder to put common cases first, for efficiency.
70787         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70788         to do 'M'.
70789         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70790         of 10, for compatibility with FreeBSD.  All callers changed.
70791         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70792         types that can't be deduced solely from st_mode.  First arg is now a
70793         const pointer.
70794         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70795         (strmode): Renamed from mode_string.
70796         (filemodestring): New decl.
70797         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70798         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70799         needed.
70800         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70801
70802         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70805         fsusage.h now does that.  Include fsusage.h first, to test interface.
70806         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70807         at most one method (the old code could have generated decls that
70808         didn't conform to C89, not that this was ever exercised).
70809         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70810
70811         2006-03-19  Jim Meyering  <jim@meyering.net>
70812
70813         Work even in a chroot where d_ino values for entries in "/"
70814         don't match the stat.st_ino values for the same names.
70815         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70816         number, iterate through all entries again, using lstat instead.
70817         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70818         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70819
70820         * lib/getcwd.c (__getcwd): Clarify a comment.
70821         Use memcpy in place of a call to strcpy.
70822
70823         2006-03-12  Jim Meyering  <jim@meyering.net>
70824
70825         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70826         matches that of the current directory (which we're about to chdir ".."
70827         out of), then save the dev-ino of the parent, instead.
70828
70829         * lib/same-inode.h (SAME_INODE): New file/macro.
70830         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70831         Include "same-inode.h", instead.
70832         * lib/same.c: Likewise.
70833         * lib/cycle-check.h: Include "same-inode.h".
70834         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70835         * lib/cycle-check.c (SAME_INODE): Remove definition.
70836         * lib/root-dev-ino.h: Include "same-inode.h".
70837
70838         2006-03-11  Eric Blake  <ebb9@byu.net>
70839
70840         * lib/same.c (same_name): s/base_name/last_component/
70841         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70842         * lib/filenamecat.c (file_name_concat): Likewise.
70843
70844         2006-03-11  Eric Blake  <ebb9@byu.net>,
70845                     Paul Eggert  <eggert@cs.ucla.edu>
70846
70847         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70848         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70849         drive prefix.
70850         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70851         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70852         (last_component): New method.
70853         * lib/dirname.c (dir_len): Determine when drive letters need a
70854         subsequent slash.  Preserve // when it is special.
70855         (dir_name): Don't append dot when drive letter is absolute.
70856         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70857         * lib/basename.c (base_name): New semantics - malloc the result.
70858         Preserve // when it is special.  Preserve relative files that look
70859         like drive letters.
70860         (base_len): Preserve // when it is special.
70861         (last_component): New method, similar to old base_name semantics.
70862         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70863         base_name.  Strip redundant slashes from ///.
70864
70865 2006-07-03  Jim Meyering  <jim@meyering.net>
70866
70867         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70868         macro is used before the first cycle_check call.
70869
70870 2006-07-03  Eric Blake  <ebb9@byu.net>
70871
70872         * modules/dirname (Depends-on): Add xstrndup.
70873
70874 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70875
70876         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70877         test cases, so that config.log is a bit easier to follow.
70878
70879 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70882         both are 64 bits, since this seems to be the tradition, and this
70883         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70884         we ever run into a host that prefers long long to long in this
70885         case, we'll need another configure-time test.  Problem reported by
70886         Jim Meyering.
70887
70888 2006-07-02  Eric Blake  <ebb9@byu.net>
70889
70890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70891
70892 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70893
70894         * modules/inttypes (Depends-on): No longer depends on stdint.
70895         * modules/stdint (Description): Say more about assumptions.
70896         Say that the fast types might differ.  Say macros are used.
70897         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70898         (Makefile.am): Revise list of substituted symbols to match
70899         new stdint.m4.
70900         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70901         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70902         * tests/test-stdint.c (verify_same_types)
70903         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70904         the code conforms to C99/C89.
70905         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70906         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70907
70908 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70909
70910         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70911         but fix a bug, by requiring at least 64 bits.
70912         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70913         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70914         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70915         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70916
70917         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70918         changes.  Make 2.59 a prerequisite.  Check and substitute for
70919         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70920         inttypes.h.  Do not use special include files; just use the
70921         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70922         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70923         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70924         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70925         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70926         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70927         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70928         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70929         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70930         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70931         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70932         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70933         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70934         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70935         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70936         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70937         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70938         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70939         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70940         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70941         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70942         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70943         not check for things that C99 does not require, e.g., int8_t.  If
70944         a test isn't needed unless <stdint.h> isn't working, and is
70945         unlikely to be needed for any other reason, then don't do it
70946         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70947         size_t, since we assume C89 freestanding at least.  Do not check
70948         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70949         the right thing even if the types are not defined.  Instead use:
70950         (gl_STDINT_TYPE_PROPERTIES): New macro.
70951         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70952         testing whether <sys/types.h> clashes, as Autoconf does this for
70953         us now.  All uses removed.
70954         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70955         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70956         (gl_CHECK_TYPE_SAME):
70957         Remove; no longer needed.
70958         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70959         exists, since we'll return 0 anyway in that case.
70960         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70961
70962 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70965         possible collision with system files.
70966         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70967         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70968         WCHAR_MIN and WCHAR_MAX in this case.
70969         (<stddef.h>): Do not include; no longer needed.
70970         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70971         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70972         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70973         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70974         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70975         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70976         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70977         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70978         !defined(__c99))]: Include in this case too, since it's harmless
70979         now.
70980         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70981         dangerous to do so.
70982         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70983         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70984         (_STDINT_MIN, _STDINT_MAX): New macros.
70985         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70986         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70987         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70988         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70989         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70990         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70991         macros, not typedefs; this simplifies things quite a bit.
70992         Use long int for all types narrower than int64_t.
70993         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70994         Define in terms of long long int or int64_t or long int,
70995         not int64_t or int32_t.  This saves some compile-time testing.
70996         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70997         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70998         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70999         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71000         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71001         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71002         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71003         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71004         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71005         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71006         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71007         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71008         undef any previous version and define our own version, for
71009         simplicity and consistency with the new macros for types.
71010         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71011         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71012         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71013         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71014         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71015         @WINT_T_SUFFIX@ to keep things simple here.
71016         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71017         Simplify by assuming typical 8/16/32/64 host, since we're
71018         already doing that elsewhere anyway.
71019         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71020         and assume long long int is 64 bits if available.  This
71021         speeds up 'configure'.
71022
71023 2006-07-01  Eric Blake  <ebb9@byu.net>
71024
71025         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71026         Reported by Andreas Buening.
71027
71028 2006-07-01  Eric Blake  <ebb9@byu.net>
71029
71030         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71031
71032 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71033
71034         * lib/getaddrinfo.c: fixed typo
71035
71036 2006-06-29  Jim Meyering  <jim@meyering.net>
71037
71038         * modules/strftime (Maintainer): Add my name, since with the
71039         FPRINTFTIME changes strftime.c has forked from glibc.
71040
71041 2006-06-29  Eric Blake  <ebb9@byu.net>
71042
71043         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71044
71045 2006-06-29  Eric Blake  <ebb9@byu.net>
71046
71047         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71048
71049 2006-06-29  Eric Blake  <ebb9@byu.net>
71050
71051         * lib/stat_.h: New file.
71052
71053 2006-06-29  Eric Blake  <ebb9@byu.net>
71054
71055         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71056         unused static function.
71057
71058 2006-06-29  Eric Blake  <ebb9@byu.net>
71059
71060         * doc/functions.texi (Function Portability): Document missing lstat
71061         on mingw.
71062
71063 2006-06-29  Eric Blake  <ebb9@byu.net>
71064
71065         * MODULES.html.sh: Add sys_stat.
71066         * modules/sys_stat: New module.
71067         * modules/mkstemp (Depends-on): Add sys_stat.
71068
71069 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71070
71071         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71072
71073 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71074
71075         * m4/c-bs-a.m4: Removed.
71076
71077 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71078
71079         * lib/strftime.c: Assume strftime() exists.
71080
71081 2006-06-29  Derek Price  <derek@ximbiot.com>
71082
71083         * modules/c-bs-a: Removed - \a is C89.
71084         * MODULES.html.sh: Remove c-bs-a.
71085
71086 2006-06-29  Bruno Haible  <bruno@clisp.org>
71087
71088         * modules/wcwidth (License): Change to LGPL.
71089
71090 2006-06-28  Simon Josefsson  <jas@extundo.com>
71091
71092         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71093         on _WIN32.
71094
71095         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71096         getnameinfo.
71097
71098 2006-06-28  Simon Josefsson  <jas@extundo.com>
71099
71100         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71101
71102 2006-06-28  Simon Josefsson  <jas@extundo.com>
71103
71104         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71105         functions there.  It will succeed on Windows XP, but on Windows
71106         2000 and (presumably) earlier, it will fail, and use the internal
71107         re-implementation.
71108         (use_win32_p): New function.
71109         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71110         Support AI_NUMERICSERV to disable getservbyname.
71111         (getnameinfo): New function, only supports
71112         NI_NUMERICHOST|NI_NUMERICSERV for now.
71113
71114         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71115         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71116         getnameinfo.
71117
71118 2006-06-28  Eric Blake  <ebb9@byu.net>
71119
71120         * modules/wcwidth: New file.
71121         * modules/mbchar (Depends-on): Add wcwidth.
71122         * modules/mbswidth (Depends-on): Add wcwidth.
71123         * MODULES.html.sh: Add wcwidth.
71124
71125 2006-06-28  Eric Blake  <ebb9@byu.net>
71126
71127         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71129
71130 2006-06-28  Eric Blake  <ebb9@byu.net>
71131
71132         * lib/xvasprintf.h: Fix comments.
71133
71134 2006-06-28  Eric Blake  <ebb9@byu.net>
71135
71136         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71137         * lib/mbswidth.c (wcwidth): Move from here...
71138         * lib/wcwidth.h: ...to this new file.
71139
71140 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71141
71142         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71143
71144         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71145         it's obsolete.
71146         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71147
71148 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71149
71150         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71151         Autoconf 2.60 says this stuff was obsolete.
71152
71153 2006-06-28  Bruno Haible  <bruno@clisp.org>
71154
71155         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71156
71157 2006-06-28  Bruno Haible  <bruno@clisp.org>
71158
71159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71160         gt_TYPE_WCHAR_T.
71161
71162 2006-06-28  Bruno Haible  <bruno@clisp.org>
71163
71164         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71165         declaration for wcwidth.
71166         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71167
71168 2006-06-28  Bruno Haible  <bruno@clisp.org>
71169
71170         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71171         (mkdir): Define using _mkdir.
71172
71173 2006-06-28  Bruno Haible  <bruno@clisp.org>
71174
71175         * lib/getaddrinfo.h: Fix POSIX URL.
71176         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71177         _WIN32.
71178         (use_win32_p): Make static.
71179         (getaddrinfo): Reject service name if it is empty or does not consist
71180         solely of decimal digits, or if its value is > 65535.
71181         (getnameinfo): Remove useless casts.
71182
71183 2006-06-27  Simon Josefsson  <jas@extundo.com>
71184
71185         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71186         Eggert and Martin Lambers.
71187
71188 2006-06-27  Simon Josefsson  <jas@extundo.com>
71189
71190         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71191         Eggert and Martin Lambers.
71192
71193 2006-06-27  Bruno Haible  <bruno@clisp.org>
71194
71195         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71196         result to 0, not to empty.
71197         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71198
71199 2006-06-27  Bruno Haible  <bruno@clisp.org>
71200
71201         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71202
71203 2006-06-26  Simon Josefsson  <jas@extundo.com>
71204
71205         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71206         present.
71207
71208 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71211         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71212         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71213
71214 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71215
71216         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71217
71218 2006-06-26  Bruno Haible  <bruno@clisp.org>
71219
71220         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71221
71222 2006-06-26  Bruno Haible  <bruno@clisp.org>
71223
71224         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71225
71226 2006-06-26  Bruno Haible  <bruno@clisp.org>
71227
71228         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71229         SGI C compiler in pre-C99 mode.
71230         Suggested by Mark D. Baushke and Larry Jones.
71231
71232 2006-06-26  Bruno Haible  <bruno@clisp.org>
71233
71234         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71235         WCHAR_MAX.
71236         Reported by Mark D. Baushke and Larry Jones.
71237
71238 2006-06-26  Bruno Haible  <bruno@clisp.org>
71239
71240         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71241         in pre-C99 mode.
71242         Suggested by Mark D. Baushke and Larry Jones.
71243
71244 2006-06-23  Simon Josefsson  <jas@extundo.com>
71245             Bruno Haible  <bruno@clisp.org>
71246
71247         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71248         Emit mostlyclean-local rule.
71249         (func_emit_tests_Makefile_am): Likewise.
71250         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71251
71252 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71253
71254         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71255
71256 2006-06-23  Bruno Haible  <bruno@clisp.org>
71257
71258         * tests/test-stdint.c: Update to match ISO C 99 Technical
71259         Corrigendum 1.
71260
71261 2006-06-23  Bruno Haible  <bruno@clisp.org>
71262
71263         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71264
71265 2006-06-23  Bruno Haible  <bruno@clisp.org>
71266
71267         * lib/stdint_.h: Treat IRIX like OpenBSD.
71268
71269 2006-06-23  Bruno Haible  <bruno@clisp.org>
71270
71271         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71272         ISO C 99 Technical Corrigendum 1.
71273
71274 2006-06-22  Simon Josefsson  <jas@extundo.com>
71275
71276         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71277         MinGW.
71278
71279 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71280
71281         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71282         needed.  Some compiler complained about some of them.  Problem reported
71283         by Larry Jones in
71284         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71285
71286 2006-06-21  Simon Josefsson  <jas@extundo.com>
71287
71288         * tests/test-getaddrinfo.c: New file.
71289
71290         * modules/getaddrinfo-tests: New file.
71291
71292         * MODULES.html.sh: Add inet_pton.
71293
71294         * modules/inet_pton: New file.
71295
71296 2006-06-21  Simon Josefsson  <jas@extundo.com>
71297
71298         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71299         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71300         of using the (limited) gnulib implementation on Windows XP.
71301
71302         * m4/inet_pton.m4: New file.
71303
71304 2006-06-21  Simon Josefsson  <jas@extundo.com>
71305
71306         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71307         variable.
71308
71309         * lib/socket_.h: Don't define WINVER.
71310
71311         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71312         slightly modified to work in gnulib.
71313
71314 2006-06-21  Simon Josefsson  <jas@extundo.com>
71315
71316         * doc/gnulib.texi (Windows sockets): Add.
71317
71318 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71319
71320         * lib/read-file.c (fread_file): Start with buffer allocation of
71321         0 bytes rather than 1 byte; this simplifies the code.
71322         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71323         code to free buffer and save/restore errno.
71324         (internal_read_file): Remove unused local.
71325
71326 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71327
71328         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71329         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71330         Problem reported by Denis Excoffier in
71331         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71332
71333 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71334
71335         * modules/sys_socket, modules/socklen: Include sys/types since
71336         FreeBSD 4.x's sys/socket.h needs it.
71337
71338 2006-06-19  Simon Josefsson  <jas@extundo.com>
71339
71340         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71341
71342 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71343
71344         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71345
71346 2006-06-19  Bruno Haible  <bruno@clisp.org>
71347
71348         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71349         and FULL_PATH_INTTYPES_H in angle brackets.
71350         Reported by Mark D. Baushke <mdb@gnu.org>.
71351
71352 2006-06-17  Eric Blake  <ebb9@byu.net>
71353
71354         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71355         errno.
71356
71357 2006-06-17  Bruno Haible  <bruno@clisp.org>
71358
71359         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71360         <sys/inttypes.h>.
71361
71362 2006-06-17  Bruno Haible  <bruno@clisp.org>
71363
71364         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71365         whether errno is declared. Assume <errno.h> declares errno.
71366
71367 2006-06-17  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71370
71371 2006-06-17  Bruno Haible  <bruno@clisp.org>
71372
71373         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71374         problem on Solaris 2.5.1.
71375
71376 2006-06-16  Eric Blake  <ebb9@byu.net>
71377
71378         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71379         * lib/unicodeio.c [!defined errno]: Likewise.
71380         * lib/strtol.c [!defined errno]: Likewise.
71381         * lib/strtod.c [!defined errno]: Likewise.
71382
71383 2006-06-15  Eric Blake  <ebb9@byu.net>
71384
71385         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71386
71387 2006-06-15  Eric Blake  <ebb9@byu.net>
71388
71389         * config/srclist.txt (ssize_t.m4): Lose sync.
71390
71391 2006-06-15  Bruno Haible  <bruno@clisp.org>
71392
71393         * modules/stdint (Files): Include m4/full-header-path.m4,
71394         m4/size_max.m4, m4/wchar_t.m4.
71395         (Makefile.am): Many more substitutions.
71396         * modules/stdint-tests: New file.
71397         * tests/test-stdint.c: New file.
71398
71399 2006-06-15  Bruno Haible  <bruno@clisp.org>
71400
71401         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71402         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71403         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71404         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71405         gl_CHECK_TYPE_SAME): New macros.
71406
71407 2006-06-15  Bruno Haible  <bruno@clisp.org>
71408
71409         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71410
71411 2006-06-15  Bruno Haible  <bruno@clisp.org>
71412
71413         * lib/stdint_.h: Rewritten to be fully auto-configured.
71414         Fixes bug on HP-UX/IA64.
71415
71416 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         * lib/getdate.y (__attribute__): Don't define if already defined.
71419         Problem reported by Larry Jones.
71420         * lib/utimens.c (__attribute__): Likewise.
71421
71422 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71425         reported by Andreas Schwab.
71426
71427 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71428             Bruno Haible  <bruno@clisp.org>
71429
71430         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71431         check for the declaration of strnlen and a run test that exposes the
71432         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71433         rpl_strndup.
71434
71435 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71436             Bruno Haible  <bruno@clisp.org>
71437
71438         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71439
71440 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71441
71442         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71443         compile test, for Tru64 4.0D.
71444
71445 2006-05-28  Karl Berry  <karl@gnu.org>
71446
71447         * config/srclist.txt (printf-args.c): lose sync.
71448
71449 2006-05-26  Martin Lambers  <marlam@marlam.de>
71450
71451         * lib/getpass.c: Updates the test for the native W32 API, and adds
71452         missing includes, thus fixing compilation warnings.
71453
71454 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71455
71456         * lib/exclude.c (exclude_fnmatch): New function.
71457         (excluded_file_name): Call exclude_fnmatch.
71458         * lib/exclude.h (excluded_file_name): New prototype
71459
71460 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71461
71462         * lib/tempname.c (small_open, large_open): New macros.
71463         (__open, __open64) [!_LIBC]: Remove.
71464         (__gen_tempname): Use small_open and large_open instead of __open
71465         and __open64.  This fixes a portability bug on HP-UX 11.11i
71466         reported by Simon Wing-Tang in
71467         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71468
71469 2006-05-24  Bruno Haible  <bruno@clisp.org>
71470
71471         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71472         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71473         Reported by Thorsten Maerz <torte@netztorte.de> via
71474         Aaron Stone <aaron@serendipity.cx>.
71475
71476 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71479         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71480         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71481         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71482         not really conditional on the cache.
71483         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71484
71485 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71486
71487         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71488         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71489         (my_usleep): Don't mishandle maximum value.
71490
71491 2006-05-19  Jim Meyering  <jim@meyering.net>
71492
71493         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71494
71495 2006-05-17  Bruno Haible  <bruno@clisp.org>
71496
71497         Cygwin portability.
71498         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71499
71500 2006-05-17  Bruno Haible  <bruno@clisp.org>
71501
71502         * lib/stdint_.h: Fix recognition of Cygwin.
71503
71504 2006-05-15  Bruno Haible  <bruno@clisp.org>
71505
71506         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71507         on libtool patch by Ralf Wildenhues.
71508
71509 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71510
71511         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71512         test for C99 conformance; (bool) 0.5 is an integer constant
71513         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71514         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71515
71516 2006-05-11  Simon Josefsson  <jas@extundo.com>
71517
71518         * m4/xvasprintf.m4: Fix obvious typo.
71519
71520 2006-05-11  Jim Meyering  <jim@meyering.net>
71521
71522         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71523         James Lemley.
71524
71525 2006-05-10  Simon Josefsson  <jas@extundo.com>
71526
71527         * lib/md4.c: Typo fix, update copyright years.
71528         (K1, K2): Don't use L because it turn computations into 64-bit on
71529         64-bit platforms.
71530
71531 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71534         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71535         unwanted sign propagation, e.g., on hosts with 64-bit int.
71536         There still are some problems with reeelly weird theoretical hosts
71537         (e.g., 33-bit int) but it's not worth worrying about now.
71538         * lib/sha1.c (rol): Likewise.
71539         (K1, K2, K3, K4): Remove unnecessary L suffix.
71540
71541 2006-05-10  Bruno Haible  <bruno@clisp.org>
71542
71543         * lib/des.c: Cast to avoid warnings.
71544
71545 2006-05-09  Bruno Haible  <bruno@clisp.org>
71546
71547         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71548         (Depends-on): Depend also on xsize, stdarg.
71549         (configure.ac): Add gl_XVASPRINTF.
71550
71551 2006-05-09  Bruno Haible  <bruno@clisp.org>
71552
71553         * m4/xvasprintf.m4: New file.
71554
71555 2006-05-09  Bruno Haible  <bruno@clisp.org>
71556
71557         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71558         (EOVERFLOW): Define fallback value.
71559         (xstrcat): New function.
71560         (xvasprintf): Recognize the special case of a string concatenation.
71561
71562 2006-05-08  Eric Blake  <ebb9@byu.net>
71563
71564         * gnulib-tool (func_version): Base copyright year on CVS date.
71565         (func_emit_copyright_notice): New function.
71566         (func_emit_lib_Makefile_am): Use it.
71567         (func_emit_tests_Makefile_am): Likewise.
71568         (func_import): Likewise.
71569
71570 2006-05-08  Bruno Haible  <bruno@clisp.org>
71571
71572         * modules/stdarg: New file.
71573         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71574
71575 2006-05-08  Bruno Haible  <bruno@clisp.org>
71576
71577         * m4/stdarg.m4: New file, from GNU gettext.
71578
71579 2006-05-08  Bruno Haible  <bruno@clisp.org>
71580
71581         * config/srclist.txt (build-aux/config.rpath): different from latest
71582         release.
71583
71584 2006-05-08  Bruno Haible  <bruno@clisp.org>
71585
71586         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71587
71588 2006-05-05  Jim Meyering  <jim@meyering.net>
71589
71590         * m4/warning.m4: New file, derived from bison's file by the same name.
71591
71592 2006-05-03  Bruno Haible  <bruno@clisp.org>
71593
71594         * lib/stdint_.h: Shorter URL.
71595         * lib/inttypes.h: Likewise.
71596
71597 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71598
71599         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71600
71601 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71602
71603         * lib/verify.h: Document the internals better.  Most of this change
71604         was written by Bruno Haible.
71605
71606 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         * doc/verify.texi: New file, partly based on a proposal by
71609         Bruno Haible.
71610
71611 2006-05-02  Bruno Haible  <bruno@clisp.org>
71612
71613         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71614         test from here...
71615         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71616
71617 2006-04-29  Bruno Haible  <bruno@clisp.org>
71618
71619         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71620         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71621
71622 2006-04-29  Bruno Haible  <bruno@clisp.org>
71623
71624         * gnulib-tool: Make --update option actually work.
71625
71626 2006-04-29  Bruno Haible  <bruno@clisp.org>
71627
71628         * doc/gcd.texi: New file.
71629         * doc/gnulib.texi: Include it.
71630
71631 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71632
71633         * lib/getdate.y (get_date): When adding relative date, start with the
71634         initial time, not with the result of the first mktime call.
71635
71636 2006-04-25  Bruno Haible  <bruno@clisp.org>
71637
71638         * gnulib-tool (func_import): Output the include directives in three
71639         blocks, sorted separately.
71640         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71641
71642 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71643
71644         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71645         to define main with arguments, for C++.  Reported by Eric Blake.
71646         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71647         Prefer 'int main ()' to 'int main (void)', for C++.
71648         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71649         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71650         for 'main', for C99 and C++.
71651
71652 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71653
71654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71655         Don't assume that exit status -1 is valid.
71656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71657         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71658         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71659         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71660         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71661         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71662         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71663         functions can be used without declaring them, or that you can
71664         exit with status -1.
71665         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71666
71667 2006-04-24  Karl Berry  <karl@gnu.org>
71668
71669         * config/srclist.txt (longdouble.m4): sync lost.
71670
71671 2006-04-24  Eric Blake  <ebb9@byu.net>
71672
71673         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71674
71675 2006-04-24  Bruno Haible  <bruno@clisp.org>
71676
71677         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71678         poll() implementation in AIX.
71679         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71680
71681 2006-04-24  Bruno Haible  <bruno@clisp.org>
71682
71683         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71684         assigned exactly once.
71685
71686 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71687             Bruno Haible  <bruno@clisp.org>
71688
71689         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71690         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71691         for AM_CPPFLAGS.
71692
71693 2006-04-23  Bruno Haible  <bruno@clisp.org>
71694
71695         * modules/copy-file: Depend on unistd.
71696         * modules/execute: Likewise.
71697         * modules/fatal-signal: Likewise.
71698         * modules/findprog: Likewise.
71699         * modules/mkdtemp : Likewise.
71700         * modules/pipe: Likewise.
71701         * modules/wait-process: Likewise.
71702
71703 2006-04-23  Bruno Haible  <bruno@clisp.org>
71704
71705         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71706         condition was already detected.
71707         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71708
71709 2006-04-23  Bruno Haible  <bruno@clisp.org>
71710
71711         * lib/copy-file.c: Include <unistd.h> unconditionally.
71712         * lib/execute.c: Likewise.
71713         * lib/fatal-signal.c: Likewise.
71714         * lib/findprog.c: Likewise.
71715         * lib/mkdtemp.c: Likewise.
71716         * lib/pipe.h: Likewise.
71717         * lib/pipe.c: Likewise.
71718         * lib/wait-process.h: Likewise.
71719
71720 2006-04-23  Bruno Haible  <bruno@clisp.org>
71721
71722         * gnulib-tool (func_usage): Fix --import description. Document
71723         --update.
71724         (func_import): Create temporary file in a temporary directory, if
71725         --dry-run is specified. Silence errors from 'grep' when there are no
71726         m4 files in $m4dir.
71727         (func_create_testdir): Silence errors from 'grep' when there are no
71728         m4 files in $m4dir.
71729         Reported by Karl Berry <karl@freefriends.org>.
71730
71731 2006-04-20  Bruno Haible  <bruno@clisp.org>
71732
71733         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71734         one argument, so that the code will be portable to Autoconf 2.60.
71735         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71736         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71737         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71738
71739 2006-04-19  Derek Price  <derek@ximbiot.com>
71740             Eric Blake  <ebb9@byu.net>
71741
71742         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71743         rather than "/full/path.h".  Update comment to match.  Shorten &
71744         generalize m4_translit call via AS_TR_CPP.
71745
71746 2006-04-19  Derek Price  <derek@ximbiot.com>
71747             Eric Blake  <ebb9@byu.net>
71748
71749         * lib/inttypes.h: Correct grammar in comment.
71750
71751 2006-04-18  Derek Price  <derek@ximbiot.com>
71752             Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * modules/inttypes: New file.
71755         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71756
71757 2006-04-18  Derek Price  <derek@ximbiot.com>
71758             Paul Eggert  <eggert@cs.ucla.edu>
71759
71760         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71761         New files.
71762
71763 2006-04-18  Derek Price  <derek@ximbiot.com>
71764             Paul Eggert  <eggert@cs.ucla.edu>
71765
71766         * lib/inttypes.h: New file.
71767         * lib/strtoimax.c: Assume <inttypes.h>.
71768
71769 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71770
71771         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71772         isn't mounted.  Problem reported by Kir Kolyshkin.
71773
71774 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71777         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71778         Derek R. Price.
71779         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71780         implementation.
71781
71782 2006-04-12  Eric Blake  <ebb9@byu.net>
71783
71784         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71785         is now done automatically by the corresponding Autoconf macro.
71786
71787 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71790         time_r.h.
71791
71792 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71793
71794         Merge regex changes from libc, removing some of our
71795         POSIX-conformance changes that were rejected and redoing them in a
71796         less-intrusive way.
71797
71798         * lib/regcomp.c (re_compile_internal, init_dfa):
71799         Length arg is now size_t, not Idx.  All uses changed.
71800         (peek_token): Forward decl now says internal_function.
71801         (__re_error_msgid, __re_error_msgid_idx):
71802         Now static rather than extern with attribute_hidden.
71803         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71804         For some reason libc prefers K&R style defns for external functions.
71805         (regerror) [!defined _LIBC]: Likewise.
71806         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71807         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71808         (build_range_exp, build_collating_symbol):
71809         Use K&R-style defn.
71810         (re_compile_fastmap): Use '\0' to memset, not 0.
71811         (utf8_sb_map): Make the calculations more obvious.
71812         (init_dfa, parse_bracket_exp, build_charclass_op):
71813         Call calloc and cast result, as glibc does.
71814         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71815         (build_range_exp, build_collating_symbol):
71816         Now internal functions.
71817
71818         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71819
71820         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71821         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71822         Don't depend on VMS; depend on __VMS instead, for POSIX
71823         namespace cleanness.
71824         (regoff_t): Define to ssize_t, not long int.
71825
71826         Remove the REG_ macros named below.  Instead, make the old names
71827         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71828         __USE_GNU_REGEX.
71829         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71830         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71831         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71832         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71833         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71834         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71835         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71836         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71837         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71838         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71839         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71840         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71841         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71842         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71843         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71844         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71845         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71846         (REG_NREGS):
71847         Remove.  All uses replaced by the old RE_* names.
71848         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71849         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71850         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71851         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71852         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71853         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71854         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71855         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71856         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71857         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71858         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71859         Don't bother having these macros be independent of each others'
71860         values, since they no longer exist in the POSIX name space.
71861
71862         Rename the following member names back to their old names,
71863         unless !__USE_GNU_REGEX.  All uses changed back.
71864         (buffer): Renamed from re_buffer.
71865         (allocated): Renamed from re_allocated.
71866         (used): Renamed from re_used.
71867         (syntax): Renamed from re_syntax.
71868         (fastmap): Renamed from re_fastmap.
71869         (translate): Renamed from re_translate.
71870         (can_be_null): Renamed from re_can_be_null.
71871         (regs_allocated): Renamed from re_regs_allocated.
71872         (fastmap_accurate): Renamed from re_fastmap_accurate.
71873         (no_sub): Renamed from re_no_sub.
71874         (not_bol): Renamed from re_not_bol.
71875         (not_eol): Renamed from re_not_eol.
71876         (newline_anchor): Renamed from re_newline_anchor.
71877         (num_regs): Renamed from rm_num_regs.
71878         (start): Renamed from rm_start.
71879         (end): Renamed from rm_end.
71880
71881         (free_state): Move up a bit.
71882
71883         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71884         #define to be empty.
71885         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71886         when that is what is intended.
71887         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71888         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71889         (MAX): New macro.
71890         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71891         All uses changed back to re_malloc, etc.  It's now the caller's
71892         responsibility to check for overflow; all callers changed.
71893         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71894         (re_x2nrealloc): Remove.
71895         (free_state): Remove decl.
71896
71897         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71898         (re_set_registers, re_exec):
71899         Use K&R-style defn.
71900
71901         2006-01-31  Roland McGrath  <roland@redhat.com>
71902
71903         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71904         Reported by Mike Frysinger <vapier@gentoo.org>.
71905
71906         2006-01-15  Andreas Jaeger  <aj@suse.de>
71907
71908         [BZ #1950]
71909         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71910         build_wcs_upper_buffer change.
71911         (build_wcs_upper_buffer): Change return type.
71912
71913         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71914
71915         * lib/regex_internal.h: Include <stdint.h> if available.
71916
71917         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71918
71919         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71920
71921         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71922
71923         * lib/regcomp.c: Adjust for changed secondary hash function.
71924
71925         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71926
71927         * lib/regex.h: Pretty printing.
71928         Clean up namespace a bit.
71929
71930         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71931
71932         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71933         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71934
71935         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71936                     Ulrich Drepper  <drepper@redhat.com>
71937
71938         [BZ #1302]
71939         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71940         changed.
71941         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71942
71943         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71944
71945         [BZ #281]
71946         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71947         * lib/regcomp.c: Remove unnecessary uses of
71948         unsigned RE_TRANSLATE_TYPE.
71949         * lib/regex_internal.h: Likewise.
71950         * lib/regex_internal.c: Likewise.
71951         * lib/regexec.c: Likewise.
71952         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71953
71954         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71955
71956         * lib/regexec.c (find_recover_state): Remove unnecessary
71957         initialization.
71958         (transit_state_bkref): Make DFA a const pointer.
71959         (get_subexp): Likewise.
71960         (check_arrival): Likewise.
71961         (update_cur_sifted_state): Likewise.
71962         (re_search_internal): Likewise.
71963         (prune_impossible_nodes): Likewise.
71964         (acquire_init_state_context): Likewise.
71965         (proceed_next_node): Likewise.
71966         (set_regs): Likewise.
71967         (free_fail_stack_return): Likewise.
71968         (check_arrival_expand_ecl): Mark DFA parameter as const.
71969         (check_arrival_expand_ecl_sub): Likewise.
71970         (check_subexp_limits): Likewise.
71971         (sub_epsilon_src_nodes):  Likewise.
71972         (add_epsilon_src_nodes):  Likewise.
71973         (merge_state_array): Likewise.
71974         (update_regs): Likewise.
71975         (build_trtable): Likewise.
71976         (sift_states_backward): Mark MCTX parameter as const.
71977         (build_sifted_states): Likewise.
71978         (update_cur_sifted_state): Likewise.
71979         (sift_states_mkref): Likewise.
71980         (check_arrival_expand_ecl): Mark eclosure as const.
71981         (check_dst_limits_calc_pos_1): Likewise.
71982         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71983         pointer.
71984
71985         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71986
71987         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71988         (transit_state_sb): Likewise.
71989         (transit_state_mb): Likewise.
71990         (sift_states_iter_mb): Likewise.
71991         (check_arrival_add_next_nodes): Likewise.
71992         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71993         [_LIBC] (re_search_2_stub): Use mempcpy.
71994
71995         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71996         mbrtowc for very simple UTF-8 case.
71997
71998         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71999         a pointer-to-const.
72000         (re_acquire_state_context): Likewise.
72001         * lib/regex_internal.h: Adjust prototypes.
72002
72003         * lib/regex.c: Prevent using C++ compilers.
72004
72005         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72006         (re_acquire_state_context): Likewise.
72007
72008 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72009
72010         * modules/regex (Depends-on): Add ssize_t.
72011
72012 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72013
72014         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72015         translation table.
72016
72017 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72018
72019         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72020
72021 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72022             Bruno Haible  <bruno@clisp.org>
72023
72024         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72025         <sys/types.h> and <inttypes.h>.
72026
72027 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72028
72029         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72030         `__error_t_defined', so argp.h will not typedef the former.
72031
72032 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72033
72034         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72035         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72036         glibc names.  Even if glibc is changed to conform to POSIX, the
72037         traditional names will be available anyway, since regex depends on
72038         the extensions module.  Also, fix a longstanding typo in the
72039         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72040         reported by Emanuele Giaquinta.  Also, change sense of cached
72041         variable, so that the message makes sense.
72042
72043 2006-03-24  Simon Josefsson  <jas@extundo.com>
72044
72045         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72046         including some doc fixes.
72047         (base64_encode_alloc): Fix +1 bug on allocation failures.
72048
72049 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72050
72051         * lib/base64.c (base64_encode): Do not read past end of array with
72052         unsanitized input on systems with CHAR_BIT > 8.
72053
72054 2006-03-24  Eric Blake  <ebb9@byu.net>
72055
72056         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72057
72058 2006-03-22  Karl Berry  <karl@gnu.org>
72059
72060         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72061         * config/srclistvars.sh (COREUTILS): new var.
72062
72063 2006-03-17  Jim Meyering  <jim@meyering.net>
72064
72065         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72066         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72067
72068 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72069
72070         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72071         no longer needs it.  Instead, check that regoff_t is as least
72072         as wide as ptrdiff_t.
72073
72074         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72075         so that our regex.h stays compatible with the installed regex.
72076         This is helpful for installers who configure --without-included-regex.
72077         Problem reported by Emanuele Giaquinta.
72078
72079 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72082         Typedef to long int, not to off_, as POSIX will likely change
72083         in that direction.
72084
72085 2006-03-15  Eric Blake  <ebb9@byu.net>
72086
72087         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72088
72089 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72090
72091         * lib/argp-help.c (validate_uparams): Fix typo
72092         * lib/argp-parse.c (argp_default_options): Consistently begin help
72093         messages with a lowercase letter.
72094
72095 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72096
72097         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72098         overrun buffers and shouldn't be used (much as gets shouldn't be
72099         used).
72100         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72101
72102 2006-03-08  Simon Josefsson  <jas@extundo.com>
72103
72104         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72105         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72106
72107 2006-03-08  Simon Josefsson  <jas@extundo.com>
72108
72109         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72110         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72111
72112 2006-03-08  Simon Josefsson  <jas@extundo.com>
72113
72114         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72115         signal that configure disabled the device.
72116
72117 2006-03-08  Simon Josefsson  <jas@extundo.com>
72118
72119         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72120         languages.
72121
72122 2006-03-07  Simon Josefsson  <jas@extundo.com>
72123
72124         * modules/getopt (Depends-on): Add unistd.
72125
72126         * modules/unistd: New file.
72127
72128 2006-03-07  Simon Josefsson  <jas@extundo.com>
72129
72130         * modules/gc-random: New file.
72131
72132 2006-03-07  Simon Josefsson  <jas@extundo.com>
72133
72134         * m4/unistd_h.m4: New file.
72135
72136 2006-03-07  Simon Josefsson  <jas@extundo.com>
72137
72138         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72139         test to be side-effect free by storing the result in the cache
72140         variable gl_cv_lib_readline, and moving the assignment of
72141         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72142         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72143
72144 2006-03-07  Simon Josefsson  <jas@extundo.com>
72145
72146         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72147         error on missing devices (the functions will return an error).
72148
72149         * m4/gc.m4: Move random stuff to gc-random.m4
72150
72151 2006-03-07  Simon Josefsson  <jas@extundo.com>
72152
72153         * lib/unistd_.h: New file.
72154
72155 2006-03-07  Simon Josefsson  <jas@extundo.com>
72156
72157         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72158
72159 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72160
72161         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72162         Problem reported by Juan Manuel Guerrero.
72163
72164 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72167         the unistd module.
72168         * lib/getlogin_r.c: Likewise.
72169         * lib/getlogin_r.h: Likewise.
72170         * lib/glob.c: Likewise.
72171         * lib/pagealign_alloc.c: Likewise.
72172         * lib/unistd_.h: Remove; no longer needed.
72173
72174 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72175
72176         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72177         Add unistd.
72178         * modules/c-stack (Depends-on): Add unistd.
72179         * modules/getlogin_r: Likewise.
72180         * modules/glob: Likewise.
72181         * modules/pagealign_alloc: Likewise.
72182         * modules/unistd (Files): Remove lib/unistd_.h.
72183         (EXTRA_DIST): Remove.
72184         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72185         need unistd_.h.
72186         (MOSTLYCLEANFILES): Remove unistd.h-t.
72187
72188 2006-03-03  Simon Josefsson  <jas@extundo.com>
72189
72190         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72191
72192 2006-03-03  Simon Josefsson  <jas@extundo.com>
72193
72194         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72195         libidn and bison.
72196
72197 2006-03-03  Simon Josefsson  <jas@extundo.com>
72198
72199         * build-aux/maint.mk: Add indent target.
72200
72201 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72202
72203         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72204         our replacement poll.h in any case, to avoid a differing
72205         declaration from a system header.  Seen on AIX.
72206
72207 2006-03-01  Simon Josefsson  <jas@extundo.com>
72208
72209         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72210         <kasal@ucw.cz>.
72211
72212 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72213
72214         * modules/gettime (Depends-on): Add extensions module.
72215         * modules/nanosleep (Depends-on): Likewise.
72216         * modules/settime (Depends-on): Likewise.
72217
72218 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72219
72220         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72221         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72222         pedantically.
72223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72224         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72225
72226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72227         not "==".  Reported by Ralf Wildenhues.
72228
72229 2006-03-01  Karl Berry  <karl@gnu.org>
72230
72231         * doc/Copyright/request-*: new files, synced from gnuorg.
72232
72233 2006-03-01  Karl Berry  <karl@gnu.org>
72234
72235         * config/srclist.txt (Copyright/*): new entries.
72236
72237 2006-02-28  Simon Josefsson  <jas@extundo.com>
72238
72239         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72240
72241 2006-02-27  Simon Josefsson  <jas@extundo.com>
72242
72243         * lib/base64.h: Indent #define's.  From Jim Meyering
72244         <jim@meyering.net>.
72245
72246 2006-02-27  Jim Meyering  <jim@meyering.net>
72247
72248         Revert the change of 2006-02-24, so these files can continue
72249         to be sync'd from gettext.
72250         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72251         of `config.h'.
72252
72253 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72254
72255         * modules/intprops: New file.
72256         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72257         Add intprops.
72258         * modules/getloadavg (Files): Remove lib/intprops.h.
72259         (Depends-on): Add intprops.
72260         * modules/human: Likewise.
72261         * modules/inttostr: Likewise.
72262         * modules/openat: Likewise.
72263         * modules/sig2str: Likewise.
72264         * modules/userspec: Likewise.
72265         * modules/utimecmp: Likewise.
72266         * modules/xnanosleep: Likewise.
72267         * modules/xstrtol: Likewise.
72268
72269 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72270
72271         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72272         * modules/lock-tests (TESTS): Use $(EXEEXT).
72273         * modules/tls-tests: Likewise.
72274         * modules/argp-tests: Likewise.
72275         (check_PROGRAMS): New var, replacing...
72276         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72277
72278 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72279
72280         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72281         `config.h'.
72282
72283 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72286
72287 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72288
72289         Sync from coreutils.
72290         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72291         gl_CHDIR_SAFER.
72292
72293 2006-02-22  Jim Meyering  <jim@meyering.net>
72294
72295         Sync from coreutils.
72296         * m4/chdir-safer.m4: New file.
72297
72298 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72299
72300         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72301         AT_FDCWD exceeds INT_MAX.
72302         * lib/openat.h (AT_FDCWD): Likewise.
72303
72304 2006-02-17  Eric Blake  <address@hidden>
72305
72306         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72307
72308 2006-02-16  Simon Josefsson  <jas@extundo.com>
72309
72310         * modules/getaddrinfo (Depends-on): Add sys_socket.
72311
72312 2006-02-15  Simon Josefsson  <jas@extundo.com>
72313
72314         * build-aux/maint.mk: Add dsyntax-check rule.
72315
72316 2006-02-15  Eric Blake  <ebb9@byu.net>
72317
72318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72319         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72320         'present but cannot compile' warnings on cygwin.
72321         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72322         use ws2tcpip.h if sys/socket.h works.
72323         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72324         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72325
72326 2006-02-14  Simon Josefsson  <jas@extundo.com>
72327
72328         * modules/maintainer-makefile (Files): Rename.
72329
72330         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72331         and (the local) Makefile.cfg to maint-cfg.mk.
72332
72333         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72334         to the latter.
72335
72336         * modules/maintainer-makefile: New module.
72337
72338         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72339         severaly stripped to make it possible to build it up from scratch
72340         with reliable tests.
72341
72342         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72343         fixes to permit overriding the default actions when configure and
72344         makefile are not available.
72345
72346 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72347
72348         Sync from coreutils.
72349         * modules/lstat (Depends-on): Don't depend on xalloc.
72350         (License): Change from GPL to LGPL, since this is now simply a
72351         replacement for a libc function.
72352
72353 2006-02-14  Jim Meyering  <jim@meyering.net>
72354
72355         Sync from coreutils.
72356
72357         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72358         failure on deficient systems, and simplify gnulib lgpl dependencies.
72359         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72360         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72361
72362         * lib/xalloc-die.c: Remove unused definition of N_.
72363
72364 2006-02-14  Jim Meyering  <jim@meyering.net>
72365
72366         Sync from coreutils.
72367         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72368         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72369         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72370         double-quote uses of that variable, to accommodate the rare case in
72371         which getmntent is available in none of the libraries checked.  This
72372         happens at least on FreeBSD 5.0.
72373
72374 2006-02-13  Simon Josefsson  <jas@extundo.com>
72375
72376         * gnulib-tool (Usage): Fix --import, from
72377         karl@freefriends.org (Karl Berry).
72378
72379 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72380
72381         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72382
72383 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72384
72385         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72386         "autoupdate" on 2005-12-12.
72387
72388 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         * modules/closeout (Depends-on): Remove atexit.
72391
72392 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72393
72394         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72395         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72396
72397 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72400         __EXTENSIONS__ if this causes compilation to fail.  Problem
72401         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72402         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72403
72404 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72405
72406         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72407         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72408         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72409         All uses changed.
72410
72411 2006-01-26  Simon Josefsson  <jas@extundo.com>
72412
72413         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72414         prototype is visible on mingw32.
72415
72416         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72417         for mingw32.
72418
72419         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72420         mingw32).
72421
72422 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72425         attempt to open for write; this always fails, at least on POSIX
72426         hosts.  This reinstates the 2006-01-09 change, which was
72427         inadvertently removed.
72428
72429 2006-01-26  Bruno Haible  <bruno@clisp.org>
72430
72431         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72432         Reported by Paul Eggert.
72433
72434 2006-01-26  Bruno Haible  <bruno@clisp.org>
72435             Paul Eggert  <eggert@cs.ucla.edu>
72436
72437         * lib/stdbool_.h (_Bool)
72438         [(! (defined __cplusplus || defined __BEOS__)
72439           && !defined __GNUC__
72440           && !(defined __HP_cc || defined __xlc__
72441                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72442                || defined __sgi))]:
72443         #define to signed char in these cases too; this simplifies
72444         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72445         etc., separately) and makes it more conservative.
72446
72447 2006-01-25  Simon Josefsson  <jas@extundo.com>
72448
72449         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72450         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72451         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72452
72453 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72454
72455         * lib/argp-namefrob.h: Bugfix. Remove stray #
72456
72457 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72458
72459         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72460         so that we test the test.
72461         Check for yet another HP-UX cc bug involving *bool |= bool.
72462
72463 2006-01-25  Karl Berry  <karl@gnu.org>
72464
72465         * config/srclist.txt (vasnprintf.c): sync lost.
72466
72467 2006-01-25  Jim Meyering  <jim@meyering.net>
72468
72469         Sync from the stable (b5) branch of coreutils:
72470
72471         * lib/fts.c (fts_children): Don't let close() clobber errno from
72472         failed fchdir().
72473
72474         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72475         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72476         a dangling symlink.  That can also happen at least for ELOOP.
72477         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72478         FYI, this bug predates the inclusion of fts.c in coreutils.
72479
72480         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72481         in their own block, so pre-c99 compilers don't object.
72482
72483         Avoid the double-free (first in fts_read, second in fts_close) that
72484         would occur when an `active' directory is made inaccessible (e.g.,
72485         via chmod a-x) during a traversal.
72486         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72487         before returning.  Reproduce this failure by
72488         mkdir -p a/b; cd a; chmod a-x . b
72489         Reported by Stavros Passas.
72490
72491 2006-01-25  Jim Meyering  <jim@meyering.net>
72492
72493         * lib/fileblocks.c: Remove more useless parentheses.
72494         * lib/readutmp.h: Likewise.
72495
72496 2006-01-25  Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72499         warnings.
72500         Reported by Paul Eggert.
72501
72502 2006-01-25  Bruno Haible  <bruno@clisp.org>
72503
72504         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72505         rid of a trap command. For Solaris sh.
72506         Reported by Mark D. Baushke <mdb@gnu.org>.
72507
72508 2006-01-24  Simon Josefsson  <jas@extundo.com>
72509
72510         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72511         Bruno.
72512
72513 2006-01-24  Karl Berry  <karl@gnu.org>
72514
72515         * config/srclist.txt (argp-namefrob.h): sync lost.
72516
72517 2006-01-24  Jim Meyering  <jim@meyering.net>
72518
72519         * modules/openat (Files): Add lib/intprops.h.
72520         From Mark D. Baushke.
72521
72522 2006-01-24  Jim Meyering  <jim@meyering.net>
72523
72524         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72525         Reported by Mark D. Baushke.
72526
72527 2006-01-24  Jim Meyering  <jim@meyering.net>
72528
72529         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72530
72531 2006-01-24  Bruno Haible  <bruno@clisp.org>
72532
72533         * modules/strnlen (Maintainer): Change from glibc to all.
72534
72535 2006-01-24  Bruno Haible  <bruno@clisp.org>
72536
72537         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72538         Patch by Paul Eggert.
72539
72540 2006-01-24  Bruno Haible  <bruno@clisp.org>
72541
72542         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72543         already has it.
72544         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72545         2005-11-26.
72546
72547         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72548         'signed char' to avoid problems with the built-in _Bool type.
72549         Reported by Paul Eggert on 2005-11-26.
72550
72551 2006-01-24  Bruno Haible  <bruno@clisp.org>
72552
72553         * gnulib-tool (func_import): Avoid constructing complicated sed
72554         expressions inside backquote.
72555         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72556
72557 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72558
72559         These changes imported from libc.
72560         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72561         test and two separate function calls.
72562         * lib/strndup.c (__strndup): Add libc_hidden_def.
72563
72564 2006-01-23  Simon Josefsson  <jas@extundo.com>
72565
72566         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72567         Remove the test_*_SOURCES variable: automake infers it by default.
72568         * modules/tls-tests: Likewise.
72569
72570 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         Work around porting bugs reported by Dieter in
72573         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72574         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72575         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72576         Include "getopt.h" first, to check interface.
72577         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72578         !HAVE_DECL_GETENV.
72579         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72580         (__strndup): Revert to K&R-style function dfns, the glibc style.
72581         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72582         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72583         Include strnlen.h first, to get prototype properly.
72584         (strnlen): Renamed from __strnlen.
72585         Remove weak alias.
72586
72587 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72590
72591 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72592
72593         * config/srclist.txt: Adjust to reflect glibc reorganization.
72594         This affects only comments.
72595
72596 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72597
72598          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72599          Reported by Bruce Korb <bkorb@gnu.org>.
72600
72601 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72602
72603         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72604         to pacify gcc -Wswitch-default.
72605
72606 2006-01-22  Bruno Haible  <bruno@clisp.org>
72607
72608         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72609         temporary buffer for sprintf, take into account the precision also
72610         for 'd', 'i', 'u', 'o', 'x', 'X'.
72611
72612 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72613
72614         * modules/argp-tests: New module
72615         * tests/test-argp.c: New file
72616         * tests/test-argp-2.sh: New file
72617
72618 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72619
72620         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72621         (__argp_base_name): Removed
72622         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72623         typo.
72624         (__argp_base_name): Provide macro definition or extern declaration
72625         depending on the configuration
72626
72627 2006-01-20  Simon Josefsson  <jas@extundo.com>
72628
72629         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72630
72631 2006-01-20  Simon Josefsson  <jas@extundo.com>
72632
72633         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72634
72635 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72636
72637         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72638         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72639         Suggested by Bruno Haible.
72640
72641 2006-01-20  Karl Berry  <karl@gnu.org>
72642
72643         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72644         until changes propagate, I guess.
72645
72646 2006-01-19  Simon Josefsson  <jas@extundo.com>
72647
72648         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72649
72650 2006-01-19  Simon Josefsson  <jas@extundo.com>
72651
72652         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72653
72654 2006-01-19  Simon Josefsson  <jas@extundo.com>
72655
72656         * gnulib-tool: Set check_PROGRAMS.
72657
72658         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72659         modules/des-tests, modules/gc-arcfour-tests,
72660         modules/gc-arctwo-tests, modules/gc-des-tests,
72661         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72662         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72663         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72664         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72665         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72666         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72667         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72668         test_*_SOURCES.
72669
72670 2006-01-18  Simon Josefsson  <jas@extundo.com>
72671
72672         * modules/socklen (Depends-on): Depend on sys_socket.
72673
72674 2006-01-18  Simon Josefsson  <jas@extundo.com>
72675
72676         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72677         modules/des-tests, modules/gc-arcfour-tests,
72678         modules/gc-arctwo-tests, modules/gc-des-tests,
72679         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72680         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72681         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72682         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72683         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72684         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72685         $(EXEEXT) to automake TESTS variable, for mingw32.
72686
72687 2006-01-17  Simon Josefsson  <jas@extundo.com>
72688
72689         * modules/socklen (Include): Need sys/socket.h.
72690
72691 2006-01-17  Bruno Haible  <bruno@clisp.org>
72692
72693         * modules/ssize_t (Include): Add <sys/types.h>.
72694
72695 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72696
72697         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72698         it's not portable and it doesn't work with cross-compiles.
72699         Problem reported by Bruno Haible.  Fix missing-$ typo in
72700         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72701         -zignore from being used with Sun's C compiler.
72702
72703 2006-01-12  Simon Josefsson  <jas@extundo.com>
72704
72705         * lib/base64.c: Fix warning, reported by Bruno Haible
72706         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72707
72708 2006-01-12  Bruno Haible  <bruno@clisp.org>
72709
72710         * modules/ldd: New file.
72711         * build-aux/ldd.sh.in: New file.
72712         * MODULES.html.sh (Support for building libraries and executables): Add
72713         ldd.
72714
72715 2006-01-12  Bruno Haible  <bruno@clisp.org>
72716
72717         * m4/ldd.m4: New file.
72718
72719 2006-01-12  Bruno Haible  <bruno@clisp.org>
72720
72721         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72722         endless loop while replacing $auxdir with build-aux.
72723
72724 2006-01-11  Simon Josefsson  <jas@extundo.com>
72725
72726         * lib/stdint_.h (SIZE_MAX): Add missing (.
72727
72728 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72729
72730         Sync from coreutils.
72731         * lib/md5.c: Fix commentary typos.
72732         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72733         * lib/md5.h (__attribute__): Remove; unused.
72734         * lib/sha1.c: Fix commentary to match md5 better.
72735         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72736         so that we don't need to worry about alignment.  All uses changed.
72737         This merges the 2005-10-28 md5 change into sha1.
72738
72739 2006-01-11  Jim Meyering  <jim@meyering.net>
72740
72741         Sync from coreutils.
72742         * lib/md5.c (OP): Fix spacing.
72743
72744 2006-01-11  Bruno Haible  <bruno@clisp.org>
72745
72746         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72747         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72748         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72749
72750 2006-01-11  Bruno Haible  <bruno@clisp.org>
72751
72752         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72753         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72754         the "early" section as well.
72755
72756 2006-01-11  Bruno Haible  <bruno@clisp.org>
72757
72758         Avoid "ar: no archive members specified" error on MacOS X.
72759         * gnulib-tool (func_modules_add_dummy): New function.
72760         (func_import, func_create_testdir): Invoke it.
72761
72762 2006-01-11  Bruno Haible  <bruno@clisp.org>
72763
72764         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72765         with $auxdir in AC_CONFIG_FILES statements.
72766
72767 2006-01-11  Bruno Haible  <bruno@clisp.org>
72768
72769         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72770         Initialize also noinst_HEADERS to empty.
72771
72772 2006-01-11  Bruno Haible  <bruno@clisp.org>
72773
72774         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72775         variables.
72776         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72777         autoreconf.
72778
72779 2006-01-11  Bruno Haible  <bruno@clisp.org>
72780
72781         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72782         overridable by the user.
72783         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72784
72785 2006-01-10  Simon Josefsson  <jas@extundo.com>
72786
72787         * modules/sys_socket: New file.
72788
72789 2006-01-10  Simon Josefsson  <jas@extundo.com>
72790
72791         * m4/sys_socket_h.m4: New file.
72792
72793 2006-01-10  Simon Josefsson  <jas@extundo.com>
72794
72795         * lib/socket_.h: New file.
72796
72797 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * modules/readutmp (Maintainer): Add myself.
72800
72801 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72804         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72805         People who are still concerned with buggy memcmp implementations
72806         can invoke gl_FUNC_MEMCMP themselves.
72807
72808 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72809
72810         * lib/regex_internal.h (BITSET_WORD_BITS):
72811         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72812         preprocessor mishandles large unsigned values as if they were signed.
72813         Problem reported by Claudio Fontana in
72814         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72815
72816 2006-01-10  Jim Meyering  <jim@meyering.net>
72817
72818         Avoid the double-free (first in fts_read, second in fts_close) that
72819         would occur when an `active' directory is made inaccessible (e.g.,
72820         via chmod a-x) during a traversal.
72821         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72822         before returning.  Reproduce this failure by
72823         mkdir -p a/b; cd a; chmod a-x . b
72824         Reported by Stavros Passas.
72825
72826         Sync from coreutils.
72827         * lib/sha1.c: Tweak grammar in a comment.
72828
72829 2006-01-10  Jim Meyering  <jim@meyering.net>
72830
72831         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72832         Patch by Joerg Sonnenberger.
72833
72834 2006-01-10  Bruno Haible  <bruno@clisp.org>
72835
72836         * modules/readutmp: Depend on module free.
72837         * modules/strtok_r: Depend on module restrict.
72838
72839 2006-01-10  Bruno Haible  <bruno@clisp.org>
72840
72841         * modules/gettext (configure.ac): Add an invocation of
72842         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72843
72844 2006-01-10  Bruno Haible  <bruno@clisp.org>
72845
72846         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72847         Reported by Werner Lemberg <wl@gnu.org>.
72848
72849 2006-01-10  Bruno Haible  <bruno@clisp.org>
72850
72851         * lib/localcharset.c: Update from GNU gettext.
72852
72853 2006-01-10  Bruno Haible  <bruno@clisp.org>
72854
72855         * lib/argp.h (__const): Remove macro. Use const instead.
72856         * lib/argp-fmtstream.h (__const): Likewise.
72857         * lib/glob_.h (__const): Remove macro.
72858         * lib/glob-libc.h: Use const instead of __const.
72859
72860 2006-01-10  Bruno Haible  <bruno@clisp.org>
72861
72862         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72863         variable.
72864         Needed to avoid an automake error regarding the 'gettext' module.
72865
72866 2006-01-09  Simon Josefsson  <jas@extundo.com>
72867
72868         * modules/inet_ntop (Depends-on): Add restrict.
72869
72870 2006-01-09  Simon Josefsson  <jas@extundo.com>
72871
72872         * modules/gc-rijndael-tests (License): Put under LGPL.
72873
72874         * modules/gc-des-tests (License): Likewise.
72875
72876         * modules/gc-arcfour-tests (License): Likewise.
72877
72878         * modules/gc-arctwo-tests (License): Likewise.
72879
72880         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72881
72882         * modules/gc-hmac-sha1-tests (Files): Likewise.
72883
72884         * modules/gc-hmac-md5-tests (License): Likewise.
72885
72886         * modules/gc-sha1-tests (License): Likewise.
72887
72888         * modules/gc-md5-tests (License): Likewise.
72889
72890         * modules/gc-md4-tests (License): Likewise.
72891
72892         * modules/gc-md2-tests (License): Likewise.
72893
72894         * modules/gc-tests (License): Likewise.
72895
72896         * modules/des-tests (License): Likewise.
72897
72898         * modules/md4-tests (License): Likewise.
72899
72900         * modules/md2-tests (License): Likewise.
72901
72902 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72903
72904         Sync from coreutils:
72905
72906         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72907         * modules/lib-ignore: New file.
72908         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72909         chdir-safer.m4, lchmod.m4.
72910         * modules/openat: Add mkdirat.c, openat-priv.h.
72911
72912 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         Sync from coreutils.
72915         * m4/lib-ignore.m4: New file.
72916         * m4/lchmod.m4: New file.
72917
72918 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72919
72920         Sync from coreutils.
72921         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72922         for write access: POSIX says that must fail.
72923         * lib/fts.c (diropen): Likewise.
72924         * lib/save-cwd.c (save_cwd): Likewise.
72925         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72926         well, for minor improvements on hosts that lack O_DIRECTORY.
72927         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72928         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72929         Fall back on chown if open failed with EACCES.
72930
72931         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72932         Report an error at compile-time if only a 1-second nominal clock
72933         resolution is found.
72934
72935         * lib/lchmod.h: New file.
72936         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72937         (make_dir_parents): Use lchown rather than chown, and
72938         lchmod rather than chmod.
72939
72940         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72941         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72942         "proc" reported by n0dalus.
72943
72944         * lib/mountlist.c: Include <limits.h>.
72945         (dev_from_mount_options)
72946         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72947         New function.  It no longer assumes "dev=" has the System V meaning
72948         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72949         (read_file_system_list)
72950         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72951         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72952         dev= in that case.
72953
72954         * lib/posixtm.h (PDS_PRE_2000): New macro.
72955         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72956         allow_century.  All usages changed.  Reject dates outside the range
72957         1969-1999 if PDS_PRE_2000 is used.
72958
72959 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72960
72961         Sync from coreutils.
72962         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72963         (Time of day items): Mention the possibility of leap seconds.
72964         Problem reported by Dr. David Alan Gilbert.
72965
72966 2006-01-09  Jim Meyering  <jim@meyering.net>
72967
72968         Sync from coreutils.
72969
72970         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72971
72972         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72973
72974         * lib/modechange.c (mode_compile): Reject an invalid mode string
72975         that starts with an octal digit.  From Andreas Gruenbacher.
72976
72977         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72978         and dup to open_safer and dup_safer, respectively.
72979         (openat_permissive): Fix typo in comment.
72980
72981         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72982         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72983         (_): Remove; no longer needed.
72984         (openat): Renamed from rpl_openat; no need for rpl_openat
72985         since openat.h renames openat for us.
72986         Replace most of the body with a call to openat_permissive,
72987         to avoid duplicate code.
72988         Port to (probably hypothetical) environments were mode_t is
72989         wider than int.
72990         (openat_permissive): Require mode arg, so that we can check
72991         types better.  Put it just after flags.  Change cwd failure
72992         indicator from pointer-to-bool to pointer-to-errno-value.
72993         All callers changed.
72994         Invoke openat_save_fail and/or openat_restore_fail if
72995         cwd_errno is null, so that openat can call us.
72996         (openat_permissive, fdopendir, fstatat, unlinkat):
72997         Simplify errno handling to avoid some duplicate code,
72998         as it's OK to set errno on success.
72999         * lib/openat.h: Revamp code so that function macros depend on
73000         __OPENAT_PREFIX only, not also on AT_FDCWD.
73001         (openat_ro): Remove.  Caller changed to use openat_permissive.
73002         (openat_permissive): Now a macro, if not a function.
73003         (openat_restore_fail, openat_save_fail): Now always functions,
73004         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73005
73006         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73007         and openat.c.
73008         * lib/mkdirat.c: Include openat-priv.h.
73009         Remove definitions of macros defined therein.
73010         * lib/openat.c: Likewise.
73011
73012         * lib/mkdirat.c (mkdirat): New file and function.
73013         * lib/openat.h (mkdirat): Declare.
73014
73015         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73016
73017         * lib/openat.h (openat_permissive): Declare.
73018         (openat_ro): Define.
73019
73020         * lib/openat.c (EXPECTED_ERRNO): New macro.
73021         (openat_permissive): New function -- used in remove.c rewrite.
73022         (all functions): Set errno just before returning, only if there
73023         was an actual failure.
73024         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73025
73026         Emulate openat-family functions using Linux's procfs, if possible.
73027         Idea and some code based on Ulrich Drepper's glibc changes.
73028
73029         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73030         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73031         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73032         before falling back on save_cwd and restore_cwd.
73033         (fdopendir, fstatat, unlinkat): Likewise.
73034
73035         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73036         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73037
73038         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73039         as second argument to va_arg.  Otherwise, some versions of gcc
73040         warn that `if this code is reached, the program will abort'.
73041
73042 2006-01-09  Jim Meyering  <jim@meyering.net>
73043
73044         Sync from coreutils.
73045         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73046         Require openat-priv.h.
73047
73048 2006-01-09  Bruno Haible  <bruno@clisp.org>
73049
73050         * modules/strnlen (Include): Use strnlen.h.
73051
73052 2006-01-09  Bruno Haible  <bruno@clisp.org>
73053
73054         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73055
73056 2006-01-09  Bruno Haible  <bruno@clisp.org>
73057
73058         * lib/sysexit_.h (EX_OK): New macro.
73059         Suggested by Martin Lambers <marlam@marlam.de>.
73060
73061 2006-01-09  Bruno Haible  <bruno@clisp.org>
73062
73063         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73064         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73065
73066 2006-01-09  Bruno Haible  <bruno@clisp.org>
73067
73068         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73069         numbers.
73070
73071 2006-01-09  Bruno Haible  <bruno@clisp.org>
73072
73073         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73074         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73075         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73076         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73077
73078 2006-01-09  Bruno Haible  <bruno@clisp.org>
73079
73080         * build-aux/javacomp.sh.in: New file, moved from lib/.
73081         * modules/javacomp-script (Files): Update.
73082         (configure.ac): Add AC_CONFIG_FILES invocation.
73083         (EXTRA_DIST): Remove variable.
73084
73085         * build-aux/javaexec.sh.in: New file, moved from lib/.
73086         * modules/javaexec (Files): Update.
73087         (configure.ac): Add AC_CONFIG_FILES invocation.
73088         (EXTRA_DIST): Remove javaexec.sh.in.
73089
73090         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73091         * modules/csharpcomp-script (Files): Update.
73092         (configure.ac): Add AC_CONFIG_FILES invocation.
73093         (EXTRA_DIST): Remove variable.
73094
73095         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73096         * modules/csharpexec (Files): Update.
73097         (configure.ac): Add AC_CONFIG_FILES invocation.
73098         (EXTRA_DIST): Remove csharpexec.sh.in.
73099
73100 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73101
73102         Sync from coreutils.
73103
73104         Add POSIX ACL support
73105         * lib/acl.h (copy_acl, set_acl): Add declarations.
73106         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73107         systems other than Linux.
73108         (chmod_or_fchmod): New function: use fchmod when possible,
73109         and chmod otherwise.
73110         (file_has_acl): Add a POSIX ACL implementation, with a
73111         Linux-specific subcase.
73112         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73113         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73114         acls are unsupported.
73115         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73116         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73117         are unsupported.
73118
73119 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73120
73121         Sync from coreutils.
73122         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73123
73124 2006-01-07  Bruno Haible  <bruno@clisp.org>
73125
73126         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73127         gl_EARLY.
73128
73129 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73130
73131         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73132         Problem reported for Mingw by Mark Junker.
73133
73134 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73135
73136         * README: Gnulib normally doesn't generate a tarball.
73137
73138 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73139
73140         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73141         long int, not int, for nanosecond counts, so that people who are
73142         used to POSIX struct timespec won't be surprised.  Reported by Jim
73143         Meyering.
73144
73145 2005-12-28  Bruno Haible  <bruno@clisp.org>
73146
73147         * build-aux/config.rpath: Update from GNU gettext.
73148
73149 2005-12-16  Jim Meyering  <jim@meyering.net>
73150
73151         * modules/fprintftime: New module.
73152         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73153
73154 2005-12-16  Jim Meyering  <jim@meyering.net>
73155
73156         * m4/fprintftime.m4: New file.
73157
73158 2005-12-16  Jim Meyering  <jim@meyering.net>
73159
73160         * lib/fprintftime.c, lib/fprintftime.h: New files.
73161
73162 2005-12-15  Simon Josefsson  <jas@extundo.com>
73163
73164         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73165         new m4/socklen.m4.
73166
73167 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73168
73169         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73170         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73171
73172 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73173
73174         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73175         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73176         struct uparams is valid. Fall back to the default values if it is
73177         not.
73178
73179 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73180
73181         * modules/argp (Files): Add argp-pin.c
73182         (Depends-on): dirname
73183         (lib_SOURCES): Add argp-pin.c
73184
73185 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73186
73187         * m4/argp.m4:  Check if program_invocation_name and
73188         program_invocation_short_name are declared and define appropriate
73189         macros if they are not.
73190
73191 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73192
73193         * lib/argp-help.c (__argp_base_name): New function
73194         (__argp_short_program_name): Rewrite using __argp_base_name
73195         * lib/argp-namefrob.h: Define program_invocation_name and
73196         program_invocation_short_name if requested
73197         (__argp_base_name): Add prototype
73198         * lib/argp-parse.c (argp_def): Use gettext wrappers
73199         (argp_default_parser): Use __argp_base_name
73200         * lib/argp-pin.c: New file. Defines program_invocation_name and
73201         program_invocation_short_name on systems that lack them.
73202
73203 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73204
73205         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73206         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73207         porting problem reported by Georg Schwarz in
73208         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73209
73210 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73211
73212         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73213         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73214         porting problem reported by Georg Schwarz in
73215         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73216
73217 2005-12-05  Bruno Haible  <bruno@clisp.org>
73218
73219         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73220         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73221         Reported by Mark Junker <mjscod@gmx.de>.
73222
73223 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73226         Use implementation from Albert Chin, with some
73227         comments/corrections by Stepan Kasal and myself.
73228
73229 2005-12-02  Bruno Haible  <bruno@clisp.org>
73230
73231         * gnulib-tool (func_import): Accept GPLed build tool modules when
73232         --lgpl is given.
73233         * modules/csharpcomp-script: New file.
73234         * modules/csharpcomp: Depend on it.
73235         * modules/javacomp-script: New file.
73236         * modules/javacomp: Depend on it.
73237         Suggested by Simon Josefsson.
73238
73239 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73242         statement, to work around an HP-UX 10.20 compiler bug reported by
73243         Peter O'Gorman.
73244
73245 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         * modules/savedir (Depends-on): Add openat.
73248
73249 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73250
73251         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73252         (uintmax_t) [defined uintmax_t]: Do not declare.
73253         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73254         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73255         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73256         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73257         sake of portability to weird hosts that C allows (though we don't
73258         know of any practical examples).
73259
73260         * lib/savedir.h (fdsavedir): New decl.
73261         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73262         contains most of the former guts of savedir.
73263         (savedir): Use savedirstream.
73264         Include "openat.h".
73265
73266 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73267
73268         * modules/obstack (Files): Add m4/ulonglong.m4.
73269         Problem reported by Davide Angelocola.
73270
73271 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73272
73273         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73274         coreutils no longer futzes with rounding modes.
73275
73276 2005-11-14  Jim Meyering  <jim@meyering.net>
73277
73278         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73279         replacement of mkstemp.
73280
73281 2005-11-10  Simon Josefsson  <jas@extundo.com>
73282
73283         * lib/readline.c: Remove EOL.
73284
73285 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         * modules/gethrxtime (Depends-on): Add gettime.
73288
73289 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73290
73291         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73292         or gettimeofday; no longer needed.
73293
73294 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73295
73296         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73297         time business.
73298         (gethrxtime) [! (HAVE_NANOUPTIME
73299         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73300         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73301         our own approximation.
73302
73303 2005-11-08  Eric Blake  <ebb9@byu.net>
73304
73305         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73306
73307 2005-11-08  Eric Blake  <ebb9@byu.net>
73308
73309         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73310
73311 2005-11-04  Bruno Haible  <bruno@clisp.org>
73312
73313         * gnulib-tool: Implement --update mode.
73314
73315 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73316
73317         Fix porting problem reported by Theodoros V. Kalamatianos.
73318         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73319         Don't assume that futimes failing means we must fail.
73320
73321 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73322
73323         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73324         variables to suggest the intended function of the PATH_MAX check.
73325
73326 2005-10-30  Kean Johnston  <jkj@sco.com>
73327
73328         Trivial changes to support SCO systems.
73329         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73330         as PATH_MAX.
73331         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73332         where __ptr is null when no I/O is pending.
73333
73334 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73337         leave errno alone.  Problem reported by Dmitry V. Levin.
73338
73339 2005-10-28  Simon Josefsson  <jas@extundo.com>
73340
73341         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73342         Test more.
73343
73344         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73345
73346         * modules/md2, modules/md2-tests: New files.
73347
73348 2005-10-28  Simon Josefsson  <jas@extundo.com>
73349
73350         * m4/inet_ntop.m4: More tests.
73351
73352         * m4/gc-md2.m4, md2.m4: New file.
73353
73354 2005-10-28  Simon Josefsson  <jas@extundo.com>
73355
73356         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73357         "restrict" keywords, as per POSIX.  Protect the function
73358         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73359         Don't use K&R prototypes.  Check the sprintf return values.
73360         Re-define EAFNOSUPPORT if not present.  Indent.
73361
73362         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73363         suggested by Bruno Haible <bruno@clisp.org>.
73364
73365         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73366
73367         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73368
73369         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73370         libgcrypt).
73371
73372         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73373
73374         * lib/md2.h, lib/md2.c: New files.
73375
73376 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73377
73378         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73379         errno alone.  Problem reported by Frederic Jolliton.
73380
73381 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         * modules/verify (License): Change from GPL to LGPL.  This is a
73384         tiny module and there are apparently near-equivalents that are
73385         under the BSD license.
73386
73387 2005-10-24  Simon Josefsson  <jas@extundo.com>
73388
73389         * modules/sha1: Relicense to LGPL.
73390
73391 2005-10-24  Simon Josefsson  <jas@extundo.com>
73392
73393         * lib/md4.h: Shrink buffer size, now that we changed the type.
73394
73395 2005-10-23  Simon Josefsson  <jas@extundo.com>
73396
73397         * gnulib-tool (func_import): Fix --tests-base.
73398
73399 2005-10-22  Simon Josefsson  <jas@extundo.com>
73400
73401         * modules/arcfour (Depends-on): Need stdint.
73402
73403 2005-10-22  Simon Josefsson  <jas@extundo.com>
73404
73405         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73406         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73407
73408 2005-10-22  Simon Josefsson  <jas@extundo.com>
73409
73410         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73411         suggested by Bruno Haible <bruno@clisp.org>.
73412
73413 2005-10-22  Simon Josefsson  <jas@extundo.com>
73414
73415         * lib/crc.h: Include stddef.h, for size_t.
73416
73417 2005-10-22  Simon Josefsson  <jas@extundo.com>
73418
73419         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73420         arcfour_context struct (simplify test vector testing in GNU
73421         Shishi).
73422
73423 2005-10-21  Simon Josefsson  <jas@extundo.com>
73424
73425         * modules/des, modules/des-tests: New files.
73426
73427         * modules/gc-des, modules/gc-des-tests: New files.
73428
73429         * tests/test-des.c, tests/test-gc-des.c: New file.
73430
73431 2005-10-21  Simon Josefsson  <jas@extundo.com>
73432
73433         * modules/arctwo, modules/arctwo-tests: New files.
73434
73435         * tests/test-arctwo.c: New file.
73436
73437         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73438
73439         * tests/test-gc-arctwo.c: New file.
73440
73441 2005-10-21  Simon Josefsson  <jas@extundo.com>
73442
73443         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73444         Bruno Haible <bruno@clisp.org>.
73445
73446         * m4/gc-des.m4: New file.
73447
73448 2005-10-21  Simon Josefsson  <jas@extundo.com>
73449
73450         * m4/arctwo.m4: New file.
73451
73452         * m4/gc-arctwo.m4: New file.
73453
73454 2005-10-21  Simon Josefsson  <jas@extundo.com>
73455
73456         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73457         block.
73458
73459 2005-10-21  Simon Josefsson  <jas@extundo.com>
73460
73461         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73462         <bruno@clisp.org>.
73463
73464         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73465
73466         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73467         Bruno Haible <bruno@clisp.org>.
73468
73469         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73470         <bruno@clisp.org>.
73471
73472 2005-10-21  Simon Josefsson  <jas@extundo.com>
73473
73474         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73475
73476 2005-10-21  Simon Josefsson  <jas@extundo.com>
73477
73478         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73479
73480 2005-10-21  Simon Josefsson  <jas@extundo.com>
73481
73482         * lib/des.h, lib/des.c: New files.
73483
73484         * lib/gc-gnulib.c: Support DES.c
73485
73486 2005-10-21  Simon Josefsson  <jas@extundo.com>
73487
73488         * lib/arctwo.h, lib/arctwo.c: New files.
73489
73490         * lib/gc-gnulib.c: Support ARCTWO.
73491
73492 2005-10-21  Simon Josefsson  <jas@extundo.com>
73493
73494         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73495         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73496
73497 2005-10-21  Simon Josefsson  <jas@extundo.com>
73498
73499         * gnulib-tool (func_import, func_create_testdir): Define automake
73500         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73501         Makefile.am snippet),
73502         suggested by Bruno Haible <bruno@clisp.org>.
73503
73504         * modules/gc (Makefile.am): Use it.
73505
73506 2005-10-21  Bruno Haible  <bruno@clisp.org>
73507
73508         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73509         patch.
73510
73511 2005-10-19  Simon Josefsson  <jas@extundo.com>
73512
73513         * tests/test-gc-rijndael.c: New file.
73514
73515         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73516
73517 2005-10-19  Simon Josefsson  <jas@extundo.com>
73518
73519         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73520         interface too.
73521
73522 2005-10-19  Simon Josefsson  <jas@extundo.com>
73523
73524         * tests/test-gc-arcfour.c: New file.
73525
73526         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73527
73528 2005-10-19  Simon Josefsson  <jas@extundo.com>
73529
73530         * modules/gc-md4, modules/gc-md4-tests: New file.
73531
73532         * tests/test-gc-md4.c: New file.
73533
73534 2005-10-19  Simon Josefsson  <jas@extundo.com>
73535
73536         * m4/gc-md4.m4: New file.
73537
73538 2005-10-19  Simon Josefsson  <jas@extundo.com>
73539
73540         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73541         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73542         <kasal@ucw.cz>.
73543
73544 2005-10-19  Simon Josefsson  <jas@extundo.com>
73545
73546         * m4/gc-arcfour.m4: New file.
73547
73548         * m4/gc-rijndael.m4: New file.
73549
73550 2005-10-19  Simon Josefsson  <jas@extundo.com>
73551
73552         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73553
73554 2005-10-19  Simon Josefsson  <jas@extundo.com>
73555
73556         * lib/gc-gnulib.c: Support ARCFOUR.
73557
73558 2005-10-19  Simon Josefsson  <jas@extundo.com>
73559
73560         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73561         support.
73562
73563         * lib/gc.h: Add ECB enum type.
73564
73565         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73566
73567 2005-10-18  Simon Josefsson  <jas@extundo.com>
73568
73569         * tests/test-md5.c: New file.
73570
73571         * modules/md5-tests: New file.
73572
73573 2005-10-18  Simon Josefsson  <jas@extundo.com>
73574
73575         * tests/test-md4.c: New file.
73576
73577         * modules/md4, modules/md4-tests: New files.
73578
73579 2005-10-18  Simon Josefsson  <jas@extundo.com>
73580
73581         * m4/md4.m4: New file.
73582
73583 2005-10-18  Simon Josefsson  <jas@extundo.com>
73584
73585         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73586
73587 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73588
73589         * gnulib-tool (func_create_testdir): Omit the second check whether
73590         BUILT_SOURCES in nonempty.
73591
73592 2005-10-17  Simon Josefsson  <jas@extundo.com>
73593
73594         * tests/test-rijndael.c: New file.
73595
73596 2005-10-17  Simon Josefsson  <jas@extundo.com>
73597
73598         * modules/sha1: Depend on stdint instead of md5.
73599
73600         * modules/md5: Depend on stdint, remove uint32_t.
73601
73602 2005-10-17  Simon Josefsson  <jas@extundo.com>
73603
73604         * modules/gc-sha1-tests: New file.
73605
73606         * tests/test-gc-sha1.c: New file.
73607
73608 2005-10-17  Simon Josefsson  <jas@extundo.com>
73609
73610         * m4/md5.m4: Remove call to uint32_t.m4.
73611
73612 2005-10-17  Simon Josefsson  <jas@extundo.com>
73613
73614         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73615
73616         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73617         md5.h.
73618
73619         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73620
73621         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73622
73623 2005-10-17  Simon Josefsson  <jas@extundo.com>
73624
73625         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73626
73627 2005-10-17  Simon Josefsson  <jas@extundo.com>
73628
73629         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73630
73631 2005-10-17  Simon Josefsson  <jas@extundo.com>
73632
73633         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73634
73635         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73636
73637 2005-10-17  Bruno Haible  <bruno@clisp.org>
73638
73639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73640         that it can also be used in a test.
73641
73642 2005-10-16  Bruno Haible  <bruno@clisp.org>
73643
73644         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73645         TESTS_ENVIRONMENT, so that individual tests can augment it.
73646
73647         * gnulib-tool (func_create_testdir): Use an intermediate target for
73648         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73649         macros, like $(ALLOCA_H), which cannot be passed through the command
73650         line.
73651
73652 2005-10-15  Simon Josefsson  <jas@extundo.com>
73653
73654         * modules/rijndael-tests: New file.
73655
73656         * modules/rijndael: New file.
73657
73658 2005-10-15  Simon Josefsson  <jas@extundo.com>
73659
73660         * m4/rijndael.m4: New file.
73661
73662 2005-10-15  Simon Josefsson  <jas@extundo.com>
73663
73664         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73665
73666         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73667
73668 2005-10-14  Simon Josefsson  <jas@extundo.com>
73669
73670         * tests/test-arcfour.c: New file.
73671
73672         * modules/arcfour, modules/arcfour-tests: New files.
73673
73674 2005-10-14  Simon Josefsson  <jas@extundo.com>
73675
73676         * m4/arcfour.m4: New file.
73677
73678 2005-10-14  Simon Josefsson  <jas@extundo.com>
73679
73680         * lib/arcfour.h, lib/arcfour.c: New files.
73681
73682 2005-10-14  Roland McGrath  <roland@redhat.com>
73683
73684         Import from libc.  [BZ #1331]
73685         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73686         macro argument.
73687         Reported by Matej Vela <vela@debian.org>.
73688
73689 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73692         include <wchar.h>; no longer needed.
73693
73694 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73697
73698 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73699         and  Ulrich Drepper  <drepper@redhat.com>
73700
73701         Import from libc.
73702         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73703         instead of inline stream orientation test and two separate
73704         function calls.  Pay no attention to USE_IN_LIBIO.
73705
73706 2005-10-13  Simon Josefsson  <jas@extundo.com>
73707
73708         * modules/gc-hmac-md5-tests: New file.
73709
73710         * tests/test-gc-hmac-sha1.c: New file.
73711
73712         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73713
73714         * modules/gc-hmac-md5-tests: New file.
73715
73716         * tests/test-gc-md5.c: New file.
73717
73718         * modules/gc-md5-tests: New file.
73719
73720 2005-10-13  Simon Josefsson  <jas@extundo.com>
73721
73722         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73723         Move memory allocation outside of loop.
73724
73725 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73726
73727         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73728         intermediate directory is in a read-only file system.  Problem
73729         reported by Eric Blake.
73730
73731 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73732
73733         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73734
73735 2005-10-12  Simon Josefsson  <jas@extundo.com>
73736
73737         * tests/test-hmac-sha1.c: New file.
73738
73739         * modules/hmac-sha1-tests: New file.
73740
73741         * modules/hmac-sha1: New file.
73742
73743 2005-10-12  Simon Josefsson  <jas@extundo.com>
73744
73745         * modules/gc-sha1: New file.
73746
73747 2005-10-12  Simon Josefsson  <jas@extundo.com>
73748
73749         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73750
73751         * tests/test-gc-pbkdf2-sha1.c: New file.
73752
73753 2005-10-12  Simon Josefsson  <jas@extundo.com>
73754
73755         * modules/gc-md5, modules/gc-hmac-md5: New files.
73756
73757         * modules/gc (Files): Remove md5, memxor and hmac files.
73758
73759 2005-10-12  Simon Josefsson  <jas@extundo.com>
73760
73761         * m4/gc-pbkdf2-sha1.m4: New file.
73762
73763         * m4/gc-hmac-sha1.m4: New file.
73764
73765         * m4/gc-sha1: New file.
73766
73767         * m4/hmac-sha1.m4: New file.
73768
73769 2005-10-12  Simon Josefsson  <jas@extundo.com>
73770
73771         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73772
73773         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73774
73775 2005-10-12  Simon Josefsson  <jas@extundo.com>
73776
73777         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73778         suggested by Bruno Haible <bruno@clisp.org>.
73779
73780 2005-10-12  Simon Josefsson  <jas@extundo.com>
73781
73782         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73783
73784 2005-10-12  Simon Josefsson  <jas@extundo.com>
73785
73786         * lib/gc-pbkdf2-sha1.c: New file.
73787
73788         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73789
73790 2005-10-12  Simon Josefsson  <jas@extundo.com>
73791
73792         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73793
73794         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73795
73796 2005-10-12  Simon Josefsson  <jas@extundo.com>
73797
73798         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73799         GC_USE_HMAC_MD5, respectively.
73800
73801         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73802         (gc_md5): Fix typo.
73803
73804         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73805
73806         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73807
73808         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73809
73810 2005-10-12  Bruno Haible  <bruno@clisp.org>
73811
73812         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73813         Reported by Stepan Kasal <kasal@ucw.cz>.
73814
73815 2005-10-11  Simon Josefsson  <jas@extundo.com>
73816
73817         * tests/test-crc.c: New file.
73818
73819         * modules/crc, modules/crc-tests: New files.
73820
73821 2005-10-11  Simon Josefsson  <jas@extundo.com>
73822
73823         * m4/crc.m4: New file.
73824
73825 2005-10-11  Simon Josefsson  <jas@extundo.com>
73826
73827         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73828
73829         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73830
73831         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73832
73833 2005-10-11  Simon Josefsson  <jas@extundo.com>
73834
73835         * lib/crc.h, lib/crc.c: New files.
73836
73837         * lib/gc.h (gc_hash_buffer): Add doc.
73838
73839 2005-10-11  Bruno Haible  <bruno@clisp.org>
73840
73841         * modules/c-strcasestr: New file.
73842         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73843
73844 2005-10-11  Bruno Haible  <bruno@clisp.org>
73845
73846         * modules/c-strcase: New file.
73847         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73848
73849 2005-10-11  Bruno Haible  <bruno@clisp.org>
73850
73851         * lib/strcasecmp.c: Include limits.h.
73852         (strcasecmp): Avoid integer overflow on exotic platforms.
73853         * lib/strncasecmp.c: Include limits.h.
73854         (strncasecmp): Avoid integer overflow on exotic platforms.
73855         Reported by Paul Eggert.
73856
73857 2005-10-11  Bruno Haible  <bruno@clisp.org>
73858
73859         * lib/c-strcasestr.h: New file, from GNU gettext.
73860         * lib/c-strcasestr.c: New file, from GNU gettext.
73861
73862 2005-10-11  Bruno Haible  <bruno@clisp.org>
73863
73864         * lib/c-strcase.h: New file, from GNU gettext.
73865         * lib/c-strcasecmp.c: New file, from GNU gettext.
73866         * lib/c-strncasecmp.c: New file, from GNU gettext.
73867
73868 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73869
73870         * modules/mempcpy (License): GPL -> LGPL.
73871         * modules/strchrnul (License): Likewise.
73872         * modules/sysexits (License): Likewise.
73873
73874 2005-10-08  Simon Josefsson  <jas@extundo.com>
73875
73876         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73877
73878 2005-10-07  Simon Josefsson  <jas@extundo.com>
73879
73880         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73881
73882 2005-10-06  Simon Josefsson  <jas@extundo.com>
73883
73884         * tests/test-hmac-md5.c: New file.
73885
73886         * modules/hmac-md5-tests: New file.
73887
73888         * modules/hmac-md5: New file.
73889
73890 2005-10-06  Simon Josefsson  <jas@extundo.com>
73891
73892         * m4/hmac-md5.m4: New file.
73893
73894         * m4/memxor.m4: Require gl_C_RESTRICT.
73895
73896 2005-10-06  Simon Josefsson  <jas@extundo.com>
73897
73898         * lib/memxor.c (memxor): Avoid casts and warnings.
73899
73900 2005-10-06  Simon Josefsson  <jas@extundo.com>
73901
73902         * lib/hmac-md5.c: New file.
73903
73904         * lib/hmac.h: New file.
73905
73906 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73909         promotes to int, not unsigned int, to catch the AIX 5.3
73910         compiler bug.
73911
73912 2005-10-05  Simon Josefsson  <jas@extundo.com>
73913
73914         * modules/memxor: New file.
73915
73916         * modules/iconv (Files): Move config.rpath to havelib, it is used
73917         there.
73918
73919         * modules/havelib (Files): Add config.rpath.
73920
73921 2005-10-05  Simon Josefsson  <jas@extundo.com>
73922
73923         * m4/memxor.m4: New file.
73924
73925 2005-10-05  Simon Josefsson  <jas@extundo.com>
73926
73927         * lib/memxor.c (memxor): Fix compiler error.
73928
73929         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73930         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73931
73932         * lib/memxor.h, lib/memxor.c: New files.
73933
73934         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73935         we assume all systems have it, suggested by Jim Meyering
73936         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73937         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73938         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73939         same reasons.
73940
73941 2005-10-05  Simon Josefsson  <jas@extundo.com>
73942
73943         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73944
73945 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73948         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73949         needed, since the source code now assumes these .h files.
73950
73951 2005-10-05  Derek Price  <derek@ximbiot.com>
73952
73953         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73954
73955 2005-10-05  Bruno Haible  <bruno@clisp.org>
73956
73957         * modules/stdint (License): Change to LGPL.
73958
73959 2005-10-04  Simon Josefsson  <jas@extundo.com>
73960
73961         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73962         D. Baushke" <mdb@gnu.org>.
73963
73964 2005-10-04  Bruno Haible  <bruno@clisp.org>
73965
73966         * lib/verify.h (verify_true): Provide alternative definition for C++.
73967
73968 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73969
73970         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73971         (SSIZE_MAX): New macro, if not already defined.
73972         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73973         than 2 GiB.
73974
73975 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         Sync from coreutils.
73978         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73979         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73980         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73981         ULLONG_MAX doesn't work with 2.7.2.1.
73982
73983 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73984
73985         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73986         From Ben Pfaff.
73987
73988         * modules/exclude (Depends-on): Depend on verify.
73989         * modules/strtoimax (Depends-on): Likewise.
73990         * modules/utimecmp (Depends-on): Likewise.
73991
73992 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73993
73994         * lib/exclude.c: Include verify.h.
73995         (verify): Remove.  All callers changed to use verify.h's version.
73996         * lib/strtoimax.c: Likewise.
73997         * lib/utimecmp.c: Likewis.e
73998
73999         Sync from coreutils.
74000         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74001         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74002         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74003         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74004         bother returning ENOSYS if settimeofday or stime fails; just let
74005         them return whatever errno they want to return.
74006         * lib/utimens.c: Include unistd.h, for dup2.
74007         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74008         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74009
74010 2005-10-02  Jim Meyering  <jim@meyering.net>
74011
74012         Sync from coreutils.
74013         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74014         from glibc-2.2.5 that fails for read-only files.
74015
74016 2005-10-02  Jim Meyering  <jim@meyering.net>
74017
74018         Sync from coreutils.
74019         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74020         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74021         `#if HAVE_CONFIG_H'.
74022         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74023         Remove AT_FDCWD test.
74024         Do not consume the fd unless successful.
74025         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74026         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74027         block, so that we don't even try to compile it if settimeofday is
74028         available.  This works around a compilation failure on OSF1 V5.1,
74029         due to stime requiring a `long int*' while tv_sec is `int'.
74030
74031 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74032
74033         Sync from coreutils.
74034         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74035         against `yes', rather than just testing for nonempty.
74036
74037 2005-10-01  Simon Josefsson  <jas@extundo.com>
74038
74039         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74040         and Darwin.
74041
74042         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74043         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74044         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74045         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74046         Check if struct addrinfo is declared.
74047
74048 2005-10-01  Simon Josefsson  <jas@extundo.com>
74049
74050         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74051         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74052         AI_* and EAI_* definitions.  Protect function declarations.
74053
74054 2005-10-01  Jim Meyering  <jim@meyering.net>
74055
74056         Sync from coreutils.
74057
74058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74059         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74060         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74061         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74062         in the inet and nsl libraries.  Required on Solaris 5.7.
74063
74064 2005-10-01  Jim Meyering  <jim@meyering.net>
74065
74066         Sync from coreutils.
74067         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74068         in the inet and nsl libraries.  Required on Solaris 5.7.
74069
74070 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74071
74072         * lib/getdelim.c (getdelim): Remove unused variables.
74073
74074 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74075
74076         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74077         so that the code works even with ancient cpp.  Portability problem
74078         with GCC 2.7.2.1 reported by Thomas M.Ott.
74079
74080 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * modules/regex (Depends-on): Add strcase.
74083
74084         * modules/gethostname (Licence): Change from GPL to LGPL, since
74085         gethostname.c is a trivial implementation of a standard library
74086         function.
74087         * modules/poll (License): Change from GPL to LGPL, since it's
74088         derived from LGPL code.
74089
74090 2005-09-27  Jim Meyering  <jim@meyering.net>
74091
74092         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74093         HAVE_CONFIG_H.
74094
74095         * lib/intprops.h (signed_type_or_expr__): Define.
74096         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74097         for unsigned types.
74098
74099 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         * lib/verify.h (verify_expr): Remove, replacing with:
74102         (verify_true): New macro that returns true instead of void.
74103         (verify_type__): Remove.
74104         (verify): Use verify_true rather than verify_type__.
74105
74106 2005-09-26  Bruno Haible  <bruno@clisp.org>
74107
74108         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74109         is necessary.
74110         (lib_SOURCES): Remove mbchar.c.
74111         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74112         (Files): Add m4/mbrtowc.m4.
74113         * modules/mbiter: Likewise.
74114         * modules/mbuiter: Likewise.
74115
74116 2005-09-26  Bruno Haible  <bruno@clisp.org>
74117
74118         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74119         compile mbchar.c if they are not both present.
74120         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74121         * m4/mbiter.m4 (gl_MBITER): Likewise.
74122         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74123         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74124         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74125
74126 2005-09-25  Jim Meyering  <jim@meyering.net>
74127
74128         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74129         also uses socklen_t.
74130
74131 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * lib/utimens.c (ENOSYS): Define if not already defined.
74134         (futimens): Support having a null PATH if the file descriptor
74135         is nonnegative.
74136
74137         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74138         Remove.
74139         (__attribute): Define to empty unless GCC 3.1 or later.
74140         This works around a core dump on OpenBSD 3.4, which has GCC
74141         2.95.3, which dumps core when given __attribute__(()).  It also
74142         simplifies other tests, since we really don't want to bother with
74143         worrying about which ancient version of GCC supported what.
74144         Original problem reported by Yoann Vandoorselaere, with part of
74145         the fix suggested by Derek Price.
74146
74147 2005-09-24  Jim Meyering  <jim@meyering.net>
74148
74149         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74150         so we can once again use a positive bitfield width of 1 -- now we
74151         don't have to explain why we were using a bitfield width of 2.
74152
74153 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74156         and similarly for the other external symbols.  Problem reported
74157         by James Gallager.
74158
74159         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74160         bug reported by Jim Meyering.
74161
74162         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74163         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74164         not needed, since socklen is a prerequisite module.
74165
74166 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74167
74168         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74169         Problem reported by Eric Blake.
74170         (getaddrinfo): Initialize se so that it's not garbage.
74171         Redo internal storage allocation so that it doesn't make unportable
74172         assumptions about alignment.
74173         Fix a memory leak.
74174
74175         * lib/utimens.c (futimens): Use futimesat if available.
74176         Prefer it to futimes since it doesn't have the futimes bug.
74177
74178         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74179         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74180         Instead, declare a function that returns a pointer to an array,
74181         and use verify_type__ to declare the size of the array.
74182         Problem and germ of a solution reported by Bruno Haible.
74183         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74184         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74185
74186 2005-09-23  Jim Meyering  <jim@meyering.net>
74187
74188         Sync from coreutils.
74189         Correct build failure (socklen_t not defined) on at least
74190         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74191         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74192
74193 2005-09-23  Jim Meyering  <jim@meyering.net>
74194
74195         * modules/getaddrinfo (Depends-on): Add socklen.
74196
74197 2005-09-23  Bruno Haible  <bruno@clisp.org>
74198
74199         * tests/test-verify.c: New file.
74200
74201 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         Sync from coreutils.
74204
74205         * modules/argmatch (Depends-on): Add verify.
74206         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74207         unistd-safer.
74208         * modules/save-cwd (Depends-on): Likewise.
74209
74210         * modules/openat (Files): Add lib/openat-die.c.
74211         (Depends-on): Remove error, exitfail.
74212         Add dirname.
74213
74214         * modules/verify: New file.
74215         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74216         with "verify" module.
74217
74218 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         Sync from coreutils.
74221
74222         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74223         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74224         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74225         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74226         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74227         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74228         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74229         Don't bother checking for string.h, stdlib.h, unistd.h.
74230         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74231         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74232         module's job.
74233         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74234         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74235
74236         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74237         (gl_GETDATE): Use it.
74238
74239         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74240
74241 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74242
74243         Sync from coreutils.
74244
74245         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74246         stat-time.h.
74247         * lib/argmatch.h: Include verify.h
74248         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74249         (ARGMATCH_ASSERT): Remove; unused.
74250         * lib/canonicalize.c: Assume STDC_HEADERS.
74251         * lib/exclude.c: Include "strcase.h".
74252         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74253         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74254         and stdio-safer.h.
74255         (getusershell): Call fopen, not fopen_safer.
74256         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74257         Do not include unistd-safer.h.
74258         (save_cwd): Don't call fd_safer; no longer needed
74259         now that we include fcntl--.h.
74260
74261         * lib/getdate.y (relative_time): New type.
74262         (RELATIVE_TIME_0): New constant.
74263         (parser_control): Use relative_time instead of doing it ourselves.
74264         (%union): Add new relative_time rel member.
74265         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74266         Now typeless.
74267         (relunit, relunit_snumber): Now of type rel.
74268         (zone, rel, relunit, get_date): Adjust to above changes.
74269
74270         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74271         Do not include unistd-safer.h.
74272         (getloadavg): Don't call fd_safer; no longer needed
74273         now that we include fcntl--.h.
74274
74275         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74276         (make_dir_parents): Treat ENOSYS like EEXIST.
74277
74278         Improve quality of diagnostics on restore_cwd failure.
74279         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74280         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74281         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74282         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74283         each time through the loop.  Do not diagnose restore_cwd failure;
74284         that is the caller's job (and perhaps the caller does not care).
74285
74286         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74287         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74288         If the file already exists but is not a directory, don't bother
74289         to try to make its parents.
74290         Close potential file descriptor leak if we can't chdir("/") (!).
74291         Don't always return true if chdir($PWD) fails; return true only
74292         if the requested action was done successfully (except for the
74293         chdir($PWD)).
74294         Don't log final directory unless we actually made it.
74295         Refactor to avoid duplicate code to fix up permissions.
74296         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74297
74298         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74299         to make it a bit faster and (I hope) clearer.
74300         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74301         Fix bug in formats like %2N.
74302
74303         * lib/verify.h: New file.
74304
74305 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74306
74307         Sync from coreutils.
74308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74309
74310 2005-09-22  Jim Meyering  <jim@meyering.net>
74311
74312         Sync from coreutils.
74313
74314         * m4/lstat.m4 (gl_FUNC_LSTAT):
74315         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74316         Remove obsolete comment.
74317         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74318         * m4/xstrtod.m4: Likewise.
74319
74320         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74321
74322 2005-09-22  Jim Meyering  <jim@meyering.net>
74323
74324         Sync from coreutils.
74325
74326         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74327
74328         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74329         the .tm_year member, since otherwise gcc-4.0 would now warn about
74330         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74331
74332         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74333         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74334
74335         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74336         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74337         when run in a time zone for which daylight savings time is in effect
74338         for the starting date.
74339
74340         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74341         stop us from restricting permissions of just-created absolute-named
74342         directories.
74343         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74344         to restore initial working directory.
74345         * lib/mkdir-p.c (make_dir_parents): New parameter:
74346         different_working_dir, to tell caller if/when we change the working
74347         directory and are unable to return to the initial one.
74348         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74349         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74350         `return false'.  This fixes a bug introduced on 2004-07-30.
74351
74352         * lib/openat.c (fdopendir): Be sure to close the supplied
74353         file descriptor before returning.  This makes our replacement
74354         implementation a little closer to Solaris's, where fdopendir
74355         ties the file descriptor to the returned DIR* pointer.
74356         * lib/openat.c (unlinkat): New function.
74357         * lib/openat.h (unlinkat): Add prototype.
74358         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74359         (openat_restore_fail): Rename from openat_restore_die.
74360         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74361
74362         Provide an alternative to exiting immediately upon save_cwd or
74363         restore_cwd failure.  Now, an application can arrange e.g.,
74364         to perform a longjump in that case.
74365         * lib/openat.c: Include dirname.h.
74366         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74367         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74368         and openat_restore_die rather than calling error directly.
74369         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74370
74371         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74372         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74373         define.
74374
74375         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74376         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74377                             int utc, int nanoseconds);
74378         Background:
74379         date should not have to allocate a megabyte of virtual memory to
74380         handle a format argument like +%1048575T.  When implemented with
74381         strftime, it must allocate such a buffer, use strftime to fill it
74382         in, print it, then free it.
74383         With fprintftime, it simply prints everything and exits.
74384         With no need for memory allocation, that's one fewer way to fail.
74385         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74386         optional field width, not before, so we accept %9:z, not %:9z.
74387         (my_strftime): Be sure to use L_('x') for literals.
74388
74389         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74390         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74391         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74392         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74393         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74394         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74395         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74396         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74397         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74398         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74399         * lib/xgethostname.c, lib/xreadlink.c:
74400         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74401
74402         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74403         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74404         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74405         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74406         and don't include <sys/file.h>).
74407
74408 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74409
74410         Sync from coreutils.
74411
74412         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74413         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74414         [!LDAV_DONE]: Avoid unused variable warning.
74415
74416 2005-09-21  Bruno Haible  <bruno@clisp.org>
74417
74418         * lib/unicodeio.h (unicode_to_mb): New declaration.
74419
74420 2005-09-20  Derek Price  <derek@ximbiot.com>
74421
74422         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74423         getaddrinfo.h.
74424
74425 2005-09-20  Bruno Haible  <bruno@clisp.org>
74426
74427         * gnulib-tool: Remove trailing slashes from the values specified for
74428         --source-base, --m4-base, --tests-base, --aux-dir.
74429         Suggested by Simon Josefsson <jas@extundo.com>.
74430
74431 2005-09-20  Bruno Haible  <bruno@clisp.org>
74432
74433         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74434         func_modules_to_filelist, func_import, func_create_testdir): Make all
74435         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74436         change when gnulib-tool is invoked in a different locale.
74437
74438 2005-09-19  Simon Josefsson  <jas@extundo.com>
74439
74440         * m4/socklen.m4: Fix typo.
74441
74442 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74443
74444         Use a consistent style for including <config.h>.
74445         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74446         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74447         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74448         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74449         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74450         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74451         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74452         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74453         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74454         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74455         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74456         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74457         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74458         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74459         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74460         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74461         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74462         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74463         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74464         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74465         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74466         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74467         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74468         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74469         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74470         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74471         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74472         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74473         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74474         lib/xstrtoumax.c, lib/yesno.c:
74475         Standardize inclusion of config.h.
74476         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74477         lib/inttostr.h:  Removed inclusion of config.h from header files.
74478         * lib/inttostr.c:  Adjusted in-tree users.
74479         * lib/timespec.h: Remove superfluous warning to include config.h.
74480         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74481         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74482         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74483         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74484         config.h with HAVE_CONFIG_H.
74485
74486 2005-09-19  Jim Meyering  <jim@meyering.net>
74487
74488         * modules/pathmax (License): Change to LGPL.
74489
74490 2005-09-19  Derek Price  <derek@ximbiot.com>
74491
74492         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74493
74494 2005-09-19  Bruno Haible  <bruno@clisp.org>
74495
74496         * gnulib-tool (import): Provide default for --tests-base.
74497
74498 2005-09-19  Bruno Haible  <bruno@clisp.org>
74499
74500         * doc/quote.texi: New file, extracted from gnulib.texi.
74501         * doc/ctime.texi: New file, extracted from gnulib.texi.
74502         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74503         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74504         * doc/gnulib.texi: Include them.
74505
74506 2005-09-18  Bruno Haible  <bruno@clisp.org>
74507
74508         Portability fix.
74509         * gnulib-tool (func_readlink): New function.
74510         (func_ln_if_changed): Use it.
74511
74512 2005-09-18  Bruno Haible  <bruno@clisp.org>
74513
74514         * gnulib-tool: Support --with-tests also with --import.
74515         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74516         (func_import): Use variables $testsbase and $inctests. Emit a
74517         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74518         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74519         SUBDIRS += $testsdir.
74520         (func_create_testdir): Update.
74521
74522 2005-09-18  Bruno Haible  <bruno@clisp.org>
74523
74524         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74525         instead of $dry_run.
74526         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74527         (func_ln_if_changed): Don't handle dry-run here.
74528         (func_import): In dry-run mode, detect more precisely which actions
74529         would be performed, and don't use "...ing" verbs.
74530
74531 2005-09-18  Bruno Haible  <bruno@clisp.org>
74532
74533         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74534         (func_import): Use join on two temporary files instead of three nested
74535         loops, in order to determine which files are new or old.
74536
74537 2005-09-18  Bruno Haible  <bruno@clisp.org>
74538
74539         * gnulib-tool (func_import): Comment out code that spits out the
74540         new files with --dry-run.
74541
74542 2005-09-18  Bruno Haible  <bruno@clisp.org>
74543
74544         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74545
74546 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74547
74548         * lib/stat-time.h: New file.
74549         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74550         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74551         in a different way.
74552         (timespec_cmp): New function.
74553         * lib/utimecmp.c: Include stat-time.h.
74554         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74555         members exist, not on the obsolescent ST_MTIM_NSEC.
74556         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74557
74558 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74559
74560         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74561
74562 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         * MODULES.html.sh (File system functions): Add stat-time.
74565         * modules/stat-time: New file.
74566         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74567         is now done in a different way, by the stat-time module.
74568         * modules/utimecmp (Depends-on): Add stat-time.
74569
74570 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74571
74572         * m4/st_mtim.m4: Remove.  Superseded by...
74573         * m4/stat-time.m4: New file.
74574         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74575         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74576
74577 2005-09-15  Derek Price  <derek@ximbiot.com>
74578
74579         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74580
74581 2005-09-15  Derek Price  <derek@ximbiot.com>
74582
74583         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74584         * lib/regex_internal.c: Ditto, using this...
74585         (__GNUC_PREREQ): ...new macro.
74586         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74587         using...
74588         (__GNUC_PREREQ): ...this new macro.
74589
74590         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74591
74592 2005-09-15  Derek Price  <derek@ximbiot.com>
74593             Paul Eggert  <eggert@cs.ucla.edu>
74594
74595         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74596         changes, consolidating in...
74597         * lib/regex_internal.h: ...this file.
74598
74599 2005-09-13  Jim Meyering  <jim@meyering.net>
74600
74601         * lib/canon-host.c: Filter through gnu indent and reword comments
74602         slightly.
74603         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74604
74605 2005-09-13  Derek Price  <derek@ximbiot.com>
74606
74607         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74608         failure.
74609         Reported by Jim Meyering  <jim@meyering.net>.
74610
74611 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74612
74613         * lib/base64.c: Typo.
74614         (base64_encode): Put b64str in initialized data section.
74615
74616 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74617
74618         Merge glibc and coreutils changes into gnulib, plus a few
74619         extra fixes.
74620         * lib/md5.c: Use #error rather than a string.
74621         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74622         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74623         (__attribute__): Define to empty for non recent-GCC.
74624         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74625         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74626         Renamed from their non-__ counterparts, with new macros replacing
74627         them if not _LIBC.  Add __THROW attribute.
74628         (rol): Remove.
74629         (struct md5_ctx): Align buffer if using GCC.
74630         * lib/sha1.h (struct sha1_ctx): Likewise.
74631         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74632         The old name was backwards.
74633         (NOTSWAP): Remove; not used.
74634         (rol): New macro, moved here from md5.h.
74635         (sha1_process_block): Remove a FIXME that doesn't make sense.
74636
74637 2005-09-12  Derek Price  <derek@ximbiot.com>
74638
74639         Return usable errors from canon-host.
74640         * lib/canon-host.h: New file.
74641         * lib/canon-host.c (canon_host): Wrap...
74642         (canon_host_r): ...this new function, which now relies exclusively on
74643         getaddrinfo.
74644         (ch_strerror): New function.
74645         (last_cherror): New global.
74646         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74647         interface.
74648         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74649         void *.
74650         (freeaddrinfo): Free ai->ai_canonname when set.
74651
74652 2005-09-12  Derek Price  <derek@ximbiot.com>
74653
74654         Make canon-host require getaddrinfo.
74655         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74656         AC_LIBSOURCE canon-host.h.  Call...
74657         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74658         gl_GETADDRINFO.
74659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74660
74661 2005-09-12  Derek Price  <derek@ximbiot.com>
74662
74663         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74664         LGPL.
74665         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74666
74667 2005-09-12  Derek Price  <derek@ximbiot.com>
74668
74669         * lib/gai_strerror.c: Include config.h when available.  Include
74670         getaddrinfo.h before other headers to test interface.
74671         Reported by Larry Jones <lawrence.jones@ugs.com>.
74672
74673 2005-09-12  Derek Price  <derek@ximbiot.com>
74674             Paul Eggert  <eggert@cs.ucla.edu>
74675
74676         * modules/glob (Files): Add glob-libc.h.
74677
74678 2005-09-12  Derek Price  <derek@ximbiot.com>
74679             Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74682         glob_.h, glob-libc.h.
74683         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74684
74685 2005-09-12  Derek Price  <derek@ximbiot.com>
74686             Paul Eggert  <eggert@cs.ucla.edu>
74687
74688         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74689         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74690         protecting things that should be done only in gnulib contexts.
74691         * lib/glob_.h: New file, containing only the glob things needed for
74692         gnulib.
74693         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74694         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74695         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74696         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74697         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74698         and to respect the namespace rules better.
74699
74700 2005-09-08  Simon Josefsson  <jas@extundo.com>
74701
74702         * modules/socklen: New file.
74703
74704 2005-09-08  Simon Josefsson  <jas@extundo.com>
74705
74706         * m4/socklen.m4: New file.
74707
74708 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74709
74710         * modules/utimens (Files): Add m4/utimbuf.m4, since
74711         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74712         Reported by Sergey Poznyakoff.
74713
74714 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74717         definitions, since that's the preferred style in glibc.
74718         Fix a minor spacing issue, and update copyright notice to match
74719         glibc's.
74720
74721 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74722
74723         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74724
74725 2005-09-06  Simon Josefsson  <jas@extundo.com>
74726
74727         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74728         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74729
74730 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74733         warning.
74734
74735 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74736
74737         * config/srclist.txt: Add glibc bug 1302.
74738
74739 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74740
74741         Change bitset word type from unsigned int to unsigned long int,
74742         as this has better performance on typical 64-bit hosts.
74743         Port bitset code to hosts with unusual word sizes.
74744         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74745         (build_collating_symbol):
74746         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74747         argument is a bitset.  This is merely a style issue, but it makes
74748         it clearer that an entire array is expected.
74749         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74750         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74751         Port to the case where bitset_word is not the same as unsigned int.
74752         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74753         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74754         Likewise.
74755         * lib/regexec.c (check_dst_limits_calc_pos_1,
74756         check_subexp_matching_top):
74757         (build_trtable, group_nodes_into_DFAstates):
74758         Likewise.
74759         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74760         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74761         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74762         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74763         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74764         * lib/regcomp.c (optimize_subexps, lower_subexp):
74765         Work even if bitset_word has holes in its bitwise representation.
74766         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74767         * lib/regexec.c (check_dst_limits_calc_pos_1,
74768         check_subexp_matching_top):
74769         Likewise.
74770         * lib/regex_internal.c (re_string_reconstruct):
74771         Don't assume UCHAR_MAX == 255.
74772         * lib/regex_internal.h (bitset_set_all): Likewise.
74773         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74774         All uses changed.
74775         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74776         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74777         All uses changed.
74778         (BITSET_WORD_MAX): New macro.
74779         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74780         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74781         (bitset_empty, bitset_copy):
74782         Prefer sizeof (bitset) to multiplying it out ourselves.
74783         (bitset_not_merge): Remove; unused.
74784         (bitset_contain): Return bool, not unsigned int with one bit on.
74785         All callers changed.
74786         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74787         alignment than re_node_set; do this by defining a new internal
74788         type struct dests_alloc and using it to allocate memory.
74789
74790 2005-09-05  Bruno Haible  <bruno@clisp.org>
74791
74792         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74793         links.
74794
74795 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74796
74797         * modules/size_max (Makefile.am): Add size_max.h
74798
74799 2005-09-04  Derek Price  <derek@ximbiot.com>
74800
74801         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74802
74803 2005-09-03  Simon Josefsson  <jas@extundo.com>
74804
74805         * gnulib-tool: Fix typo.
74806
74807 2005-09-03  Simon Josefsson  <jas@extundo.com>
74808
74809         * config/srclist.txt: Add glibc bug 1293.
74810
74811 2005-09-03  Derek Price  <derek@ximbiot.com>
74812
74813         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74814         From Larry Jones <lawrence.jones@ugs.com>.
74815
74816 2005-09-02  Simon Josefsson  <jas@extundo.com>
74817
74818         * modules/socklen: New file.
74819
74820 2005-09-02  Simon Josefsson  <jas@extundo.com>
74821
74822         * modules/havelib: New module.
74823
74824         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74825         Use havelib.
74826
74827 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74828
74829         Check for arithmetic overflow when calculating sizes, to prevent
74830         some buffer-overflow issues.  These patches are conservative, in the
74831         sense that when I couldn't determine whether an overflow was possible,
74832         I inserted a run-time check.
74833         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74834         macros.
74835         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74836         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74837         (re_xnrealloc, re_x2nrealloc): New inline functions.
74838         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74839         parse_bracket_exp):
74840         (build_equiv_class, build_charclass): Check for arithmetic overflow
74841         in size expression calculations.
74842         * lib/regex_internal.c (re_string_realloc_buffers):
74843         (build_wcs_upper_buffer, re_node_set_add_intersect):
74844         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74845         (re_dfa_add_node, register_state): Likewise.
74846         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74847         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74848         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74849         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74850
74851 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74852
74853         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74854         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74855
74856 2005-09-02  Bruno Haible  <bruno@clisp.org>
74857
74858         Support for lib vs. lib64 distinction on biarch platforms.
74859         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74860         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74861         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74862
74863 2005-09-02  Bruno Haible  <bruno@clisp.org>
74864
74865         * gnulib-tool (import): In the other first-use case, provide defaults
74866         as well.
74867
74868 2005-09-02  Bruno Haible  <bruno@clisp.org>
74869
74870         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74871         patches not yet found in the latest gettext release.
74872
74873 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74876         to avoid a collision with bits/local_lim.h in glibc.
74877         All uses changed.  Problem reported by Dmitry V. Levin in
74878         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74879
74880         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74881         bugs in int versus size_t comparisons.
74882         (re_string_context_at): Fix bug where the code assumed that
74883         Idx is signed.
74884
74885         Use bool where appropriate.
74886         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74887         All callers changed.
74888         (calc_eclosure_iter): Likewise, for ROOT arg.
74889         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74890         (build_charclass_op): Likewise, for NON_MATCH arg.
74891         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74892         (re_string_construct_common): Likewise, for ICASE arg.
74893         * lib/regexec.c (re_search_2_stub, re_search_stub):
74894         Likewise, for RET_LEN arg.
74895         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74896         (set_regs): Likewise, for FL_BACKTRACK arg.
74897         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74898         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74899         (calc_eclosure_iter, parse_bracket_exp):
74900         Use bool for internal variables that are booleans.
74901         * lib/regexec.c (re_search_internal, check_matching,
74902         proceed_next_node):
74903         (set_regs, build_sifted_states, sift_states_bkref):
74904         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74905         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74906         (find_collation_sequence_value):
74907         Likewise.
74908         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74909         (re_node_set_compare):
74910         Return bool, not int. All callers changed.
74911         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74912         (build_trtable, check_node_accept): Likewise.
74913         * lib/regex_internal.h: Include stdbool.h.
74914
74915         Fix bugs uncovered when converting to bool.
74916         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74917         failure instead of charging ahead blindly.
74918         * lib/regex_internal.c (register_state): Likewise.
74919         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74920         for freeing internal storage.
74921         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74922         bitset pieces used as boolean, to avoid undefined behavior
74923         on hosts that do int overflow checking.
74924
74925 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74926
74927         * config/srclist.txt: Add glibc bugs 1285-1287.
74928
74929 2005-09-01  Jim Meyering  <jim@meyering.net>
74930
74931         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74932         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74933         Require gl_STAT_MACROS, too.
74934
74935 2005-09-01  Bruno Haible  <bruno@clisp.org>
74936
74937         * gnulib-tool (import): In the first-use case, provide defaults.
74938
74939 2005-09-01  Bruno Haible  <bruno@clisp.org>
74940
74941         * gnulib-tool (func_import): Remove the .tmp files.
74942
74943 2005-09-01  Bruno Haible  <bruno@clisp.org>
74944
74945         * gnulib-tool (func_import): Fix handling of symbolic links.
74946
74947 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74950         old glibc regex code mishandles strings longer than 2**31 bytes.
74951         This patch fixes this when the regex code is used in gnulib
74952         (i.e., outside glibc).
74953
74954         This patch should not affect the use of the regex code inside
74955         glibc.  No doubt this problem also needs to be handled for glibc
74956         as well, but the result will be an incompatible change to the
74957         glibc ABI, and the old ABI will have to be supported too.  That
74958         can be the the subject for another patch.
74959
74960         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74961         governing whether the rest of this patch is active.  By default,
74962         the macro is disabled and the patch has no effect.
74963         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74964         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74965         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74966         (re_match_2, re_set_registers): Use the new types.
74967         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74968         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74969         New macros.
74970         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74971         (re_string_context_at, bin_tree_t, re_dfastate_t):
74972         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74973         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74974         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74975         (re_string_char_size_at, re_string_wchar_at):
74976         (re_string_elem_size_at):
74977         Use the new types and macros to port to 64-bit hosts.
74978         Use unsigned types for internal values, so that the code
74979         mostly works even for arrays larger than SSIZE_MAX.
74980         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74981         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74982         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74983         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74984         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74985         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74986         (calc_inveclosure, parse_dup_op, build_range_exp):
74987         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74988         (fetch_number, create_token_tree, mark_opt_subexp):
74989         Likewise.
74990         * lib/regex_internal.c (re_string_construct_common,
74991         create_ci_newstate):
74992         (create_cd_newstate, re_string_allocate, re_string_construct):
74993         (re_string_realloc_buffers, build_wcs_upper_buffer):
74994         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74995         (re_string_reconstruct, re_string_peek_byte_case):
74996         (re_string_fetch_byte_case, re_string_context_at):
74997         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74998         (re_node_set_init_copy, re_node_set_add_intersect):
74999         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75000         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75001         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75002         (re_acquire_state, re_acquire_state_context, register_state):
75003         Likewise.
75004         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75005         search_cur_bkref_entry):
75006         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75007         (re_search_internal, re_search_2_stub, re_search_stub)
75008         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75009         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75010         (update_cur_sifted_state, check_dst_limits):
75011         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75012         (check_subexp_limits, sift_states_bkref, merge_state_array):
75013         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75014         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75015         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75016         (expand_bkref_cache, check_node_accept_bytes):
75017         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75018         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75019         (acquire_init_state_context, check_halt_node_context):
75020         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75021         (sift_states_backward, clean_state_log_if_needed):
75022         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75023         (find_recover_state, transit_state_sb, transit_state_mb):
75024         (transit_state_bkref, build_trtable, match_ctx_clean):
75025         Likewise.
75026         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75027         to work around an assumption that REG_MISSING is negative.
75028
75029         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75030         (seek_collating_symbol_entry) [defined _LIBC]:
75031         (lookup_collation_sequence_value) [defined _LIBC]:
75032         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75033         Use prototypes rather than old-style function definitions.
75034         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75035         (transit_state_sb) [0]:
75036         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75037
75038         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75039         rm_eo.
75040
75041         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75042         (optimize_subexps, lower_subexp):
75043         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75044         since the signed shift might overflow.  Use 1u<<31 instead.
75045         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75046         Likewise.
75047         * lib/regexec.c (check_dst_limits_calc_pos_1,
75048         check_subexp_matching_top): Likewise.
75049
75050         * lib/regcomp.c (optimize_subexps, lower_subexp):
75051         Use CHAR_BIT rather than 8, for clarity.
75052         * lib/regexec.c (check_dst_limits_calc_pos_1):
75053         (check_subexp_matching_top): Likewise.
75054         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75055         have to worry about portability issues when shifting it left.
75056         Remove no-longer-needed test for table_size > 0.
75057         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75058         in a word, as the resulting behavior is undefined.
75059         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75060         in one case, a <= should have been an <, and in another case the
75061         whole test was missing.
75062         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75063         the standard name CHAR_BIT.
75064         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75065         this is not true on one's complement and signed-magnitude hosts.
75066
75067         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75068         next_last_offset.
75069         (struct re_dfa_t): Remove unused member states_alloc.
75070         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75071
75072 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75073
75074         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75075         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75076         and large-file glibc and in 32-bit large-file Solaris.
75077
75078 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75081         lengths fit in regoff_t; this isn't true if regoff_t is the same
75082         width as size_t.
75083         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75084         (= START + RANGE) instead of RANGE.  This avoids overflow
75085         problems when regoff_t is the same width as size_t.
75086         All callers changed.
75087         (re_search_2_stub): Check for overflow when adding the
75088         sizes of the two strings.
75089         (re_search_stub): Check for overflow when adding START
75090         to RANGE; if it occurs, substitute the extreme value.
75091
75092 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75093
75094         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75095
75096 2005-08-31  Jim Meyering  <jim@meyering.net>
75097
75098         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75099         a pointer-to-const.
75100         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75101         (register_state): Likewise.
75102         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75103         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75104         (group_nodes_into_DFAstates): Likewise.
75105
75106 2005-08-31  Jim Meyering  <jim@meyering.net>
75107
75108         * check-module: Add a FIXME comment.
75109
75110 2005-08-31  Eric Blake  <ebb9@byu.net>
75111
75112         * modules/unistd-safer (Files): Add unistd--.h.
75113         * modules/stdio-safer (Files): Add stdio--.h.
75114
75115 2005-08-31  Derek Price  <derek@ximbiot.com>
75116
75117         * lib/getdelim.c (getdelim): Return EOF on EOF.
75118         Reported by Larry Jones <lawrence.jones@ugs.com>.
75119
75120 2005-08-31  Bruno Haible  <bruno@clisp.org>
75121
75122         Avoid unnecessary diffs in the generated lib/Makefile.am.
75123         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75124         the generated files.
75125         (func_import): Don't set cmd.
75126
75127 2005-08-31  Bruno Haible  <bruno@clisp.org>
75128
75129         * lib/strstr.c: Include <stddef.h>, for NULL.
75130         * lib/strcasestr.c: Likewise.
75131         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75132
75133 2005-08-31  Bruno Haible  <bruno@clisp.org>
75134
75135         * gnulib-tool: New option --macro-prefix.
75136         (func_import): Use macro_prefix.
75137         (import): Handle option --macro-prefix.
75138
75139 2005-08-31  Bruno Haible  <bruno@clisp.org>
75140
75141         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75142         Also use new variables cached_lgpl, cached_libtool.
75143
75144 2005-08-31  Bruno Haible  <bruno@clisp.org>
75145
75146         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75147         always instantiating them.
75148
75149 2005-08-31  Bruno Haible  <bruno@clisp.org>
75150
75151         * gnulib-tool (func_import): Read the previous cached settings
75152         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75153         earlier added by gnulib but are now dropped. Warn when a gnulib file
75154         overwrites a non-gnulib file.
75155
75156 2005-08-31  Bruno Haible  <bruno@clisp.org>
75157
75158         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75159         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75160         projects that don't keep autogenerated files in CVS. Put into
75161         actioncmd only the specified modules, not the transitive closure.
75162
75163 2005-08-31  Bruno Haible  <bruno@clisp.org>
75164
75165         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75166         Create directories that shall be filled.
75167         (import): Don't look for gl_* macros in configure.ac. Recurse across
75168         all directories containing a gnulib-cache.m4 files, if meaningful.
75169
75170 2005-08-31  Bruno Haible  <bruno@clisp.org>
75171
75172         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75173         (import): Set seen_libtool when we see gl_LIBTOOL.
75174
75175 2005-08-31  Bruno Haible  <bruno@clisp.org>
75176
75177         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75178         declaration macro definitions from generated gnulib.m4.
75179
75180 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75181
75182         * lib/iconvme.h: Add prototype for iconv_alloc.
75183
75184 2005-08-29  Simon Josefsson  <jas@extundo.com>
75185
75186         * lib/iconvme.c: Fix errno.
75187
75188 2005-08-29  Bruno Haible  <bruno@clisp.org>
75189
75190         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75191         that it works when the directory contains spaces.
75192
75193 2005-08-29  Bruno Haible  <bruno@clisp.org>
75194
75195         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75196
75197 2005-08-29  Bruno Haible  <bruno@clisp.org>
75198
75199         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75200         Emit more advice.
75201
75202 2005-08-29  Bruno Haible  <bruno@clisp.org>
75203         and Stepan Kasal  <kasal@ucw.cz>
75204
75205         * check-module: If more parameters are given, check each of them
75206         separately; add more exceptions, as noted by Jim Meyering.
75207         (check_module): New procedure.
75208         (%exempt_header): Now contains all exceptions.
75209
75210 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75211
75212         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75213
75214 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75215
75216         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75217
75218 2005-08-28  Bruno Haible  <bruno@clisp.org>
75219
75220         * m4/gnulib-tool.m4: New file.
75221
75222 2005-08-27  Jim Meyering  <jim@meyering.net>
75223
75224         * modules/unistd-safer (Files): Add pipe-safer.c.
75225         * modules/fcntl-safer (Files): Add creat-safer.c.
75226
75227 2005-08-27  Jim Meyering  <jim@meyering.net>
75228
75229         * m4/stdlib-safer.m4: New file.  From coreutils.
75230         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75231         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75232         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75233         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75234         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75235
75236 2005-08-27  Jim Meyering  <jim@meyering.net>
75237
75238         * lib/fopen-safer.c: Merge minor changes from coreutils.
75239         * lib/dup-safer.c: Likewise.
75240         * lib/fd-safer.c: Likewise.
75241
75242         Merge from coreutils.
75243         * lib/stdio--.h: New file.
75244         * lib/stdlib--.h: New file.
75245         * lib/mkstemp-safer.c: New file.
75246
75247         GNU tar needs these.
75248         * lib/pipe-safer.c: New file.
75249         * lib/creat-safer.c: New file.
75250         * lib/fcntl--.h (creat): Define to creat_safer.
75251         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75252         * lib/unistd--.h (pipe): Define to pipe_safer.
75253         * lib/unistd-safer.h: Declare pipe_safer.
75254
75255 2005-08-26  Simon Josefsson  <jas@extundo.com>
75256
75257         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75258         Haible <bruno@clisp.org>.
75259
75260 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75261
75262         * lib/regex_internal.h: Remove all references to
75263         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75264         or better.
75265         (bitset_not, bitset_merge, bitset_not_merge):
75266         (bitset_mask, re_string_allocate, re_string_construct):
75267         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75268         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75269         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75270         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75271         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75272         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75273         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75274         (re_acquire_state_context):
75275         Remove unnecessary forward decls.
75276         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75277         Put __attribute at function definition,
75278         now that the function decl has been removed.
75279         * lib/regex_internal.c (re_string_peek_byte_case):
75280         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75281         Likewise.
75282
75283 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75284
75285         * m4/regex.m4: Add AC_PREREQ(2.50).
75286         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75287
75288 2005-08-25  Simon Josefsson  <jas@extundo.com>
75289
75290         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75291         __fsetlocking.
75292
75293 2005-08-25  Simon Josefsson  <jas@extundo.com>
75294
75295         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75296         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75297         GLIBC specific code.
75298
75299 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         Make regex safe for g++.  This fixes one real bug (an "err"
75302         that should have been "*err").  g++ problem reported by
75303         Sam Steingold.
75304         * lib/regex_internal.h (re_calloc): New macro, consistent with
75305         re_malloc etc.  All callers of calloc changed to use re_calloc.
75306         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75307         not int.  All callers changed.
75308         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75309         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75310         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75311         (find_recover_state): Change "err" to "*err"; this fixes what
75312         appears to be a real bug.
75313         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75314         versus int.
75315
75316 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         * modules/regex (Depends-on): Add malloc, since the code
75319         assumes that !malloc(0) means failure.
75320
75321 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75324
75325         alloca modernization/simplification for regex.
75326         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75327         needs to be at the start of the file, and can be moved into
75328         regex_internal.h and simplified.
75329         * lib/regex_internal.h: Include <alloca.h>.
75330         (__libc_use_alloca) [!defined _LIBC]: New macro.
75331         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75332         now works outside glibc.
75333
75334 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75335
75336         * config/srclist.txt: Add glibc bugs 1241, 1245.
75337
75338 2005-08-25  Jim Meyering  <jim@meyering.net>
75339
75340         * lib/open-safer.c: Include <config.h>.
75341         Otherwise, we'd lose LARGEFILE support in any file using
75342         e.g. "fcntl--.h"
75343
75344 2005-08-25  Bruno Haible  <bruno@clisp.org>
75345
75346         * m4/minmax.m4: Require autoconf 2.52.
75347         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75348         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75349         alternatives of translit over the alphabet.
75350         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75351
75352 2005-08-24  Simon Josefsson  <jas@extundo.com>
75353
75354         * tests/test-getpass.c: New file.
75355
75356 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75359         for GNU regex features.
75360
75361 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75362
75363         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75364         * lib/regex.h (regerror): Likewise.
75365
75366         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75367         requires this.  (The code never needed it.)
75368
75369         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75370         All uses of recently-renamed identifiers changed to use the new,
75371         POSIX-compliant names.  The code will build and run just fine
75372         without these changes, but it's better to eat our own dog food
75373         and use the standard-conforming names.
75374
75375         * lib/regex.h: Fix a multitude of POSIX name space violations.
75376         These changes have an effect only for programs that define
75377         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75378         do not change anything for programs compiled in the normal way.
75379         Also, there is no effect on the ABI.
75380
75381         (_REGEX_SOURCE): New macro.
75382         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75383         defined and _GNU_SOURCE is not; this fixes a name space violation.
75384
75385         Rename the following macros to obey POSIX requirements.
75386         The old names are still visible as macros if _REGEX_SOURCE is defined.
75387         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75388         RE_BACKSLASH_ESCAPE_IN_LISTS.
75389         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75390         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75391         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75392         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75393         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75394         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75395         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75396         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75397         (REG_INTERVALS): renamed from RE_INTERVALS.
75398         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75399         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75400         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75401         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75402         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75403         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75404         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75405         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75406         RE_UNMATCHED_RIGHT_PAREN_ORD.
75407         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75408         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75409         (REG_DEBUG): renamed from RE_DEBUG.
75410         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75411         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75412         unusual, since we can't clash with the POSIX REG_ICASE.
75413         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75414         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75415         (REG_NO_SUB): renamed from RE_NO_SUB.
75416         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75417         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75418         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75419         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75420         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75421         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75422         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75423         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75424         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75425         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75426         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75427         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75428         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75429         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75430         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75431         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75432         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75433         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75434         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75435         (REG_FIXED): Renamed from REGS_FIXED.
75436         (REG_NREGS): Renamed from RE_NREGS.
75437
75438         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75439         of other REG_* macros, since POSIX says the user is allowed to
75440         #undef these macros selectively.
75441
75442         (reg_errcode_t): Update comment stating what other tables need
75443         to be consistent.
75444
75445         Rename the following enum values to obey POSIX requirements.
75446         The old names are still visible as macros.
75447         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75448         is not defined, since GNU is supposed to be a superset of POSIX as
75449         much as possible, and since we want reg_errcode_t to be a signed
75450         type for implementation consistency.
75451         (_REG_NOERROR): Renamed from REG_NOERROR.
75452         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75453         (_REG_BADPAT): Renamed from REG_BADPAT.
75454         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75455         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75456         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75457         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75458         (_REG_EBRACK): Renamed from REG_EBRACK.
75459         (_REG_EPAREN): Renamed from REG_EPAREN.
75460         (_REG_EBRACE): Renamed from REG_EBRACE.
75461         (_REG_BADBR): Renamed from REG_BADBR.
75462         (_REG_ERANGE): Renamed from REG_ERANGE.
75463         (_REG_ESPACE): Renamed from REG_ESPACE.
75464         (_REG_BADRPT): Renamed from REG_BADRPT.
75465         (_REG_EEND): Renamed from REG_EEND.
75466         (_REG_ESIZE): Renamed from REG_ESIZE.
75467         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75468         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75469         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75470         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75471         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75472
75473         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75474         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75475         changed.  But support the old name if the new one is not defined
75476         and if _REGEX_SOURCE.
75477
75478         Change the following member names in struct re_pattern_buffer.
75479         The old names are still supported if !_REGEX_SOURCE.
75480         The new names are always supported, regardless of _REGEX_SOURCE.
75481         (re_buffer): Renamed from buffer.
75482         (re_allocated): Renamed from allocated.
75483         (re_used): Renamed from used.
75484         (re_syntax): Renamed from syntax.
75485         (re_fastmap): Renamed from fastmap.
75486         (re_translate): Renamed from translate.
75487         (re_can_be_null): Renamed from can_be_null.
75488         (re_regs_allocated): Renamed from regs_allocated.
75489         (re_fastmap_accurate): Renamed from fastmap_accurate.
75490         (re_no_sub): Renamed from no_sub.
75491         (re_not_bol): Renamed from not_bol.
75492         (re_not_eol): Renamed from not_eol.
75493         (re_newline_anchor): Renamed from newline_anchor.
75494
75495         Change the following member names in struct re_registers.
75496         The old names are still supported if !_REGEX_SOURCE.
75497         The new names are always supported, regardless of _REGEX_SOURCE.
75498         (rm_num_regs): Renamed from num_regs.
75499         (rm_start): Renamed from start.
75500         (rm_end): Renamed from end.
75501
75502         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75503         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75504         Prepend __ to parameter names.
75505
75506         Undo yesterday's changes.
75507
75508 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75509
75510         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75511         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75512         lib/regex.c.
75513
75514 2005-08-24  Jim Meyering  <jim@meyering.net>
75515
75516         Sync from coreutils.
75517         * m4/fcntl-safer.m4: New file.
75518
75519         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75520         and object files for this module.
75521
75522 2005-08-24  Jim Meyering  <jim@meyering.net>
75523
75524         Sync from coreutils.
75525         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75526
75527 2005-08-24  Jim Meyering  <jim@meyering.net>
75528
75529         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75530         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75531
75532 2005-08-24  Jim Meyering  <jim@meyering.net>
75533
75534         * modules/fcntl-safer: New module.
75535         * modules/fts (Depends-on): Add fcntl-safer.
75536         * MODULES.html.sh (File descriptor based Input/Output):
75537         Add fcntl-safer.
75538
75539 2005-08-24  Bruno Haible  <bruno@clisp.org>
75540
75541         Support for unit test modules.
75542         * modules/README: Mention tests modules.
75543         * modules/TEMPLATE-TESTS: New file.
75544         * gnulib-tool: New options --extract-tests-module, --with-tests and
75545         --tests-base (unused for the moment).
75546         (testsbase, inctests): New variables.
75547         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75548         (func_verify_module): Exclude TEMPLATE-TESTS.
75549         (func_verify_nontests_module, func_verify_tests_module): New functions.
75550         (func_get_dependencies): Add implicit dependency for tests modules.
75551         (func_get_tests_module): New function.
75552         (func_modules_transitive_closure): When --with-tests was specified,
75553         include the unit tests as well, unless explicitly avoided.
75554         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75555         (func_emit_tests_Makefile_am): New function.
75556         (func_create_testdir): When --with-tests was specified, emit a
75557         tests/ directory.
75558         * MODULES.html.sh (Future developments): Update.
75559
75560 2005-08-24  Bruno Haible  <bruno@clisp.org>
75561
75562         * modules/tls-tests: New file.
75563         * tests/test-tls.c: New file, from GNU gettext.
75564
75565 2005-08-24  Bruno Haible  <bruno@clisp.org>
75566
75567         * modules/lock-tests: New file.
75568         * tests/test-lock.c: New file, from GNU gettext.
75569
75570 2005-08-24  Bruno Haible  <bruno@clisp.org>
75571
75572         * lib/lock.h: Add multiple inclusion guard.
75573         * lib/tls.h: Add multiple inclusion guard.
75574
75575 2005-08-24  Bruno Haible  <bruno@clisp.org>
75576
75577         * gnulib-tool: Add support for the --aux-dir option to
75578         --create-testdir, --create-megatestdir, --test, --megatest.
75579         (func_create_testdir, func_create_megatestdir): Optionally emit a
75580         AC_CONFIG_AUX_DIR directive.
75581         (create-testdir, create-megatestdir, test, megatest): Provide a
75582         default value for $auxdir.
75583
75584 2005-08-24  Bruno Haible  <bruno@clisp.org>
75585
75586         * gnulib-tool (import): Use compound statement instead of subshell
75587         where possible.
75588
75589 2005-08-24  Bruno Haible  <bruno@clisp.org>
75590
75591         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75592
75593 2005-08-24  Bruno Haible  <bruno@clisp.org>
75594
75595         * gnulib-tool (func_version): Update.
75596
75597 2005-08-24  Bruno Haible  <bruno@clisp.org>
75598
75599         * gnulib-tool (func_import, func_create_testdir,
75600         func_create_megatestdir): Quote all autoconf macro arguments.
75601
75602 2005-08-24  Bruno Haible  <bruno@clisp.org>
75603
75604         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75605         option --force, because --force causes the aclocal.m4 of each
75606         subdirectory to be newer than the corresponding config.h.in.
75607
75608 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75609
75610         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75611         All contents moved to gl_REGEX.
75612         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75613         assume that it does.
75614
75615 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75616
75617         * lib/regex.h (REG_NOSYS)
75618         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75619         Define, since POSIX requires it as of 2001.
75620         (_REG_ENOSYS)
75621         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75622         New private symbol, used to keep the enum signed in all cases.
75623         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75624         Youngman in
75625         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75626
75627         * lib/regex_internal.c (re_string_skip_chars, register_state):
75628         (calc_state_hash):
75629         Remove forward decls; no longer needed now that we use prototypes.
75630         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75631         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75632         (clean_state_log_if_needed): Likewise.
75633
75634 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         * config/srclist.txt: Add glibc bugs 1231-1233.
75637
75638 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75639
75640         Fix problems reported by Sam Steingold in
75641         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75642         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75643         assumed that reg_errcode_t is a signed type, which is not
75644         necessarily true if _XOPEN_SOURCE is not defined.
75645         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75646         since some compilers warn about it otherwise.
75647
75648 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75649
75650         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75651         (init_word_char, create_initial_state, duplicate_node_closure):
75652         (fetch_token, peek_token_bracket, build_range_exp):
75653         (build_collating_symbol): Remove forward decls; no longer needed
75654         now that we use prototypes.
75655
75656         * lib/regcomp.c:
75657         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75658         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75659         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75660         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75661         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75662         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75663         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75664         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75665         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75666         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75667         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75668         (build_charclass, build_charclass_op, fetch_number, create_tree):
75669         (create_token_tree, mark_opt_subexp, duplicate_tree):
75670         Use prototypes rather than old-style definitions.
75671
75672         * lib/regex_internal.c:
75673         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75674         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75675         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75676         (re_string_reconstruct, re_string_peek_byte_case):
75677         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75678         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75679         (re_node_set_init_copy, re_node_set_add_intersect):
75680         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75681         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75682         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75683         (re_acquire_state, re_acquire_state_context, register_state):
75684         (create_ci_newstate, create_cd_newstate, free_state):
75685         Likewise.
75686         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75687         re_search_2):
75688         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75689         (re_search_internal, prune_impossible_nodes):
75690         (acquire_init_state_context, check_matching, static):
75691         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75692         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75693         (update_regs, sift_states_backward, build_sifted_states):
75694         (clean_state_log_if_needed, merge_state_array):
75695         (update_cur_sifted_state, add_epsilon_src_nodes):
75696         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75697         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75698         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75699         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75700         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75701         (check_arrival, check_arrival_add_next_nodes):
75702         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75703         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75704         (check_node_accept_bytes, check_node_accept, extend_buffers):
75705         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75706         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75707         (sift_ctx_init):
75708         Likewise.
75709
75710         * lib/regex_internal.h:
75711         (re_string_allocate, re_string_construct, re_string_reconstruct):
75712         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75713         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75714         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75715         (re_string_context_at, re_string_peek_byte_case):
75716         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75717         is defined, since we now use prototypes always.
75718
75719         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75720         C89 or better.  All uses removed.
75721
75722 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * config/srclist.txt: Add glibc bugs 1220-1227.
75725
75726 2005-08-20  Jim Meyering  <jim@meyering.net>
75727
75728         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75729         of unused local, dfa.
75730
75731 2005-08-20  Bruno Haible  <bruno@clisp.org>
75732
75733         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75734
75735 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75736
75737         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75738         (re_node_set_insert_last, re_dfa_add_node):
75739         Rename local variables to avoid GCC shadowing warnings.
75740
75741 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75742
75743         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75744         [defined lint]: Suppress bogus uninitialized-variable warnings.
75745
75746         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75747         and let the caller return REG_ESPACE if out of space.  This
75748         removes an uninitialied-variable warning with GCC 4.0.1, and also
75749         avoids taking the address of a local variable.  All callers
75750         changed.
75751
75752 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75755         $LIBCSRC/posix/regexec.c.
75756         Add glibc bug 1217 for regcomp.c.
75757
75758 2005-08-19  Jim Meyering  <jim@meyering.net>
75759
75760         * lib/regexec.c (proceed_next_node): Redo local variables to
75761         avoid GCC shadowing warnings.
75762
75763 2005-08-18  Bruno Haible  <bruno@clisp.org>
75764
75765         * lib/strstr.c (strstr): Fix return value in multibyte case.
75766         * lib/strcasestr.c (strcasestr): Likewise.
75767
75768 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75769
75770         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75771
75772 2005-08-17  Jim Meyering  <jim@meyering.net>
75773
75774         Make the %s format (seconds since the epoch) work for a negative
75775         number and when used with a zero-padded field width, e.g. %015s.
75776
75777         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75778         label so that it precedes the code to set `digits'.  Otherwise,
75779         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75780         print `00-22'.  Now, it prints `-0022', as it should.
75781
75782 2005-08-17  Bruno Haible  <bruno@clisp.org>
75783
75784         * modules/strstr (Files): Add m4/mbrtowc.m4.
75785         (Depends-on): Add mbuiter.
75786
75787 2005-08-17  Bruno Haible  <bruno@clisp.org>
75788
75789         * modules/strcasestr: New file.
75790         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75791         strcasestr.
75792
75793 2005-08-17  Bruno Haible  <bruno@clisp.org>
75794
75795         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75796
75797 2005-08-17  Bruno Haible  <bruno@clisp.org>
75798
75799         * modules/mbuiter: New file.
75800         * MODULES.html.sh (Extended multibyte and wide character utilities):
75801         Add mbuiter.
75802
75803 2005-08-17  Bruno Haible  <bruno@clisp.org>
75804
75805         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75806         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75807
75808 2005-08-17  Bruno Haible  <bruno@clisp.org>
75809
75810         * m4/strcasestr.m4: New file.
75811
75812 2005-08-17  Bruno Haible  <bruno@clisp.org>
75813
75814         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75815         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75816
75817 2005-08-17  Bruno Haible  <bruno@clisp.org>
75818
75819         * lib/strcasestr.h: New file.
75820         * lib/strcasestr.c: New file.
75821
75822 2005-08-17  Bruno Haible  <bruno@clisp.org>
75823
75824         * lib/strcasecmp.c: Use mbuiter.h.
75825
75826 2005-08-17  Bruno Haible  <bruno@clisp.org>
75827
75828         * lib/mbuiter.h: New file.
75829
75830 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75831
75832         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75833         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75834         and gl_GETOPT are both invoked via different paths (as happens
75835         with GNU tar CVS because it uses both argp and getopt), the former
75836         wins.
75837
75838 2005-08-16  Bruno Haible  <bruno@clisp.org>
75839
75840         * modules/tls: New file.
75841         * MODULES.html.sh (Multithreading): Add tls.
75842
75843 2005-08-16  Bruno Haible  <bruno@clisp.org>
75844
75845         * modules/strnlen1: New file.
75846         * MODULES.html.sh (String handling): Add strnlen1.
75847
75848 2005-08-16  Bruno Haible  <bruno@clisp.org>
75849
75850         * modules/strcase (Files): Add m4/mbrtowc.m4.
75851         (Depends-on): Add strnlen1, mbchar.
75852
75853 2005-08-16  Bruno Haible  <bruno@clisp.org>
75854
75855         * modules/mbiter: New file.
75856         * MODULES.html.sh (Extended multibyte and wide character utilities):
75857         Add mbiter.
75858
75859 2005-08-16  Bruno Haible  <bruno@clisp.org>
75860
75861         * modules/mbfile: New file.
75862         * MODULES.html.sh (Extended multibyte and wide character utilities):
75863         Add mbfile.
75864
75865 2005-08-16  Bruno Haible  <bruno@clisp.org>
75866
75867         * modules/mbchar: New file.
75868         * MODULES.html.sh (Extended multibyte and wide character utilities):
75869         New section.
75870
75871 2005-08-16  Bruno Haible  <bruno@clisp.org>
75872
75873         * m4/tls.m4: New file, from GNU gettext.
75874
75875 2005-08-16  Bruno Haible  <bruno@clisp.org>
75876
75877         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75878         always.
75879         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75880
75881 2005-08-16  Bruno Haible  <bruno@clisp.org>
75882
75883         * m4/mbiter.m4: New file.
75884
75885 2005-08-16  Bruno Haible  <bruno@clisp.org>
75886
75887         * m4/mbfile.m4: New file.
75888
75889 2005-08-16  Bruno Haible  <bruno@clisp.org>
75890
75891         * m4/mbchar.m4: New file.
75892
75893 2005-08-16  Bruno Haible  <bruno@clisp.org>
75894
75895         * lib/tls.h: New file, from GNU gettext.
75896         * lib/tls.c: New file, from GNU gettext.
75897
75898 2005-08-16  Bruno Haible  <bruno@clisp.org>
75899
75900         * lib/strnlen1.h: New file.
75901         * lib/strnlen1.c: New file.
75902
75903 2005-08-16  Bruno Haible  <bruno@clisp.org>
75904
75905         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75906         (mbi_init): Update.
75907         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75908         NUL byte, not after it.
75909
75910 2005-08-16  Bruno Haible  <bruno@clisp.org>
75911
75912         * lib/strcase.h (strcasecmp): Add note in comments.
75913         * lib/strncasecmp.c: Use code from strcasecmp.c.
75914         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75915         (strcasecmp): Work correctly in multibyte locales.
75916
75917 2005-08-16  Bruno Haible  <bruno@clisp.org>
75918
75919         * lib/mbiter.h: New file.
75920
75921 2005-08-16  Bruno Haible  <bruno@clisp.org>
75922
75923         * lib/mbfile.h: New file.
75924
75925 2005-08-16  Bruno Haible  <bruno@clisp.org>
75926
75927         * lib/mbchar.h: New file.
75928         * lib/mbchar.c: New file.
75929
75930 2005-08-16  Bruno Haible  <bruno@clisp.org>
75931
75932         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75933         the valid ones. Makes the comparison operations transitive:
75934         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75935         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75936
75937 2005-08-15  Simon Josefsson  <jas@extundo.com>
75938
75939         * modules/ssize_t (License): Change to 'unlimited'.
75940
75941         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75942
75943 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75944
75945         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75946         Add comments for each pending glibc patch.
75947
75948 2005-08-15  Bruno Haible  <bruno@clisp.org>
75949
75950         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75951         __cplusplus is defined.
75952
75953 2005-08-14  Jim Meyering  <jim@meyering.net>
75954
75955         Sync from coreutils.
75956
75957         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75958         Use the hash-table-based cycle-detection code not just when
75959         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75960         Reported by James Youngman in
75961         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75962         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75963         FTS_TIGHT_CYCLE_CHECK.
75964         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75965         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75966         once again.
75967         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75968         * lib/fts.c (fd_safer): Remove decl.
75969         Include fcntl--.h rather than unistd-safer.h
75970         (fts_safe_changedir): Don't call fd_safer; no longer needed
75971         now that we include fcntl--.h.
75972
75973 2005-08-12  Simon Josefsson  <jas@extundo.com>
75974
75975         * modules/getndelim2: Use ssize_t module.
75976         * modules/getnline: Likewise.
75977         * modules/safe-read: Likewise.
75978         * modules/xreadlink: Likewise.
75979
75980         * modules/ssize_t: New file.
75981
75982 2005-08-12  Simon Josefsson  <jas@extundo.com>
75983
75984         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75985
75986 2005-08-12  Simon Josefsson  <jas@extundo.com>
75987
75988         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75989         ssize_t.
75990
75991 2005-08-12  Simon Josefsson  <jas@extundo.com>
75992
75993         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75994         readline, getdelim and check_version.
75995         (Support for systems lacking ISO C 99: Sizes of integer types):
75996         Add size_max.
75997
75998 2005-08-12  Bruno Haible  <bruno@clisp.org>
75999
76000         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76001
76002 2005-08-11  Simon Josefsson  <jas@extundo.com>
76003
76004         * modules/readline: New file.
76005
76006         * modules/strnlen (Files): Add strnlen.h.
76007
76008 2005-08-11  Simon Josefsson  <jas@extundo.com>
76009
76010         * m4/readline.m4: New file.
76011
76012 2005-08-11  Simon Josefsson  <jas@extundo.com>
76013
76014         * lib/readline.h, readline.c: New file.
76015
76016 2005-08-11  Simon Josefsson  <jas@extundo.com>
76017
76018         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76019         gl_AVOID.
76020
76021 2005-08-11  Bruno Haible  <bruno@clisp.org>
76022
76023         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76024
76025 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76026
76027         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76028
76029 2005-08-10  Simon Josefsson  <jas@extundo.com>
76030
76031         * tests/test-iconvme.c: New file.
76032
76033 2005-08-10  Simon Josefsson  <jas@extundo.com>
76034
76035         * m4/strnlen.m4: New file.
76036
76037         * m4/strndup.m4: Don't check for strnlen declaration, done in
76038         strnlen.m4.
76039
76040 2005-08-10  Simon Josefsson  <jas@extundo.com>
76041
76042         * lib/strndup.c: Use strnlen.h.
76043
76044         * lib/strnlen.h: New file.
76045
76046 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76047
76048         * README: Typos.
76049
76050 2005-08-02  Simon Josefsson  <jas@extundo.com>
76051
76052         * modules/readline: New file.
76053
76054 2005-08-02  Simon Josefsson  <jas@extundo.com>
76055
76056         * modules/getdelim: New file.
76057
76058         * modules/getline: Rewrite, don't use getndelim2.
76059
76060 2005-08-02  Simon Josefsson  <jas@extundo.com>
76061
76062         * m4/getline.m4: Separate out getdelim stuff into separate module.
76063
76064         * m4/getdelim.m4: New file.
76065
76066 2005-08-02  Simon Josefsson  <jas@extundo.com>
76067
76068         * lib/getline.h, getline.c: Rewrite.
76069
76070         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76071
76072 2005-07-31  Bruno Haible  <bruno@clisp.org>
76073
76074         * lib/lock.h (gl_lock_initializer): New macro.
76075         (gl_lock_define_initialized): Use it.
76076         (gl_rwlock_initializer): New macro.
76077         (gl_rwlock_define_initialized): Use it.
76078         (gl_recursive_lock_initializer): New macro.
76079         (gl_recursive_lock_define_initialized): Use it.
76080
76081 2005-07-30  Karl Berry  <karl@gnu.org>
76082
76083         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76084         Report from Ben Pfaff, regarding getopt.
76085
76086 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76087
76088         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76089         normal way.
76090         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76091         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76092         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76093         (gl_GETOPT): Use the new macros.  Most of the implementation
76094         is moved to the new macros.  This is for programs like Emacs
76095         that don't want all the functionality of gl_GETOPT.
76096
76097 2005-07-26  Bruno Haible  <bruno@clisp.org>
76098
76099         * m4/lock.m4: Update from GNU gettext.
76100
76101 2005-07-26  Bruno Haible  <bruno@clisp.org>
76102
76103         * lib/lock.h: Update from GNU gettext.
76104         * lib/lock.c: Update from GNU gettext.
76105
76106 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76109         obsolescent AC_TRY_RUN.  Include the default includes files, for
76110         'exit'.
76111
76112 2005-07-24  Bruno Haible  <bruno@clisp.org>
76113
76114         * modules/visibility: New file.
76115         * MODULES.html.sh (Misc): Add visibility.
76116
76117 2005-07-24  Bruno Haible  <bruno@clisp.org>
76118
76119         * m4/visibility.m4: New file.
76120
76121 2005-07-24  Bruno Haible  <bruno@clisp.org>
76122
76123         * doc/visibility.texi: New file.
76124
76125 2005-07-22  Bruno Haible  <bruno@clisp.org>
76126
76127         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76128         $(ALLOCA_H), redundant through BUILT_SOURCES.
76129         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76130         redundant through BUILT_SOURCES.
76131         * modules/byteswap (Makefile.am): Remove explicit dependency on
76132         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76133         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76134         $(FNMATCH_H), redundant through BUILT_SOURCES.
76135         * modules/getopt (Makefile.am): Remove explicit dependency on
76136         $(GETOPT_H), redundant through BUILT_SOURCES.
76137         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76138         redundant through BUILT_SOURCES.
76139         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76140         redundant through BUILT_SOURCES.
76141         * modules/stdbool (Makefile.am): Remove explicit dependency on
76142         $(STDBOOL_H), redundant through BUILT_SOURCES.
76143         * modules/stdint (Makefile.am): Remove explicit dependency on
76144         $(STDINT_H), redundant through BUILT_SOURCES.
76145         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76146         Remove explicit dependency on $(SYSEXITS_H).
76147         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76148
76149 2005-07-18  Simon Josefsson  <jas@extundo.com>
76150
76151         * lib/check-version.c (check_version): Accept identical versions too.
76152
76153 2005-07-18  Bruno Haible  <bruno@clisp.org>
76154
76155         * modules/lock: New file.
76156         * MODULES.html.sh (Multithreading): New section.
76157
76158 2005-07-18  Bruno Haible  <bruno@clisp.org>
76159
76160         * m4/lock.m4: New file, from GNU gettext.
76161
76162 2005-07-18  Bruno Haible  <bruno@clisp.org>
76163
76164         * lib/lock.h: New file, from GNU gettext.
76165         * lib/lock.c: New file, from GNU gettext.
76166
76167 2005-07-18  Bruno Haible  <bruno@clisp.org>
76168
76169         * lib/lock.h (gl_once_t): New type.
76170         (gl_once_define, gl_once): New macros.
76171         * lib/lock.c (fresh_once): New variable.
76172         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76173         functions.
76174
76175 2005-07-16  Simon Josefsson  <jas@extundo.com>
76176
76177         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76178         workaround, suggested by Bruno.
76179
76180 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76181
76182         * modules/xalloc (Depends-on): Add xalloc-die.
76183         * modules/xvasprintf (Depends-on): Add xalloc-die.
76184
76185 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76186
76187         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76188         with a minor change.
76189
76190 2005-07-15  Bruno Haible  <bruno@clisp.org>
76191
76192         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76193         When using lib/poll.c, define poll as rpl_poll.
76194
76195 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * modules/argp (Depends-on): Remove unlocked-io.
76198
76199 2005-07-14  Derek Price  <derek@ximbiot.com>
76200
76201         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76202         for glob symlink bug.
76203
76204 2005-07-14  Bruno Haible  <bruno@clisp.org>
76205
76206         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76207         Instead, test for *_unlocked function declarations directly.
76208
76209 2005-07-11  Simon Josefsson  <jas@extundo.com>
76210
76211         * modules/size_max: New file.
76212
76213         * modules/xsize: Depend on size_max module for size_max.m4.
76214
76215 2005-07-11  Simon Josefsson  <jas@extundo.com>
76216
76217         * lib/size_max.h: New file.
76218
76219 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76220
76221         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76222         copyright symbol and the year.
76223         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76224         (version_etc_va): Use parameterized copyright notice.
76225         Reword to conform to the current GNU coding standards.
76226
76227 2005-07-11  Karl Berry  <karl@gnu.org>
76228
76229         * doc/gnulib.texi (Quoting): new node.
76230         (Initial import): more info, from Patrice.
76231
76232 2005-07-11  Bruno Haible  <bruno@clisp.org>
76233
76234         * gnulib-tool (func_usage): Document option --avoid.
76235         (Command line options): Handle --avoid.
76236         (func_acceptable): New function.
76237         (func_modules_transitive_closure): Use it.
76238
76239 2005-07-11  Bruno Haible  <bruno@clisp.org>
76240
76241         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76242         Reported by Jim Meyering.
76243
76244 2005-07-10  Bruno Haible  <bruno@clisp.org>
76245
76246         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76247         Needed when size_t is smaller than 'unsigned int'.
76248         Reported by Paul Eggert.
76249
76250 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76251
76252         * modules/argp (Depends-on): Add unlocked-io
76253
76254 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76255
76256         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76257         block of defines.
76258
76259 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76262         fix now.
76263
76264 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76265         and Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76268         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76269
76270 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76271
76272         * modules/regex (Files): Add lib/regex_internal.c,
76273         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76274         (Depends-on): Add extensions.
76275         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76276
76277 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76278
76279         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76280         pathconf.
76281         * m4/same.m4 (gl_SAME): Likewise.
76282         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76283
76284         * m4/regex.m4: Adjust to new libc regex implementation.
76285         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76286         all the .c and .h parts of (the new) regex.
76287         Quote the m4 stuff better.
76288         Check for RE_ICASE bug of old gnulib.
76289         Check for REG_STARTEND of recent libc.
76290         Rename local variables from jm_* to gl_*.
76291         Quote operand of "test -f".
76292         Say "recent enough" version of libc, not "version 2".
76293         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76294         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76295         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76296         Remove check for btowc, isascii.
76297         Require AM_LANGINFO_CODESET.
76298
76299 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         * lib/regex.c, regex.h: Sync from libc.
76302         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76303         * lib/regexec.c:
76304         New files, synced from libc, except that regex_internal.h
76305         currently has a small porting fix.
76306
76307 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76308
76309         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76310         regex_internal.c, regexec.c.
76311         Add regex_internal.h too, but as a comment, since the libc version
76312         is currently broken in gnulib mode.
76313
76314 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76315
76316         Support programs like Emacs that use gnulib but not gettext.
76317         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76318         * modules/gettext-h: New file.
76319         * modules/gettext (Files): Remove lib/gettext.h.
76320         (Depends-on): Add gettext-h.
76321         (Makefile.am): Remove lib_SOURCES.
76322         * modules/argmatch, modules/c-stack, modules/closeout:
76323         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76324         * modules/execute, modules/file-type, modules/getaddrinfo:
76325         * modules/getopt, modules/human, modules/javacomp:
76326         * modules/javaexec, modules/mkdir-p, modules/obstack:
76327         * modules/openat, modules/pagealign_alloc, modules/pipe:
76328         * modules/quotearg, modules/regex, modules/rpmatch:
76329         * modules/unicodeio, modules/userspec, modules/version-etc:
76330         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76331         * modules/xsetenv:
76332         Depend on gettext-h, not gettext.
76333
76334 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * gnulib-tool (func_import): Add support for 'public domain' license.
76337         * modules/alloca, modules/atexit, modules/memmove:
76338         Now public domain, not GPL.
76339         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76340         * modules/realloc, modules/strerror, modules/strtod:
76341         Now LGPL, not GPL.
76342
76343 2005-07-05  Bruno Haible  <bruno@clisp.org>
76344
76345         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76346         autoconf CVS. Needed for mingw.
76347
76348 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         Remove the dependency of the strftime module on the tzset module.
76351         * modules/strftime (Depends-on): Remove dependency on tzset.
76352
76353 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76354
76355         Remove the dependency of the strftime module on the tzset module.
76356         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76357         gl_FUNC_TZSET_CLOBBER.
76358
76359 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76360
76361         Remove the dependency of the strftime module on the tzset module.
76362         * lib/strftime.c (my_strftime)
76363         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76364         Copy the input structure, to work around some of the bug with
76365         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76366         Solaris releases, you should also use the tzset module, but we won't
76367         require it as a dependency any more since we don't want LGPLed code
76368         to depend on GPLed code.
76369
76370 2005-07-02  Jim Meyering  <jim@meyering.net>
76371
76372         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76373         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76374         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76375         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76376
76377 2005-07-02  Jim Meyering  <jim@meyering.net>
76378
76379         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76380
76381 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76382
76383         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76384         declares only 'struct timespec;' (!).
76385
76386 2005-07-01  Jim Meyering  <jim@meyering.net>
76387
76388         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76389         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76390         * lib/save-cwd.c, tempname.c:
76391         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76392         and don't include <sys/file.h>).
76393
76394 2005-06-29  Jim Meyering  <jim@meyering.net>
76395
76396         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76397         type name.  Use the variable name instead.
76398         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76399         Likewise.
76400
76401 2005-06-28  Simon Josefsson  <jas@extundo.com>
76402
76403         * modules/check-version (Files): Add check-version.m4.
76404
76405 2005-06-28  Simon Josefsson  <jas@extundo.com>
76406
76407         * m4/check-version.m4: New file, suggested by Jim Meyering
76408         <jim@meyering.net>.
76409
76410 2005-06-28  Simon Josefsson  <jas@extundo.com>
76411
76412         * lib/check-version.h, lib/check-version.c: New files.
76413
76414 2005-06-28  Simon Josefsson  <jas@extundo.com>
76415
76416         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76417         collision with global variable.  Better indentation.  Don't
76418         increment buffer pointer beyond buffer end.  Based on comments
76419         from Paul Eggert <eggert@cs.ucla.edu>.
76420
76421         * lib/base64.h: Indent.
76422
76423 2005-06-28  Simon Josefsson  <jas@extundo.com>
76424
76425         * doc/gnulib.texi (Library version handling): New section.
76426
76427 2005-06-28  Jim Meyering  <jim@meyering.net>
76428
76429         * check-module (find_included_lib_files): Hard-code another
76430         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76431         but modules/fts-lgpl (correctly) does not list those files.
76432
76433         * modules/canonicalize (Files): Add lib/pathmax.h.
76434
76435 2005-06-25  Simon Josefsson  <jas@extundo.com>
76436
76437         * modules/check-version: New file.
76438
76439 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76440
76441         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76442         initializer of struct addrinfo, as an indication that we don't
76443         care how many members the structure has.
76444
76445 2005-06-24  Derek Price  <derek@ximbiot.com>
76446         and Bruno Haible  <bruno@clisp.org>
76447
76448         Remove stat module & update lstat.
76449         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76450         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76451         * m4/stat.m4: Remove this file.
76452
76453 2005-06-24  Derek Price  <derek@ximbiot.com>
76454         and Bruno Haible  <bruno@clisp.org>
76455
76456         Remove stat module & update lstat.
76457         * lib/stat.c: Remove this file...
76458         (slash_aware_lstat): ...moving this content and its support...
76459         * lib/lstat.c (rpl_lstat): ...into here.
76460         * lib/lstat.h: New file.
76461
76462 2005-06-24  Derek Price  <derek@ximbiot.com>
76463         and Bruno Haible  <bruno@clisp.org>
76464
76465         Remove stat module & update lstat.
76466         * config/srclist.txt (libc sources): Remove stat.
76467
76468 2005-06-24  Derek Price  <derek@ximbiot.com>
76469         and Bruno Haible  <bruno@clisp.org>
76470
76471         Remove stat module & update lstat.
76472         * MODULES.html.sh (stat): Remove.
76473         * MODULES.html: Regenerated.
76474         * modules/lstat (Description): Correct function name.
76475         (Files): Add "lstat.h".
76476         (Depends-on): Remove stat, add xalloc, stat-macros.
76477         * modules/stat: Remove this file.
76478         (Include): Add "lstat.h", remove <sys/stat.h>.
76479
76480 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76481
76482         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76483         (ranged_convert): Don't save conversion in a temporary struct.
76484         This causes a warning with GCC 4.0.0, and anyway in the typical
76485         case it's not worth the extra 100 bytes or so of code.
76486         (ranged_convert, __mktime_internal): When calling a function via a
76487         pointer P, use P () rather than (*P) (), as we now assume C89 or
76488         better.
76489
76490 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76493         "who -r" failed to give output.  Problem reported by Tim Waugh.
76494
76495         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76496         (xcalloc): Use it to avoid needless tests.
76497         Problem reported by Jim Meyering.
76498
76499 2005-06-20  Derek Price  <derek@ximbiot.com>
76500
76501         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76502         unnecessary for Autoconfs > 2.59c.
76503
76504 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76505
76506         * lib/argp.h (__option_is_short): Check upper limit of
76507         __key. Isprint() requires its argument to have the value
76508         of an unsigned char or EOF.
76509
76510 2005-06-16  Jim Meyering  <jim@meyering.net>
76511
76512         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76513         when either N or S is zero.
76514
76515 2005-06-16  Derek Price  <derek@ximbiot.com>
76516
76517         * m4/bison.m4: Declare YACC & YFLAGS precious.
76518
76519 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76522         multibyte string or pattern, fall back on unibyte matching.
76523         Problem reported by James Youngman.
76524
76525 2005-06-08  Bruno Haible  <bruno@clisp.org>
76526
76527         * modules/csharpcomp: New file.
76528         * MODULES.html.sh (C#): Add csharpcomp.
76529
76530 2005-06-08  Bruno Haible  <bruno@clisp.org>
76531
76532         * m4/csharpcomp.m4: New file, from GNU gettext.
76533
76534 2005-06-08  Bruno Haible  <bruno@clisp.org>
76535
76536         * lib/csharpcomp.h: New file, from GNU gettext.
76537         * lib/csharpcomp.c: New file, from GNU gettext.
76538         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76539
76540 2005-06-08  Bruno Haible  <bruno@clisp.org>
76541
76542         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76543         warning on mingw.
76544
76545 2005-06-07  Derek Price  <derek@ximbiot.com>
76546
76547         Sync from CVS.
76548         * lib/glob_.h: Indent nested #ifdef.
76549
76550 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         Sync from coreutils.
76553         Use "file name" when talking about file names, instead of "filename"
76554         or "path", as per the GNU coding standards.
76555         * lib/mkdir-p.c: Renamed from makepath.c.
76556         (make_dir_parents): Renamed from make_path.  All callers changed.
76557         * lib/mkdir-p.h: Likewise.  All includers changed.
76558         * lib/filenamecat.c: Renamed from path-concat.c.
76559         (file_name_concat): Renamed from path_concat.  All callers changed.
76560         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76561         * lib/filenamecat.h: Likewise.  All includers changed.
76562         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76563         in comments or local variable names.
76564         * lib/basename.c: Likewise.
76565         * lib/canonicalize.c, canonicalize.h: Likewise.
76566         * lib/dirname.c, dirname.h: Likewise.
76567         * lib/euidaccess.c: Likewise.
76568         * lib/exclude.c: Likewise
76569         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76570         * lib/fsusage.c, fsuage.h: Likewise.
76571         * lib/fts.c, fts_.h: Likewise.
76572         * lib/getcwd.c: Likewise.
76573         * lib/getloadavg.c: Likewise.
76574         * lib/mkstemp.c: Likewise.
76575         * lib/mountlist.c, mountlist.h: Likewise.
76576         * lib/openat.c, openat.h: Likewise.
76577         * lib/readlink-stub.c: Likewise.
76578         * lib/readutmp.c, readutmp.h: Likewise.
76579         * lib/rename.c: Likewise.
76580         * lib/rmdir.c: Likewise.
76581         * lib/same.c: Likewise.
76582         * lib/savedir.c: Likewise.
76583         * lib/stripslash.c: Likewise.
76584         * lib/tempname.c: Likewise.
76585         * lib/xreadlink.c: Likewise.
76586         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76587         All uses changed.
76588         * lib/exclude.h: Likewise.
76589
76590         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76591         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76592         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76593         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76594         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76595         files have been getting away with it for years (MORE/BSD 4.3
76596         is extinct now).
76597         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76598         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76599
76600         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76601         Define to 256, not 255, as per modern POSIX.
76602
76603 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         Sync from coreutils.
76606         Use "file name" when talking about file names, instead of "filename"
76607         or "path", as per the GNU coding standards.
76608         * MODULES.html.sh: mkdir-p renamed from makepath.
76609         filenamecat renamed from path-concat.
76610         * modules/filenamecat: Renamed from modules/path-concat.
76611         (Files): filenamecat.h and filenamecat.c renamed from
76612         path-concat.h and path-concat.c.
76613         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76614         (Include): filenamecat.h, not path-concat.h.
76615         * modules/mkdir-p: Renamed from modules/makepath.
76616         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76617         makepath.c.
76618         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76619         (Include): mkdir-p.h, not makepath.h.
76620
76621 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76622
76623         Sync from coreutils.
76624         * m4/mkdir-p.m4: Renamed from makepath.m4.
76625         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76626         Rename files from makepath.c to mkdir-p.c, and from
76627         makepath.h to mkdir-p.h.
76628         * m4/filenamecat.m4: Renamed from path-concat.m4.
76629         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76630         Rename files from path-concat.c to filenamecat.c,
76631         and from path-concat.h to filenamecat.h.
76632         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76633         "file name" in local variables or comments.
76634         * m4/rename.m4: Likewise.
76635
76636 2005-06-01  Bruno Haible  <bruno@clisp.org>
76637
76638         * modules/csharpexec: New file.
76639         * MODULES.html.sh (C#): New section.
76640
76641 2005-06-01  Bruno Haible  <bruno@clisp.org>
76642
76643         * m4/csharp.m4: New file, from GNU gettext.
76644         * m4/csharpexec.m4: New file, from GNU gettext.
76645
76646 2005-06-01  Bruno Haible  <bruno@clisp.org>
76647
76648         * lib/csharpexec.h: New file, from GNU gettext.
76649         * lib/csharpexec.c: New file, from GNU gettext.
76650         * lib/csharpexec.sh.in: New file, from GNU gettext.
76651
76652 2005-05-31  Derek Price  <derek@ximbiot.com>
76653             Paul Eggert  <eggert@cs.ucla.edu>
76654
76655         Sync from cvs.
76656         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76657
76658 2005-05-31  Derek Price  <derek@ximbiot.com>
76659             Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         Sync from cvs.
76662         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76663
76664 2005-05-29  Derek Price  <derek@ximbiot.com>
76665
76666         * config/srclist.txt (glob_.h, glob.c): Add these files.
76667
76668 2005-05-29  Derek Price  <derek@ximbiot.com>
76669
76670         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76671         * modules/glob: New file.
76672         * modules/getlogin_r: Add link to POSIX spec in description.
76673
76674 2005-05-29  Derek Price  <derek@ximbiot.com>
76675             Paul Eggert  <eggert@cs.ucla.edu>
76676
76677         * m4/glob.m4: New file.
76678
76679 2005-05-29  Derek Price  <derek@ximbiot.com>
76680             Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         * lib/glob_.h, lib/glob.c: New files.
76683
76684 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76687         * modules/fts-lgpl (Depends-on): Remove gettext.
76688
76689 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76690
76691         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76692         and don't require gt_INTTYPES_PRI.
76693
76694 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76697
76698         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76699         the configuration hassle isn't worth it.
76700         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76701         (LONGEST_MODIFIER, PRIuMAX): Remove.
76702
76703 2005-05-27  Bruno Haible  <bruno@clisp.org>
76704
76705         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76706
76707 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76710         _POSIX_PTHREAD_SEMANTICS for Solaris.
76711
76712 2005-05-25  Derek Price  <derek@ximbiot.com>
76713
76714         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76715
76716 2005-05-25  Derek Price  <derek@ximbiot.com>
76717             Paul Eggert  <eggert@cs.ucla.edu>
76718
76719         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76720         * lib/getlogin_r.c, getlogin_r.h: New files.
76721
76722 2005-05-25  Bruno Haible  <bruno@clisp.org>
76723             Derek Price  <derek@ximbiot.com>
76724
76725         * lib/getlogin_r.h: Simplify API documentation.
76726
76727 2005-05-23  Derek Price  <derek@ximbiot.com>
76728
76729         * modules/minmax (Files): Add m4/minmax.m4.
76730         (configure.ac): Add gl_MINMAX.
76731
76732 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76735         so that unistd-safer.h (GPL'ed code) need not be included.
76736
76737 2005-05-22  Bruno Haible  <bruno@clisp.org>
76738
76739         * m4/minmax.m4: New file.
76740         Based on a patch by Derek Price <derek@ximbiot.com>.
76741
76742 2005-05-22  Bruno Haible  <bruno@clisp.org>
76743
76744         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76745         (INT64_MIN): Fix definition.
76746         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76747
76748         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76749         NEED_SIGNED_INT_TYPES.
76750
76751         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76752         HAVE_SYSTEM_INTTYPES.
76753
76754 2005-05-22  Bruno Haible  <bruno@clisp.org>
76755
76756         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76757         Also include <sys/param.h> if it defines MIN, MAX.
76758         Based on a patch by Derek Price <derek@ximbiot.com>.
76759
76760 2005-05-21  Jim Meyering  <jim@meyering.net>
76761
76762         * modules/fts (Files): Add m4/inttypes-pri.m4.
76763         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76764
76765 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76766
76767         New fts module.
76768         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76769         (setup_dir, free_dir): New functions.
76770         (enter_dir, leave_dir): Define trivial
76771         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76772         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76773         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76774         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76775         Move to fts-cycle.c.
76776         (fts_open): Use setup_dir.
76777         (fts_close): Use free_dir.
76778         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76779         This adds a label and some gotos, but the alternatives were messier.
76780         Check for memory allocation failure when entering a dir.
76781         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76782         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76783         (FTS): New member fts_cycle, that is a union that contains the
76784         old active_dir_ht and cycle_state.  All uses changed to mention
76785         fts_cycle.ht and fts_cycle.state.
76786         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76787         fts.c, with the following changes:
76788         (setup_dir, free_dir): New functions.
76789         (enter_dir): Now returns bool.  Return true if successful, false
76790         if memory exhausted.  All callers changed.
76791         Do not bother partly cleaning up on
76792         memory allocation failure; that is free_dir's job.
76793         However, free ad if hash_insert fails, to avoid memory leak.
76794         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76795         fts->fts_options to see which union member to use.
76796
76797 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76800         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76801
76802 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76803
76804         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76805
76806 2005-05-20  Jim Meyering  <jim@meyering.net>
76807
76808         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76809         Now a macro, to pacify GCC.
76810
76811 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76812
76813         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76814         of -1.
76815
76816 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76817
76818         * lib/chown.c (rpl_chown): Return -1 on failure.
76819
76820 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76823         Don't check for stddef.h.
76824         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76825         don't use its results.
76826         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76827         since we include them unconditionally.  Don't require
76828         AM_STDBOOL_H, since stdbool is a prerequisite.
76829         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76830         since we assume C89 or better.
76831         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76832         as we don't use their results.
76833         Don't check for fchdir, memmove, memset, strrchr, as we use
76834         them unconditionally.
76835         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76836         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76837
76838 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76841         Include <stddef.h> unconditionally, since we assume C89 now.
76842         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76843         * lib/fts.c: Include fts_.h first, to check interface.
76844         Do not include intprops.h; no longer needed.
76845         Include cycle-check.h and hash.h, since fts_.h no longer does.
76846         Remove unnecessary casts of closedir to void.
76847         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76848         decide whether to decrement nlinks.
76849         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76850         (FTS): Use struct hash_table * instead of Hash_table, so that
76851         we no longer need to include hash.h here.
76852
76853 2005-05-18  Jim Meyering  <jim@meyering.net>
76854
76855         * modules/dirfd (License): Change to LGPL.  Most of the code
76856         is already in the public domain.
76857
76858 2005-05-18  Jim Meyering  <jim@meyering.net>
76859
76860         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76861         Reported by Yoann Vandoorselaere.
76862
76863 2005-05-17  Jim Meyering  <jim@meyering.net>
76864
76865         * m4/fts.m4: New file, from coreutils.
76866
76867 2005-05-17  Jim Meyering  <jim@meyering.net>
76868
76869         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76870
76871 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76872
76873         Sync from coreutils.
76874         * m4/unlinkdir.m4: New file.
76875
76876 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76877
76878         Sync from coreutils.
76879         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76880         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76881         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76882         White space changes only.
76883         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76884         special.
76885         * lib/yesno.c: Include getline.h, not ctype.h.
76886         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76887         Use getline to remove arbitrary restriction on response length.
76888
76889 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76890
76891         * config/srclist-update: Spell out "Street" in FSF postal
76892         mail address; this is the style the FSF seems to prefer.
76893
76894         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76895         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76896         this updates FSF postal mail address.
76897
76898         Sync from coreutils.
76899         * modules/unlinkdir: New file.
76900         * modules/yesno (Depends-on): Add getline.
76901         * MODULES.html.sh (File system functions): Add unlinkdir.
76902
76903 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76906         lib/strsep.h:
76907         Change the initial comment to refer to GPL, not LGPL.
76908         gnulib-tool will change it to LGPL as needed.
76909
76910         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76911         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76912         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76913         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76914         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76915         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76916         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76917         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76918         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76919         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76920         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76921         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76922         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76923         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76924         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76925         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76926         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76927         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76928         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76929         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76930         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76931         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76932         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76933         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76934         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76935         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76936         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76937         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76938         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76939         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76940         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76941         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76942         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76943         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76944         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76945         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76946         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76947         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76948         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76949         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76950         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76951         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76952         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76953         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76954         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76955         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76956         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76957         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76958         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76959         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76960         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76961         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76962         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76963         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76964         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76965         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76966         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76967         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76968         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76969         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76970         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76971         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76972         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76973         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76974         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76975         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76976         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76977         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76978         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76979         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76980         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76981         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76982         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76983         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76984         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76985         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76986         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76987         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76988         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76989         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76990         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76991         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76992         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76993         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76994         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76995         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76996         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76997         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76998         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76999         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77000         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77001         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77002         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77003         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77004         lib/yesno.c, lib/yesno.h:
77005         Update FSF postal mail address.
77006
77007 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77008
77009         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77010         tests/test-memmem.c, tests/test-stpncpy.c:
77011         Update FSF postal mail address.
77012
77013 2005-05-13  Bruno Haible  <bruno@clisp.org>
77014
77015         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77016         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77017         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77018         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77019         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77020         Add support for 64-bit integers in the MSVC compiler.
77021
77022 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77023
77024         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77025
77026 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77027
77028         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77029
77030 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * doc/getdate.texi (General date syntax): Don't say that date
77033         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77034         Problem reported by Nic Ferrier.
77035
77036 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77037
77038         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77039         specified in ai_socktype. Fix invalid ai_protocol
77040         check. ai_protocol is usually set to 0 or depending on
77041         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77042         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77043         ai_socktype / ai_protocol in the returned addrinfo structure.
77044
77045 2005-05-10  Simon Josefsson  <jas@extundo.com>
77046
77047         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77048         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77049
77050 2005-05-10  Karl Berry  <karl@gnu.org>
77051
77052         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77053         (from http://www.gnu.org/licenses).
77054         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77055         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77056         fdl.texi suffices.
77057
77058 2005-05-10  Karl Berry  <karl@gnu.org>
77059
77060         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77061         (COPYING.DOC): remove.
77062
77063         * config/srclist-update: new FSF address.
77064
77065 2005-05-10  Derek Price  <derek@ximbiot.com>
77066
77067         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77068         possible.
77069
77070 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77071             Bruno Haible  <bruno@clisp.org>
77072
77073         * modules/inet_ntop: New file.
77074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77075         inet_ntop.
77076
77077 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77078             Bruno Haible  <bruno@clisp.org>
77079
77080         * m4/inet_ntop.m4: New file.
77081
77082 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77083             Bruno Haible  <bruno@clisp.org>
77084
77085         * lib/inet_ntop.h: New file.
77086         * lib/inet_ntop.c: New file, from glibc with modifications.
77087
77088 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77089
77090         * modules/time_r (License): Change to LGPL.
77091         * modules/extensions (License): Change to LGPL.  Actually,
77092         the license is more permissive than that, but currently gnulib-tool
77093         doesn't know how to handle more-permissive licenses.
77094
77095         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77096         Problem reported by Dave Love.
77097
77098 2005-05-08  Jim Meyering  <jim@meyering.net>
77099
77100         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77101         blank.
77102
77103 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         * modules/argmatch (Depends-on): Add stdbool.
77106         * modules/backupfile (Depends-on): Likewise.
77107         * modules/chdir-long (Depends-on): Likewise.
77108         * modules/closeout (Depends-on): Likewise.
77109         * modules/cycle-check (Depends-on): Likewise.
77110         * modules/dirname (Depends-on): Likewise.
77111         * modules/fnmatch (Depends-on): Likewise.
77112         * modules/fsusage (Depends-on): Likewise.
77113         * modules/fwriteerror (Depends-on): Likewise.
77114         * modules/getcwd (Depends-on): Likewise.
77115         * modules/getloadavg (Depends-on): Likewise.
77116         * modules/hard-locale (Depends-on): Likewise.
77117         * modules/makepath (Depends-on): Likewise.
77118         * modules/mountlist (Depends-on): Likewise.
77119         * modules/nanosleep (Depends-on): Likewise.
77120         * modules/posixtm (Depends-on): Likewise.
77121         * modules/quotearg (Depends-on): Likewise.
77122         * modules/readtokens (Depends-on): Likewise.
77123         * modules/readtokens0 (Depends-on): Likewise.
77124         * modules/readutmp (Depends-on): Likewise.
77125         * modules/save-cwd (Depends-on): Likewise.
77126         * modules/strftime (Depends-on): Likewise.
77127         * modules/userspec (Depends-on): Likewise.
77128         * modules/utimecmp (Depends-on): Likewise.
77129         * modules/xgetcwd (Depends-on): Likewise.
77130         * modules/xnanosleep (Depends-on): Likewise.
77131         * modules/xstrtod (Depends-on): Likewise.
77132         * modules/yesno (Depends-on): Likewise.
77133
77134 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77135
77136         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77137         needless checks.
77138
77139 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77140
77141         Merge from coreutils.  Among other things,
77142         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77143         * lib/fd-safer.c: New file.
77144         * lib/fcntl-safer.h, open-safer.c: Remove.
77145         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77146         * lib/dup-safer.c: Include unistd-safer.h first.
77147         Don't include errno.h.
77148         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77149         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77150         * lib/file-type.c: Rely on file-type.h change.
77151         * lib/getloadavg.c: Include unistd-safer.h.
77152         (getloadavg): Use safer open.
77153         * lib/getusershell.c: Include "stdio-safer.h".
77154         (getusershell): Use safer fopen.
77155         * lib/long-options.c (long_options): Use NULL rather than 0.
77156         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77157         'free'.
77158         * lib/modechange.c: Likewise.
77159         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77160         (MODE_DONE): New constant.
77161         (struct mode_change): Remove 'next' member.
77162         (make_node_op_equals): New function; like the old one of the
77163         same name, except it allocates an array.
77164         (mode_compile, mode_create_from_ref): Use it.
77165         (mode_compile): Allocate result as an array, not a linked list.
77166         Parse octal string ourself, so that we catch mistakes like "+0".
77167         (mode_adjust): Arg is an array, not a linked list.
77168         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77169         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77170         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77171         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77172         Remove.  This is now stat-macros.h's job.
77173         (talloc): Remove.  All callers replaced by xalloc, so that
77174         our invokers don't have to worry about reporting memory failures.
77175         (make_node_op_equals): Remove.
77176         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77177         New constants.
77178         (struct mode_change): Moved here from modechange.h.
77179         (mode_append_entry): Remove.
77180         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77181         apps to have incorrect behavior.  Use simpler algorithm for head
77182         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77183         Detect more invalid usages rather than having somewhat-random behavior.
77184         Don't insert an "a=" action, as that leads to incorrect behavior.
77185         (mode_compile, mode_create_from_ref): Return NULL on error instead
77186         of an enum, since now there's only one way to have an error.  All
77187         callers changed.
77188         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77189         at the correct time.  Simplify calculation of "+u" and its ilk.
77190         Don't mishandle "+X".
77191         (mode_free): Remove "register" and localize decls.
77192         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77193         (struct mode_change): Move to modechange.c; callers don't
77194         need to see this stuff.
77195         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77196         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77197         (mode_change, mode_adjust): Reflect the new signatures noted above.
77198         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77199         that might redefine system include files.
77200         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77201         (my_usleep): Use NULL rather than (void *) 0.
77202         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77203         Use siginterrupt to specify that system calls should be interrupted.
77204         (rpl_nanosleep): Move initialization of suspended closer to call of
77205         my_usleep.
77206         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77207         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77208         (desirable_utmp_entry): New function.
77209         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77210         using x2nrealloc, to simplify logic.
77211         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77212         size calculation.  Do not assume utmp file is a regular file.
77213         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77214         (READ_UTMP_CHECK_PIDS): New constant.
77215         * lib/save-cwd.c: Include unistd-safer.h.
77216         (save_cwd): Use fd_safer.
77217         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77218         [!_LIBC] Include "stat-macros.h" instead.
77219         * lib/unistd-safer.h (fd_safer): New decl.
77220
77221 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         * modules/getloadavg (Depends-on): Add unistd-safer.
77224         * modules/getusershell (Depends-on): Add stdio-safer.
77225         * modules/lstat (Depends-on): Remove xalloc.
77226         * modules/mkstemp (Depends-on): Add stat-macros.
77227         * modules/modechange (Depends-on): Remove xstrtol.
77228         Add stat-macros, xalloc.
77229         * modules/save-cwd (Depends-on): Add unistd-safer.
77230         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77231         * modules/unistd-safer (Files): Add lib/fd-safer.c
77232         (Makefile.am): Remove lib_SOURCES.
77233
77234         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77235         Remove fcntl-safer; unistd-safer supersedes it.
77236
77237 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77238
77239         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77240         AC_HEADER_STAT.
77241         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77242         (gl_PREREQ_CHOWN): Remove.
77243         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77244         it.  Don't require AC_HEADER_STAT.
77245         (gl_PREREQ_LSTAT): Remove.
77246         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77247         Don't require AC_HEADER_STAT.
77248         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77249         (gl_PREREQ_RMDIR): Remove.
77250         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77251         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77252         the stat-macros module a prerequisite.
77253         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77254         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77255         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77256         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77257         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77258         variable names.
77259         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77260         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77261         variable prefixes.
77262         * m4/fcntl-safer.m4: Remove.
77263         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77264         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77265         Invoke gl_PREREQ_FD_SAFER.
77266         (gl_PREREQ_FD_SAFER): New macro.
77267         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77268         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77269         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77270         Remove duplicate call to AC_LIBOBJ(readutmp).
77271         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77272
77273         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77274         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77275
77276 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         * MODULES.html.sh (Misc): Add byteswap.
77279
77280 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77281
77282         * modules/getcwd (Depends-on): Add extensions.
77283         * modules/openat (Depends-on): Likewise.
77284
77285 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77286
77287         * modules/byteswap: New file.
77288
77289 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77290
77291         * m4/byteswap.m4: New file.
77292
77293 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77294
77295         * lib/byteswap_.h: New file.
77296
77297 2005-04-25  Karl Berry  <karl@gnu.org>
77298
77299         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77300
77301 2005-04-25  Albert Chin  <china@thewrittenword.com>
77302
77303         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77304         Toolkit C bug.
77305
77306 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77307
77308         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77309         (func_ln_if_changed): Remove forcibly for no error message
77310         in case file does not exist.
77311
77312 2005-04-19  Simon Josefsson  <jas@extundo.com>
77313
77314         * gnulib-tool (Options): Make --symlink mean --symbolic.
77315
77316 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77317
77318         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77319
77320 2005-04-16  Simon Josefsson  <jas@extundo.com>
77321
77322         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77323
77324 2005-04-15  Simon Josefsson  <jas@extundo.com>
77325
77326         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77327
77328 2005-04-15  Simon Josefsson  <jas@extundo.com>
77329
77330         * gnulib-tool: Rename --symlink to --symbolic.
77331
77332 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77333
77334         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77335         symbolic links to files instead of copying/moving.  Add --aux-dir,
77336         specifying directory relative --dir where auxiliary build tools
77337         are placed.
77338
77339 2005-04-14  Bruno Haible  <bruno@clisp.org>
77340
77341         * modules/allocsa (License): Change to LGPL.
77342         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77343
77344 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77345
77346         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77347         that "UTC +1 second" continues to work.  Problem reported
77348         by Dmitry V. Levin.
77349         (relunit_snumber): New rule.
77350         (relunit): Use it.
77351
77352 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77353
77354         * lib/getdate.y (universal_time_zone_table): New constant.
77355         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77356         universal_time_zone_table.
77357         (lookup_zone): Prefer universal_time_zone_table to
77358         local_time_zone_table, so that "GMT" time stamps are allowed in
77359         London during the summer.  Problem reported by Ian Abbott.
77360
77361 2005-04-12  Jim Meyering  <jim@meyering.net>
77362
77363         * lib/human.c (humblock): Set *options even when returning due to
77364         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77365         warning from gcc-4.
77366
77367 2005-04-09  Jim Meyering  <jim@meyering.net>
77368
77369         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77370         -Wuninitialized: initialize tm0.tm_year.
77371
77372 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77373
77374         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77375         count, since there's no maximum.  All uses changed.
77376         Add member dsts_seen.
77377         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77378         not being INT_MAX.
77379         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77380         Use pc_rels_seen to decide whther a date is absolute.
77381
77382         * lib/getdate.y (number): Don't overwrite year.
77383         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77384         check.
77385
77386 2005-04-02  Simon Josefsson  <jas@extundo.com>
77387
77388         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77389         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77390
77391 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77392
77393         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77394         where no absolute path name can be longer than PATH_MAX.
77395
77396 2005-03-27  Jim Meyering  <jim@meyering.net>
77397
77398         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77399
77400 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77401
77402         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77403         "one's complement" -> "ones' complement" in comment, as per Knuth.
77404         "value of type" -> "type or expression" in comment.
77405         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77406
77407 2005-03-26  Jim Meyering  <jim@meyering.net>
77408
77409         Comment nits.
77410         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77411         Correct typos: s/or/of/.
77412
77413 2005-03-26  Jim Meyering  <jim@meyering.net>
77414
77415         * modules/check-include-files: Move to ../ and rename to...
77416         * check-module: ...this.
77417
77418 2005-03-25  Jim Meyering  <jim@meyering.net>
77419
77420         * modules/xvasprintf (Files): Add xalloc.h.
77421
77422 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77423
77424         * modules/gettext (Files): config/config.rpath ->
77425         build-aux/config.rpath
77426         * modules/iconv (Files): Likewise.
77427         Problem reported by Oskar Liljeblad.
77428
77429 2005-03-23  Jim Meyering  <jim@meyering.net>
77430
77431         * modules/check-include-files: New script to check for
77432         missing dependencies, multiple includes, etc.
77433
77434         * modules/c-strtold (Depends-on): Add xalloc.
77435         * modules/c-strtod (Depends-on): Add xalloc.
77436         * modules/hash (Depends-on): Add xalloc.
77437         (Files): Remove lib/xalloc.h.
77438
77439         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77440         * modules/userspec (Files): Add lib/inttostr.h.
77441
77442 2005-03-23  Jim Meyering  <jim@meyering.net>
77443
77444         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77445
77446 2005-03-22  Jim Meyering  <jim@meyering.net>
77447
77448         * modules/stat-macros: New module.
77449         * modules/canonicalize, modules/euidaccess, modules/file-type,
77450         * modules/filemode, modules/lchown, modules/makepath,
77451         * modules/rmdir, modules/stat: Depend on new stat-macros module
77452         rather than listing lib/stat-macros.h manually.
77453         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77454
77455 2005-03-22  Jim Meyering  <jim@meyering.net>
77456
77457         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77458
77459 2005-03-22  Bruno Haible  <bruno@clisp.org>
77460
77461         * config/srclist.txt: Replace target directory 'config' with
77462         'build-aux'.
77463         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77464         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77465         ../build-aux/.
77466
77467 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77468
77469         * modules/chdir-long (Depends-on): Add mempcpy.
77470
77471         * modules/acl, modules/backupfile, modules/c-strtod,
77472         modules/c-strtold, modules/canon-host, modules/canonicalize,
77473         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77474         modules/exclude, modules/exitfail, modules/file-type,
77475         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77476         modules/getdate, modules/getline, modules/getpagesize,
77477         modules/getpass, modules/getugroups, modules/group-member,
77478         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77479         modules/inttostr, modules/long-options, modules/makepath,
77480         modules/md5, modules/memcasecmp, modules/memcoll,
77481         modules/modechange, modules/mountlist, modules/path-concat,
77482         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77483         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77484         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77485         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77486         modules/strftime, modules/strndup, modules/strverscmp,
77487         modules/timespec, modules/unlocked-io, modules/userspec,
77488         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77489         modules/yesno:
77490         Remove lib_SOURCES line from Makefile.am section, as this is now
77491         done automatically by the corresponding Autoconf macro.
77492
77493 2005-03-21  Jim Meyering  <jim@meyering.net>
77494
77495         Changes imported from coreutils.
77496
77497         * lib/cycle-check.c: Don't include xalloc.h.
77498
77499         * lib/path-concat.c: Don't include assert.h.
77500         (path_concat): Remove assertion that would have triggered
77501         for ABASE starting with more than one slash.
77502         Reported by Andreas Schwab.
77503
77504         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77505         properly when ABASE is an absolute file name.
77506         Correct the description of this function.
77507         Include <assert.h>.
77508         Add an assertion and a test driver.
77509         This fixes a bug introduced on 2004-07-02.
77510         Andreas Schwab reported the resulting failure of cp --parents:
77511         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77512
77513 2005-03-21  Jim Meyering  <jim@meyering.net>
77514
77515         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77516         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77517
77518 2005-03-21  Jim Meyering  <jim@meyering.net>
77519         and  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77522         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77523         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77524         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77525         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77526         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77527         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77528         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77529         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77530         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77531         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77532         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77533         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77534         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77535         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77536         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77537         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77538         for these modules.
77539
77540 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77541
77542         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77543         (which shouldn't happen), generate nothing instead of returning 0
77544         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77545
77546 2005-03-16  Bruno Haible  <bruno@clisp.org>
77547
77548         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77549         HAVE_LONGLONG_64BIT.
77550
77551 2005-03-16  Bruno Haible  <bruno@clisp.org>
77552
77553         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77554         HAVE_LONGLONG_64BIT.
77555
77556 2005-03-16  Bruno Haible  <bruno@clisp.org>
77557
77558         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77559         HAVE_LONGLONG_64BIT.
77560
77561 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77562
77563         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77564         reliably distinguish strftime failure from empty output on POSIX
77565         hosts.
77566
77567 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77568
77569         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77570         (iconv_string): Don't guess a size-zero buffer, as that might cause
77571         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77572         result would be 'too large', where 'too large' is (heuristically)
77573         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77574         overflow concerns.  This will prevent some unwanted malloc failures
77575         when the inputs are very large.
77576
77577 2005-03-15  Karl Berry  <karl@gnu.org>
77578
77579         * config/srclist.txt (config.rpath): from gettext.
77580         * config/config.rpath: update.
77581
77582 2005-03-15  Bruno Haible  <bruno@clisp.org>
77583
77584         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77585         to 'negate'.
77586
77587         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77588         variable.
77589
77590         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77591         results.
77592
77593 2005-03-14  Simon Josefsson  <jas@extundo.com>
77594
77595         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77596         <fx@gnu.org>.
77597
77598 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77599
77600         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77601         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77602         intprops.h.
77603         * lib/strtol.c: Likewise.
77604
77605 2005-03-14  Jim Meyering  <jim@meyering.net>
77606
77607         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77608         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77609         to be nonzero so that we (and caller) can detect the difference
77610         between a valid zero-length expansion and an error return, even
77611         when the underlying strftime fails before writing anything into
77612         that location.
77613
77614 2005-03-14  Bruno Haible  <bruno@clisp.org>
77615
77616         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77617         Update from GNU gettext 0.14.3.
77618
77619 2005-03-10  Jim Meyering  <jim@meyering.net>
77620
77621         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77622
77623 2005-03-10  Jim Meyering  <jim@meyering.net>
77624
77625         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77626         so that this module works on systems without fchdir.
77627
77628 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77629
77630         Factor int-properties macros into a single file, except for
77631         glibc-related files.
77632         * lib/intprops.h: New file.
77633         * lib/getloadavg.c: Include it instead of limits.h.
77634         (INT_STRLEN_BOUND): Remove.
77635         * lib/human.c: Include intprops.h.
77636         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77637         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77638         302/1000.
77639         * lib/inttostr.h: Include intprops.h instead of limits.h.
77640         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77641         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77642         for consistency with intprops.h.
77643         (time_t_is_integer, twos_complement_arithmetic): Use them.
77644         * lib/sig2str.h: Include <signal.h>, intprops.h.
77645         (INT_STRLEN_BOUND): Remove.
77646         * lib/strftime.c (TYPE_SIGNED): Remove.
77647         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77648         * lib/strtol.c: Adjust comments to match intprops.h.
77649         * lib/userspec.c: Include intprops.h.
77650         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77651         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77652         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77653         instead of rolling our own expressions.
77654         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77655
77656         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77657         instead of int.
77658         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77659         the right thing even if adding 1900 would overflow.  Similarly
77660         for tm_mon + 1 and tm_yday + 1.
77661         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77662         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77663         (DO_SIGNED_NUMBER): New macro.
77664         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77665
77666 2005-03-07  Bruno Haible  <bruno@clisp.org>
77667
77668         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77669
77670 2005-03-07  Bruno Haible  <bruno@clisp.org>
77671
77672         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77673
77674 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77675
77676         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77677         (func_import): Only replace files via --import when they have actually
77678         changed.
77679
77680 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77681
77682         * m4/mmap-anon.m4: New file.
77683         * m4/pagealign_alloc.m4: New file.
77684
77685 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77686             Bruno Haible  <bruno@clisp.org>
77687
77688         * modules/pagealign_alloc: New file.
77689         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77690
77691 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77692             Bruno Haible  <bruno@clisp.org>
77693
77694         * lib/pagealign_alloc.h: New file.
77695         * lib/pagealign_alloc.c: New file.
77696
77697 2005-03-03  Bruno Haible  <bruno@clisp.org>
77698
77699         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77700         Use an all-permissive copyright notice, recommended by RMS.
77701
77702 2005-03-02  Bruno Haible  <bruno@clisp.org>
77703
77704         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77705         of AIX, the replacement has to be done only after <string.h> is
77706         included, therefore not in config.h. stpncpy.h does the replacement,
77707         and stpncpy.c uses it.
77708
77709 2005-03-02  Bruno Haible  <bruno@clisp.org>
77710
77711         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77712         stpncpy.c uses it.
77713
77714 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77717         The workaround isn't strictly needed for POSIX conformance, and
77718         it's too much of a pain to configure and maintain.  We'll ask
77719         people to fix their kernels instead.
77720         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77721         (NANOSLEEP_BUG_WORKAROUND): Remove.
77722         (xnanosleep): Remove the workaround.
77723
77724 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77725
77726         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77727         Reported by Derek Price.
77728         (Include): Add "timespec.h".
77729
77730         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77731
77732 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77735         to detect nanosleep bug.
77736
77737 2005-03-01  Bruno Haible  <bruno@clisp.org>
77738
77739         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77740
77741 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         * modules/gethrxtime: New file.
77744         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77745         (Depends-on): Add gethrxtime.
77746         (configure.ac): Add gl_XNANOSLEEP.
77747         (Makefile.am): Remove lib_SOURCES line.
77748
77749 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77750
77751         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77752         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77753
77754 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77755
77756         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77757         * lib/timespec.h (gettime): Return void, since it always
77758         succeeds now.  All uses changed.
77759         * lib/gettime.c (gettime): Likewise.
77760         [HAVE_NANOTIME]: Prefer nanotime.
77761         Assume gettimeofday succeeds, as POSIX requires.
77762         Assime time () succeeds, since other code already does.
77763         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77764         (timespec_subtract): Remove.
77765         (NANOSLEEP_BUG_WORKAROUND): New constant.
77766         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77767         things considerably.  Use it only on GNU/Linux hosts, since the
77768         workaround shouldn't be needed elsewhere.
77769
77770 2005-02-24  Bruno Haible  <bruno@clisp.org>
77771
77772         * modules/gettext (Files): Add m4/glibc2.m4.
77773
77774 2005-02-24  Bruno Haible  <bruno@clisp.org>
77775
77776         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77777         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77778         * m4/progtest.m4:
77779         Update from GNU gettext 0.14.2.
77780         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77781
77782 2005-02-24  Bruno Haible  <bruno@clisp.org>
77783
77784         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77785         * lib/config.charset: Update from GNU gettext 0.14.2.
77786
77787 2005-02-24  Bruno Haible  <bruno@clisp.org>
77788
77789         * lib/gettext.h: Update from GNU gettext 0.14.2.
77790
77791 2005-02-23  Simon Josefsson  <jas@extundo.com>
77792
77793         * m4/iconvme.m4: New file.
77794
77795 2005-02-23  Jim Meyering  <jim@meyering.net>
77796
77797         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77798         change.
77799         Thanks to Bruno Haible for catching it.
77800
77801 2005-02-22  Simon Josefsson  <jas@extundo.com>
77802
77803         * modules/iconvme: New file.
77804
77805         * MODULES.html.sh: Add iconvme.
77806
77807 2005-02-22  Simon Josefsson  <jas@extundo.com>
77808
77809         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77810
77811 2005-02-22  Simon Josefsson  <jas@extundo.com>
77812
77813         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77814
77815 2005-02-22  Jim Meyering  <jim@meyering.net>
77816
77817         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77818         s/ifndef/ifdef/.
77819
77820 2005-02-20  Neil Conway  <neilc@samurai.com>
77821
77822         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77823         returned by OSX/Darwin if the specified buffer is not large
77824         enough for the hostname.
77825
77826 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77827
77828         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77829         pass it to _help, otherwise the latter coredumps trying to
77830         dereference state.root_argp.
77831
77832 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77833
77834         * modules/chdir-long (Depends-on): Add memrchr.
77835         * modules/memrchr (Files): Add lib/memrchr.h.
77836         (Include): "memrchr.h".
77837
77838 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77839
77840         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77841
77842 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77843
77844         * lib/memrchr.h: New file.
77845         * lib/chdir-long.c: Include it.
77846         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77847         Don't bother including stddef.h.
77848
77849 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77852         inclusion.
77853         Include <sys/types.h>, for dev_t.
77854         (ME_DUMMY, ME_REMOTE): Move from here....
77855         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77856         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77857         Dmitry V. Levin.
77858         Include mountlist.h first, to test the interface.
77859
77860 2005-01-29  Bruno Haible  <bruno@clisp.org>
77861
77862         * lib/progname.c (program_name): Initialize.
77863         Needed when linking statically on MacOS X.
77864
77865 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77866
77867         Sync from coreutils.
77868         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77869         (Depends-on): Add c-strtod.
77870         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77871
77872 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         Sync from coreutils.
77875         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77876
77877         Remove files that are specific to coreutils.
77878         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77879
77880 2005-01-28  Bruno Haible  <bruno@clisp.org>
77881
77882         * modules/javacomp: New file.
77883         * MODULES.html.sh (Java): Add javacomp.
77884
77885 2005-01-28  Bruno Haible  <bruno@clisp.org>
77886
77887         * m4/javacomp.m4: New file, from GNU gettext.
77888
77889 2005-01-28  Bruno Haible  <bruno@clisp.org>
77890
77891         * lib/javacomp.sh.in: New file, from GNU gettext.
77892         * lib/javacomp.h: New file, from GNU gettext.
77893         * lib/javacomp.c: New file, from GNU gettext.
77894
77895 2005-01-26  Simon Josefsson  <jas@extundo.com>
77896
77897         * lib/gai_strerror.c: Use GPL in header.
77898
77899 2005-01-26  Bruno Haible  <bruno@clisp.org>
77900
77901         * modules/javaexec: New file.
77902         * MODULES.html.sh (Java): Add javaexec.
77903
77904 2005-01-26  Bruno Haible  <bruno@clisp.org>
77905
77906         * m4/javaexec.m4: New file, from GNU gettext.
77907
77908 2005-01-26  Bruno Haible  <bruno@clisp.org>
77909
77910         * lib/javaexec.sh.in: New file, from GNU gettext.
77911         * lib/javaexec.h: New file, from GNU gettext.
77912         * lib/javaexec.c: New file, from GNU gettext.
77913
77914 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77915
77916         * modules/lchown (Depends-on): Remove lchown.h
77917
77918 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77919
77920         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77921         must be defined if the header file was not found, in order
77922         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77923
77924 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77925
77926         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77927         initializers for struct pentry_state.
77928         (__argp_error): Check return value of __asprintf
77929         (__argp_failure): Translate error message
77930
77931         * lib/argp-parse.c: Removed braces around the expansion of N_()
77932
77933 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77936         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77937         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77938         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77939         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77940         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77941         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77942         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77943         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77944         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77945         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77946         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77947         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77948         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77949         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77950         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77951         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77952         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77953         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77954         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77955         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77956         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77957         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77958         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77959         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77960         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77961         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77962         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77963         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77964         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77965         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77966         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77967         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77968         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77969         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77970         Use an all-permissive copyright notice, recommended by RMS.
77971
77972 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         * modules/chdir-long (Depends-on): Remove mempcpy.
77975
77976 2005-01-21  Jim Meyering  <jim@meyering.net>
77977
77978         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77979         same value as for Solaris 9.
77980
77981         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77982         component length.  This included changing the parameter to be
77983         of type `char *' rather than `char const *'.
77984         * lib/chdir-long.h (chdir_long): Update prototype.
77985
77986         * lib/openat.c (fdopendir, fstatat): New functions.
77987         * lib/openat.h: Include headers required for use of DIR and struct
77988         stat.
77989         [AT_SYMLINK_NOFOLLOW]: Define.
77990         (fdopendir, fstatat): Add prototypes.
77991
77992 2005-01-21  Bruno Haible  <bruno@clisp.org>
77993
77994         * modules/classpath: New file.
77995         * MODULES.html.sh (Java): Add classpath.
77996
77997 2005-01-21  Bruno Haible  <bruno@clisp.org>
77998
77999         * lib/classpath.h: New file, from GNU gettext.
78000         * lib/classpath.c: New file, from GNU gettext.
78001
78002 2005-01-20  Simon Josefsson  <jas@extundo.com>
78003
78004         * modules/version-etc-fsf: New file.
78005
78006 2005-01-20  Simon Josefsson  <jas@extundo.com>
78007
78008         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78009         * lib/version-etc.c: Remove version_etc_copyright.
78010         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78011         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78012
78013 2005-01-20  Simon Josefsson  <jas@extundo.com>
78014
78015         * lib/base64.h (isbase64): Add.
78016
78017         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78018         using a unsigned prototype, don't inline.
78019         (base64_decode): Use it.
78020
78021 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78024         it.
78025
78026 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         * lib/save-cwd.c (save_cwd): Remove code to support the case
78029         where fchdir is missing or flaky.
78030
78031 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78032
78033         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78034
78035 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78036
78037         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78038         AC_LIBSOURCES now does this.
78039         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78040         with new ullong_max module.
78041
78042 2005-01-19  Bruno Haible  <bruno@clisp.org>
78043
78044         * modules/sh-quote: New file.
78045         * MODULES.html.sh (Executing programs): Add sh-quote.
78046
78047 2005-01-19  Bruno Haible  <bruno@clisp.org>
78048
78049         * lib/sh-quote.h: New file, from GNU gettext.
78050         * lib/sh-quote.c: New file, from GNU gettext.
78051
78052 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         Merge from coreutils.
78055         * m4/ullong_max.m4: New file.
78056         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78057         (gl_MACROS): Assume localeconv exists.
78058
78059 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78060
78061         Merge changes from coreutils, as described below in several
78062         changelogs dated today.
78063
78064         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78065         (O_DIRECTORY): Remove; not needed here, since "." must be
78066         a directory.  All uses removed.
78067         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78068         universal on Suns, and we also need to test for IRIX.
78069         Revamp code to use 'if' rather than '#if'.
78070         Avoid unnecessary comparison of cwd->desc to 0.
78071
78072         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78073         for known valid error numbers rather than observed invalid ones.
78074
78075 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78076
78077         * modules/ullong_max: New file.
78078
78079         * modules/chdir-long, modules/openat: New files.
78080         * modules/save-cwd (Depends-on): Depend on chdir-long.
78081         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78082
78083 2005-01-18  Jim Meyering  <jim@meyering.net>
78084
78085         Merge from coreutils.
78086         * m4/chdir-long.m4, m4/openat.m4: New files.
78087         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78088         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78089         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78090         is sane and DOES follow symlinks.  Besides, testing 20 different
78091         systems found no broken chown implementations.
78092         Prompted by a change in rsync's copy of this macro.
78093         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78094
78095         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78096
78097         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78098         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78099         NULL-means-set-to-current-time semantics.
78100         Remove temporary file immediately, rather than waiting
78101         for configure's at-exit trap code to do it.
78102
78103 2005-01-18  Jim Meyering  <jim@meyering.net>
78104
78105         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78106
78107         * lib/utimens.c (futimens): Account for the fact that futimes
78108         can also fail with errno == ENOSYS or errno == ENOENT.
78109         Patch from Dmitry V. Levin.
78110
78111         Change the name of the robust chdir function from chdir to chdir_long.
78112         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78113         (restore_cwd): Use chdir_long, not chdir.
78114         * lib/chdir-long.c: Renamed from chdir.c.
78115         * lib/chdir-long.h: Renamed from chdir.h.
78116         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78117         Hurd.
78118
78119 2005-01-18  Bruno Haible  <bruno@clisp.org>
78120
78121         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78122         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78123         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78124         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78125         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78126         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78127         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78128         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78129         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78130         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78131         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78132         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78133         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78134         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78135         Use an all-permissive copyright notice, recommended by RMS.
78136
78137 2005-01-18  Bob Proulx  <bob@proulx.com>
78138
78139         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78140         simplify offsetof() macro construct to avoid compile failure with
78141         native HP-UX 11.0 ANSI C compiler.
78142
78143 2005-01-17  Bruno Haible  <bruno@clisp.org>
78144
78145         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78146         redundant because stpncpy.m4 takes care of it.
78147
78148 2005-01-17  Bruno Haible  <bruno@clisp.org>
78149
78150         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78151
78152 2005-01-17  Bruno Haible  <bruno@clisp.org>
78153
78154         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78155         used.
78156
78157 2005-01-17  Bruno Haible  <bruno@clisp.org>
78158
78159         * lib/fwriteerror.h (fwriteerror): Change specification to include
78160         fclose.
78161         * lib/fwriteerror.c: Include <stdbool.h>.
78162         (fwriteerror): At the end, close the file stream. Record whether
78163         stdout was already closed.
78164
78165 2005-01-17  Bruno Haible  <bruno@clisp.org>
78166
78167         * lib/execute.c (environ): Declare if needed.
78168         * lib/pipe.c (environ): Likewise.
78169         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78170
78171 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78172
78173         * modules/argp: Depend on vsnprintf
78174
78175 2005-01-10  Jim Meyering  <jim@meyering.net>
78176
78177         * modules/closeout (Depends-on): Add atexit.
78178
78179 2005-01-06  Bruno Haible  <bruno@clisp.org>
78180
78181         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78182
78183 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78184
78185         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78186         definitions to be after all include files, to avoid collisions.
78187         Problem reported by Bob Proulx.
78188
78189 2005-01-04  Jim Meyering  <jim@meyering.net>
78190
78191         Changes imported from coreutils.
78192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78193         as the mkstemp template, use a temporary directory and an
78194         8.3-friendly template to avoid trouble on systems like DJGPP.
78195         Reported by Juan M. Guerrero via Stepan Kasal.
78196         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78197         close. Remove the temporary directory right away, rather than waiting
78198         for configure's at-exit trap code to do it.
78199         Suggestion from Stepan Kasal.
78200
78201 2005-01-01  Simon Josefsson  <jas@extundo.com>
78202
78203         * gnulib-tool: Print #include directives when --import'ing.
78204
78205 2004-12-28  Simon Josefsson  <jas@extundo.com>
78206
78207         * tests/test-base64.c: Include required header files.  Remove
78208         unused variables.
78209
78210 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78211
78212         * modules/error (Depends-on): Remove gettext.
78213
78214 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78217         not needed.  This removes a dependency on the gettext module.
78218         [defined _LIBC]: Do not include <libintl.h>; not needed.
78219
78220 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78221
78222         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78223         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78224
78225 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78226
78227         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78228         HAVE_DECL_STRTOLD.
78229
78230 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         * modules/getdate (Depends-on): Remove alloca-opt.
78233
78234 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78237
78238 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * lib/argp-parse.c: Include <stddef.h>.
78241         (alignof, alignto): New macros.
78242         (parser_init): Don't assume that void * is aligned sufficiently
78243         for struct option.
78244
78245         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78246         need to extend the stack.
78247         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78248         large.
78249
78250 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78251
78252         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78253
78254 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78257         (2004-10-24) change.  Apparently this was a false alarm.
78258
78259         * modules/getdate: Depend on alloca-opt, not alloca.
78260
78261 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78262
78263         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78264         Remove now-obsolete comment about AIX.
78265         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78266         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78267         (YYMAXDEPTH): New macro.
78268
78269 2004-12-18  Simon Josefsson  <jas@extundo.com>
78270
78271         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78272
78273 2004-12-18  Bruno Haible  <bruno@clisp.org>
78274
78275         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78276
78277 2004-12-18  Bruno Haible  <bruno@clisp.org>
78278
78279         * lib/fatal-signal.c (fatal_signals): Make non-const.
78280         (init_fatal_signals): New function.
78281         (uninstall_handlers, install_handlers): Ignore signals that were set to
78282         SIG_IGN.
78283         (at_fatal_signal): Call init_fatal_signals.
78284         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78285         SIG_IGN.
78286         Reported by Paul Eggert.
78287
78288 2004-12-18  Bruno Haible  <bruno@clisp.org>
78289
78290         * doc/alloca.texi: New file.
78291         * doc/alloca-opt.texi: New file.
78292
78293 2004-12-17  Jim Meyering  <jim@meyering.net>
78294
78295         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78296         Otherwise, install-sh could exit with improper exit status when
78297         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78298
78299 2004-12-16  Simon Josefsson  <jas@extundo.com>
78300
78301         * tests/test-base64.c: Add license.
78302
78303 2004-12-15  Stepan Kasal  <address@hidden>
78304
78305         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78306
78307 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78308
78309         * modules/getcwd (Files): Add m4/d-ino.m4.
78310         Suggested by Mark D. Baushke.
78311
78312 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78313
78314         * lib/getdate.y (textint): New member "negative".
78315         (time_zone_hhmm): New function.
78316         Expect 14 shift-reduce conflicts, not 13.
78317         (o_colon_minutes): New rule.
78318         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78319         (yylex): Set the "negative" member of signed numbers.
78320
78321 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         * doc/getdate.texi (Time of day items, Time zone items):
78324         Describe new formats +00:00, UTC+00:00.
78325
78326 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78327
78328         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78329         spurious "-l"s.  Problem reported by Stepan Kasal.
78330
78331 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78332
78333         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78334         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78335
78336 2004-12-04  Simon Josefsson  <jas@extundo.com>
78337
78338         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78339         Vandoorselaere <yoann@prelude-ids.org>.
78340
78341 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         Changes imported from coreutils.
78344         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78345         exist.
78346         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78347
78348 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         Changes imported from coreutils.
78351         * lib/hard-locale.c: Assume <locale.h> exists.
78352         Include "strdup.h".
78353         (GLIBC_VERSION): New macro.
78354         (hard_locale): Assume setlocale exists.
78355         Rewrite to avoid #ifdef.
78356         Use strdup rather than malloc + strcpy.
78357         * lib/human.c: Assume <locale.h> exists.
78358         (human_readable): Assume localeconv exists.
78359
78360 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78361
78362         * modules/hard-locale (Depends-on): Add strdup.
78363
78364 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78365
78366         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78367         convert T2, not T.  (Imported from libc.)
78368
78369 2004-11-30  Simon Josefsson  <jas@extundo.com>
78370
78371         * modules/restrict (License): Change to LGPL.
78372
78373 2004-11-30  Simon Josefsson  <jas@extundo.com>
78374
78375         * m4/restrict.m4: Add copyright and copying conditions.
78376
78377 2004-11-30  Simon Josefsson  <jas@extundo.com>
78378
78379         * m4/base64.m4: New file.
78380
78381 2004-11-30  Simon Josefsson  <jas@extundo.com>
78382
78383         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78384         base64.
78385
78386         * tests/test-base64.c: New file.
78387
78388         * modules/base64: New file.
78389
78390 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78393         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78394
78395         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78396
78397 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78400         (__getcwd.c): Don't restore errno; glibc doesn't.
78401         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78402         first, falling back to our code only if its results look suspicious.
78403         Ensure that the resulting buffer is only as large as necessary.
78404
78405         * lib/readutmp.c: Include readutmp.h first.
78406         Include <errno.h>, since readutmp.h no longer does that.
78407         * lib/readutmp.h: Don't include <errno.h>,
78408         <sys/param.h>, <time.h>; not needed to establish interface.
78409         (errno): Remove decl.
78410         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78411         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78412         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78413
78414 2004-11-28  Simon Josefsson  <jas@extundo.com>
78415
78416         * lib/base64.h, base64.c: New file.
78417
78418 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78419
78420         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78421
78422 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78425         (Depends-on): Remove pathmax, same.  Add mempcpy.
78426         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78427         (Makefile.am): Append getcwd.h to lib_SOURCES.
78428         (Include): Add getcwd.h.
78429         (Maintainer): Change from Jim Meyering to "all, glibc",
78430         since getdate now uses intended-for-glibc code.
78431         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78432         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78433
78434 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78437         HP's ANSI C compiler.
78438         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78439         Declaring int functions causes warnings on some modern systems and
78440         shouldn't be needed to compile on ancient ones.
78441         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78442         defined.
78443
78444         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78445         with the following changes.
78446         (__set_errno): Parenthesize properly.
78447         Include <stdbool.h>.
78448         (MIN, MAX, MATCHING_INO): New macros.
78449         (__getcwd): Define with prototype, not K&R form.
78450         Use heuristics to allocate default buffer on stack if possible.
78451         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78452         behavior, and to avoid the PATH_MAX limit when computing
78453         ../../../../...
78454         Use MATCHING_INO to compare inode number to file.
78455         Check for arithmetic overflow in size calculations.
78456         Fix bug in reallocation of dot array that caused getcwd to fail
78457         on directories nested deeper than 75.
78458         Be more careful about saving errno on error.
78459         Do not use realloc; use only free+malloc, as this is a bit
78460         more flexible and avoids a needless copy operation.
78461         Do not inspect st_dev and st_ino for symbolic links; POSIX
78462         doesn't specify the latter.
78463         Check for closedir errors.
78464         Avoid needless casts.
78465         Use "#ifdef weak_alias" around weak_alias, to be like other
78466         glibc code.
78467         The following changes to getcwd.c have effect only when used in
78468         gnulib; they have no effect inside glibc proper.
78469         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78470         as alloca isn't used.
78471         (alloca, __alloca): Likewise.
78472         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78473         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78474         unconditionally, as gnulib assumes C89 or better.
78475         Do not include <sys/param.h>.
78476         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78477         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78478         better.
78479         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78480         Include <dirent.h> in a way that is compatible with modern Autoconf.
78481         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78482         New macros, if not already defined.
78483         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78484         Use "_LIBC", not "defined _LIBC", for consistency.
78485         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78486         a mempcpy module.
78487         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78488         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78489         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78490         credit only to Jim Meyering and adjust the copyright dates.
78491         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78492         <stdlib.h>, <unistd.h>, "pathmax.h".
78493         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78494         (INITIAL_BUFFER_SIZE): Remove.
78495         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78496
78497 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78498
78499         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78500         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78501         Use the _ONCE methods, for efficiency.
78502         Check for fcntl.h.  In test program, include <errno.h>
78503         and <fcntl.h> if available.  Remove old K&R cruft from
78504         test program.  Check for common errors in GNU/Linux,
78505         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78506         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78507         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78508         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78509         name accordingly.
78510         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78511         accommodate new getcwd.c.
78512         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78513         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78514         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78515         that's all we need now.
78516
78517 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78518
78519         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78520         argp-parse.c depends on getopt internals, that means we should
78521         always use our getopt, to be on the safe side.
78522         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78523         order not to spoil the result of an eventual previous invocation
78524         of gl_GETOPT_SUBSTITUTE.
78525
78526 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78527
78528         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78529         redefinition warnings. To avoid them, include the defines
78530         in `#if !defined __need_getopt ... #endif'. The only place
78531         where __getopt_argv_const is used is in definitions
78532         of getopt_long and getopt_long_only below, which are as well
78533         protected by `#ifndef __need_getopt'.
78534         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78535         __need_getopt after including <stdio.h> and <unistd.h> These
78536         headers might have defined it.
78537
78538 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78541
78542 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78545         (futimens): New function, which uses futimes if available.
78546         (futimens, utimens): Support timespec==NULL, with same semantics
78547         as utime and utimens.
78548         * lib/utimens.h (futimens): New decl.
78549
78550 2004-11-23  Jim Meyering  <jim@meyering.net>
78551
78552         * lib/getopt_.h: Remove trailing blanks.
78553
78554 2004-11-23  Jim Meyering  <jim@meyering.net>
78555
78556         * lib/__fpending.c: Add comment.
78557
78558 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         * modules/canonicalize (Depends-on): Add xreadlink.
78561         Problem reported by James Youngman.
78562
78563 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78566         New macros.
78567         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78568         optopt): Use them instead of invoking ## directly; otherwise, the
78569         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78570
78571 2004-11-19  Bruno Haible  <bruno@clisp.org>
78572
78573         * lib/strtok_r.c: Move comments from here...
78574         * lib/strtok_r.h: ... to here.
78575
78576 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78577
78578         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78579         implementations that mishandle size_t overflow.
78580
78581 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78584         might fail.  Problem reported by Yoann Vandoorselaere.
78585         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78586         implementations that mishandle size_t overflow.
78587
78588 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78589
78590         * modules/canon-host (Depends-on): Add strdup.
78591
78592 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78593
78594         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78595
78596 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78597
78598         * lib/canon-host.c: Include "strdup.h".
78599         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78600         Use strdup instead of malloc/strcpy to duplicate strings.
78601
78602         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78603         (human_space_before_unit): New constant.
78604         * lib/human.c (human_readable): Support it.
78605
78606         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78607         (xgetcwd): Set errno correctly when failing.
78608         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78609         the failure is actually due to a PATH_MAX problem.
78610
78611         Further getopt changes to make it more likely that glibc will
78612         buy the changes back.
78613         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78614         (getopt): Use it, so to preserve glibc semantic
78615         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78616         when compiling for libc.
78617         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78618         (getopt_long, getopt_long_only): Use it.
78619
78620         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78621         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78622         (getopt): Argv is now char * const *, as per standard.
78623         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78624         not char *__getopt_argv_const *.
78625         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78626         _getopt_long_only_r): Likewise.
78627         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78628         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78629         _getopt_long_r, _getopt_long_only_r): Likewise.
78630         * lib/getopt_.h (__getopt_argv_const): Remove.
78631         (getopt): Argv is now char * const *, as per standard.
78632
78633         * lib/getdate.y (tORDINAL): New token.
78634         (day, relunit): Allow it for relative times.
78635         (relative_time_table): Use tORDINAL for ordinals.
78636
78637 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78640         Document that "second" isn't allowed as an ordinal number.
78641
78642 2004-11-16  Jim Meyering  <jim@meyering.net>
78643
78644         * modules/closeout (Depends-on): Add fpending.
78645
78646 2004-11-15  Jim Meyering  <jim@meyering.net>
78647
78648         * lib/closeout.c: Include "__fpending.h" once again.
78649         Include <stdbool.h>.
78650         (close_stdout): Don't fail just because stdout was closed initially,
78651         since some programs don't write to stdout in the normal course of
78652         operation (other than --version and --help), and we don't want this
78653         function to make e.g. `touch file >&-' fail.
78654         But do fail if it was closed and someone has tried to write to it.
78655         E.g., `printf foo >&-' must fail.
78656
78657 2004-11-13  Jim Meyering  <jim@meyering.net>
78658
78659         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78660
78661 2004-11-12  Simon Josefsson  <jas@extundo.com>
78662
78663         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78664         small doc fix is still pending.
78665
78666 2004-11-11  Simon Josefsson  <jas@extundo.com>
78667
78668         * modules/strtok_r: New file.
78669
78670         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78671         strtok_r.
78672
78673 2004-11-11  Simon Josefsson  <jas@extundo.com>
78674
78675         * m4/strtok_r.m4: New file.
78676
78677         * m4/getopt.m4: Replace opterr.
78678
78679 2004-11-11  Simon Josefsson  <jas@extundo.com>
78680
78681         * lib/strtok_r.h, strtok_r.c: New file.
78682
78683 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78684
78685         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78686         of replacing opterr, getopt, etc.  This should handle the
78687         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78688
78689 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78692         we can stop lying to compilers about the constness of argv when we
78693         are compiled outside glibc.
78694         (getopt, getopt_long, getopt_long_only): Use it.
78695         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78696         _getopt_internal, getopt): Likewise.
78697         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78698         _getopt_long_only_r): Likewise.
78699         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78700         _getopt_long_r, _getopt_long_only_r): Likewise.
78701
78702         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78703         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78704         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78705         the other external symbols.
78706         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78707         declaration, since the above renaming now works around collisions.
78708
78709 2004-11-11  Jim Meyering  <jim@meyering.net>
78710
78711         * lib/linebreak.c: Remove trailing blanks.
78712         * lib/alloca_.h: Likewise.
78713         * lib/acosl.c: Likewise.
78714         * lib/euidaccess.c: Likewise.
78715         * lib/allocsa.h: Likewise.
78716
78717 2004-11-10  Simon Josefsson  <jas@extundo.com>
78718
78719         * m4/getaddrinfo.m4: New file.
78720
78721 2004-11-10  Simon Josefsson  <jas@extundo.com>
78722
78723         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78724
78725 2004-11-10  Simon Josefsson  <jas@extundo.com>
78726
78727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78728         getaddrinfo.
78729
78730         * modules/getaddrinfo: New file.
78731
78732 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78735
78736 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78737
78738         * lib/mktime.c (SHR): New macro, which is a portable
78739         substitute for >> that should work even on Crays.
78740         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78741         Problem reported by Mark D. Baushke in
78742         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78743         * lib/getdate.y (SHR): Likewise.
78744         (tm_diff): Use it.
78745         * lib/strftime.c (SHR): Likewise.
78746         (tm_diff): Use it.
78747         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78748         quote_these_too, so that right shifts are well defined.  All uses
78749         changed.
78750
78751 2004-11-10  Jim Meyering  <jim@meyering.net>
78752
78753         Ensure that no close failure goes unreported.
78754         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78755         return early when it seems there's nothing to flush.
78756         Don't include __fpending.h.
78757
78758 2004-11-10  Jim Meyering  <jim@meyering.net>
78759
78760         * modules/closeout (Depends-on): Remove fpending.
78761
78762 2004-11-10  Jim Meyering  <jim@meyering.net>
78763
78764         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78765
78766 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78769         gl_FUNC_STRFTIME.
78770         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78771         and AC_REQUIRE when possible, to avoid duplicate checks.
78772         Check for <wchar.h>.
78773
78774 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78775
78776         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78777
78778 2004-11-09  Bruno Haible  <bruno@clisp.org>
78779
78780         * m4/sockpfaf.m4: New file.
78781
78782 2004-11-05  Bruno Haible  <bruno@clisp.org>
78783
78784         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78785         Reported by Mark D. Baushke <mdb@cvshome.org>.
78786
78787 2004-11-04  Bruno Haible  <bruno@clisp.org>
78788
78789         2004-09-11  Bruno Haible  <bruno@clisp.org>
78790                 * allocsa.valgrind: New file.
78791         2004-02-06  Bruno Haible  <bruno@clisp.org>
78792                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78793                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78794                 Reported by Christopher Seip <chris.seip@hp.com>.
78795
78796 2004-11-04  Bruno Haible  <bruno@clisp.org>
78797
78798         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78799         (Makefile.am): Distribute it.
78800
78801 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78802
78803         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78804         with errno == ERANGE if the buffer is too small.
78805         Problem reported by Mark D. Baushke.
78806
78807 2004-11-03  Albert Chin  <china@thewrittenword.com>
78808             Paul Eggert  <eggert@cs.ucla.edu>
78809
78810         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78811         equivalent, substitute $ac_type for equivalent type rather than
78812         blindly using uint32_t *always* which won't work if uint32_t is not
78813         available.  Define _UINT32_T to work around typedef of uint32_t if
78814         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78815         2.5.1.
78816
78817 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78818
78819         * m4/jm-macros.m4: Sync from coreutils.
78820         (gl_MACROS): Check for mbrlen, for pathchk.
78821         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78822
78823 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78824
78825         * lib/xreadlink.c (MAXSIZE): New macro.
78826         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78827         size does not exceed MAXSIZE.  Avoid cast.
78828         As suggested by Mark D. Baushke in
78829         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78830         if readlink fails with buffer size just under MAXSIZE, try again
78831         with MAXSIZE.
78832
78833 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78834
78835         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78836
78837 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78838         and  Paul Eggert  <eggert@cs.ucla.edu>
78839
78840         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78841         (get_date): Overparenthesize to avoid GCC warning.
78842
78843 2004-11-02  Bruno Haible  <bruno@clisp.org>
78844
78845         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78846         returns void.
78847
78848 2004-11-02  Bruno Haible  <bruno@clisp.org>
78849
78850         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78851         function returns void.
78852
78853 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78854
78855         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78856         fflush_unlocked, flockfile, funlockfile, funlockfile,
78857         fputs_unlocked, putc_unlocked.
78858
78859 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78860
78861         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78862         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78863         already declared.
78864
78865 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78866
78867         * modules/getdate (Files): Add doc/getdate.texi.
78868         (Depends-on): Add setenv, xalloc.
78869
78870 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78871
78872         * lib/getdate.y: Add support for TZ="foo" within a date string.
78873         Fix some bugs near time_t boundaries.  Reject dates with
78874         out-of-range components, e.g., "Sept 31".
78875         Include <stdlib.h>, "setenv.h", "xalloc.h".
78876         (ISDIGIT_LOCALE): Remove; unused.
78877         Note that the TZ and time functions used here are not reentrant.
78878         (mktime_ok, get_tz): New functions.
78879         (TZBUFSIZE): New constant.
78880         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78881         This requires that we sometimes generate our own TZ="XXX..." setting.
78882
78883 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * doc/getdate.texi: New file, from coreutils with modifications for
78886         the new TZ parsing.
78887
78888 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78889
78890         * lib/mktime.c (not_equal_tm): Remove redundant check.
78891
78892 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * modules/regex (lib_SOURCES): Add regex.c.
78895         Reported by James Youngman in
78896         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78897
78898 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78899
78900         * lib/getdate.y: Use Bison 1.875 features, and some minor
78901         code cleanups.  This change does not affect semantics.
78902         Don't include <stdlib.h>; no longer needed.
78903         Don't include unlocked-io.h; only the "#if TEST" code uses
78904         stdio, and performance isn't crucial there.
78905         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78906         Bison 1.875 features as described below.
78907         All uses of "PC." replaced by "pc->".
78908         (YYSTYPE): Add a forward declaration.
78909         (yylex, yyerror): Use full prototypes in forward decls.
78910         Use "%pure-parser" rather than obsolescent "%pure_parser".
78911         Use %parse-param and %lex-param instead of obsolescent
78912         YYPARSE_PARAM and YYLEX_PARAM.
78913         (meridian_table, month_and_day_table, time_units_table,
78914         relative_time_table, time_zone_table, military_table,
78915         lookup_zone, lookup_word, get_date):
78916         Use NULL instead of 0 where appropriate.
78917         (to_hour): Avoid abort (), to avoid a dependency on
78918         stdlib.h.
78919         (yyerror, yylex): Now accepts parser_control * arg.
78920         (main) [TEST]: Use '\0' rather than 0 for char.
78921
78922 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78923
78924         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78925
78926 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78929         It's now the caller's responsibility to handle the case where
78930         !HAVE_GETPAGESIZE && !defined getpagesize.
78931
78932         * lib/mktime.c (leapyear): Arg is long int, not int.
78933
78934 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78935
78936         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78937
78938 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78941         missing.  Problem reported by James Youngman.
78942
78943 2004-10-16  Simon Josefsson  <jas@extundo.com>
78944
78945         * gnulib-tool: Fix comments.  Fix parse problem.
78946         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78947
78948 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78949
78950         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78951         implementation of getopt_long.  Problem reported by Alexander Taler in:
78952         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78953
78954 2004-10-15  Bruno Haible  <bruno@clisp.org>
78955
78956         * gnulib-tool: Untabify. Initialize supplied_libname.
78957         (func_usage): More homogenous output.
78958         (func_modules_transitive_closure, func_modules_to_filelist,
78959         func_emit_lib_Makefile_am): New functions.
78960         (func_import): New function, extracted from big case statement. Use
78961         func_get_license, func_modules_transitive_closure,
78962         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78963         opt_lgpl. Don't use test -a, as it's not portable.
78964         (func_create_testdir): Use func_modules_transitive_closure,
78965         func_modules_to_filelist, func_emit_lib_Makefile_am.
78966
78967 2004-10-15  Bruno Haible  <bruno@clisp.org>
78968
78969         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78970
78971 2004-10-15  Bruno Haible  <bruno@clisp.org>
78972
78973         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78974         the portions belonging to each module.
78975         Suggested by Derek Robert Price <derek@ximbiot.com>.
78976
78977 2004-10-12  Simon Josefsson  <jas@extundo.com>
78978
78979         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78980         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78981         to real functions.
78982
78983 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78984
78985         * modules/vsnprintf: New file.
78986
78987 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78988
78989         * m4/vsnprintf.m4: New file.
78990
78991 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78992
78993         * lib/vsnprintf.h: New file.
78994         * lib/vsnprintf.c: New file.
78995
78996 2004-10-11  Bruno Haible  <bruno@clisp.org>
78997
78998         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78999         vsnprintf.
79000
79001 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79004
79005 2004-10-07  Bruno Haible  <bruno@clisp.org>
79006
79007         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79008         fits into the provided buffer.
79009
79010 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79011
79012         * lib/diacrit.c, diacrit.h: Add GPL notice.
79013
79014         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79015         notice.
79016         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79017         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79018         This avoids a potential constant-folding bug.
79019
79020 2004-10-05  Bruno Haible  <bruno@clisp.org>
79021
79022         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79023         for the declaration of strsep.
79024
79025 2004-10-05  Bruno Haible  <bruno@clisp.org>
79026
79027         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79028
79029 2004-10-04  Simon Josefsson  <jas@extundo.com>
79030
79031         * modules/memmem: New file.
79032         * tests/test-memmem.c: New file.
79033         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79034
79035 2004-10-04  Simon Josefsson  <jas@extundo.com>
79036
79037         * m4/memmem.m4: New file.
79038
79039 2004-10-04  Simon Josefsson  <jas@extundo.com>
79040
79041         * lib/memmem.h: New file.
79042         * lib/memmem.c: New file, taken from glibc.
79043
79044 2004-10-04  Simon Josefsson  <jas@extundo.com>
79045
79046         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79047         '#ifdef USE_UNLOCKED_IO'.
79048
79049 2004-10-04  Simon Josefsson  <jas@extundo.com>
79050
79051         * config/srclist.txt: Add memmem from glibc.
79052
79053 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79054
79055         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79056
79057         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79058         modules/exclude, modules/getdate, modules/getline,
79059         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79060         modules/getusershell, modules/linebuffer, modules/md5,
79061         modules/mountlist, modules/posixtm, modules/readtokens,
79062         modules/readutmp, modules/regex, modules/sha1,
79063         modules/version-etc, modules/yesno:
79064         Remove dependency on unlocked-io.
79065
79066 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79067
79068         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79069
79070         * m4/unlocked-io.m4: Add copyright notice.
79071         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79072
79073 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79074
79075         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79076         * lib/xmalloc.c (xmemdup): Likewise.
79077         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79078         XFREE): Remove these long-obsolescent macros.
79079         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79080         * lib/xstrdup.c: Remove.
79081
79082         * lib/regex.c (re_comp): Cast gettext return value to char *,
79083         Problem reported by Martin Neitzel via Mark D. Baushke.
79084
79085 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79086
79087         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79088         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79089         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79090         regex.c, sha1.c, version-etc.c, yesno.c:
79091         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79092         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79093         the includer's responsibility.
79094
79095         Sync from coreutils.
79096
79097         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79098         points to the start of a string, as the C Standard says the
79099         resulting behavior is undefined.
79100
79101         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79102         simple -> simple_backups, numbered_existing ->
79103         numbered_existing_backups, numbered -> numbered_backups
79104         to avoid shadowing problems.  All uses changed.
79105         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79106         * lib/backupfile.c (check_extension, numbered_backup):
79107         Rename locals to avoid shadowing 'basename'.
79108         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79109         once.
79110
79111         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79112         * lib/.cvsignore: Add getopt.h.
79113
79114 2004-10-04  Bruno Haible  <bruno@clisp.org>
79115
79116         * modules/README: New file.
79117         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79118         not a module.
79119
79120 2004-10-02  Jim Meyering  <jim@meyering.net>
79121
79122         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79123
79124 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79125
79126         * modules/strsep: New file.
79127
79128 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79129
79130         * m4/strsep.m4: New file.
79131
79132 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79133
79134         * lib/strsep.h: New file.
79135         * lib/strsep.c: New file.
79136
79137 2004-10-01  Simon Josefsson  <jas@extundo.com>
79138
79139         * lib/snprintf.c (snprintf): Handle size==0.
79140
79141 2004-10-01  Simon Josefsson  <jas@extundo.com>
79142             Bruno Haible  <bruno@clisp.org>
79143
79144         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79145         (snprintf): Declare 'args'.
79146
79147 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79148
79149         * lib/snprintf.c: Remove comments as to why each header is needed.
79150
79151 2004-10-01  Bruno Haible  <bruno@clisp.org>
79152
79153         * MODULES.html.sh: Add strsep.
79154
79155 2004-09-30  Simon Josefsson  <jas@extundo.com>
79156
79157         * modules/snprintf: New file.
79158
79159 2004-09-30  Simon Josefsson  <jas@extundo.com>
79160
79161         * m4/snprintf.m4: New file.
79162
79163 2004-09-30  Simon Josefsson  <jas@extundo.com>
79164
79165         * lib/snprintf.h, lib/snprintf.c: New files.
79166
79167 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79168
79169         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79170         (hol_entry_help): Never translate an empty string.
79171         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79172         * lib/argp.h (OPTION_NO_TRANS): New option.
79173
79174 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         * modules/argp (Maintainer): Replace Simon Josefsson
79177         by Sergey Poznyakoff.
79178
79179 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79182         changes merged back into glibc.
79183
79184 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79185
79186         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79187
79188 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79189
79190         * lib/xvasprintf.c: Include xalloc.h.
79191         (xvasprintf): Use xalloc_die, not xmalloc_die.
79192
79193 2004-09-29  Bruno Haible  <bruno@clisp.org>
79194
79195         * modules/alloca-opt: New file, derived from modules/alloca.
79196         * modules/allocsa: Depend on alloca-opt instead of alloca.
79197         * modules/setenv: Likewise.
79198         * modules/vasnprintf: Likewise.
79199         * MODULES.html.sh: Add alloca-opt.
79200
79201 2004-09-28  Simon Josefsson  <jas@extundo.com>
79202
79203         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79204         LGPL, and to replace license template from GPL to LGPL.
79205
79206 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79207
79208         * modules/dummy: Change license to LGPL.
79209
79210 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79211
79212         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79213
79214 2004-09-24  Simon Josefsson  <jas@extundo.com>
79215
79216         * modules/minmax (License): Change from GPL to LGPL.
79217
79218 2004-09-23  Simon Josefsson  <jas@extundo.com>
79219
79220         * gnulib-tool (--import): Typo.
79221
79222 2004-09-23  Simon Josefsson  <jas@extundo.com>
79223
79224         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79225
79226 2004-09-22  Bruno Haible  <bruno@clisp.org>
79227
79228         * modules/*: Add 'License' field.
79229         * gnulib-tool: Accept --extract-license option.
79230         (func_get_license): New function.
79231
79232 2004-09-21  Bruno Haible  <bruno@clisp.org>
79233
79234         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79235         Reported by Simon Josefsson.
79236
79237 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79238
79239         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79240         gl_AC_TYPE_LONG_LONG.
79241
79242 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79243
79244         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79245
79246 2004-09-18  Simon Josefsson  <jas@extundo.com>
79247         and  Paul Eggert  <eggert@cs.ucla.edu>
79248
79249         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79250         calls with autoreconf.  Define GL_LIB.
79251
79252 2004-09-14  Karl Berry  <karl@gnu.org>
79253
79254         * config/srclist.txt: unsync setenv.c, sigh.
79255
79256 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79257
79258         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79259         Problem reported by Bruno Haible in:
79260         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79261
79262 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79263
79264         * config/srclist.txt: Comment out argp-pvh.c.
79265
79266 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79269         in case some system header has #define'd it.  Problem reported by
79270         Soeren D. Schulze in
79271         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79272
79273 2004-09-09  Karl Berry  <karl@gnu.org>
79274
79275         * regex.[ch]: delete from the root.  These were supposed to be
79276                 synced with emacs cvs, but this has not happened for about
79277                 a year, and anyway nothing else uses emacs regex.[ch].
79278                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79279                 lib/regex[.ch] is untouched.
79280
79281 2004-09-09  Bruno Haible  <bruno@clisp.org>
79282
79283         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79284
79285 2004-09-09  Bruno Haible  <bruno@clisp.org>
79286
79287         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79288         modifications.
79289         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79290
79291 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79292
79293         * modules/xvasprintf: New file.
79294         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79295
79296 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79297
79298         * lib/xvasprintf.h: New file.
79299         * lib/xvasprintf.c: New file.
79300         * lib/xasprintf.c: New file.
79301
79302 2004-09-08  Bruno Haible  <bruno@clisp.org>
79303
79304         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79305
79306 2004-09-08  Bruno Haible  <bruno@clisp.org>
79307
79308         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79309         length is > INT_MAX.
79310         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79311         more.
79312
79313 2004-09-08  Bruno Haible  <bruno@clisp.org>
79314
79315         * lib/stdint_.h: New file, taken from GNU clisp.
79316
79317 2004-09-08  Bruno Haible  <bruno@clisp.org>
79318             Oskar Liljeblad  <oskar@osk.mine.nu>
79319
79320         * modules/stdint: New file.
79321         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79322
79323 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         Import from coreutils.
79326         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79327         strings on unbounded length.  alloca's performance benefits aren't
79328         that important here.
79329         (V_STRDUP): Remove.
79330         (parse_with_separator): New function, with most of the internals
79331         of the old parse_user_spec.  Allow user to omit both user and group,
79332         for compatibility with FreeBSD.
79333         Clone only the user name, not the entire spec.
79334         Do not set *uid, *gid unless entirely successful.
79335         Avoid memory leak in some failing cases.
79336         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79337         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79338         (parse_user_spec): Rewrite to use parse_with_separator.
79339
79340 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         * modules/userspec: Don't depend on alloca.
79343
79344 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79345
79346         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79347
79348 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79351         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79352         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79353
79354 2004-08-16  Simon Josefsson  <jas@extundo.com>
79355
79356         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79357         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79358         Add --dry-run for --import.
79359         Let user provided command line parameters override configure.ac
79360         settings.
79361
79362 2004-08-12  Simon Josefsson  <jas@extundo.com>
79363
79364         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79365         as discussed with Paul Eggert in threads rooted at
79366         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79367         and
79368         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79369         Before, the test was empty, and relied on ELIDE_CODE in source
79370         code.)
79371         (gl_PREREQ_GETOPT): New macro.
79372         (gl_GETOPT): Use them.
79373
79374 2004-08-12  Simon Josefsson  <jas@extundo.com>
79375
79376         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79377         * lib/getopt_.h: Renamed from getopt.h.
79378
79379 2004-08-12  Simon Josefsson  <jas@extundo.com>
79380
79381         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79382         Change default library name from libfoo to libgnu.
79383         Now, if you have a configure.ac that says:
79384                 gl_SOURCE_BASE(gl)
79385                 gl_M4_BASE(gl/m4)
79386                 gl_MODULES(error getopt etcetera)
79387                 gl_INIT
79388         you can import all you need by running:
79389                 ../gnulib/gnulib-tool --import
79390
79391         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79392         (Makefile.am): Rewrite, use logic from argz.
79393         (Include): Use <getopt.h> instead of "getopt.h".
79394
79395 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79396
79397         * modules/argp (Files): Add m4/unlocked-io.m4.
79398         (Depends-on): Add extensions.
79399
79400 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79401
79402         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79403         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79404         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79405         Check for program_invocation_name, program_invocation_short_name,
79406         flockfile, funlockfile, features.h, _getopt_long_only_r.
79407
79408 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79411         its complicated substitute.
79412         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79413         and program_invocation_name.
79414         (__argp_basename) [!_LIBC]: Remove; the only use was
79415         replaced by its body.
79416         (__argp_short_program_name): Change condition from
79417         !defined __argp_short_program_name to
79418         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79419         to match argp-namefrob.h.
79420         (__argp_failure): Don't assume strerror_r returns char *.
79421         * lib/argp-parse.c (N_): Define unconditionally.
79422         (argp_default_options): Fill out initializers with 0 to avoid
79423         gcc warnings.
79424
79425 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79426
79427         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79428         getopt1.c.
79429
79430 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         Merge from coreutils.
79433
79434         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79435
79436         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79437         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79438
79439 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79440
79441         Merge from coreutils.
79442
79443         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79444         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79445         for Reliant Unix 5.43.
79446
79447         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79448         (union fooround): Use uintmax_t, not long int.
79449         The rest is a merge from libc:
79450         [defined _LIBC]: Include <shlib-compat.h>.
79451         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79452
79453         * lib/settime.c (settime): Recode to avoid warning with
79454         Sun Forte C 6U2.
79455
79456         * lib/strverscmp.c: Convert to UTF-8.
79457
79458 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79459
79460         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79461         m4/uintmax_t.m4.
79462
79463 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79464
79465         * modules/xalloc-die: New file.
79466         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79467
79468         * modules/md5 (Files): Add m4/uint32_t.m4.
79469         * modules/sha1: Renamed from modules/sha.
79470         (Files):
79471         Rename lib/sha.h to lib/sha1.h.
79472         Rename lib/sha.c to lib/sha1.c.
79473         Rename m4/sha.m4 to m4/sha1.m4.
79474         (lib_SOURCES): Likewise.
79475         (configure.ac): Rename gl_SHA to gl_SHA1.
79476         (Include): sha.h -> sha1.h.
79477
79478 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79481         * m4/sha1.m4: Renamed from sha.m4.
79482         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79483
79484 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * lib/obstack.h (obstack_empty_p):
79487         Don't assume that chunk->contents is suitably aligned.
79488         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79489         Likewise. Problem reported by Benno in
79490         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79491
79492         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79493         readable.  This could be improved further but it'd take some work.
79494
79495 2004-08-08  Simon Josefsson  <jas@extundo.com>
79496
79497         * modules/xgethostname (Depends-on): Remove exit and error (not
79498         used).
79499
79500         * modules/getpass-gnu: Add getpass.h.
79501         (Depends-on): Add stdbool.
79502         * modules/getpass: Add getpass.h.
79503
79504 2004-08-08  Simon Josefsson  <jas@extundo.com>
79505
79506         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79507         Check getpass declaration.
79508
79509 2004-08-08  Simon Josefsson  <jas@extundo.com>
79510
79511         * lib/xgethostname.c: Don't include error.h (not used).
79512
79513         * lib/getpass.h: Add.
79514         * lib/getpass.c: Include getpass.h first.
79515
79516 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79517
79518         * lib/xalloc-die.c: New file.
79519         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79520         All uses removed.
79521         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79522         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79523         xalloc-die.c.
79524         (_, N_, xalloc_die): Move to xalloc-die.c.
79525         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79526         so that we needn't mess with xalloc_msg_memory_exhausted.
79527
79528         * lib/sha1.h: Renamed from sha.h.
79529         (SHA1_H): Renamed from _SHA_H.
79530         (sha1_ctx): Renamed from sha_ctx.
79531         (sha1_init_ctx): Renamed from sha_init_ctx.
79532         (sha1_process_block): Renamed from sha_process_block.
79533         (sha1_process_bytes): Renamed from sha_process_bytes.
79534         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79535         (sha1_read_ctx): Renamed from sha_read_ctx.
79536         (sha1_stream): Renamed from sha_stream.
79537         (sha1_buffer): Renamed from sha_buffer.
79538         * lib/sha1.c: Likewise; renamed from sha.c.
79539         Do not include <sys/types.h>.
79540         Include <stddef.h> rather than <stdlib.h>.
79541
79542 2004-08-08  Bruno Haible  <bruno@clisp.org>
79543
79544         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79545         FILESYSTEM_PREFIX_LEN.
79546         * lib/progreloc.c: Likewise.
79547         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79548
79549 2004-08-06  Simon Josefsson  <jas@extundo.com>
79550
79551         * modules/progname (Depends-on): Don't depend on stdbool.
79552
79553 2004-08-06  Simon Josefsson  <jas@extundo.com>
79554
79555         * modules/getsubopt: New file.
79556         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79557         getsubopt.
79558
79559 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79560
79561         More merge from coreutils.
79562
79563         * m4/utimens.m4, m4/utimecmp.m4: New files.
79564         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79565         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79566         prereq.m4, sha.m4: Import changes from coreutils.
79567
79568 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79569
79570         More merge from coreutils.
79571         * modules/raise, modules/readtokens0, modules/utimens:
79572         * modules/utimecmp, module/xnanosleep: New files.
79573         * modules/strftime: Add lib/strftime.h.
79574         Change include from <time.h> to "strftime.h".
79575         * modules/yesno: Add lib/yesno.h.
79576         * modules/backupfile: Remove lib/addext.c.
79577         * modules/euidaccess: Add stat-macros.h.
79578         * modules/canonicalize, modules/euidaccess,
79579         modules/filemode, modules/lchown, modules/makepath,
79580         modules/rmdir, modules/stat: Likewise.
79581
79582 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79583
79584         Merge from tar.
79585         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79586         SIZE_MAX is a valid preprocessor constant.
79587         (__argp_basename): Change from "#ifndef _LIBC"
79588         to "#ifndef __argp_short_program_name", so that
79589         we don't compile these functions for tar.
79590
79591         More merges from coreutils.
79592         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79593         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79594         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79595         * lib/addext.c: Remove; no longer needed.
79596         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79597         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79598         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79599         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79600         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79601         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79602         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79603         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79604         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79605         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79606         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79607         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79608         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79609         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79610         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79611         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79612         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79613         Import changes from coreutils.
79614
79615 2004-08-05  Simon Josefsson  <jas@extundo.com>
79616
79617         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79618
79619 2004-08-05  Simon Josefsson  <jas@extundo.com>
79620
79621         * m4/getsubopt.m4: New file.
79622
79623 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79624
79625         Merge from coreutils.
79626
79627         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79628         * m4/getcwd-path-max.m4: New files.
79629
79630         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79631         FILESYSTEM_PREFIX_LEN ->
79632         FILE_SYSTEM_PREFIX_LEN.
79633         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79634         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79635         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79636         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79637
79638         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79639         prerequisite modules now handle the DOS stuff.
79640         Don't check for unistd.h.
79641
79642 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         Merge from coreutils.
79645
79646         * lib/.gdb-history: Remove; this doesn't belong here.
79647
79648         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79649         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79650         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79651         * lib/getcwd.c: New files.
79652
79653         * lib/dirname.h: Include <stdbool.h>.
79654         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79655         for consistency with POSIX terminology.  All uses changed.
79656         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79657         (strip_trailing_slashes): Use bool for booleans.
79658         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79659
79660         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79661         sometimes returns a positive errno value even when it succeeds.
79662         (print_errno_message) [!LIBC]: Fall back on strerror if
79663         __strerror_r fails.
79664
79665         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79666         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79667         (longest_relative_suffix): New function.
79668         (path_concat): Use it.  Assume first argument is not NULL.
79669         Port to DOS.  Omit redundant separators.
79670         Report an error instead of returning NULL.
79671         Use mempcpy instead of memcpy.
79672         (xpath_concat): Remove: not declared or used.
79673
79674         * lib/same.h: Include <stdbool.h>
79675         (same_name): Return bool, not int.
79676         * lib/same.c (same_name): Likewise.
79677         (errno): Don't declare; we assume C89 or better now.
79678
79679         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79680         if not already defined.
79681
79682         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79683         * lib/dup-safer.c (errno): Likewise.
79684
79685 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79686
79687         Merge from coreutils.
79688         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79689         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79690         * modules/path-concat: Don't depend on strdup.
79691
79692 2004-08-03  Simon Josefsson  <jas@extundo.com>
79693
79694         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79695         * lib/progname.h: Don't include stdbool.h.
79696
79697 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79698
79699         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79700         * MODULES.html.sh (func_all_modules): Remove fatal.
79701
79702 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79705
79706 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79709         working.
79710
79711 2004-08-02  Simon Josefsson  <jas@extundo.com>
79712
79713         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79714         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79715         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79716
79717 2004-08-01  Simon Josefsson  <jas@extundo.com>
79718
79719         * lib/xgetdomainname.c: Include stdlib.h, for free().
79720
79721 2004-07-19  Bruno Haible  <bruno@clisp.org>
79722
79723         * MODULES.html.sh (func_all_modules): Add dummy.
79724
79725 2004-07-16  Simon Josefsson  <jas@extundo.com>
79726
79727         * modules/dummy: New file.
79728
79729 2004-07-16  Simon Josefsson  <jas@extundo.com>
79730
79731         * lib/dummy.c: New file.
79732
79733 2004-07-16  Bruno Haible  <bruno@clisp.org>
79734
79735         * lib/backupfile.h: Add extern "C" for C++.
79736         * lib/closeout.h: Likewise.
79737         * lib/copy-file.h: Likewise.
79738         * lib/findprog.h: Likewise.
79739         * lib/full-write.h: Likewise.
79740         * lib/pathname.h: Likewise.
79741         * lib/progname.h: Likewise.
79742         * lib/stpcpy.h: Likewise.
79743         * lib/stpncpy.h: Likewise.
79744         * lib/strcase.h: Likewise.
79745         * lib/strstr.h: Likewise.
79746         * lib/xalloc.h: Likewise.
79747
79748         * lib/mbswidth.h: Add extern "C" for C++.
79749         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79750
79751 2004-07-13  Robert Millan  <robertmh@gnu.org>
79752
79753         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79754
79755 2004-07-09  Simon Josefsson  <jas@extundo.com>
79756
79757         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79758         failed without this.)
79759
79760 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79761
79762         * modules/chown (Files): Add lib/fchown-stub.c, since
79763         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79764
79765 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79766
79767         * lib/fchown-stub.c: New file.
79768
79769 2004-06-24  Jim Meyering  <jim@meyering.net>
79770
79771         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79772
79773 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79774
79775         * modules/argz: Omit "#include".
79776
79777         * MODULES.html.sh (func_all_modules): Add calloc, to match
79778         2004-06-01 addition of calloc module.
79779
79780 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79781
79782         * m4/argz.m4: New file, which is autoupdated from libtool.
79783
79784 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79787         libtool.
79788
79789 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79790
79791         * config/srclist-update: Don't insist on "USA." before the
79792         close-comment, as libtool omits the period and puts the */ on a
79793         separate line.
79794         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79795         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79796
79797 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79798
79799         * modules/argz: New file.
79800         * MODULES.html.sh (func_all_modules): Add argz.
79801
79802 2004-06-12  Jim Meyering  <jim@meyering.net>
79803         and  Paul Eggert  <eggert@cs.ucla.edu>
79804
79805         * modules/hash (Files): Add lib/xalloc.h.
79806         * modules/pipe (Depends-on): Add wait-process.
79807         * modules/stat (Depends-on): Add xalloc.
79808         * modules/userspec (Files): Add lib/userspec.h.
79809         * modules/xstrto
79810
79811         Upgrade from gettext-0.13.
79812         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79813         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79814         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79815
79816 2004-06-10  Jim Meyering  <jim@meyering.net>
79817
79818         * lib/calloc.c: New file.
79819
79820 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79821
79822         * lib/getdate.y (yylex): Allow space between sign and number.
79823         Problem reported by Dan Jacobson.
79824
79825 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79826
79827         Merge from coreutils CVS.
79828
79829         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79830         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79831         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79832         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79833         xstrtol.m4: Fix copyright date and/or serial number.
79834
79835         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79836         See if we need an fchown replacement.
79837         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79838         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79839         and use the replacement function if we detect either defect.
79840
79841         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79842         gl_UTIMECMP.
79843
79844 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79845         and  Jim Meyering  <jim@meyering.net>
79846
79847         Merge from coreutils CVS.
79848
79849         * lib/stat-macros.h: New file, with contents from file-type.h
79850         and coreutils' system.h.
79851         * lib/file-type.c: Include "stat-macros.h".
79852         * lib/file-type.h (file_type): Move all macro definitions to new file,
79853         stat-macros.h.
79854
79855         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79856         Wrap old code with this conditional.
79857         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79858         function that does not dereference symlinks.
79859         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79860
79861         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79862         dependency problems.
79863         (xreadlink): Accept new arg SIZE, for efficiency.
79864         All decls and uses changed.
79865         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79866
79867         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79868         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79869
79870         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79871         sysexits.h.
79872
79873 2004-06-01  Jim Meyering  <jim@meyering.net>
79874
79875         * m4/calloc.m4: New file.
79876
79877 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79880         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79881         Also, fix a typo in a diagnostic.
79882
79883 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79884
79885         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79886         or AC_FUNC_REALLOC.
79887
79888 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79891         macros to be defined.
79892         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79893         the allocator returns NULL because the requested size is zero.
79894
79895 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79896
79897         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79898         var.  Add comment explaining why libc still defines it.  This
79899         merges the following patch from glibc:
79900         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79901
79902 2004-05-20  Andreas Schwab  <schwab@suse.de>
79903
79904         * m4/free.m4: Replace free if it not known to work, not the other
79905         way round.
79906
79907 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79908
79909         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79910         present in glibc since revision 1.1 of this file.
79911         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79912         obstack_alignment_mask, obstack_alloc, obstack_base,
79913         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79914         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79915         obstack_grow0, obstack_init, obstack_int_grow,
79916         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79917         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79918         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79919         nonexistent functions.
79920
79921 2004-05-18  Karl Berry  <karl@gnu.org>
79922
79923         * config/srclist.txt: break link for vasnprintf.c.
79924
79925 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79926
79927         Port obstack to the AS/400, where pointers are 16 bytes wide and
79928         you cannot cast an integer to a valid pointer.  This patch is
79929         currently waiting to be integrated into glibc; see
79930         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79931
79932         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79933         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79934         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79935         (struct obstack): temp member is now a union of a pointer and
79936         an integer, instead of an integer.  All integer uses changed.
79937         This does not affect the physical layout of struct obstack,
79938         except on hosts (like the AS/400) where the size or alignment of
79939         void * is greater than that of ptrdiff_t.
79940         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79941         __STDC__)]: Store temporary in pointer member of union, not
79942         integer member.
79943         * lib/obstack.c: Include <stddef.h>, for offsetof.
79944         (struct fooalign): Remove; it doesn't need a name.
79945         (union fooround): Change double to long double, and add void *.
79946         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79947         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79948         not a macro.  Hence the values are always int; so remove all
79949         casts-to-int in uses.
79950
79951 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79952
79953         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79954         we can get this patch merged into glibc.
79955
79956 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79957             Paul Eggert  <eggert@cs.ucla.edu>
79958
79959         * m4/argp: Depend on alloca.
79960
79961 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79962             Paul Eggert  <eggert@cs.ucla.edu>
79963
79964         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79965         freecoding.
79966
79967 2004-05-17  Bruno Haible  <bruno@clisp.org>
79968
79969         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79970         precision that consists of a '.' followed by an empty digit string.
79971         Patch by Tor Lillqvist <tml@iki.fi>.
79972
79973 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79974
79975         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79976         for backward compatibility with older code.  We need our own
79977         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79978         it under some other name, and our alloca.h will define it.
79979
79980 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79981             Derek Price  <derek@ximbiot.com>
79982
79983         * lib/alloca.c: Include <alloca.h>, to get our interface.
79984         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79985         include <alloca.h> first.  Use C89 prototype for alloca; this
79986         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79987         Use #elif for simplicity, since we can assume C89 now.
79988         Don't try to source the system alloca.h since it will not be found
79989         and to prevent recursively including its replacement.
79990         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79991         * lib/regex.c: Likewise.
79992
79993 2004-05-16  Derek Price  <derek@ximbiot.com>
79994             Paul Eggert  <eggert@cs.ucla.edu>
79995
79996         getline cleanup.  This changes the getndelim2 API: both order of
79997         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79998         no delimiter).
79999
80000         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80001         interface does that.
80002         (getline): Always use getdelim, so that we don't have two
80003         copies of this code.
80004         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80005         if available.
80006         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80007         (GETNDELIM2_MAXIMUM): New macro.
80008         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80009         instead of the old practice of delim2==0.  All callers changed.
80010         Return -1 on overflow, instead of returning junk.
80011         Do not set *linesize unless allocation succeeds.
80012         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80013         that we include sys/types.h.
80014         * lib/getnline.h: Likewise.
80015         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80016         (getndelim2): Reorder arguments.
80017         * lib/getnline.c (getnline, getndelim):
80018         Don't discard the NMAX argument.
80019         (getnline): Invoke getndelim, to avoid code duplication.
80020         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80021         of (size_t) -1 by callers of the getnline family.
80022
80023 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80026         Check for gettimeofday.
80027         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80028         Check for settimeofday, stime.
80029
80030 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80031
80032         * lib/nanosleep.c (suspended): Change its type from int to
80033         sig_atomic_t volatile.
80034         (first_call): Make it private to rpl_nanosleep, and have it
80035         be zero initially as that's a bit faster.
80036         (my_usleep): Round up fractional times instead of truncating them,
80037         as this is the usual meaning for 'sleep'.
80038
80039         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80040         doesn't work.
80041         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80042         (ENOSYS): Define if not defined.
80043         (settime): Fall back on stime if it exists and settimeofday fails.
80044         But don't bother with fallbacks if a method fails with errno == EPERM.
80045
80046 2004-05-11  Jim Meyering  <jim@meyering.net>
80047
80048         Prior to this change, the save_cwd caller required read access to the
80049         current directory on most systems (ones with the fchdir function).
80050
80051         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80052         fails, try write-only, and finally, resort to using xgetcwd.
80053
80054 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80055
80056         * lib/obstack.c, obstack.h: Import changes from libc.
80057
80058 2004-04-28  Bruno Haible  <bruno@clisp.org>
80059
80060         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80061         also implicitly appends .exe to executables.
80062         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80063         accepts Windows pathnames.
80064         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80065         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80066         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80067         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80068         Reported by Derek Robert Price <derek@ximbiot.com>.
80069
80070 2004-04-21  Karl Berry  <karl@gnu.org>
80071
80072         * config/srclist.txt (localcharset.c): break sync.
80073
80074 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80075
80076         * m4/host-os.m4: Add a copyright notice.
80077
80078 2004-04-20  Jim Meyering  <jim@meyering.net>
80079
80080         Change UTILS_ to gl_ in AC_DEFINE'd names.
80081         Change utils_- and jm_-prefixed variables, too.
80082         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80083         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80084         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80085
80086         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80087         Don't emit trailing blanks.
80088         Also rename jm_-prefixed variables to have gl_ prefix.
80089
80090         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80091         Also rename jm_-prefixed variables to have gl_ prefix.
80092
80093         * m4/jm-macros.m4: Reflect the renamings.
80094         * m4/prereq.m4: Likewise.
80095
80096 2004-04-20  Jim Meyering  <jim@meyering.net>
80097
80098         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80099         memory.
80100
80101 2004-04-20  Jim Meyering  <jim@meyering.net>
80102             Bruno Haible  <bruno@clisp.org>
80103
80104         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80105         memory when realloc fails.
80106
80107 2004-04-19  Jim Meyering  <jim@meyering.net>
80108
80109         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80110         now that readutmp.c may call `free (0)'.
80111
80112 2004-04-19  Bruno Haible  <bruno@clisp.org>
80113
80114         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80115         * m4/inttypes_h.m4: Likewise.
80116         * m4/stdint_h.m4: Likewise.
80117         * m4/intmax_t.m4: Likewise.
80118         * m4/uintmax_t.m4: Likewise.
80119
80120 2004-04-18  Jim Meyering  <jim@meyering.net>
80121
80122         * m4/prereq.m4: Don't forbid jm_ prefix.
80123
80124         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80125         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80126         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80127         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80128         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80129         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80130         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80131         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80132         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80133         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80134         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80135         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80136         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80137         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80138         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80139         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80140         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80141         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80142         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80143
80144 2004-04-18  Jim Meyering  <jim@meyering.net>
80145
80146         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80147         failure, don't leak memory and do call END_UTMP_ENT.
80148
80149 2004-04-16  Jim Meyering  <jim@meyering.net>
80150
80151         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80152         coreutils' stat program.
80153         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80154
80155 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80156
80157         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80158         C89.
80159         (CHAR_BIT): Remove, since we assume C89.
80160         Include <stdint.h> if available, as per current Autoconf CVS advice.
80161
80162 2004-03-31  Jim Meyering  <jim@meyering.net>
80163
80164         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80165         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80166         * m4/xalloc.m4: Likewise.
80167
80168 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80169
80170         Merge from coreutils.
80171
80172         * m4/inttostr.m4: New file.
80173         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80174         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80175         Require gl_CLOCK_TIME.
80176         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80177
80178 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80179
80180         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80181         not bool, to be more consistent with Unix conventions.
80182         Suggested by Bruno Haible.
80183
80184         Merge from coreutils.
80185
80186         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80187         * lib/umaxtostr.c: New files.
80188
80189         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80190         the usual <time.h> dance.
80191         (get_date): Change signature to support fractional time stamps.
80192         All callers changed.
80193         * lib/getdate.y: Include "getdate.h" first, as we can now
80194         assume C89 and don't need to worry about 'const'.
80195         Similarly, include "unlocked-io.h" near start, not in middle.
80196         Include <limits.h>.
80197         (textint.value): Use long int rather than int.
80198         (textint.digits): Use size_t rather than int.
80199         (BILLION, LOG10_BILLION): New constants.
80200         (parser_control): New member rel_ns.  Members day_ordinal,
80201         time_zone, month, day, hour, minutes, rel_year, rel_month,
80202         rel_day, rel_hour, rel_minutes, rel_seconds
80203         are now long int, not int.  Member seconds is now struct timespec,
80204         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80205         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80206         not int.
80207         (%union.intval): Now long int, not int.
80208         New member timespec.
80209         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80210         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80211         (spec): Now is a timespec or an item list.
80212         (timespec, items): New nonterminals.
80213         (time, rel, relunit, number, get_date):
80214         Add support for fractional seconds.
80215         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80216         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80217         (to_hour): First arg is now long int, not int.
80218         (to_year): Returns long int, not int.
80219         Don't treat year -70 like 70.
80220         (tm_diff): Returns long int, not int.
80221         (lookup_word): Use bool instead of int when appropriate.
80222         (yylex): Use size_t for count, not int.
80223         Detect overflow when parsing large integer constants.
80224         Add support for fractions.
80225         (get_date): Make pointers 'const' if possible.
80226         Use more-portable code to detect integer overflow.
80227         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80228         Don't use ctime; it's not reliable if the year has >4 digits.
80229
80230         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80231         This is for compatibility with BSD.
80232
80233         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80234         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80235         From coreutils' system.h.
80236
80237         * lib/userspec.c: Don't include "posixver.h".
80238         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80239         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80240         compatible extension.  Simplify code by removing a boolean int
80241         that was always nonzero if a string was nonnull.
80242
80243 2004-03-30  Jim Meyering  <jim@meyering.net>
80244
80245         Merge from coreutils.
80246
80247         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80248         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80249         on some systems one must include <grp.h> before it.
80250         Reported by Christian Krackowizer.
80251
80252 2004-03-30  Jim Meyering  <jim@meyering.net>
80253
80254         Merge from coreutils.
80255
80256         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80257
80258         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80259         an empty input stream.
80260
80261         * lib/readtokens.c: Include <stdbool.h>.
80262         (readtoken): Use `size_t' rather than int/long.
80263         All callers adjusted.
80264         Use `bool' rather than `int' where appropriate.
80265         Use memset rather than an explicit loop.
80266         Use x2nrealloc rather than xrealloc.
80267         Allow the use of `\0' as a delimiter.
80268         (readtokens): Likewise.
80269         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80270
80271 2004-03-30  Jim Meyering  <jim@meyering.net>
80272
80273         * m4/realloc.m4: Remove file, since now it does no more than
80274         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80275         the `configure.ac' section of module/realloc.
80276         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80277
80278 2004-03-30  Bruno Haible  <bruno@clisp.org>
80279
80280         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80281         nonnull.
80282
80283 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80284
80285         Merge changes to getloadavg.c from coreutils and Emacs.
80286
80287         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80288         Define to an expression, not to the empty string.
80289         Include cloexec.h and xalloc.h.
80290         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80291         Use set_cloexec_flag rather than rolling our own.
80292         * lib/cloexec.c, lib/cloexec.h: New files.
80293
80294 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80295
80296         * m4/cloexec.m4: New file.
80297
80298 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80299
80300         * lib/getopt.h: Sync with libc CVS.
80301
80302 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80303             Bruno Haible  <bruno@clisp.org>
80304
80305         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80306         mbswidth.
80307
80308 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80309             Bruno Haible  <bruno@clisp.org>
80310
80311         * lib/mbswidth.h: Include <wchar.h> only if
80312         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80313         <wchar.h>.
80314         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80315
80316 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80317
80318         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80319         Sync with libc CVS.
80320         * lib/getopt_int.h: New file, also synced from libc.
80321
80322 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80323
80324         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80325         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80326         Bring back getopt.c, getopt.h, getopt1.c.
80327
80328 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80329
80330         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80331         All uses changed.  Check for sa_sigaction member; this fixes
80332         a bug first reported by Jason Andrade in
80333         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80334
80335 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80336
80337         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80338         '#if' expressions.  Unlike the code it replaces, it does not
80339         depend on (defined _SC_PAGESIZE).  However, it does depend on
80340         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80341         first reported by Jason Andrade in
80342         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80343
80344 2004-02-25  Simon Josefsson  <jas@extundo.com>
80345
80346         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80347
80348 2004-02-25  Simon Josefsson  <jas@extundo.com>
80349
80350         * lib/strdup.h: New file.
80351         * lib/strdup.c: Include it.
80352         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80353         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80354
80355 2004-02-23  Karl Berry  <karl@gnu.org>
80356
80357         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80358         (from fencepost.gnu.org:/gd/gnuorg).
80359
80360 2004-02-23  Karl Berry  <karl@gnu.org>
80361
80362         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80363         * config/srclist.txt: add maintain/standards documents.
80364
80365 2004-02-18  Bruno Haible  <bruno@clisp.org>
80366
80367         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80368         Reported by Derek Robert Price <derek@ximbiot.com>.
80369
80370 2004-02-16  Karl Berry  <karl@gnu.org>
80371
80372         * config/mkinstalldirs, install-sh: update from automake.
80373
80374 2004-02-06  Karl Berry  <karl@gnu.org>
80375
80376         * m4/po.m4: update from gettext 0.14.1.
80377
80378 2004-02-06  Karl Berry  <karl@gnu.org>
80379
80380         * lib/config.charset: update from gettext 0.14.1.
80381
80382 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80383
80384         Add comments and code, prompted by suggestions from Bruno Haible
80385         for sh-quote.
80386         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80387         describing the enum quoting_style values.
80388         * lib/quotearg.c (quotearg_alloc): New function.
80389         (quotearg_buffer_restyled): Treat lone { and } as special.
80390         Treat = as special.  Work around bug with older shells
80391         that "see" a '\' that is really the 2nd byte of a multibyte char.
80392         Quote empty string with shell_quoting_style.
80393
80394 2004-02-03  Bruno Haible  <bruno@clisp.org>
80395
80396         * m4/pipe.m4: New file, from GNU gettext.
80397
80398 2004-02-03  Bruno Haible  <bruno@clisp.org>
80399
80400         * lib/pipe.h: New file, from GNU gettext.
80401         * lib/pipe.c: New file, from GNU gettext.
80402
80403 2004-01-27  Bruno Haible  <bruno@clisp.org>
80404
80405         * m4/execute.m4: New file, from GNU gettext.
80406
80407 2004-01-27  Bruno Haible  <bruno@clisp.org>
80408
80409         * lib/execute.h: New file, from GNU gettext.
80410         * lib/execute.c: New file, from GNU gettext.
80411         * lib/w32spawn.h: New file, from GNU gettext.
80412
80413 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80414
80415         Merge from diffutils.
80416
80417         * lib/file-type.c (file_type): Add typed memory objects.
80418         * lib/file-type.h (S_TYPEISTMO): New macro.
80419
80420         * lib/c-stack.h (c_stack_action): Remove argv argument.
80421         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80422         (die): Don't calculate message unless segv_action returns.
80423         (get_stack_location, min_address_from_argv, max_address_from_argv,
80424         volatile stack_base, volatile_stack_size): Remove.
80425         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80426         that every segmentation violation is a stack overflow.  (Ouch!)
80427         See Debian bug 136249 (still outstanding) for more info about why
80428         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80429
80430 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80431
80432         Exit-status fix from coreutils.
80433
80434         Use exit_failure consistently in place of EXIT_FAILURE,
80435         so that program exit statuses are consistent on failure.
80436
80437         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80438         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80439         * lib/argmatch.h: Comment fix to match the above.
80440         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80441         Now a macro referring to exit_failure, instead of a separate
80442         variable.  Include "exitfail.h" to get it.
80443         * lib/xstrtol.h: Include "exitfail.h".
80444         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80445
80446         * lib/long-options.c (parse_long_options): Use prototype
80447         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80448         for clarity.
80449
80450 2004-01-21  Jim Meyering  <jim@meyering.net>
80451
80452         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80453         so as not to conflict with a different-sized __mktime_internal
80454         function in GNU libc.
80455         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80456         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80457
80458 2004-01-20  Karl Berry  <karl@gnu.org>
80459
80460         * config/config.guess: update from config.
80461
80462         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80463
80464 2004-01-20  Bruno Haible  <bruno@clisp.org>
80465
80466         Safer stack allocation.
80467         * lib/setenv.c: Include allocsa.h.
80468         (alloca): Remove fallback definition.
80469         (freea): Remove macro.
80470         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80471         instead of freea.
80472
80473 2004-01-20  Bruno Haible  <bruno@clisp.org>
80474
80475         * m4/eealloc.m4: New file, from GNU gettext.
80476
80477 2004-01-20  Bruno Haible  <bruno@clisp.org>
80478
80479         * m4/allocsa.m4: New file, from GNU gettext.
80480
80481 2004-01-20  Bruno Haible  <bruno@clisp.org>
80482
80483         * lib/xallocsa.h: New file, from GNU gettext.
80484         * lib/xallocsa.c: New file, from GNU gettext.
80485
80486 2004-01-20  Bruno Haible  <bruno@clisp.org>
80487
80488         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80489
80490 2004-01-20  Bruno Haible  <bruno@clisp.org>
80491
80492         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80493         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80494         specially.
80495
80496 2004-01-20  Bruno Haible  <bruno@clisp.org>
80497
80498         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80499         patch.
80500
80501 2004-01-20  Bruno Haible  <bruno@clisp.org>
80502
80503         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80504
80505 2004-01-20  Bruno Haible  <bruno@clisp.org>
80506
80507         * lib/eealloc.h: New file.
80508
80509 2004-01-20  Bruno Haible  <bruno@clisp.org>
80510
80511         * lib/binary-io.h: Avoid warnings on Cygwin.
80512
80513 2004-01-20  Bruno Haible  <bruno@clisp.org>
80514
80515         * lib/allocsa.h: New file, from GNU gettext.
80516         * lib/allocsa.c: New file, from GNU gettext.
80517
80518 2004-01-18  Karl Berry  <karl@gnu.org>
80519
80520         * doc/gpl.texi, doc/lgpl.texi: new files.
80521
80522 2004-01-18  Karl Berry  <karl@gnu.org>
80523
80524         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80525         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80526
80527 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80528
80529         Merge from coreutils.
80530
80531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80532         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80533         (gl_DEFAULT_POSIX2_VERSION): Move
80534         the documentation from 'configure' into 'config.hin',
80535         so that 'configure --help' isn't burdened by it and
80536         we don't have to worry about its formatting there.
80537         Reword the documentation so that it's more succinct
80538         and can be run together into a single paragraph.
80539         * m4/same.m4 (gl_SAME): Check for pathconf.
80540
80541 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80542
80543         Merge from coreutils.
80544
80545         * lib/posixver.c: Include posixver.h.
80546
80547         * lib/same.c: Include <stdbool.h>, <limits.h>.
80548         (_POSIX_NAME_MAX): Define if not defined.
80549         (MIN): New macro.
80550         (same_name): If file names are silently truncated, report
80551         that the file names are the same if they are the same after
80552         the silent truncation.
80553
80554         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80555         conversion function.
80556         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80557         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80558         longer needed.
80559
80560 2004-01-15  Jim Meyering  <jim@meyering.net>
80561
80562         Merge from coreutils.
80563
80564         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80565         if no library is required.
80566         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80567         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80568         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80569         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80570         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80571         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80572         value, $ac_cv_search_crypt, if it's "none required".
80573         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80574         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80575         not gl_FUNC_GETLOADAVG.
80576         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80577         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80578
80579 2004-01-15  Jim Meyering  <jim@meyering.net>
80580
80581         Merge from coreutils.
80582
80583         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80584         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80585         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80586
80587         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80588         optional configure-time default.
80589
80590         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80591
80592         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80593
80594 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80595
80596         Merge from coreutils.
80597
80598         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80599         value, $ac_cv_search_nanosleep, if it's "none required".
80600
80601 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80602
80603         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80604         with like-named macro in fnmatch.c.
80605         (EXT): Use an internal constant instead.
80606
80607         Merge fnmatch patches from glibc.
80608         * lib/fnmatch.c (mbsinit): Remove define.
80609         Add libc_hidden_ver (__fnmatch, fnmatch).
80610         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80611         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80612
80613 2004-01-14  Karl Berry  <karl@gnu.org>
80614
80615         * config/install-sh: update from automake.
80616
80617 2004-01-13  Karl Berry  <karl@gnu.org>
80618
80619         * config/install-sh: update from automake.
80620
80621 2004-01-09  Karl Berry  <karl@gnu.org>
80622
80623         * config/install-sh: update from automake.
80624
80625 2004-01-05  Karl Berry  <karl@gnu.org>
80626
80627         * config/config.{sub,guess}: update from config.
80628
80629 2003-12-31  Karl Berry  <karl@gnu.org>
80630
80631         * config/depcomp: update from automake.
80632
80633 2003-12-14  Karl Berry  <karl@gnu.org>
80634
80635         * lib/config.charset: update from gettext-runtime.
80636
80637 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80638
80639         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80640         Bug reported by Alfred M. Szmidt.
80641
80642 2003-12-03  Bruno Haible  <bruno@clisp.org>
80643
80644         * m4/gettext.m4: Upgrade from gettext-0.13.
80645         * m4/po.m4: Upgrade from gettext-0.13.
80646         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80647         * m4/intmax.m4: New file, from gettext-0.13.
80648         * m4/printf-posix.m4: New file, from gettext-0.13.
80649
80650 2003-11-29  Karl Berry  <karl@gnu.org>
80651
80652         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80653
80654 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80655             Bruno Haible  <bruno@clisp.org>
80656
80657         * lib/printf-parse.h: Don't include sys/types.h.
80658         (ARG_NONE): New macro.
80659         (char_directive): Change type of *arg_index fields to size_t.
80660         * lib/printf-parse.c: Don't include sys/types.h.
80661         (SSIZE_MAX): Remove macro.
80662         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80663         Remove unnecessary overflow check.
80664         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80665         fields.
80666
80667 2003-11-25  Bruno Haible  <bruno@clisp.org>
80668
80669         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80670
80671 2003-11-25  Bruno Haible  <bruno@clisp.org>
80672
80673         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80674         gt_TYPE_SSIZE_T.
80675
80676 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80677
80678         * modules/alloca: Remove dependency on xalloc.
80679
80680 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80681
80682         * lib/alloca.c: Remove dependency on xalloc module.
80683         (xalloc_die): Remove.
80684         (memory_full) [!defined emacs]: New macro.
80685         [!defined emacs]: Don't include xalloc.h.
80686         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80687         address arithmetic overflows.  Change datatypes a bit to avoid
80688         unnecessary casts.
80689
80690 2003-11-22  Jim Meyering  <jim@meyering.net>
80691
80692         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80693         s/size/size_t/.
80694
80695 2003-11-21  Karl Berry  <karl@gnu.org>
80696
80697         * config/config.{sub,guess}: update from config.
80698
80699 2003-11-18  Karl Berry  <karl@gnu.org>
80700
80701         * config/config.{sub,guess}: update from config.
80702
80703         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80704
80705 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80706
80707         * README: Mention that S+T cannot overflow if S is the size of
80708         an existing object and T is sufficiently small.
80709
80710 2003-11-17  Jim Meyering  <jim@meyering.net>
80711
80712         On systems without utime and without a utimes function capable of
80713         dealing with a NULL struct utimbuf* argument, this utime replacement
80714         could -- in unusual circumstances -- leak a file descriptor.
80715         * lib/utime.c: Include <unistd.h> and <errno.h>.
80716         (utime_null): Be sure to close `fd' and to preserve errno.
80717         Reported by Geoff Collyer via Arnold Robbins.
80718
80719 2003-11-17  Bruno Haible  <bruno@clisp.org>
80720
80721         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80722         (Depends-on): Add xsize.
80723
80724 2003-11-17  Bruno Haible  <bruno@clisp.org>
80725
80726         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80727
80728 2003-11-17  Bruno Haible  <bruno@clisp.org>
80729
80730         * lib/vasnprintf.c (alloca): Remove fallback definition.
80731         (freea): Remove definition.
80732         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80733         Reported by Paul Eggert.
80734
80735 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80736             Bruno Haible  <bruno@clisp.org>
80737
80738         Protect against address arithmetic overflow.
80739         * lib/printf-args.h: Include stddef.h.
80740         (arguments): Change type of field 'count' to size_t.
80741         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80742         'unsigned int' where appropriate.
80743         * lib/printf-parse.h: Include sys/types.h.
80744         (char_directive): Change type of *arg_index fields to ssize_t.
80745         (char_directives): Change type of fields 'count', max_*_length to
80746         size_t.
80747         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80748         (SSIZE_MAX): Define fallback value.
80749         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80750         instead of 'int' where appropriate. Check a_allocated, d_allocated
80751         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80752         * lib/vasnprintf.c: Include xsize.h.
80753         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80754         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80755         overflow. Avoid wraparound when converting a width or precision from
80756         decimal to binary.
80757
80758 2003-11-16  Bruno Haible  <bruno@clisp.org>
80759
80760         Update from GNU gettext.
80761         * lib/printf-parse.c: Generalize to it can be compiled for wide
80762         strings.
80763         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80764         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80765         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80766         SNPRINTF): New macros.
80767         Don't include <alloca.h> if the file is used inside libintl.
80768         (local_wcslen): New function, for Solaris 2.5.1.
80769         (VASNPRINTF): Use it instead of wcslen.
80770
80771 2003-11-16  Bruno Haible  <bruno@clisp.org>
80772
80773         * lib/xsize.h (xmax): New function.
80774         (xsum, xsum3, xsum4): Declare as "pure" functions.
80775
80776 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80777
80778         * modules/xalloc (Files): Undo latest change, since xalloc.h
80779         no longer needs SIZE_MAX or PTRDIFF_MAX.
80780
80781 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80782
80783         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80784         gl_PTRDIFF_MAX.
80785
80786 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80787
80788         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80789         "return", to pacify some unknown compiler.  Problem reported
80790         by Joerg Schilling.
80791
80792 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80793
80794         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80795         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80796         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80797         heuristic is just as accurate as far as we know, and it removes a
80798         dependency on size_max.m4 and ptrdiff_max.m4.
80799
80800 2003-11-11  Bruno Haible  <bruno@clisp.org>
80801
80802         * modules/xsize (Files): Add m4/size_max.m4.
80803         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80804
80805 2003-11-11  Bruno Haible  <bruno@clisp.org>
80806
80807         * m4/size_max.m4: New file.
80808         * m4/ptrdiff_max.m4: New file.
80809         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80810         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80811         (gl_XALLOC): Invoke it.
80812
80813 2003-11-11  Bruno Haible  <bruno@clisp.org>
80814
80815         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80816         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80817         defined.
80818
80819 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80820
80821         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80822         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80823         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80824         From Bruno Haible.
80825         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80826         not (size_t) -1, since it's defined here.
80827
80828 2003-11-09  Karl Berry  <karl@gnu.org>
80829
80830         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80831
80832 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80833
80834         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80835         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80836         Reject sizes of exactly SIZE_MAX bytes.
80837         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80838         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80839
80840 2003-11-05  Bruno Haible  <bruno@clisp.org>
80841
80842         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80843         SIZE_MAX defined in <limits.h> on Solaris.
80844
80845 2003-11-04  Jim Meyering  <jim@meyering.net>
80846
80847         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80848         variable names, rather than @VAR@.
80849         * modules/poll: Likewise.
80850
80851 2003-11-04  Bruno Haible  <bruno@clisp.org>
80852
80853         * modules/xsize: New file.
80854         * modules/linebreak: Depend on xsize.
80855         * MODULES.html.sh (func_all_modules): Add xsize.
80856
80857 2003-11-04  Bruno Haible  <bruno@clisp.org>
80858
80859         * m4/xsize.m4: New file.
80860
80861 2003-11-04  Bruno Haible  <bruno@clisp.org>
80862
80863         * lib/xsize.h: New file.
80864         * lib/linebreak.c: Include xsize.h.
80865         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80866         argument for overflow.
80867         Suggested by Paul Eggert.
80868
80869 2003-11-03  Karl Berry  <karl@gnu.org>
80870
80871         * config/config.{guess,sub}: update from config.
80872
80873 2003-11-03  Jim Meyering  <jim@meyering.net>
80874
80875         * modules/userspec (lib_SOURCES): Add userspec.h.
80876         (Include): Add "userspec.h".
80877         Improve description.
80878
80879 2003-11-03  Jim Meyering  <jim@meyering.net>
80880
80881         * lib/userspec.c: Include "userspec.h".
80882         * lib/userspec.h: New file.
80883
80884 2003-11-03  Bruno Haible  <bruno@clisp.org>
80885
80886         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80887
80888 2003-11-03  Bruno Haible  <bruno@clisp.org>
80889
80890         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80891         available, to avoid (extremely rare) race condition.
80892         Suggested by Paul Eggert.
80893
80894 2003-11-02  Karl Berry  <karl@gnu.org>
80895
80896         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80897
80898 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80899
80900         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80901         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80902         (read_filesystem_list): Set and use me_type_malloced.
80903         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80904         whatever the type happens to be), for brevity and consistency.
80905         Check for size calculation overflow on Alphas running OSF/1.
80906
80907 2003-10-31  Jim Meyering  <jim@meyering.net>
80908
80909         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80910
80911         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80912
80913 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80914             Bruno Haible  <bruno@clisp.org>
80915
80916         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80917         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80918
80919 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80920
80921         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80922         netbsd*-gnu*.  Suggested by Robert Millan.
80923
80924 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80925
80926         * modules/group-member: Depend on stdbool.
80927
80928 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80929
80930         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80931
80932 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80933
80934         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80935         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80936         after the 'gnu' in these cases.  This fixes some bugs in the
80937         previous change, and is based on suggestions by Robert Millan.
80938
80939 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80940
80941         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80942         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80943         no longer needed.
80944         * lib/quotearg.c (quotearg_n_options): Use it.
80945         * lib/group-member.c: Include <stdbool.h>.
80946         (free_group_info): Arg is now const *; don't free arg.
80947         (get_group_info): Now returns bool and accepts struct group_info *,
80948         rather than returning a malloc'ed struct group_info *.
80949         All uses changed.  Check for overflow in internal size calculation.
80950
80951         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80952         rather than xmalloc/xrealloc.
80953         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80954         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80955         conformance bug: the old code used a pointer after freeing the
80956         storage that it addressed.
80957         * lib/hash.c (hash_initialize): Simplify the code by using
80958         xalloc_oversized rather than doing it by hand.
80959         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80960         the buffer preserved.  Use free and xmalloc instead.
80961         * lib/quotearg.c (quotearg_n_options): Likewise.
80962         Use a simpler test for size overflow.  Don't use xalloc_oversized
80963         because unsigned int might be wider than size_t (!); this suggests
80964         that we should switch from unsigned int to size_t for slot numbers.
80965
80966 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80967
80968         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80969         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80970         NetBSD kernels.  Requested by Richard Stallman.
80971
80972 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80973
80974         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80975         to allocate the returned structure.  Do not allocate a subarray,
80976         as x2nrealloc will do that.
80977         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80978         instead of xnrealloc.
80979         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80980
80981 2003-10-27  Bruno Haible  <bruno@clisp.org>
80982
80983         * lib/stdbool_.h: Better support for BeOS.
80984
80985 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80986
80987         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80988         now uses inline.
80989
80990 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80991
80992         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80993         callers that want to do their own size-overflow checking.  Include
80994         <stdbool.h>, since xalloc_oversized returns bool.
80995         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80996         to use xalloc_oversized.
80997
80998         Add two functions x2realloc, x2nrealloc, for programs that grow
80999         arrays dynamically by doubling their sizes.
81000         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81001         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81002         New functions.
81003
81004         Port to C99 semantics for 'inline' of external functions.
81005         Bug reported by Bruno Haible.
81006         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81007         with the old contents of xnmalloc.
81008         (xnmalloc, xmalloc): Use it.
81009         (xnrealloc_inline): New static inline function,
81010         with the old contents of xnrealloc.
81011         (xnrealloc, xrealloc): Use it.
81012
81013         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81014         that.
81015
81016 2003-10-26  Karl Berry  <karl@gnu.org>
81017
81018         * config/srclist.txt (COPYING.DOC): no longer available from
81019         /gd/gnuorg; don't know where the ultimate source is.
81020
81021 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81022
81023         Fix several address-calculation bugs in the hash modules,
81024         plus some minor code cleanup.
81025
81026         * lib/hash.h: Include <stdbool.h>, for bool.
81027         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81028         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81029         hash_get_n_entries, hash_get_max_bucket_length,
81030         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81031         hash_rehash): Use size_t rather than unsigned.
81032         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81033         hash_get_n_buckets_used, hash_get_n_entries,
81034         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81035         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81036         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81037         Likewise.
81038         (SIZE_MAX): Define if not defined.
81039         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81040         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81041         hash_print):
81042         Use const * when possible.
81043         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81044         (check_tuning): Fix bug: if tuning parameters were very close to
81045         0 or 1, rounding errors could have caused subscript violations.
81046         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81047         (hash_initialize): Add 'fail:' label
81048         to free table and return NULL, and use it to simplify code.
81049         Use calloc rather than clearing the storage ourself.
81050         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81051         buffer size calculations.
81052         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81053         Include <stddef.h>, for size_t.
81054         * lib/hash-pjw.c (hash_pjw): Likewise.
81055         Switch to method described by Bruno Haible.
81056         Include <limits.h>, for CHAR_BIT.
81057         (SIZE_BITS): New macro.
81058
81059 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81060
81061         * m4/getline.m4 (AM_FUNC_GETLINE):
81062         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81063         hosts.  Problem reported by Derek Robert Price in
81064         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81065         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81066         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81067
81068 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81069
81070         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81071         ceiling the allocation at NMAX bytes rather than silently
81072         discarding input bytes before NMAX is reached.  This makes
81073         a difference only if NMAX exceeds SIZE_MAX / 2.
81074
81075         * lib/obstack.c: Merge from glibc.
81076         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81077         Add libc_hidden_def (_obstack_newchunk).
81078         (_obstack_free) [! defined _LIBC]: Remove.
81079         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81080         a clone of the function body.
81081         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81082         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81083
81084         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81085         glibc.
81086         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81087         arg to memcpy.
81088
81089         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81090         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81091         Don't use lvalue casts, as GCC plans to remove support for them
81092         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81093         was also present in the non-GCC version, indicating that this
81094         code had always been buggy and had never been widely used.
81095         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81096         Use the fast variant of each macro, rather than copying the
81097         definiens of the fast variant; that way, we'll be more likely to
81098         catch future bugs in the fast variants.
81099
81100 2003-10-20  Bruno Haible  <bruno@clisp.org>
81101
81102         * modules/wait-process: New file.
81103         * MODULES.html.sh (func_all_modules): Add wait-process.
81104
81105 2003-10-20  Bruno Haible  <bruno@clisp.org>
81106
81107         * m4/wait-process.m4: New file.
81108
81109 2003-10-20  Bruno Haible  <bruno@clisp.org>
81110
81111         * lib/wait-process.h: New file, from GNU gettext.
81112         * lib/wait-process.c: New file, from GNU gettext.
81113
81114 2003-10-19  Jim Meyering  <jim@meyering.net>
81115
81116         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81117         HPUX 10.20.
81118
81119 2003-10-18  Karl Berry  <karl@gnu.org>
81120
81121         * config/config.guess: update from config.
81122
81123 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81124
81125         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81126         (getgroups): First arg is int, not size_t.
81127         Don't let 'free' mangle errno.
81128
81129 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81130
81131         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81132
81133 2003-10-16  Karl Berry  <karl@gnu.org>
81134
81135         * config/config.{guess,sub}: update from config.
81136
81137 2003-10-16  Jim Meyering  <jim@meyering.net>
81138
81139         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81140         memcpy.
81141
81142 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81143
81144         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81145         (SIZE_MAX): Remove.
81146         (new_exclude, add_exclude_file): Initial size no longer needs to
81147         be a power of 2.
81148         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81149         our own address arithmetic overflow checking.
81150
81151         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81152         (fnmatch): Do not alloca more than 2000 wide characters;
81153         instead, use malloc for large buffers.
81154         Check for address arithmetic overflow, and return -1
81155         with errno set to ENOMEM in that case.
81156         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81157         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81158         instead, return -1.  Check for address arithmetic overflow.
81159
81160 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81161
81162         Handle invalid suffixes and overflow independently, so that
81163         callers can treat them independently as needed.  Fix some bugs in
81164         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81165         suffix for a human-readable blocksize.  The major caller-visible
81166         change is the addition of a new
81167         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81168         that both overflow and suffix chars were found.
81169
81170         * lib/human.c (humblock): Don't check separately for invalid suffix
81171         char; that is xstrtoumax's job (now that its bug is fixed).
81172         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81173         INTMAX_MAX]: New macros.
81174         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81175         TYPE_MAXIMUM): New macros.
81176         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81177         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81178         if overflow occurs, as it's what __strtol does and it's more useful
81179         in practice.
81180         (__xstrtol): If __strtol reports some error other than ERANGE,
81181         reflect it to the caller as LONGINT_INVALID.  If it reports
81182         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81183         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81184         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81185         value.
81186         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81187         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81188         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81189         [defined UINTMAX_MAX]: New macros.
81190
81191 2003-10-14  Bruno Haible  <bruno@clisp.org>
81192
81193         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81194
81195 2003-10-14  Bruno Haible  <bruno@clisp.org>
81196
81197         * m4/sig_atomic_t: New file, from GNU gettext.
81198         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81199
81200 2003-10-14  Bruno Haible  <bruno@clisp.org>
81201
81202         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81203         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81204         Also use volatile where needed.
81205
81206 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81207
81208         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81209         Change maintainer from Bruno Haible to 'all'.
81210
81211 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81212
81213         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81214
81215 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81216
81217         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81218         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81219         and define in terms of the other primitives.
81220         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81221         (SIZE_MAX): Define if not already defined.
81222         (array_size_overflow): New function.
81223         (xalloc_die): Abort instead of exiting if 'error' returns.
81224         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81225         (xmalloc, xrealloc): Use them.
81226         (xcalloc): Check for address arithmetic overflow.
81227         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81228         a bit faster than strcpy.
81229
81230 2003-10-10  Simon Josefsson  <jas@extundo.com>
81231
81232         * modules/argp (Depends-on): Add restrict and strcase.
81233
81234 2003-10-10  Simon Josefsson  <jas@extundo.com>
81235
81236         * m4/argp.m4: Add AC_C_INLINE.
81237
81238 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81239
81240         Merge getpass from libc, plus a few fixes.
81241
81242         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81243         Include <stdbool.h>.
81244         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81245         __fsetlocking to empty.
81246         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81247         do include <bits/libc-lock.h>.
81248         Do not include <fcntl.h>; not needed.
81249         [_LIBC]: Include <wchar.h>.
81250         (NOTCANCEL_MODE): New macro.
81251         (flockfile, funlockfile) [_LIBC]: New macros.
81252         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81253         [!_LIBC]: New macros.
81254         (call_fclose): New function.
81255         (getpass): Use it.  Save tty stream separately; this simplifies the
81256         code and makes it more reliable if stdin happens to equal stdout.
81257         Invoke __fsetlocking on tty.
81258         Handle thread cancellation if needed.
81259         Namespace cleanup (use __tcgetattr, __getline).
81260         Use bool for Booleans.
81261         [USE_IN_LIBIO]: Handle wide streams.
81262         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81263         stream might go where.
81264
81265         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81266         doesn't have to include <stdio.h> before us.
81267         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81268         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81269         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81270         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81271         if not declared, so that we can use getpass.c code from libc without
81272         rewriting it.
81273         (flockfile, ftrylockfile, funlockfile): New macros.
81274
81275 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81276
81277         * modules/getpass: Depend on stdbool.
81278
81279 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81280
81281         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81282
81283 2003-10-07  Karl Berry  <karl@gnu.org>
81284
81285         * config/config.{guess,sub}: update from config.
81286
81287 2003-10-06  Jim Meyering  <jim@meyering.net>
81288             Bruno Haible  <bruno@clisp.org>
81289
81290         This lets translators provide better translations for the
81291         "Written by ..." part of --version output.
81292         * lib/version-etc.h: Include stdarg.h.
81293         (version_etc_copyright): Declare as readonly.
81294         (version_etc): Make this function variadic with a NULL-terminated list
81295         of author name strings.
81296         (version_etc_va): New declaration.
81297         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81298         (version_etc_copyright): Declare as readonly.
81299         (version_etc_va): New function. Provide a different translatable string
81300         for each possible number of authors < 10. Abbreviate when there are 10
81301         authors or more.
81302         (version_etc): Make this function variadic. Call version_etc_va.
81303         Suggestion from Gary V. Vaughan.
81304
81305         * lib/long-options.h (parse_long_options): Change prototype: the
81306         authors string is moved to the end and becomes variadic.
81307         * lib/long-options.c: Include stdarg.h.
81308         (parse_long_options): Make this function variadic, too.
81309         Call version_etc_va, not version_etc.
81310
81311 2003-10-06  Bruno Haible  <bruno@clisp.org>
81312
81313         * modules/version-etc-2: Remove file.
81314         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81315
81316 2003-10-06  Bruno Haible  <bruno@clisp.org>
81317
81318         * modules/fatal-signal: New file.
81319         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81320
81321 2003-10-06  Bruno Haible  <bruno@clisp.org>
81322
81323         * m4/fatal-signal.m4: New file.
81324         * m4/signalblocking.m4: New file, from GNU gettext.
81325
81326 2003-10-06  Bruno Haible  <bruno@clisp.org>
81327
81328         * lib/version-etc-2.h: Remove file.
81329         * lib/version-etc-2.c: Remove file.
81330
81331 2003-10-06  Bruno Haible  <bruno@clisp.org>
81332
81333         * lib/fatal-signal.h: New file, from GNU gettext.
81334         * lib/fatal-signal.c: New file, from GNU gettext.
81335
81336 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81337
81338         * README: Rework advice for preventing empty .o files.
81339         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81340         not <sys/types.h>.
81341
81342 2003-10-04  Karl Berry  <karl@gnu.org>
81343
81344         * lib/argp*: update from libc.
81345
81346 2003-10-04  Karl Berry  <karl@gnu.org>
81347
81348         * config/config.{guess,sub}: update from config.
81349
81350 2003-10-02  Bruno Haible  <bruno@clisp.org>
81351
81352         * modules/lchown (Include): Add lchown.h.
81353         * modules/time_r (Include): Use "..." syntax.
81354         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81355
81356 2003-10-01  Simon Josefsson  <jas@extundo.com>
81357
81358         * MODULES.html.sh (func_all_modules): Move gethostname from section
81359         'based on' to section 'lacking' POSIX:2001.
81360
81361 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81362
81363         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81364         to output mode on the same stream.
81365
81366 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81367
81368         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81369         Fix arg typo in previous patch.
81370
81371 2003-09-28  Jim Meyering  <jim@meyering.net>
81372
81373         * lib/error.c: Correct cpp indentation.
81374
81375 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81376
81377         * modules/free: New file.
81378
81379 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81380
81381         * m4/free.m4: New file.
81382
81383 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81384
81385         * lib/minmax.h (MIN, MAX)
81386         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81387         Omit the special code that used __typeof__, since we worry that
81388         it could be more trouble than it's worth.  See:
81389         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81390         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81391
81392         * lib/free.c: New file.
81393
81394 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81395
81396         Trivial fixes to Makefile.am parts of module listings.
81397         * modules/strstr: Append strstr.h to lib_SOURCES.
81398         * modules/strcase: Likewise, for strcase.h.
81399
81400 2003-09-27  Karl Berry  <karl@gnu.org>
81401
81402         * config/mkinstalldirs: update from automake.
81403
81404 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81405
81406         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81407         (error_tail): Do not loop, reallocating temporary buffer, since
81408         the output cannot contain more wide characters than the input
81409         contains bytes, the size must be big enough already.  This avoids
81410         one potential size overflow calculation.  Check for size overflow
81411         when calculating temporary buffer size.  Free temporary buffer
81412         when done, if it was allocated with malloc; this plugs a memory
81413         leak.  Remove casts from void * to pointers, that are no longer
81414         needed now that we're assuming C89 or better.
81415
81416         Merge error changes from glibc.
81417
81418         * lib/error.c, error.h: Update copyright notice header to match glibc.
81419         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81420         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81421         Disable cancellation while printing error.
81422         * lib/error.h: Prepend __ to parameter names.
81423
81424 2003-09-26  Jim Meyering  <jim@meyering.net>
81425
81426         * lib/error.c (error_tail): Move some declarations
81427         into inner scope where the local variables are used.
81428
81429 2003-09-26  Bruno Haible  <bruno@clisp.org>
81430
81431         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81432         stpncpy().
81433         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81434
81435 2003-09-26  Bruno Haible  <bruno@clisp.org>
81436
81437         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81438         (stpncpy): Define as alias for gnu_stpncpy.
81439         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81440
81441 2003-09-25  Simon Josefsson  <jas@extundo.com>
81442
81443         * lib/xgetdomainname.h: New file.
81444         * lib/xgetdomainname.c: New file.
81445
81446 2003-09-25  Simon Josefsson  <jas@extundo.com>
81447             Bruno Haible  <bruno@clisp.org>
81448
81449         * modules/getdomainname: New file.
81450         * modules/xgetdomainname: New file.
81451         * MODULES.html.sh (func_all_modules): Add getdomainname,
81452         xgetdomainname.
81453
81454 2003-09-25  Simon Josefsson  <jas@extundo.com>
81455             Bruno Haible  <bruno@clisp.org>
81456
81457         * m4/getdomainname.m4: New file.
81458
81459 2003-09-25  Simon Josefsson  <jas@extundo.com>
81460             Bruno Haible  <bruno@clisp.org>
81461
81462         * lib/getdomainname.h: New file.
81463         * lib/getdomainname.c: New file.
81464
81465 2003-09-25  Karl Berry  <karl@gnu.org>
81466
81467         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81468
81469 2003-09-25  Karl Berry  <karl@gnu.org>
81470
81471         * config/install-sh: update from automake.
81472
81473 2003-09-25  Bruno Haible  <bruno@clisp.org>
81474
81475         * modules/version-etc-2: New file, from modules/version-etc with
81476         modifications.
81477         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81478
81479 2003-09-25  Bruno Haible  <bruno@clisp.org>
81480
81481         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81482         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81483
81484 2003-09-24  Simon Josefsson  <jas@extundo.com>
81485
81486         * modules/xgethostname: Add xgethostname.h.
81487
81488 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81489
81490         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81491         the buffer associated with the argument.  Bug reported by
81492         Simon Josefsson.
81493
81494 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81495
81496         * README: Document assumptions that 'int' is at least 32 bits
81497         wide, that integer arithmetic is 2's complement without overflow,
81498         that there are no holes in integer values, that adding sizes of
81499         two nonoverlapping objects can't overflow, and that all-bits-zero
81500         yields scalar zero.  Fix spelling and capitalization typos.
81501
81502 2003-09-19  Karl Berry  <karl@gnu.org>
81503
81504         * lib/argp.h: update from libc.
81505
81506 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81507
81508         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81509         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81510         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81511
81512 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81513
81514         * gnulib-tool: Use "test -h", not "test -L", for portability
81515         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81516         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81517         (sed_extract_prog): Issue s commands one-by-one, rather than
81518         using \| in one s command.
81519
81520 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81521
81522         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81523         input error, instead of returning NULL the next time we are called
81524         (and therefore losing track of errno).
81525
81526 2003-09-16  Bruno Haible  <bruno@clisp.org>
81527
81528         * gnulib-tool (func_create_testdir): Warn about duplicated
81529         dependencies.
81530
81531 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81532
81533         * modules/argmatch, modules/fatal, modules/obstack,
81534         modules/xalloc, modules/xgethostname: Sort dependencies by
81535         importance, not alphabetically.
81536
81537 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81538
81539         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81540         fails, so that the caller gets the proper errno.
81541
81542         * lib/readutmp.c (read_utmp): Likewise.
81543         Check for fstat error.  Close stream and free storage
81544         when failing.
81545
81546 2003-09-14  Karl Berry  <karl@gnu.org>
81547
81548         * config/srclist.txt (strdup.c): disable for c89 changes.
81549
81550 2003-09-14  Jim Meyering  <jim@meyering.net>
81551
81552         * lib/getloadavg.c: Correct cpp indentation.
81553         * lib/strdup.c: Likewise.
81554         * lib/vasnprintf.c: Likewise.
81555
81556 2003-09-14  Bruno Haible  <bruno@clisp.org>
81557
81558         * modules/fwriteerror: New file.
81559         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81560
81561 2003-09-14  Bruno Haible  <bruno@clisp.org>
81562
81563         * lib/fwriteerror.h: New file.
81564         * lib/fwriteerror.c: New file.
81565
81566 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81567
81568         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81569         modules/xgethostname, modules/xalloc: Depend on exit.
81570
81571 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81572
81573         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81574
81575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81576         and AC_MINIX, too, so that their extensions are available.
81577
81578         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81579         This macro has been superseded by gl_BACKUPFILE.
81580
81581         More patches to assume C89 or better.
81582
81583         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81584
81585         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81586         unconditionally.
81587         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81588         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81589         Include <string.h>, <stdlib.h> unconditionally.
81590         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81591         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81592         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81593         headers or for string.h.
81594         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81595         or strtoul.
81596
81597         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81598         headers.
81599         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81600         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81601         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81602         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81603         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81604         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81605         memcpy, memset.
81606         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81607         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81608         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81609         strtol.
81610         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81611         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81612         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81613         strtoul.
81614
81615 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81616
81617         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81618         * lib/obstack.c [!defined _LIBC]: Likewise.
81619         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81620         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81621         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81622
81623         More changes to assume C89 or better.
81624
81625         * lib/error.c (error_tail): Assume vprintf.
81626
81627         * lib/argmatch.c (getenv): Remove decl.
81628         * lib/progreloc.c (get_full_program_name): Define via prototype.
81629         * lib/setenv.c (clearenv): Likewise.
81630         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81631         needed.
81632         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81633         (malloc, memcpy): Remove decls.
81634         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81635         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81636         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81637         (memcpy): Remove macro.
81638         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81639         (__P): Remove.  All uses removed.
81640         (PTR): Remove.  All uses changed to void *.
81641         (CHAR_BIT, NULL): Remove.
81642         (spaces, zeros, memset_space, memset_zero)
81643         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81644         Remove.
81645         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81646         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81647         Define with prototype.
81648         Remove now-unnecessary prototype decl.
81649         (extra_args_spec): Assume ANSI C.  All uses changed.
81650         (extra_args_spec_iso): Remove.
81651         (my_strftime, emacs_strftimeu): Define via prototype.
81652         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81653         unconditionally.
81654         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81655         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81656         (strtoul, strtol): Remove decls.
81657         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81658         LONG_MAX): Remove.
81659         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81660         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81661         (LOCALE_PARAM_PROTO): New macro.
81662         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81663         (INTERNAL (strtol), strtol): Define with a prototype.
81664         (PARAMS): Remove.  All uses removed.
81665         * lib/tempname.c: Include <string.h> unconditionally.
81666         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81667         * lib/xgethostname.c (main): Define with a prototype.
81668         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81669         Include <stdlib.h> unconditionally.
81670         (calloc, malloc, realloc, free): Remove decls.
81671         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81672         Include <stdlib.h> unconditionally.  Sort include file names.
81673         (strtod): Remove.
81674         (xstrtod): Define with a prototype.
81675         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81676         (strtol, strtoul): Remove decls.
81677
81678 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81679
81680         More patches to assume C89 or better.
81681         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81682         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81683         string.h, memchr, STDC_HEADERS.
81684
81685 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81686
81687         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81688         Include <stdlib.h>, <string.h> unconditionally.
81689         Remove now-unnecessary cast to char *.
81690         * lib/strnlen.c: Include <string.h> unconditionally.
81691         * lib/yesno.c (yesno): Define with a prototype.
81692
81693 2003-09-11  Bruno Haible  <bruno@clisp.org>
81694
81695         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81696
81697 2003-09-10  Jim Meyering  <jim@meyering.net>
81698
81699         * lib/error.c: Correct indentation of cpp directives.
81700
81701 2003-09-10  Bruno Haible  <bruno@clisp.org>
81702
81703         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81704         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81705         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81706         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81707         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81708         <stdlib.h> and <string.h> checks.
81709         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81710         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81711
81712 2003-09-10  Bruno Haible  <bruno@clisp.org>
81713
81714         * lib/strcspn.c: Include <string.h> unconditionally.
81715         * lib/strpbrk.c: Include <string.h> unconditionally.
81716         * lib/strstr.c: Include <string.h> unconditionally.
81717         * lib/unicodeio.c: Include <string.h> unconditionally.
81718         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81719         * lib/unsetenv.c: Likewise.
81720         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81721         * lib/yesno.c: Include <stdlib.h> unconditionally.
81722         (rpmatch): Add prototype.
81723
81724 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81725
81726         More patches to assume C89 or better.
81727         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81728         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81729         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81730         or for string.h.
81731         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81732         stdlib.h.
81733         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81734         C headers.
81735         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81736         string.h.
81737         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81738         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81739         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81740         or for string.h.
81741         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81742         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81743         C headers.
81744         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81745         memcpy.
81746         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81747         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81748         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81749         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81750         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81751         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81752         string.h, free.
81753         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81754         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81755         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81756         C headers, or for string.h.
81757         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81758         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81759         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81760         headers, memory.h, stdlib.h, string.h, strings.h.
81761         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81762         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81763         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81764         strchr.
81765         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81766         headers, memory.h, string.h.
81767         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81768         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81769         free.
81770         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81771         headers.
81772         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81773         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81774         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81775         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81776         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81777
81778 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81779
81780         More K&R removal.
81781
81782         * lib/acosl.c (main): Use a prototype.
81783         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81784         tanl.c: Likewise.
81785
81786         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81787
81788         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81789         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81790         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81791         with a prototype.
81792         * lib/getopt.c (const): Remove macro.
81793         Include <string.h> unconditionally.
81794         (my_index): Remove; all uses changed to strchr.
81795         (strlen): Remove decl.
81796         (exchange): Remove forward decl; no longer needed.
81797         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81798         Define with prototype.
81799         * lib/getopt1.c (const): Remove macro.
81800         (getopt_long, getopt_long_only, main): Define with prototype.
81801
81802         * lib/getugroups.c: Include <string.h> unconditionally.
81803
81804         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81805         (getusershell, setusershell, endusershell, readname, main):
81806         Define with prototypes.
81807
81808         * lib/group-member.c: Include group-member.h first.
81809         Include <stdlib.h> unconditionally.
81810
81811         * lib/hard-locale.c: Include hard-locale.h first.
81812         Include <stdlib.h>, <string.h> unconditionally.
81813
81814         * lib/hash.c (free, malloc): Remove decls.
81815         Include <stdlib.h> unconditionally.
81816
81817         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81818         (getenv): Do not declare.
81819
81820         * lib/idcache.c: Include <string.h> unconditionally.
81821
81822         * lib/long-options.c: Include long-options.h first, to test interface.
81823         Include <stdlib.h> unconditionally.
81824
81825         * lib/makepath.c: Include makepath.h first, to test interface.
81826         Include <stdlib.h> and <string.h> unconditionally.
81827
81828         * lib/linebuffer.c: Include <stdlib.h>.
81829         (free): Remove decl.
81830
81831         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81832         stddef.h. rpl_malloc returns void *, not char *.
81833         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81834         prototype.
81835
81836         * lib/md5.h: Include <limits.h> unconditionally.
81837         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81838         (__P): Remove; all uses removed.
81839         * lib/md5.c: Include "md5.h" first.
81840         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81841         md5_buffer, md5_process_bytes, md5_process_block):
81842         Define with prototypes.
81843         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81844         * lib/sha.c: Include "sha.h" first.
81845         Include <stdlib.h>, <string.h> unconditionally.
81846
81847         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81848         * lib/memcmp.c (__ptr_t): Likewise.
81849         * lib/memrchr.c (__ptr_t): Likewise.
81850         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81851         Include <string.h> unconditionally.
81852         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81853         * lib/memchr.c: Include <stdlib.h> unconditionally.
81854         * lib/memchr.c (LONG_MAX): Remove.
81855         * lib/memrchr.c (LONG_MAX): Likewise.
81856         * lib/memchr.c (__memchr): Define via a prototype.
81857         * lib/memrchr.c (__memrchr): Likewise.
81858         * lib/memcmp.c (__P): Remove, and remove all uses.
81859         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81860         Remove forward decls; no longer needed.
81861         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81862         Use types required by C89 in prototype.
81863
81864         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81865         * lib/savedir.c: Likewise.
81866         * lib/mkdir.c (free): Remove decl.
81867         * lib/rmdir.c (rmdir): Define with a prototype.
81868         * lib/savedir.c: Include savedir.h first, to test interface.
81869
81870         * lib/mktime.c (STDC_HEADERS): Remove.
81871         Include <stdlib.h>, <string.h> unconditionally.
81872
81873         * lib/modechange.c: Include <stdlib.h> unconditionally.
81874         (malloc): Remove decl.
81875
81876         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81877         (free): Remove decl.
81878
81879         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81880         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81881         (This type really should be intptr_t, but that's a C99ism.)
81882         (_obstack_memcpy): Remove: all uses changed to memcpy.
81883         Include <string.h> unconditionally.
81884         (struct obstack): Assume __STDC__ for types of members
81885         chunkfun, freefun, extra_arg.
81886         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81887         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81888         obstack_begin, obstack_specify_allocation,
81889         obstack_specify_allocation_with_arg, obstack_chunkfun,
81890         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81891         Remove unprototyped decls and the macros that use them.
81892         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81893         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81894         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81895         (defined __STDC__ && __STDC__)]:
81896         Remove nonprototyped code.
81897         Include <stdlib.h> unconditionally.
81898         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81899         _obstack_allocated_p, _obstack_free, obstack_free,
81900         _obstack_memory_used, print_and_abort):
81901         Define using prototypes.
81902         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81903         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81904         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81905         obstack_next_free, obstack_object_size, obstack_room) [0]:
81906         Remove unused, unprototyped code.
81907
81908         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81909
81910         * lib/physmem.c (physmem_total, physmem_available, main): Define
81911         with prototypes.
81912
81913         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81914         (main): Define with a prototype.
81915
81916         * lib/posixver.c (getenv): Remove decl.
81917
81918         * lib/putenv.c (malloc): Returns void *, not char *.
81919         Include <string.h> unconditionally.
81920         (strchr, memcpy, NULL): Do not define.
81921
81922         * lib/readtokens.c: Include readtokens.h first, to test interface.
81923         Include <stdlib.h>, <string.h> unconditionally.
81924         (init_tokenbuffer): Define with a prototype.
81925
81926         * lib/regex.c (PARAMS): Remove.  All uses removed.
81927         All uses of _RE_ARGS removed, too.
81928         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81929         unconditionally.
81930         (bzero): Assume memset exists.
81931         (memcmp, memcpy, NULL): Remove.
81932         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81933         char, or assignments to local vars of type signed char.
81934         (init_syntax_once, PREFIX(extract_number_and_incr),
81935         PREFIX(print_partial_compiled_pattern),
81936         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81937         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81938         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81939         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81940         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81941         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81942         wcs_compile_range, byte_compile_range, truncate_wchar,
81943         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81944         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81945         count_mbs_length, wcs_re_match_2_internal,
81946         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81947         PREFIX(alt_match_null_string_p),
81948         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81949         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81950         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81951         now-unnecessary declaration, if any.
81952         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81953         regcomp, regexec):
81954         Remove now-unnecessary casts among pointer types.
81955         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81956
81957         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81958         (free): Remove decl.
81959
81960         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81961
81962         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81963         (free): Remove decl.
81964
81965         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81966         * lib/xgetcwd.c: Likewise.
81967
81968         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81969         (free): Remove decl.
81970
81971         * lib/strchrnul.c (strchrnul): Define with a prototype.
81972         Fix bug: c_in was not converted to char before searching.
81973
81974         The following changes are not K&R related:
81975
81976         * lib/group-member.h: Include <sys/types.h>, so that this file is
81977         self-contained.
81978         * lib/makepath.h: Likewise.
81979
81980         * lib/getusershell.c (readname, default_index, line_size, readname):
81981         Use size_t, not int, for sizes.
81982         (readname): If the size overflows, report an error instead of
81983         looping forever.
81984
81985 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81986
81987         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81988         libc.
81989
81990 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81991
81992         * README: New section: portability guidelines.
81993
81994 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81995
81996         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81997         C89 spec.
81998
81999 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82000
82001         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82002
82003 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82004
82005         Assume C89 or better; remove K&R cruft.
82006         A few of these changes were first proposed by Derek Robert Price
82007         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82008
82009         * lib/addext.c: Include <string.h> unconditionally.
82010         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82011         Don't declare getenv or malloc.
82012
82013         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82014         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82015         (NULL): Remove.
82016         (find_stack_direction, alloca): Use prototypes.
82017
82018         * lib/atexit.c (atexit): Define using a prototype.
82019
82020         * lib/basename.c, dirname.c, stripslash.c:
82021         Include <string.h> unconditionally.
82022
82023         * lib/bcopy.c: Include <stddef.h>.
82024         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82025
82026         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82027
82028         * lib/error.h (error, error_at_line, error_print_progname)
82029         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82030         * lib/error.c: Include error.h first, to check interface.
82031         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82032         (VA_START): Remove; all uses changeed to va_start.
82033         (exit, strerror): Remove decls.
82034         (error_print_progname): Prototype uncondionally.
82035         Don't include <errno.h>; no longer needed.
82036         (private_strerror): Remove.
82037         (error_tail): Always define.
82038         (error, error_at_line): Assume C89 or better; always use prototypes.
82039         * lib/fatal.c: Include "fatal.h" first, to test interface.
82040         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82041         (VA_START): Remove; all uses changed to va_start.
82042         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82043         this case.
82044         (exit): Remove decl.
82045         (fatal): Prototype unconditionally.  Assume va_start works.
82046         Abort at end, to pacify gcc.
82047
82048         * lib/euidaccess.c (main): Define with a prototype.
82049
82050         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82051
82052         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82053
82054         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82055         prototypes.
82056         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82057         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82058         (getenv): Remove decl.
82059         (fnmatch): Define using a prototype.
82060         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82061         (FCT): Define using a prototype.
82062
82063         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82064
82065         * lib/gethostname.c: Include <stddef.h>.
82066         (gethostname): Define with prototype.  Length is size_t, not int.
82067
82068 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82069
82070         Assume C89 or better; remove K&R cruft.
82071         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82072         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82073         string.h, getenv, malloc.
82074         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82075         headers.
82076         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82077         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82078         do not check for strerror.
82079         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82080         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82081         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82082         do not check for doprnt or vprintf.
82083         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82084         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82085
82086 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82087
82088         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82089         getversion.c should have been removed then, but was accidentally
82090         preserved.
82091
82092         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82093         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82094
82095 2003-09-08  Karl Berry  <karl@gnu.org>
82096
82097         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82098                 config, forget about prep.
82099
82100         * config/depcomp, missing: update from automake.
82101
82102 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82103
82104         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82105         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82106
82107 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82108
82109         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82110         copy_tm_result.  Bug reported by Simon Josefsson in
82111         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82112
82113 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82114
82115         * m4/time_r.m4: New file.
82116         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82117         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82118         is. Check for timegm declaration.
82119         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82120         Do not check for gmtime_r.
82121         Replace mktime if __mktime_internal does not exist and if mktime
82122         hasn't been replaced already.
82123
82124 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82125
82126         * lib/time_r.c, lib/time_r.h: New files.
82127
82128         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82129         __localtime_r.
82130         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82131         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82132
82133         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82134         __gmtime_r.
82135         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82136         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82137         Include <time_r.h>.
82138
82139         * lib/timegm.c: Switch to glibc implementation, with the following
82140         changes:
82141         [defined HAVE_CONFIG_H]: Include <config.h>.
82142         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82143         (__mktime_internal) [!defined _LIBC]: New decl.
82144         (__gmtime_r) [!defined _LIBC]: New macro and function.
82145         (timegm): Use a prototype, since gnulib assumes C89.
82146         Do not bother declaring tmp to be const, as it's not really usefu.
82147         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82148         (timegm): Declare only if HAVE_DECL_TIMEGM.
82149
82150 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82151
82152         * MODULES.html.sh (func_all_modules): Add time_r.
82153         * modules/time_r: New file.
82154         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82155         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82156
82157 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82158
82159         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82160         Bug reported by Lute Kamstra in
82161         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82162
82163         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82164         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82165         course with correspondingly smaller numbers for tomorrow and
82166         yesterday.  From Tadayoshi Funaba.  Originally installed into
82167         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82168         coreutils merge?).
82169
82170 2003-08-31  Simon Josefsson  <jas@extundo.com>
82171
82172         * modules/timegm: New file.
82173         * MODULES.html.sh (func_all_modules): Add timegm.
82174
82175 2003-08-31  Simon Josefsson  <jas@extundo.com>
82176
82177         * m4/timegm.m4: New file.
82178
82179 2003-08-31  Simon Josefsson  <jas@extundo.com>
82180
82181         * lib/timegm.h: New file.
82182         * lib/timegm.c: New file.  Based on
82183         wget-1.8.2/src/http.c:mktime_from_utc.
82184
82185 2003-08-31  Karl Berry  <karl@gnu.org>
82186
82187         * lib/argp.h: update from libc.
82188
82189 2003-08-28  Bruno Haible  <bruno@clisp.org>
82190
82191         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82192         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82193         followed by '#define fnmatch fnmatch_posix' gives an error.
82194
82195 2003-08-28  Bruno Haible  <bruno@clisp.org>
82196
82197         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82198         warning on QNX, which defines O_BINARY to 000000.
82199
82200 2003-08-27  Jim Meyering  <jim@meyering.net>
82201
82202         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82203         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82204         would fail after 32.  Reported by Danny Levinson.  Details here:
82205         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82206
82207 2003-08-24  Bruno Haible  <bruno@clisp.org>
82208
82209         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82210         MSVC7 <stdio.h> is included later.
82211
82212 2003-08-22  Simon Josefsson  <jas@extundo.com>
82213
82214         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82215
82216 2003-08-20  Karl Berry  <karl@gnu.org>
82217
82218         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82219
82220 2003-08-20  Bruno Haible  <bruno@clisp.org>
82221
82222         * modules/progname: New file.
82223         * MODULES.html.sh (func_all_modules): Add progname.
82224
82225 2003-08-20  Bruno Haible  <bruno@clisp.org>
82226
82227         * lib/progname.h: New file, from GNU gettext.
82228         * lib/progname.c: New file, from GNU gettext.
82229         * lib/progreloc.c: New file, from GNU gettext.
82230
82231 2003-08-19  Jim Meyering  <jim@meyering.net>
82232
82233         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82234         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82235
82236 2003-08-19  Bruno Haible  <bruno@clisp.org>
82237
82238         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82239         more.
82240
82241 2003-08-19  Bruno Haible  <bruno@clisp.org>
82242
82243         * lib/xstrdup.c: Assume <string.h> exists.
82244
82245 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82246
82247         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82248         in makefile rules.
82249
82250 2003-08-18  Jim Meyering  <jim@meyering.net>
82251
82252         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82253         * m4/lib-ld.m4: Likewise.
82254
82255 2003-08-18  Jim Meyering  <jim@meyering.net>
82256
82257         * lib/setenv.h: Indent nested cpp directive.
82258         * lib/vasnprintf.c: Remove trailing blanks.
82259
82260 2003-08-17  Simon Josefsson  <jas@extundo.com>
82261
82262         * modules/xstrndup: New file.
82263         * MODULES.html.sh (func_all_modules): Add xstrndup.
82264
82265 2003-08-17  Simon Josefsson  <jas@extundo.com>
82266
82267         * modules/argp: Fix autoconf macro name. Add more dependencies.
82268
82269 2003-08-17  Simon Josefsson  <jas@extundo.com>
82270
82271         * m4/xstrndup.m4: New file.
82272
82273 2003-08-17  Simon Josefsson  <jas@extundo.com>
82274
82275         * m4/argp.m4: New file.
82276
82277 2003-08-17  Simon Josefsson  <jas@extundo.com>
82278             Bruno Haible  <bruno@clisp.org>
82279
82280         * lib/xstrndup.h: New file.
82281         * lib/xstrndup.c: New file.
82282
82283 2003-08-17  Bruno Haible  <bruno@clisp.org>
82284
82285         * modules/strndup (Files, Include): Add lib/strndup.h.
82286
82287 2003-08-17  Bruno Haible  <bruno@clisp.org>
82288
82289         * modules/euidaccess (Files): Add lib/euidaccess.h.
82290
82291 2003-08-17  Bruno Haible  <bruno@clisp.org>
82292
82293         * lib/strndup.h: New file.
82294
82295 2003-08-17  Bruno Haible  <bruno@clisp.org>
82296
82297         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82298         like AC_GNU_SOURCE.
82299         * modules/extensions (configure.ac): Comment out the invocation of
82300         gl_USE_SYSTEM_EXTENSIONS.
82301
82302 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82303
82304         Merges from coreutils, etc.
82305         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82306         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82307         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82308         fixing a typo.
82309         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82310         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82311
82312 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82313
82314         Document merge from coreutils.
82315         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82316         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82317         * modules/utime: Add m4/utimes-null.m4.
82318
82319 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82320
82321         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82322         space, undoing this 2003-08-12 change:
82323         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82324
82325 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82326
82327         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82328         strtoul.c from libc, undoing this 2003-08-12 change:
82329         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82330
82331 2003-08-16  Jim Meyering  <jim@meyering.net>
82332
82333         Merges from coreutils.
82334         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82335         prefix.  Adjust cache variables similarly.  Create 500 rather than
82336         just 300 files, to exercise bug on Darwin6.5, too.
82337         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82338         $missing_dir.
82339         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82340         AM_SYS_POSIX_TERMIOS.
82341         Reported by mkc@mathdogs.com.
82342         Also change use of $am_cv_sys_posix_termios
82343         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82344         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82345         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82346         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82347         in /proc/mounts until it finds one with matching device number.  This
82348         is unnecessary when the FILE argument *is* a mount point.  No stat call
82349         is necessary in that case.  So, disable the statvfs-testing code on
82350         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82351         as RedHat bug# 84846.
82352         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82353         to 1MB, so as not to render systems with no stack size limit (e.g.,
82354         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82355         Include <unistd.h>.  On some systems,
82356         it is required for the definition of _SC_PAGESIZE.
82357
82358 2003-08-16  Jim Meyering  <jim@meyering.net>
82359
82360         Merge from coreutils.
82361         * lib/xstrtoimax.c: #else #if -> #elif.
82362         * lib/xstrtoumax.c: Likewise.
82363
82364 2003-08-16  Jim Meyering  <jim@meyering.net>
82365
82366         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82367         * m4/utimes.m4: Removed.
82368         * m4/utimes-null.m4: Renamed from utimes.m4.
82369
82370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82371         to 1MB, so as not to render systems with no stack size limit (e.g.,
82372         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82373         Include <unistd.h>.  On some systems,
82374         it is required for the definition of _SC_PAGESIZE.
82375
82376 2003-08-16  Jim Meyering  <jim@meyering.net>
82377         and Paul Eggert  <eggert@cs.ucla.edu>
82378
82379         Merges from coreutils, etc.
82380
82381         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82382         using the latest version from cvs.  This avoids problems with #line
82383         directives using a vendor (Sun) compiler.
82384         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82385         Don't set GETGROUPS_LIB here; now it's
82386         done via getgroups.m4's wrapper function.
82387         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82388         rather than just in sh-util/configure.in, so that the
82389         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82390         same.
82391         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82392         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82393         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82394         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82395         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82396         Remove code that is now done by the newly-required macros.
82397         Append $(EXEEXT) to DF_PROG.
82398         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82399         Do not invoke or require the following here,
82400         since prereq.m4 or some gnulib .m4 now does this for us:
82401         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82402         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82403         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82404         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82405         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82406         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82407         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82408         AC_FUNC_OBSTACK.
82409         Do not replace the following functions, as this is now the job
82410         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82411         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82412         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82413         atexit getpass, strdup, getpagesize.
82414         Replace 'raise'.
82415         Do not check for the following functions, as this is now the job
82416         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82417         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82418         setregid.
82419         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82420         Check for sys/sysctl.h.
82421         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82422         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82423         of checking for ssize_t ourselves.
82424
82425         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82426         Require every macro that gnulib/modules/* suggests for us.
82427         (jm_PREREQ_ADDEXT): New macro.
82428         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82429         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82430
82431         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82432         (gl_PHYSMEM): Use it.
82433         Also check for `table' function.
82434         Check for new headers and functions.
82435         Add check for sys/sysmp.h.
82436         With suggestions from Kaveh Ghazi.
82437         Ignore headers that are present but cannot be compiled.  This
82438         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82439         C 5.4.
82440
82441 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82442
82443         Document merge from coreutils.
82444         * modules/userspec: Depend on posixver.
82445         * modules/strftime: Depend on tzset.
82446
82447 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82448
82449         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82450         rather than tab, after '#' in shell-script copyright notices.
82451         Suggested by Bruno Haible.
82452
82453 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82454
82455         * config/srclist-update: Use three spaces, rather than tab, after '#'
82456         in shell-script copyright notices.  Suggested by Bruno Haible.
82457         Remove unnecessary parenthesization in regular expression.
82458
82459 2003-08-15  Jim Meyering  <jim@meyering.net>
82460
82461         Merge from coreutils.
82462         * lib/xgethostname.c: Include <stdlib.h>.
82463         (xghostname): Don't exit for anything other than memory-related
82464         failure; just return NULL.
82465         * lib/userspec.c: Include "posixver.h".
82466         (parse_user_spec): Accept `.' as a separator only
82467         in pre-POSIX-200112 mode.
82468         * lib/strtoimax.c: Use #elif rather than #else #if.
82469         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82470         Remove function, now that we can rely on a working tzset function.
82471         [!_LIBC]: Ensure that the required autoconf test has been run.
82472         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82473         Use underlying_strftime for %r.
82474         * lib/sha.c: Merge in some clean-up and optimization changes from
82475         glibc.
82476         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82477         Ensure that it is a multiple of 64.
82478         Rearrange loop exit tests so as to avoid performing an
82479         additional fread after encountering an error or EOF.
82480         * lib/realloc.c: Update copyright date.
82481
82482 2003-08-15  Jim Meyering  <jim@meyering.net>
82483         and Paul Eggert  <eggert@twinsun.com>
82484
82485         Merge from coreutils.
82486         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82487         member but strut utmpx does not.  Needed for AIX 4.3.3.
82488         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82489
82490 2003-08-15  Jim Meyering  <jim@meyering.net>
82491         and Paul Eggert  <eggert@cs.ucla.edu>
82492
82493         Merges from coreutils, etc.
82494         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82495         Require gl_FUNC_TZSET_CLOBBER.
82496         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82497         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82498         members.
82499
82500 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82501
82502         Help the merge from coreutils.
82503         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82504         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82505         * m4/tzset.m4: Use it too.
82506
82507 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82508
82509         * modules/tzset: New file.
82510
82511 2003-08-14  Jim Meyering  <jim@meyering.net>
82512
82513         Merges from coreutils.
82514         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82515         variable names, rather than @FNMATCH_H@.
82516         * modules/alloca: Likewise for $(ALLOCA_H).
82517
82518         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82519         the three copies of the literal target, `fnmatch.h'.
82520         * modules/alloca (alloca.h): Likewise.
82521
82522 2003-08-14  Jim Meyering  <jim@meyering.net>
82523
82524         Merge from coreutils.
82525         * m4/tzset.m4: New file.
82526         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82527         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82528         otherwise, AIX 5.1 systems would end up using the latter.
82529         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82530         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82531         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82532         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82533
82534 2003-08-14  Jim Meyering  <jim@meyering.net>
82535
82536         Merge from coreutils.
82537         * lib/obstack.h: Whitespace changes.
82538         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82539         and xcalloc return values.
82540         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82541         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82542         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82543         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82544         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82545         error from mntctl.
82546         Use mntctl's return value to drive the entry-processing loop, since
82547         we can't rely on the value of the vmt_length member in the last
82548         entry.  On some systems doing so could result in exhausting
82549         virtual memory.  Based in part on a patch from Mike Jetzer.
82550
82551 2003-08-14  Jim Meyering  <jim@meyering.net>
82552         and Paul Eggert  <eggert@twinsun.com>
82553
82554         Merges from coreutils, plus other fixes.
82555         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82556         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82557         for credits and details.  Thanks to Kaveh Ghazi for helping
82558         to keep these files in sync.
82559         (ARRAY_SIZE): Define it.
82560         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82561         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82562         (memcasecmp): Don't assume size_t fits in unsigned int.
82563         Remove casts and duplicate code.
82564         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82565         (memcpy): Remove definition.
82566         Merge in some clean-up and optimization changes from glibc.
82567         [BLOCKSIZE]: Move definition to top of file.
82568         Ensure that it is a multiple of 64.
82569         Rearrange loop exit tests so as to avoid performing an
82570         additional fread after encountering an error or EOF.
82571         * lib/md5.h (md5_uintptr): Define.
82572         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82573         return to the initial working directory.  Preserve errno
82574         for caller.
82575         * lib/idcache.c: Include "xalloc.h".
82576         (xmalloc, xrealloc): Remove decls.
82577         (getuser): Remove casts no longer required in C89.
82578         * lib/human.c: Include stdio.h, for sprintf.
82579         * lib/group-member.c: Include "xalloc.h".
82580         (xmalloc, xrealloc): Remove decls.
82581         (get_group_info): Remove casts no longer required in C89.
82582         * lib/getusershell.c (readname): Remove casts no longer required in
82583         C89.
82584         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82585         * lib/getline.c: Whitespace fix, from coreutils.
82586
82587 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82588
82589         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82590         Check for isascii.
82591
82592         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82593         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82594         Undo previous (whitespace-only) change.
82595
82596 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82597
82598         * lib/exclude.c: Include <ctype.h>
82599         (IN_CTYPE_DOMAIN): New macro.
82600         (is_space): New fn.
82601         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82602         and empty lines.
82603
82604         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82605         Undo previous (whitespace-only) change.
82606
82607 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82608
82609         * config/srclist-update: Change update back to the old behavior,
82610         leaving whitespace alone.  Use one 'sed' command rather than a
82611         pipeline.
82612         (fixlicense): Now a variable, not a function.
82613         (remove_trailing_blanks): Remove.
82614         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82615         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82616         Undo previous (whitespace-only) change.
82617
82618 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82619
82620         Merge from coreutils.
82621         * modules/euidaccess: Add lib_SOURCES, include for new
82622         file euidaccess.h
82623
82624 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82625
82626         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82627         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82628         Normalize leading white space and remove trailing white space.
82629
82630         Merge from coreutils
82631         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82632
82633         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82634         0.12.1.  These files are now being upgraded automatically by
82635         ../config/srclist-update.
82636
82637 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82638
82639         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82640         Normalize leading white space and remove trailing white space.
82641         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82642         notice, as per ../config/srclist-update.
82643
82644         Merge from coreutils.
82645         * lib/euidaccess.h: New file.
82646         * lib/euidaccess.c: Include it.
82647         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82648         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82649         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82650
82651 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82652
82653         * config/srclist-update: Add copyright notice.
82654         (remove_id_lines, remove_trailing_blanks): New constants.
82655         (fixfile): Use them to normalize spacing a bit in copied files.
82656         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82657         Normalize leading white space and remove trailing white space.
82658
82659         * config/texinfo.tex: Sync with texinfo.
82660
82661         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82662         strtoul.c from libc, to merge coreutils whitespace changes.
82663
82664         * config/srclist.txt: Get the following m4 files from gettext:
82665         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82666         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82667         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82668         wint_t.m4.
82669
82670 2003-08-12  Karl Berry  <karl@gnu.org>
82671
82672         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82673         been made.
82674
82675 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82676
82677         * modules/gnu-source, m4/gnu-source.m4:
82678         Remove; we're assuming Autoconf 2.54 or later now.
82679         Suggested by Bruno Haible.
82680         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82681
82682 2003-08-11  Bruno Haible  <bruno@clisp.org>
82683
82684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82685
82686 2003-08-11  Bruno Haible  <bruno@clisp.org>
82687
82688         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82689         (vasnprintf): Use it instead of wcslen.
82690
82691 2003-08-11  Bruno Haible  <bruno@clisp.org>
82692
82693         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82694         value to ensure that _Bool promotes to int. Use #define for _Bool when
82695         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82696
82697 2003-08-10  Karl Berry  <karl@gnu.org>
82698
82699         * lib/regex.h: update from libc (whitespace fix).
82700
82701 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82702
82703         Merge some files from coreutils.  These changes were
82704         originally made by Jim Meyering.
82705         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82706         many older Unixes require this.
82707         * lib/alloca.c (alloca): Remove cast to argument of free;
82708         no longer needed in C89.
82709         * lib/alloca_.h, regex.h: Fix white space to match
82710         what GNU indent does.
82711
82712 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82713
82714         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82715         apparently Emacs's Unicode mode got confused before my 2003-08-05
82716         checkin.
82717
82718 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82719
82720         * m4/extensions.m4: New file.
82721         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82722         Require gl_USE_SYSTEM_EXTENSIONS.
82723         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82724         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82725
82726 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82727
82728         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82729         * modules/extensions, modules/gnu-source: New files.
82730         * modules/timespec, modules/unlocked-io: Depend on extensions.
82731
82732 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82733
82734         * modules/restrict: New file.
82735         * MODULES.html.sh (func_all_modules): Add restrict.
82736         * modules/regex: Depend on restrict.
82737
82738 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82739
82740         * m4/restrict.m4: New file.
82741         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82742
82743 2003-08-07  Bruno Haible  <bruno@clisp.org>
82744
82745         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82746         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82747
82748 2003-08-07  Bruno Haible  <bruno@clisp.org>
82749
82750         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82751         makes the module 'getndelim2' compatible with the module 'getline'.
82752
82753 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82754
82755         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82756         byte with "\201" to avoid glitches when editing that source file
82757         with multi-gnome-terminal.
82758
82759 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82760
82761         * lib/bumpalloc.h: Remove.
82762
82763 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82764
82765         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82766         * modules/bumpalloc: Remove.
82767
82768 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82769
82770         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82771         GNU coding style.
82772
82773         Merge from coreutils.
82774         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82775         1. From glibc.
82776         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82777         from Karl Berry, implemented by Jim Meyering.
82778         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82779         from Dmitry V. Levin.
82780         Remove anachronistic cast of xrealloc.
82781         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82782         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82783         type. Otherwise, it wouldn't compile with at least /bin/cc on
82784         ymp-cray-unicos9.0.2.X.
82785         Combine two mostly-identical uses of alloca into one.
82786         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82787
82788 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82789
82790         [From Emacs.]
82791
82792         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82793         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82794         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82795         obsolete NLIST_NAME_UNION.
82796         [__GNU__]: Undef BSD and FSCALE.
82797         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82798
82799 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82800
82801         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82802         an enum type, so that it's guaranteed to promote to int.  See:
82803         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82804
82805 2003-08-03  Karl Berry  <karl@gnu.org>
82806
82807         * config/depcomp: update from automake.
82808
82809 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82810
82811         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82812         (strerror): Don't assume that a printable int fits in 14 bytes.
82813
82814 2003-07-31  Bruno Haible  <bruno@clisp.org>
82815
82816         * modules/getpass-gnu: New file.
82817         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82818
82819 2003-07-31  Bruno Haible  <bruno@clisp.org>
82820
82821         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82822
82823 2003-07-24  Karl Berry  <karl@gnu.org>
82824
82825         * config/missing: update from automake.
82826
82827 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82828             Bruno Haible  <bruno@clisp.org>
82829
82830         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82831         * lib/getline.c (getline, getdelim): Likewise.
82832         Remove _GNU_SOURCE define; now it's defined in config.h through
82833         m4/getline.m4.
82834
82835 2003-07-23  Karl Berry  <karl@gnu.org>
82836
82837         * config/config.sub: update from prep.
82838
82839 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82840
82841         * modules/xalloc (Depends-on): Add exitfail.
82842         * modules/xmemcoll: Likewise.
82843
82844 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82845
82846         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82847         over-parenthesization in macros.
82848
82849         Sync with coreutils.
82850
82851         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82852         required by C99.
82853
82854         Use `exit_failure' for xalloc and xmemcoll instead of their own
82855         private exit-failure variables.
82856         * lib/xalloc.h (xalloc_exit_failure): Remove.
82857         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82858         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82859         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82860         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82861         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82862
82863 2003-07-20  Jim Meyering  <jim@meyering.net>
82864
82865         * modules/closeout (Depends-on): Add exitfail.
82866         Suggestion from Bruno Haible.
82867
82868 2003-07-19  Karl Berry  <karl@gnu.org>
82869
82870         * config/config.sub: update from prep.
82871
82872 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82873
82874         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82875         Remove.
82876         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82877         to test that it can stand by itself.  Include "exitfail.h".
82878         Clients should set exit_failure instead.
82879         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82880
82881 2003-07-18  Bruno Haible  <bruno@clisp.org>
82882
82883         * modules/getndelim2: New file.
82884         * modules/getline: Share files with module getndelim2.
82885         * modules/getnline: Depend on getndelim2 instead of sharing files with
82886         it. Add getnline.c to lib_SOURCES.
82887         * MODULES.html.sh (func_all_modules): Add getndelim2.
82888
82889 2003-07-18  Bruno Haible  <bruno@clisp.org>
82890
82891         * m4/getndelim2.m4: New file.
82892         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82893         invoke gl_PREREQ_GETNDELIM2.
82894         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82895         gl_PREREQ_GETNDELIM2.
82896         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82897         gl_GETNDELIM2.
82898
82899 2003-07-18  Bruno Haible  <bruno@clisp.org>
82900
82901         * lib/getndelim2.h: New file.
82902         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82903         getndelim2.h.
82904         (getndelim2): Make non-static. Change return type to ssize_t.
82905         * lib/getline.h: Change argument names.
82906         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82907         * lib/getnline.c: Include getndelim2.h.
82908
82909 2003-07-18  Andreas Schwab  <schwab@suse.de>
82910
82911         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82912
82913 2003-07-17  Karl Berry  <karl@gnu.org>
82914
82915         * config/config.sub: update from prep.
82916
82917 2003-07-17  Bruno Haible  <bruno@clisp.org>
82918
82919         * modules/getnline: New file.
82920         * modules/getline: Add lib/getndelim2.c to source file list.
82921         * MODULES.html.sh (func_all_modules): Add getnline.
82922
82923 2003-07-17  Bruno Haible  <bruno@clisp.org>
82924
82925         * m4/getnline.m4: New file.
82926
82927 2003-07-17  Bruno Haible  <bruno@clisp.org>
82928
82929         * m4/Makefile.am.in: Remove file.
82930         * m4/Makefile.am: Remove file.
82931         * m4/Makefile.in: Remove file.
82932
82933 2003-07-17  Bruno Haible  <bruno@clisp.org>
82934
82935         * lib/getnline.h: New file.
82936         * lib/getnline.c: New file.
82937         * lib/getndelim2.c: New file, extracted from getline.c.
82938         (getndelim2): Renamed from getdelim2, with added nmax argument.
82939         * lib/getline.c: Include getndelim2.c.
82940         (getdelim2): Moved out to getndelim2.c.
82941         (getline, getdelim): Update.
82942
82943 2003-07-17  Bruno Haible  <bruno@clisp.org>
82944
82945         * lib/Makefile.am: Remove file.
82946         * lib/Makefile.in: Remove file.
82947
82948 2003-07-17  Bruno Haible  <bruno@clisp.org>
82949
82950         * configure.in: Remove file.
82951         * Makefile.in: Remove file.
82952
82953 2003-07-17  Bruno Haible  <bruno@clisp.org>
82954
82955         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82956
82957 2003-07-16  Karl Berry  <karl@gnu.org>
82958
82959         * config/srclist-update: was running fixlicense twice, which caused
82960                 texinfo.tex to be nullified for some reason.  Simplify,
82961                 $gplsrc is no longer needed as far as I can see?
82962
82963 2003-07-16  Jim Meyering  <jim@meyering.net>
82964
82965         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82966
82967 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82968
82969         * config/srclist.txt: Get the following files from gettext-runtime/intl
82970         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82971         ref-del.sin.  From Bruno Haible.
82972         * config/srclist-update (fixfile): Change grep pattern again, since the
82973         previous fix didn't work (there was another trailing $).  Use
82974         '[$]' to escape the $s.
82975
82976 2003-07-15  Karl Berry  <karl@gnu.org>
82977
82978         * lib/vasnprintf.c: update from gettext.
82979
82980 2003-07-15  Karl Berry  <karl@gnu.org>
82981
82982         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82983         gets expanded when surrounded by '$'.
82984
82985 2003-07-15  Jim Meyering  <jim@meyering.net>
82986
82987         * modules/save-cwd: Don't depend on error.  From Derek Price.
82988
82989 2003-07-15  Jim Meyering  <jim@meyering.net>
82990
82991         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82992
82993 2003-07-14  Simon Josefsson  <jas@extundo.com>
82994
82995         * modules/mempcpy: New file.
82996         * MODULES.html.sh (func_all_modules): Add mempcpy.
82997
82998 2003-07-14  Simon Josefsson  <jas@extundo.com>
82999
83000         * m4/mempcpy.m4: New file.
83001
83002 2003-07-14  Simon Josefsson  <jas@extundo.com>
83003
83004         * lib/mempcpy.h: New file.
83005         * lib/mempcpy.c: New file.
83006
83007 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83008
83009         * modules/getdate, modules/posixtm: Depend on mktime.
83010
83011 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83012
83013         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83014         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83015         unicodeio.c, unicodeio.h, unlocked-io.h:
83016         Switch from LGPL to GPL.
83017
83018 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83019
83020         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83021         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83022         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83023         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83024         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83025         updated automatically by ../config/srclist-update.  This changes
83026         their license from LPGL to GPL.
83027
83028 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83029
83030         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83031         assumed to refer to the root of the most recent stable gettext version.
83032         * config/srclistvars.sh: Add defaults for eggert.
83033         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83034         Match "This program" as well as "The program".  This is needed
83035         for gettext.
83036
83037 2003-07-14  Jim Meyering  <jim@meyering.net>
83038
83039         Don't emit diagnostics.  Let callers do that.
83040         * lib/save-cwd.c: Don't include "error.h".
83041         (save_cwd): Don't call error.  Ensure that errno is valid
83042         when returning nonzero.
83043
83044         * lib/save-cwd.h (restore_cwd): Update prototype.
83045         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83046         Simplify.  Don't call error upon failure.  Let callers do that.
83047         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83048         when auditing is enabled.  But don't bother updating the #if.
83049
83050 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83051
83052         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83053         it breaks C++ compilation.
83054         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83055
83056 2003-07-10  Simon Josefsson  <jas@extundo.com>
83057
83058         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83059
83060 2003-07-10  Jim Meyering  <jim@meyering.net>
83061
83062         * m4/clock_time.m4: Remove trailing blank.
83063         * m4/intmax_t.m4: Likewise.
83064
83065 2003-07-10  Jim Meyering  <jim@meyering.net>
83066
83067         * lib/vasnprintf.c: Remove trailing blanks.
83068         Make cpp indentation consistent.
83069
83070 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83071
83072         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83073         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83074         Switch from LGPL to GPL.
83075
83076 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83077
83078         * config/srclist.txt: Sort sublists.  Add
83079         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83080         that differ from gnulib for one reason or another; we'd like this list
83081         to be smaller but for now let's document what we have.
83082
83083 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83084
83085         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83086         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83087         and sweeter "eval x=$x".
83088         * config/srclist.txt: Get lib/argp* from glibc.
83089
83090 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83091
83092         * lib/mktime.c: Fix some boundary cases and remove need for floating
83093         point.
83094
83095         Issue a compile-time diagnostic if time_t is floating point, or if
83096         two's complement arithmetic is not in effect, or if arithmetic
83097         right shift does not propagate the sign.  These assumptions were
83098         all in the original code but they weren't checked.
83099
83100         (TIME_T_MIDPOINT, verify): New macros.
83101         (__isleap): Remove; it has integer overflow problems.
83102         (leapyear): New function, without those problems.
83103         (ydhms_tm_diff): Remove; splitting into two parts.
83104         (ydhms_diff): New function, containing the arithmetic part of
83105         the old ydhms_tm_diff function.  Issue a compile-time
83106         diagnostic if we are not using C99 integer division.
83107         Avoid casts when possible.
83108         (guess_time_tm): New function, containing the checking part of
83109         the old ydhms_tm_diff function.  Return the new value, rather than
83110         the difference between it and the old.  Accept a new argument T
83111         so that *T specifies the old value.  Check for overflow in the result.
83112
83113         (__mktime_internal): Use a time_t offset, not a long int offset.
83114         This undoes the 2003-06-04 change, which is no longer needed now
83115         that we have better overflow checking.
83116         (localtime_offset): Likewise.
83117
83118         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83119         and long are 64-bit but int is only 32-bit.
83120         (ydhms_diff): Use long int to store year1 and yday1.
83121         Issue a compile-time diagnostic if long int is not wide enough.
83122
83123         (__mktime_internal): Use long int to store adjusted year and yday.
83124         Use plain C rather than preprocessor commands, if that doesn't
83125         affect efficiency.
83126         Check for overflow (and try to repair) after each probe
83127         rather than checking only at the very end.  This avoids some bugs
83128         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83129         does not equal GMT offset at maximum time).
83130         Use integer to check for overflow rather than floating point; this
83131         is more portable to non-IEEE hosts, and is a tad faster.
83132         When we detect that we are oscillating between two values,
83133         don't check whether tm_isdst has the requested value, since
83134         we already know the answer.  When tm_isdst has the wrong value,
83135         use a different heuristic to find the right one, based on the
83136         extreme values actually observed in practice in tz2003a,
83137         rather than the (overly optimistic) "previous 3 calendar quarters".
83138
83139         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83140         "T const" to accommodate glibc style.
83141         (check_result): Use less-confusing report format.  "long" -> "long int.
83142         (main): Likewise.
83143         Don't loop if the iteration overflows time_t.
83144         Allow a negative step in the iteration.
83145
83146 2003-07-06  Karl Berry  <karl@gnu.org>
83147
83148         * config/depcomp: update from automake.
83149         * config/config.sub: update from prep.
83150
83151 2003-07-03  Karl Berry  <karl@gnu.org>
83152
83153         * config/config.guess: update from prep.
83154
83155 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83156
83157         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83158         xreadlink.c now includes it unconditionally.
83159
83160 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83161
83162         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83163         having it depend on HAVE_SYS_TYPES_H.
83164
83165 2003-07-01  Bruno Haible  <bruno@clisp.org>
83166
83167         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83168         <sys/types.h> should be sufficient.
83169         Reported by Paul Eggert.
83170
83171 2003-06-26  Karl Berry  <karl@gnu.org>
83172
83173         * config/depcomp: update from automake.
83174
83175 2003-06-26  Bruno Haible  <bruno@clisp.org>
83176
83177         * modules/human: Depend on module stdbool.
83178
83179 2003-06-25  Bruno Haible  <bruno@clisp.org>
83180
83181         * modules/readlink: New file.
83182         * modules/xreadlink: Depend on it.
83183         * MODULES.html.sh (func_all_modules): Add readlink.
83184
83185 2003-06-25  Bruno Haible  <bruno@clisp.org>
83186
83187         * m4/readlink.m4: New file.
83188
83189 2003-06-25  Bruno Haible  <bruno@clisp.org>
83190
83191         * lib/readlink.c: New file.
83192
83193 2003-06-22  Karl Berry  <karl@gnu.org>
83194
83195         * config/srclist.txt: update mkinstalldirs from automake.
83196         * config/mkinstalldirs: update.
83197
83198 2003-06-22  Bruno Haible  <bruno@clisp.org>
83199
83200         Portability to mingw32.
83201         * m4/ssize_t.m4: New file, from GNU gettext.
83202         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83203         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83204
83205 2003-06-22  Bruno Haible  <bruno@clisp.org>
83206
83207         * modules/safe-read: Add m4/ssize_t.m4.
83208         * modules/xreadlink: Add m4/ssize_t.m4.
83209
83210 2003-06-20  Bruno Haible  <bruno@clisp.org>
83211
83212         Assume C89, so PARAMS isn't needed.
83213         * lib/unicodeio.h (PARAMS): Remove.
83214         * lib/unicodeio.c: Don't use PARAMS.
83215
83216 2003-06-18  Karl Berry  <karl@gnu.org>
83217
83218         * config/config.{guess,sub}: update from prep.
83219
83220 2003-06-18  Jim Meyering  <jim@meyering.net>
83221
83222         Merge changes from coreutils.
83223         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83224         Remove explicit declarations of xmalloc and realloc.
83225         Include xalloc.h.
83226         (read_utmp): Remove anachronistic cast of xmalloc.
83227
83228 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83229
83230         Assume C89, so PARAMS isn't needed.
83231         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83232         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83233         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83234         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83235         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83236         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83237         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83238         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83239         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83240         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83241         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83242         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83243         no longer needed. Anyway, config.h should always be included before any
83244         other file.
83245
83246 2003-06-11  Simon Josefsson  <jas@extundo.com>
83247
83248         * modules/sysexits: New file.
83249         * MODULES.html.sh (func_all_modules): Add sysexits.
83250
83251 2003-06-11  Simon Josefsson  <jas@extundo.com>
83252
83253         * lib/sysexit_.h: New file.
83254
83255 2003-06-11  Derek Price  <derek@ximbiot.com>
83256
83257         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83258         necessary.
83259
83260 2003-06-11  Bruno Haible  <bruno@clisp.org>
83261
83262         * m4/sysexits.m4: New file.
83263
83264 2003-06-10  Simon Josefsson  <jas@extundo.com>
83265
83266         * lib/argp.h: New file, from glibc.
83267         * lib/argp-ba.c: New file, from glibc.
83268         * lib/argp-eexst.c: New file, from glibc.
83269         * lib/argp-fmtstream.c: New file, from glibc.
83270         * lib/argp-fmtstream.h: New file, from glibc.
83271         * lib/argp-fs-xinl.c: New file, from glibc.
83272         * lib/argp-help.c: New file, from glibc.
83273         * lib/argp-namefrob.h: New file, from glibc.
83274         * lib/argp-parse.c: New file, from glibc.
83275         * lib/argp-pv.c: New file, from glibc.
83276         * lib/argp-pvh.c: New file, from glibc.
83277         * lib/argp-xinl.c: New file, from glibc.
83278
83279 2003-06-10  Simon Josefsson  <jas@extundo.com>
83280
83281         * modules/strchrnul: New file.
83282
83283 2003-06-10  Simon Josefsson  <jas@extundo.com>
83284
83285         * modules/argp: New file.
83286
83287 2003-06-10  Simon Josefsson  <jas@extundo.com>
83288
83289         * m4/strchrnul.m4: New file.
83290
83291 2003-06-10  Simon Josefsson  <jas@extundo.com>
83292
83293         * lib/strchrnul.h: New file.
83294         * lib/strchrnul.c: New file.
83295
83296 2003-06-10  Bruno Haible  <bruno@clisp.org>
83297
83298         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83299
83300 2003-06-07  Karl Berry  <karl@gnu.org>
83301
83302         * config/config.{guess,sub}: update from prep.
83303
83304 2003-06-07  Jim Meyering  <jim@meyering.net>
83305
83306         * modules/strtod: Use $(...) notation, not @...@ for
83307         AC_REPLACE'd variables.
83308         * modules/localcharset: Likewise.
83309
83310 2003-06-07  Jim Meyering  <jim@meyering.net>
83311
83312         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83313         in place of my name in the copyright comment.
83314         Remove definition and uses of __P.
83315
83316         From coreutils.
83317         * lib/stat.c: Don't declare xmalloc explicitly.
83318         Instead, include "xalloc.h".
83319         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83320         xrealloc, and xcalloc return values.
83321         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83322         Improve comment.
83323         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83324
83325 2003-06-07  Bruno Haible  <bruno@clisp.org>
83326
83327         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83328         avoid AC_CONFIG_LINKS.
83329         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83330         fnmatch.h, to avoid AC_CONFIG_LINKS.
83331         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83332
83333 2003-06-07  Bruno Haible  <bruno@clisp.org>
83334
83335         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83336         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83337         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83338         directory.
83339         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83340         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83341         directory.
83342
83343 2003-06-06  Jim Meyering  <jim@meyering.net>
83344
83345         Merge from coreutils.
83346         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83347         Consolidate declarations and initializations of *_base* locals.
83348
83349         Merge from coreutils.
83350         This avoids a core dump on systems without GNU putenv,
83351         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83352         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83353         (unsetenv): New static function, from GNU libc.
83354         (rpl_putenv): Use it.
83355
83356         * lib/modechange.c: Remove trailing blanks.
83357
83358         Merge from coreutils.
83359         * lib/fsusage.c: Remove declaration of statfs.
83360         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83361
83362         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83363
83364 2003-06-06  Jim Meyering  <jim@meyering.net>
83365
83366         * lib/stdbool_.h: Renamed from stdbool.h.in.
83367
83368 2003-06-06  Jim Meyering  <jim@meyering.net>
83369             Bruno Haible  <bruno@clisp.org>
83370
83371         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83372         Adjust Makefile.am snippet not to redirect directly to target.
83373         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83374
83375 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83376
83377         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83378         mismatch, look in future quarters as well as past.  This fixes a
83379         bug when processing fall-backwards gaps immediately after a long
83380         period of daylight-saving time.
83381
83382         * lib/mktime.c: Assume freestanding C89 or better.
83383         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83384         (__P): Remove; not used.
83385         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83386         (mktime, not_equal_tm, print_tm, check_result,
83387         main): Use prototypes.  Use const * where appropriate.
83388         (main): Fix typo in testing code that uncovered by above changes.
83389         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83390
83391 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83392
83393         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83394         locale.h, localeconv.  This merges changes from coreutils.
83395
83396         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83397         It can be removed after the next Autoconf is released.
83398         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83399         needed.
83400
83401 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83402
83403         * lib/mktime.c: Fix Debian bug 177940
83404         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83405         (localtime_offset): Now long int, not time_t, because we want it
83406         to be guaranteed to be signed.  All uses changed.
83407         (__mktime_internal): If overflow would occur when adding offset,
83408         don't add it.
83409
83410         Merge 'human' changes from coreutils.  Rewrite to support
83411         locale-specific notations like thousands separators.
83412         * lib/human.c: Simplify authorship notice.
83413         Include human.h immediately after config.h.
83414         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83415         <limits.h>: Do not include, since human.h does.
83416         (SIZE_MAX, UINTMAX_MAX): New macros.
83417         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83418         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83419         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83420         (power_letter): Renamed from suffixes.
83421         (generate_suffix_backwards): Remove.
83422         (adjust_value): Now takes int style (because of human.h changes)
83423         and long double value (for greater precision on some platforms).
83424         (group_number): New function.
83425         (human_readable): Use it.  Use integer options, not enum.
83426         Put the options before the sizes in the arg list.
83427         Support all the new options.
83428         The old human_readable function has been removed;
83429         use inttostr.h instead.
83430         (human_readable, default_block_size, humblock):
83431         Use uintmax_t, not int, for block sizes.
83432         (human_readable_inexact, block_size_types): Remove.
83433         (block_size_opts): New constant.
83434         (human_options): Renamed from human_block_size, with new signature
83435         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83436         * lib/human.h: Add copyright and authorship notice.
83437         Include <limits.h> and <stdbool.h> unconditionally.
83438         (PARAMS): Remove.  All uses removed.
83439         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83440         (enum human_inexact_style): Remove tag; now a nameless enum.
83441         (human_floor, human_ceiling, human_round_to_even): Now have
83442         values 2, 0, 1 rather than -1, 1, 0.
83443         (human_group_digits, human_suppress_point_zero, human_autoscale,
83444         human_base_1024, human_SI, human_B): New constants.
83445         (human_readable_inexact, human_block_size): Remove.
83446         (human_readable): Size args are now uintmax_t, not int.
83447         (human_options): New decl.
83448
83449         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83450         unnecessary now that we assume C89 or better.  This change
83451         imported from coreutils.
83452
83453         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83454         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83455         in the 2003-05-30 sync from glibc.
83456
83457         .h files should stand alone, but we shouldn't include <sys/types.h>
83458         if we can get away with just <stddef.h>.
83459
83460         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83461         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83462         rather than <sys/types.h>, as we merely need size_t.
83463         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83464         to get size_t.
83465         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83466         Include <stdio.h>, to get FILE.
83467         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83468         memcasecmp.h has included <stddef.h> and all we need is size_t.
83469         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83470         our interface, instead of including <sys/types.h>
83471
83472 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83473
83474         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83475         now, as glibc mktime is buggy on non-glibc systems.
83476
83477 2003-06-03  Karl Berry  <karl@gnu.org>
83478
83479         * config/config.sub: update from prep.
83480
83481 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83482
83483         [from coreutils]
83484         Fix some minor time-related bugs with POSIX time arguments.
83485         Some valid time stamps were being rejected (notably -1, and
83486         time stamps before 1900 on 64-bit hosts).  And some invalid
83487         time stamps were being accepted, e.g. September 31.
83488
83489         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83490         that we can return (time_t) -1 successfully.
83491         * lib/posixtm.c: Likewise.
83492         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83493         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83494         (t): Remove static var.
83495         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83496         of static var.  All uses changed.
83497         (year): Do not reject years before 1900; they can occur with
83498         64-bit time_t.
83499         (posix_time_parse): Do not check for out-of-range components;
83500         that is now the caller's responsibility, since our checks were
83501         only approximations.
83502         (posixtime): Use mktime to check for out-of-range components,
83503         since it knows them exactly.
83504         If mktime returns (time_t) -1, check whether an error actually occurred
83505         by invoking localtime on -1.
83506         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83507         posixtime failures better.
83508         Improve the test data (in comments only).
83509
83510 2003-06-02  Karl Berry  <karl@gnu.org>
83511
83512         * config/mkinstalldirs (version): new variable.
83513         (--version): new option.
83514         (usage): improve message.
83515
83516 2003-05-30  Karl Berry  <karl@gnu.org>
83517
83518         * lib/mktime.c: update from libc.
83519
83520 2003-05-30  Bruno Haible  <bruno@clisp.org>
83521
83522         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83523         * config/config.rpath: Upgrade to gettext-0.12.1.
83524
83525 2003-05-30  Bruno Haible  <bruno@clisp.org>
83526
83527         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83528         * m4/nls.m4: New file, from gettext-0.12.1.
83529         * m4/po.m4: New file, from gettext-0.12.1.
83530         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83531
83532 2003-05-30  Bruno Haible  <bruno@clisp.org>
83533
83534         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83535         * lib/localcharset.h: Likewise.
83536         * lib/localcharset.c: Likewise.
83537
83538 2003-05-29  Karl Berry  <karl@gnu.org>
83539
83540         * config/config.rpath: update from gettext.
83541
83542 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83543
83544         Assume the headers required for C89 freestanding compilers.
83545         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83546         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83547         * m4/human.m4 (gl_HUMAN): Likewise.
83548         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83549         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83550         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83551         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83552         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83553         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83554
83555 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83556
83557         Assume the headers required for C89 freestanding compilers.
83558         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83559         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83560         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83561         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83562         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83563         define, since <limits.h> is guaranteed to do that.
83564         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83565         * lib/exclude.c: Include <stdbool.h> unconditionally.
83566         * lib/tempname.c: Include <stddef.h> unconditionally.
83567         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83568         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83569         <stddef.h> does that.
83570         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83571         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83572         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83573         needed.
83574         * lib/xstrtol.c: Likewise.
83575         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83576         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83577
83578         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83579         warnings on some platforms.
83580
83581         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83582         arbitrarily.
83583
83584 2003-05-26  Jim Meyering  <jim@meyering.net>
83585
83586         Merge in a change from coreutils:
83587         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83588         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83589         that condition, rather than `-1' which is slightly misleading.
83590         Change the name of the cache variable to have the gl_ prefix.
83591         Prompted by a patch from Richard Dawe for DJGPP.
83592
83593 2003-05-24  Karl Berry  <karl@gnu.org>
83594
83595         * config/config.guess: update from prep.
83596
83597 2003-05-22  Karl Berry  <karl@gnu.org>
83598
83599         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83600
83601 2003-05-20  Karl Berry  <karl@gnu.org>
83602
83603         * config/config.guess: update from prep.
83604
83605 2003-05-18  Karl Berry  <karl@gnu.org>
83606
83607         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83608         might actually be set by the user.
83609
83610         * config/depcomp, install-sh, mdate-sh: update from automake.
83611
83612 2003-05-17  Bruno Haible  <bruno@clisp.org>
83613
83614         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83615         invalid expansion for AC_EGREP_CPP.
83616         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83617         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83618         Suggested by Akim Demaille <akim@epita.fr> in
83619         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83620
83621 2003-05-12  Jim Meyering  <jim@meyering.net>
83622
83623         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83624         the space-padded-by-default conversion specifiers, %e, %k, %l.
83625
83626 2003-05-12  Bruno Haible  <bruno@clisp.org>
83627
83628         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83629         the string is longer than 4 KB.
83630
83631 2003-05-11  Karl Berry  <karl@gnu.org>
83632
83633         * config/config.{guess,sub}: update from prep.
83634
83635 2003-05-09  Bruno Haible  <bruno@clisp.org>
83636
83637         * modules/error: Add m4/strerror_r.m4 to file list.
83638
83639 2003-05-03  Bruno Haible  <bruno@clisp.org>
83640
83641         Upgrade to Unicode-4.0.
83642         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83643         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83644         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83645         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83646         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83647         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83648         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83649         Change width of U+E0100..U+E01EF from 1 to 0.
83650
83651 2003-04-25  Jim Meyering  <jim@meyering.net>
83652
83653         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83654         of type size_t, not int.
83655
83656 2003-04-25  Bruno Haible  <bruno@clisp.org>
83657
83658         * lib/copy-file.c: Include <stddef.h>, for size_t.
83659
83660 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83661
83662         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83663         code which expansion is under static control.  Patch imported from
83664         Akim Demaille's patch to Bison; see
83665         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83666
83667 2003-04-14  Bruno Haible  <bruno@clisp.org>
83668
83669         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83670
83671 2003-04-11  Jim Meyering  <jim@meyering.net>
83672
83673         Merge changes from Coreutils.
83674
83675         2003-03-22  Jim Meyering  <jim@meyering.net>
83676
83677         * lib/strftime.c (widen): Cast alloca return value to proper type.
83678
83679         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83680
83681         From GNU libc.
83682         * lib/strftime.c (my_strftime): Handle very large width
83683         specifications for numeric values correctly.  Improve checks for
83684         overflow.
83685
83686         2003-01-19  Jim Meyering  <jim@meyering.net>
83687
83688         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83689         definitions.
83690         (nl_get_alt_digit) [! defined my_strftime]: Define.
83691         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83692         _nl_get_alt_digit and _nl_get_walt_digit.
83693
83694         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83695         libc. These changes have no effect outside of _LIBC.
83696
83697 2003-04-10  Bruno Haible  <bruno@clisp.org>
83698
83699         * modules/findprog: New file.
83700         * MODULES.html.sh (func_all_modules): Add it.
83701
83702 2003-04-10  Bruno Haible  <bruno@clisp.org>
83703
83704         * m4/findprog.m4: New file.
83705         * m4/eaccess.m4: New file.
83706
83707 2003-04-10  Bruno Haible  <bruno@clisp.org>
83708
83709         * lib/findprog.h: New file, from GNU gettext.
83710         * lib/findprog.c: New file, from GNU gettext.
83711
83712 2003-04-05  Jim Meyering  <jim@meyering.net>
83713
83714         Merge changes from Coreutils.
83715
83716         * lib/exclude.h (PARAMS): Remove definition and uses.
83717         * lib/exclude.c: Remove uses of `PARAMS'.
83718
83719         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83720         Add test-cases for DOS filenames. Declare program_name.
83721         (main): Set up program_name.  Patch by Rich Dawe.
83722
83723         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83724         error from mntctl.
83725         Use mntctl's return value to drive the entry-processing loop, since
83726         we can't rely on the value of the vmt_length member in the last
83727         entry.  On some systems doing so could result in exhausting
83728         virtual memory.  Based in part on a patch from Mike Jetzer.
83729
83730 2003-04-04  Bruno Haible  <bruno@clisp.org>
83731
83732         * modules/linebreak: New file.
83733         * MODULES.html.sh (func_all_modules): Add it.
83734
83735 2003-04-04  Bruno Haible  <bruno@clisp.org>
83736
83737         * m4/linebreak.m4: New file.
83738
83739 2003-04-04  Bruno Haible  <bruno@clisp.org>
83740
83741         * lib/linebreak.h: New file, from GNU gettext.
83742         * lib/linebreak.c: New file, from GNU gettext with slight
83743         modifications.
83744         * lib/lbrkprop.h: New file, from GNU gettext.
83745
83746 2003-04-03  Bruno Haible  <bruno@clisp.org>
83747
83748         * modules/utf8-ucs4: New file.
83749         * modules/utf16-ucs4: New file.
83750         * modules/ucs4-utf8: New file.
83751         * modules/ucs4-utf16: New file.
83752         * MODULES.html.sh (func_all_modules): Add them.
83753
83754 2003-04-03  Bruno Haible  <bruno@clisp.org>
83755
83756         * m4/utf-ucs4.m4: New file.
83757         * m4/ucs4-utf.m4: New file.
83758
83759 2003-04-03  Bruno Haible  <bruno@clisp.org>
83760
83761         * lib/utf8-ucs4.h: New file, from GNU gettext.
83762         * lib/utf16-ucs4.h: New file, from GNU gettext.
83763         * lib/ucs4-utf8.h: New file, from GNU gettext.
83764         * lib/ucs4-utf16.h: New file, from GNU gettext.
83765
83766 2003-04-02  Bruno Haible  <bruno@clisp.org>
83767
83768         * modules/binary-io: New file.
83769         * MODULES.html.sh (func_all_modules): Add it.
83770
83771 2003-04-02  Bruno Haible  <bruno@clisp.org>
83772
83773         * lib/binary-io.h: New file, from GNU gettext.
83774
83775 2003-04-01  Bruno Haible  <bruno@clisp.org>
83776
83777         * modules/pathname: New file.
83778         * MODULES.html.sh (func_all_modules): Add it.
83779
83780 2003-04-01  Bruno Haible  <bruno@clisp.org>
83781
83782         * lib/pathname.h: New file, from GNU gettext.
83783         * lib/concatpath.c: New file, from GNU gettext.
83784
83785 2003-03-30  Bruno Haible  <bruno@clisp.org>
83786
83787         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83788
83789 2003-03-30  Bruno Haible  <bruno@clisp.org>
83790
83791         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83792         function chown() doesn't exist.
83793
83794 2003-03-28  Bruno Haible  <bruno@clisp.org>
83795
83796         * modules/copy-file: New file.
83797         * MODULES.html.sh (func_all_modules): Add it.
83798
83799 2003-03-28  Bruno Haible  <bruno@clisp.org>
83800
83801         * m4/copy-file.m4: New file.
83802
83803 2003-03-28  Bruno Haible  <bruno@clisp.org>
83804
83805         * lib/copy-file.h: New file, from GNU gettext.
83806         * lib/copy-file.c: New file, from GNU gettext.
83807
83808 2003-03-18  Jim Meyering  <jim@meyering.net>
83809
83810         * lib/quote.c (quote_n): Fix typo in comment.
83811
83812 2003-03-18  Bruno Haible  <bruno@clisp.org>
83813
83814         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83815         checking.
83816         * m4/onceonly_2_57.m4: Likewise.
83817
83818 2003-03-17  Bruno Haible  <bruno@clisp.org>
83819
83820         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83821         (m4_quote): Remove macro.
83822         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83823
83824 2003-03-14  Jim Meyering  <jim@meyering.net>
83825
83826         Merge changes from Coreutils.
83827         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83828         to be const, in order to avoid warnings.
83829         (obstack_room): Likewise.
83830         (obstack_empty_p): Likewise.
83831
83832 2003-03-14  Bruno Haible  <bruno@clisp.org>
83833
83834         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83835         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83836
83837 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83838
83839         Merge changes from Bison.
83840         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83841         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83842         when compiling Bison 1.875's `bitset bset = obstack_alloc
83843         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83844         * lib/hash.c: Include <stdbool.h> unconditionally.
83845
83846 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83847
83848         * m4/onceonly.m4 (m4_quote): New macro.
83849         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83850         Quote AC_FOREACH variable-expansions properly.
83851
83852 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83853
83854         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83855
83856 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83857
83858         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83859         Reported by Bruce Becker; see:
83860         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83861
83862 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83863             Bruno Haible  <bruno@clisp.org>
83864
83865         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83866         Reported by John Hughes, see
83867         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83868
83869 2003-02-20  Bruno Haible  <bruno@clisp.org>
83870
83871         * MODULES.html.sh (func_all_modules): Add poll.
83872
83873 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83874
83875         * modules/poll: New file.
83876
83877 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83878
83879         * lib/poll_.h: New file.
83880         * lib/poll.c: New file.
83881
83882 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83883
83884         * m4/poll.m4: New file.
83885
83886 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83887
83888         * modules/mathl: New file.
83889
83890 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83891
83892         * lib/mathl.h: New file.
83893         * lib/acosl.c: New file.
83894         * lib/asinl.c: New file.
83895         * lib/atanl.c: New file.
83896         * lib/ceill.c: New file.
83897         * lib/cosl.c: New file.
83898         * lib/expl.c: New file.
83899         * lib/floorl.c: New file.
83900         * lib/frexpl.c: New file.
83901         * lib/ldexpl.c: New file.
83902         * lib/logl.c: New file.
83903         * lib/sincosl.c: New file.
83904         * lib/sinl.c: New file.
83905         * lib/sqrtl.c: New file.
83906         * lib/tanl.c: New file.
83907         * lib/trigl.c: New file.
83908         * lib/trigl.h: New file.
83909
83910 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83911
83912         * m4/mathl.m4: New file.
83913
83914 2003-02-18  Bruno Haible  <bruno@clisp.org>
83915
83916         * MODULES.html.sh (func_all_modules): Add mathl.
83917
83918 2003-02-17  Bruno Haible  <bruno@clisp.org>
83919
83920         * modules/mkdtemp: New module.
83921         * MODULES.html.sh (func_all_modules): Add it.
83922
83923 2003-02-17  Bruno Haible  <bruno@clisp.org>
83924
83925         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83926
83927 2003-02-17  Bruno Haible  <bruno@clisp.org>
83928
83929         * lib/mkdtemp.h: New file, from GNU gettext.
83930         * lib/mkdtemp.c: New file, from GNU gettext.
83931
83932 2003-02-02  Jim Meyering  <jim@meyering.net>
83933
83934         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83935         e.g. glibc-2.2.93.
83936
83937 2003-01-31  Bruno Haible  <bruno@clisp.org>
83938
83939         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83940         'rpl_rename'.
83941         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83942         'rpl_strnlen'.
83943         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83944         'rpl_strtod'.
83945         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83946         'rpl_utime'.
83947
83948 2003-01-31  Bruno Haible  <bruno@clisp.org>
83949
83950         * lib/rename.c: #undef rename before defining rpl_rename.
83951         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83952
83953 2003-01-30  Bruno Haible  <bruno@clisp.org>
83954
83955         * modules/vasnprintf, modules/vasprintf: New modules.
83956         * MODULES.html.sh (func_all_modules): Add them.
83957
83958 2003-01-30  Bruno Haible  <bruno@clisp.org>
83959
83960         * m4/signed.m4: New file, from GNU gettext.
83961         * m4/longdouble.m4: New file, from GNU gettext.
83962         * m4/wchar_t.m4: New file, from GNU gettext.
83963         * m4/wint_t.m4: New file, from GNU gettext.
83964         * m4/vasnprintf.m4: New file.
83965         * m4/vasprintf.m4: New file.
83966
83967 2003-01-30  Bruno Haible  <bruno@clisp.org>
83968
83969         * lib/printf-args.h: New file, from GNU gettext.
83970         * lib/printf-args.c: New file, from GNU gettext.
83971         * lib/printf-parse.h: New file, from GNU gettext.
83972         * lib/printf-parse.c: New file, from GNU gettext.
83973         * lib/vasnprintf.h: New file, from GNU gettext.
83974         * lib/vasnprintf.c: New file, from GNU gettext.
83975         * lib/asnprintf.c: New file, from GNU gettext.
83976         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83977         * lib/vasprintf.c: New file, from GNU gettext.
83978         * lib/asprintf.c: New file, from GNU gettext.
83979
83980 2003-01-29  Bruno Haible  <bruno@clisp.org>
83981
83982         * modules/stpncpy: New module.
83983         * MODULES.html.sh (func_all_modules): Add it.
83984
83985 2003-01-29  Bruno Haible  <bruno@clisp.org>
83986
83987         * m4/stpncpy.m4: New file.
83988
83989 2003-01-29  Bruno Haible  <bruno@clisp.org>
83990
83991         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83992         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83993
83994 2003-01-28  Bruno Haible  <bruno@clisp.org>
83995
83996         * modules/c-ctype: New module.
83997         * MODULES.html.sh (func_all_modules): Add it.
83998
83999 2003-01-28  Bruno Haible  <bruno@clisp.org>
84000
84001         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84002         Paul Eggert.
84003         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84004         Paul Eggert.
84005
84006 2003-01-27  Bruno Haible  <bruno@clisp.org>
84007
84008         * modules/xsetenv: New module.
84009         * MODULES.html.sh (func_all_modules): Add it.
84010
84011 2003-01-27  Bruno Haible  <bruno@clisp.org>
84012
84013         * lib/xsetenv.h: New file, from GNU gettext.
84014         * lib/xsetenv.c: New file, from GNU gettext.
84015
84016 2003-01-23  Jim Meyering  <jim@meyering.net>
84017
84018         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84019         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84020
84021 2003-01-23  Bruno Haible  <bruno@clisp.org>
84022
84023         * modules/minmax: New module.
84024         * MODULES.html.sh (func_all_modules): Add it.
84025
84026 2003-01-23  Bruno Haible  <bruno@clisp.org>
84027
84028         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84029         Eggert.
84030
84031 2003-01-22  Bruno Haible  <bruno@clisp.org>
84032
84033         * modules/exit: New module.
84034         * MODULES.html.sh (func_all_modules): Add it.
84035
84036 2003-01-22  Bruno Haible  <bruno@clisp.org>
84037
84038         * lib/exit.h: New file, from GNU gettext.
84039
84040 2003-01-19  Bruno Haible  <bruno@clisp.org>
84041
84042         * gnulib-tool: Recognize option --extract-maintainer.
84043         (func_get_maintainer): New function.
84044         * modules/*: Add Maintainer entry.
84045
84046 2003-01-16  Jim Meyering  <jim@meyering.net>
84047
84048         * m4/regex.m4: The `regex' struct is both input and output.
84049         Initialize it before each use.  Patch by Tim Waugh.
84050
84051 2003-01-16  Bruno Haible  <bruno@clisp.org>
84052
84053         * MODULES.html.sh: Add a table of contents. Add the module name as
84054         leftmost column. Add hyperlinks.
84055
84056 2003-01-15  Bruno Haible  <bruno@clisp.org>
84057
84058         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84059
84060 2003-01-15  Bruno Haible  <bruno@clisp.org>
84061
84062         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84063         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84064         suffix.
84065
84066 2003-01-15  Bruno Haible  <bruno@clisp.org>
84067
84068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84069
84070 2003-01-15  Bruno Haible  <bruno@clisp.org>
84071
84072         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84073         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84074
84075 2003-01-14  Jim Meyering  <jim@meyering.net>
84076
84077         * lib/same.c (same_name): Tweak a comment.
84078
84079 2003-01-14  Bruno Haible  <bruno@clisp.org>
84080
84081         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84082         when a string comparison is sufficient.
84083
84084 2003-01-14  Bruno Haible  <bruno@clisp.org>
84085
84086         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84087         'unsigned int'.
84088
84089 2003-01-14  Bruno Haible  <bruno@clisp.org>
84090
84091         * lib/hash-pjw.c: Add comment about low quality of this function.
84092
84093 2003-01-13  Bruno Haible  <bruno@clisp.org>
84094
84095         * modules/stpcpy: Distribute lib/stpcpy.h.
84096         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84097
84098 2003-01-13  Bruno Haible  <bruno@clisp.org>
84099
84100         * modules/*: Add a description.
84101         * modules/strpbrk: Fix Makefile.am snippet.
84102         * modules/strtoimax: Fix dependencies.
84103         * modules/strtoumax: Likewise.
84104
84105 2003-01-13  Bruno Haible  <bruno@clisp.org>
84106
84107         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84108         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84109         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84110
84111 2003-01-13  Bruno Haible  <bruno@clisp.org>
84112
84113         * gnulib-tool (func_create_testdir): Store config/* files in the main
84114         directory.
84115         * config.rpath: Move to ...
84116         * config/config.rpath: ... here.
84117         * modules/gettext: Contains config/config.rpath, not config.rpath.
84118         * modules/iconv: Likewise.
84119
84120 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84121
84122         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84123         to avoid collisions with libcurses and libreadline.
84124
84125         * m4/getstr.m4: Remove.
84126         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84127
84128 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84129
84130         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84131         to avoid collisions with libcurses and libreadline.
84132
84133         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84134         * lib/getstr.h, getstr.c: Remove.
84135         * lib/getline.c: Include "getline.h", to check interface.
84136         Move body of old getstr.c here: this defines MIN_CHUNK and
84137         declares getdelim2, which is renamed from getstr.
84138         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84139
84140         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84141         All uses changed.
84142         * lib/linebuffer.h: Likewise.
84143         (readline): Remove backward-compatibility macro.
84144
84145 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84146
84147         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84148         to avoid collisions with libcurses and libreadline.
84149         * getstr: Remove.
84150         * MODULES.html.sh: Remove getstr.
84151         * modules/getline: Depend on unlocked-io, not getstr.
84152
84153 2003-01-12  Jim Meyering  <jim@meyering.net>
84154
84155         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84156
84157 2003-01-10  Bruno Haible  <bruno@clisp.org>
84158
84159         * modules/alloca: Change Makefile.am requirements. Simplify Include
84160         requirements. Add lib/alloca_.h to file list.
84161
84162 2003-01-10  Bruno Haible  <bruno@clisp.org>
84163
84164         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84165
84166 2003-01-10  Bruno Haible  <bruno@clisp.org>
84167
84168         * lib/alloca_.h: New file.
84169         * lib/getdate.y: Unconditionally include alloca.h.
84170         * lib/makepath.c: Likewise.
84171         * lib/setenv.c: Likewise.
84172         * lib/userspec.c: Likewise.
84173
84174 2003-01-09  Karl Berry  <karl@gnu.org>
84175
84176         * MODULES.html.sh: include `dirname $0` in PATH, to find
84177         gnulib-tool.
84178
84179 2003-01-09  Bruno Haible  <bruno@clisp.org>
84180
84181         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84182         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84183
84184 2003-01-09  Bruno Haible  <bruno@clisp.org>
84185
84186         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84187
84188 2003-01-09  Bruno Haible  <bruno@clisp.org>
84189
84190         * lib/stdbool.h.in: New file.
84191
84192 2003-01-09  Bruno Haible  <bruno@clisp.org>
84193
84194         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84195         * MODULES.html.sh: Likewise.
84196
84197 2003-01-08  Jim Meyering  <jim@meyering.net>
84198
84199         * lib/full-write.c: Undefine and define-away `const' after inclusion
84200         of errno.h, not before.  Suggestion from Bruno Haible.
84201
84202 2003-01-08  Bruno Haible  <bruno@clisp.org>
84203
84204         * modules/full-read: Depend on full-write.
84205
84206 2003-01-08  Bruno Haible  <bruno@clisp.org>
84207
84208         * lib/safe-read.c: Include specification header first, to ensure its
84209         selfcontainedness.
84210         * lib/full-write.c: Likewise.
84211
84212 2003-01-07  Jim Meyering  <jim@meyering.net>
84213
84214         * lib/full-write.c: Rework so that it may serve to define full_read,
84215         too.
84216         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84217
84218 2003-01-07  Bruno Haible  <bruno@clisp.org>
84219
84220         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84221         <inttypes.h>.
84222         * lib/xstrtol.h: Likewise.
84223         * lib/xstrtoimax.c: Likewise.
84224         * lib/xstrtoumax.c: Likewise.
84225         * lib/human.h: Likewise.
84226
84227         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84228         on systems that have <inttypes.h> but not <stdint.h>.
84229
84230 2003-01-07  Bruno Haible  <bruno@clisp.org>
84231
84232         * MODULES.html.sh: Add copyright notice.
84233         (missed_files): Omit CVS directory entries.
84234         (func_module): Make it work with sed-3.02.
84235         * MODULES.txt: Remove file.
84236
84237 2003-01-06  Jim Meyering  <jim@meyering.net>
84238
84239         * lib/version-etc.c: Update year in translatable copyright string.
84240
84241 2003-01-03  Karl Berry  <karl@gnu.org>
84242
84243         * config/config.{guess,sub}: update from prep.
84244
84245 2003-01-02  Karl Berry  <karl@gnu.org>
84246
84247         * doc/COPYING.DOC: belatedly updated to 1.2.
84248
84249 2003-01-01  Karl Berry  <karl@gnu.org>
84250
84251         * gnulib-tool (func_verify_module): report module name $module in
84252         error message, not $1.
84253         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84254         be created, only if it doesn't exist.
84255         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84256
84257 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84258
84259         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84260
84261 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84262
84263         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84264         memcmp if strcoll doesn't work.
84265
84266 2002-12-31  Bruno Haible  <bruno@clisp.org>
84267
84268         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84269         nonempty.
84270
84271 2002-12-31  Bruno Haible  <bruno@clisp.org>
84272
84273         * lib/memcoll.c (STRCOLL): New macro.
84274         (memcoll): Use it.
84275
84276 2002-12-31  Bruno Haible  <bruno@clisp.org>
84277
84278         * lib/localcharset.h: New file.
84279         * lib/localcharset.c: Include it.
84280         * lib/unicodeio.c: Likewise.
84281
84282 2002-12-31  Bruno Haible  <bruno@clisp.org>
84283
84284         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84285         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84286
84287 2002-12-31  Bruno Haible  <bruno@clisp.org>
84288
84289         * lib/getline.h: Include <stddef.h>, for size_t.
84290
84291         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84292         * lib/unicodeio.c: Don't include <stddef.h>.
84293
84294 2002-12-31  Bruno Haible  <bruno@clisp.org>
84295
84296         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84297         HAVE_TM_ZONE.
84298
84299 2002-12-24  Karl Berry  <karl@gnu.org>
84300
84301         * config/config.guess: update from prep.
84302
84303 2002-12-24  Bruno Haible  <bruno@clisp.org>
84304
84305         General infrasructure.
84306         * m4/README: Rewritten.
84307         * m4/onceonly.m4: New file.
84308         * m4/onceonly_2_57.m4: New file.
84309
84310         Module atexit.
84311         * m4/atexit.m4: New file.
84312
84313         Module strtod.
84314         * m4/strtod.m4: New file.
84315
84316         Module strtol.
84317         * m4/strtol.m4: New file.
84318
84319         Module strtoul.
84320         * m4/strtoul.m4: New file.
84321
84322         Module memchr.
84323         * m4/memchr.m4: New file.
84324
84325         Module memcmp.
84326         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84327         (jm_FUNC_MEMCMP): Invoke it.
84328
84329         Module memcpy.
84330         * m4/memcpy.m4: New file.
84331
84332         Module memmove.
84333         * m4/memmove.m4: New file.
84334
84335         Module memset.
84336         * m4/memset.m4: New file.
84337
84338         Module strcspn.
84339         * m4/strcspn.m4: New file.
84340
84341         Module strpbrk.
84342         * m4/strpbrk.m4: New file.
84343
84344         Module strstr.
84345         * m4/strstr.m4: New file.
84346
84347         Module strerror.
84348         * m4/strerror.m4: New file.
84349
84350         Module mktime.
84351         * m4/mktime.m4: Renamed from jm-mktime.m4.
84352         (gl_PREREQ_MKTIME): New macro.
84353         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84354
84355         Module malloc.
84356         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84357         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84358         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84359
84360         Module realloc.
84361         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84362         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84363         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84364
84365         Module strftime.
84366         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84367         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84368         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84369         gl_TM_GMTOFF.
84370         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84371
84372         Module xalloc.
84373         * m4/xalloc.m4: New file.
84374
84375         Module alloca.
84376         * m4/alloca.m4: New file.
84377
84378         Module putenv.
84379         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84380         (jm_FUNC_PUTENV): Invoke it.
84381
84382         Module setenv.
84383         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84384         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84385         when invoked twice.
84386         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84387         gt_FUNC_SETENV.
84388
84389         Module memrchr.
84390         * m4/memrchr.m4: New file.
84391
84392         Module stpcpy.
84393         * m4/stpcpy.m4: New file.
84394
84395         Module strcase.
84396         * m4/strcase.m4: New file.
84397
84398         Module strdup.
84399         * m4/strdup.m4: New file.
84400
84401         Module strnlen.
84402         * m4/strnlen.m4: New file.
84403
84404         Module strndup.
84405         * m4/strndup.m4: New file.
84406
84407         Module xstrtod.
84408         * m4/xstrtod.m4: New file.
84409
84410         Module xstrtol.
84411         * m4/xstrtol.m4: New file.
84412
84413         Module getdate.
84414         * m4/getdate.m4: New file.
84415
84416         Module unlocked-io.
84417         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84418         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84419         * m4/jm-glibc-io.m4n: Remove file.
84420
84421         Module long-options.
84422         * m4/long-options.m4: New file.
84423
84424         Module md5.
84425         * m4/md5.m4: New file.
84426
84427         Module sha.
84428         * m4/sha.m4: New file.
84429
84430         Module getstr.
84431         * m4/getstr.m4: New file.
84432
84433         Module getline.
84434         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84435         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84436         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84437         simply getline. Infoke gl_PREREQ_GETLINE.
84438
84439         Module obstack.
84440         * m4/obstack.m4: New file.
84441
84442         Module hash.
84443         * m4/hash.m4: New file.
84444
84445         Module readtokens.
84446         * m4/readtokens.m4: New file.
84447
84448         Module strverscmp.
84449         * m4/strverscmp.m4: New file.
84450
84451         Module stdbool.
84452         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84453         OSF/1.
84454
84455         Module strtoll.
84456         * m4/strtoll.m4: New file.
84457
84458         Module strtoull.
84459         * m4/strtoull.m4: New file.
84460
84461         Module strtoimax.
84462         * m4/strtoimax.m4: New file.
84463
84464         Module strtoumax.
84465         * m4/strtoumax.m4: New file.
84466
84467         Module xstrtoimax.
84468         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84469         jm_AC_PREREQ_XSTRTOIMAX.
84470         Moved the strtol prerequisites to strtol.m4.
84471         Moved the strtoll prerequisites to strtoll.m4.
84472         Moved the strtoimax prerequisites to strtoimax.m4.
84473
84474         Module xstrtoumax.
84475         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84476         jm_AC_PREREQ_XSTRTOUMAX.
84477         Moved the strtoul prerequisites to strtoul.m4.
84478         Moved the strtoull prerequisites to strtoull.m4.
84479         Moved the strtoumax prerequisites to strtoumax.m4.
84480
84481         Module chown.
84482         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84483         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84484
84485         Module dup2.
84486         * m4/dup2.m4: New file.
84487
84488         Module ftruncate.
84489         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84490         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84491
84492         Module getgroups.
84493         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84494         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84495
84496         Module gettimeofday.
84497         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84498         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84499         gl_PREREQ_GETTIMEOFDAY.
84500
84501         Module mkdir.
84502         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84503         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84504
84505         Module mkstemp.
84506         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84507         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84508         jm_AC_TYPE_UINTMAX_T.
84509         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84510
84511         Module stat.
84512         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84513         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84514
84515         Module lstat.
84516         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84517         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84518
84519         Module timespec.
84520         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84521         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84522         * m4/st_mtim.m4: Indentation.
84523
84524         Module nanosleep.
84525         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84526         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84527         gl_PREREQ_NANOSLEEP.
84528
84529         Module regex.
84530         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84531         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84532         (gl_REGEX): New macro.
84533
84534         Module rename.
84535         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84536         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84537
84538         Module rmdir.
84539         * m4/rmdir.m4: New file.
84540
84541         Module utime.
84542         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84543         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84544         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84545
84546         Module dirname.
84547         * m4/dirname.m4: New file.
84548
84549         Module getopt.
84550         * m4/getopt.m4: New file.
84551
84552         Module unistd-safer.
84553         * m4/unistd-safer.m4: New file.
84554
84555         Module fnmatch.
84556         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84557         declaration.
84558         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84559         (gl_FUNC_FNMATCH_POSIX): New macro.
84560         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84561         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84562         simply fnmatch.
84563
84564         Module exclude.
84565         * m4/exclude.m4: New file.
84566
84567         Module human.
84568         * m4/human.m4: New file.
84569
84570         Module acl.
84571         * m4/acl.m4: Nop.
84572
84573         Module backupfile.
84574         * m4/backupfile.m4: New file.
84575         * m4/d-ino.m4: Indentation.
84576
84577         Module fsusage.
84578         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84579         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84580         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84581
84582         Module dirfd.
84583         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84584         requirements.
84585
84586         Module euidaccess.
84587         * m4/euidaccess.m4: New file.
84588
84589         Module file-type.
84590         * m4/file-type.m4: New file.
84591
84592         Module fileblocks.
84593         * m4/fileblocks.m4: New file.
84594
84595         Module filemode.
84596         * m4/filemode.m4: New file.
84597
84598         Module isdir.
84599         * m4/isdir.m4: New file.
84600
84601         Module lchown.
84602         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84603         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84604
84605         Module makepath.
84606         * m4/makepath.m4: New file.
84607
84608         Module modechange.
84609         * m4/modechange.m4: New file.
84610
84611         Module mountlist.
84612         * m4/mountlist.m4: New file.
84613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84614         Indentation.
84615
84616         Module path-concat.
84617         * m4/path-concat.m4: New file.
84618
84619         Module pathmax.
84620         * m4/pathmax.m4: New file.
84621
84622         Module same.
84623         * m4/same.m4: New file.
84624
84625         Module save-cwd.
84626         * m4/save-cwd.m4: New file.
84627
84628         Module savedir.
84629         * m4/savedir.m4: New file.
84630
84631         Module xgetcwd.
84632         * m4/xgetcwd.m4: New file.
84633         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84634
84635         Module xreadlink.
84636         * m4/xreadlink.m4: New file.
84637
84638         Module safe-read.
84639         * m4/safe-read.m4: New file.
84640
84641         Module safe-write.
84642         * m4/safe-write.m4: New file.
84643
84644         Module closeout.
84645         * m4/closeout.m4: New file.
84646
84647         Module stdio-safer.
84648         * m4/stdio-safer.m4: New file.
84649
84650         Module getpass.
84651         * m4/getpass.m4: New file.
84652
84653         Module getugroups.
84654         * m4/getugroups.m4: New file.
84655
84656         Module group-member.
84657         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84658         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84659
84660         Module idcache.
84661         * m4/idcache.m4: New file.
84662
84663         Module userspec.
84664         * m4/userspec.m4: New file.
84665
84666         Module gettime.
84667         * m4/clock_time.m4: New file.
84668         * m4/gettime.m4: New file.
84669
84670         Module settime.
84671         * m4/settime.m4: New file.
84672
84673         Module posixtm.
84674         * m4/posixtm.m4: New file.
84675
84676         Module gethostname.
84677         * m4/gethostname.m4: New file.
84678
84679         Module canon-host.
84680         * m4/canon-host.m4: New file.
84681
84682         Module gettext.
84683         * m4/codeset.m4: New file, from gettext-0.11.5.
84684         * m4/gettext.m4: New file, from gettext-0.11.5.
84685         * m4/glibc21.m4: New file, from gettext-0.11.5.
84686         * m4/iconv.m4: New file, from gettext-0.11.5.
84687         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84688         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84689         * m4/inttypes.m4: New file, from gettext-0.11.5.
84690         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84691         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84692         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84693         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84694         * m4/lib-link.m4: New file, from gettext-0.11.5.
84695         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84696         * m4/progtest.m4: New file, from gettext-0.11.5.
84697         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84698         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84699         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84700
84701         Module localcharset.
84702         * m4/localcharset.m4: New file.
84703
84704         Module hard-locale.
84705         * m4/hard-locale.m4: New file.
84706
84707         Module mbswidth.
84708         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84709         onceonly macros.
84710         * m4/mbrtowc.m4: Add comment.
84711
84712         Module memcasecmp.
84713         * m4/memcasecmp.m4: New file.
84714
84715         Module memcoll.
84716         * m4/memcoll.m4: New file.
84717
84718         Module unicodeio.
84719         * m4/unicodeio.m4: New file.
84720
84721         Module rpmatch.
84722         * m4/rpmatch.m4: New file.
84723
84724         Module yesno.
84725         * m4/yesno.m4: New file.
84726
84727         Module exitfail.
84728         * m4/exitfail.m4: New file.
84729
84730         Module c-stack.
84731         * m4/c-stack.m4 (gl_C_STACK): New macro.
84732         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84733
84734         Module error.
84735         * m4/error.m4 (gl_ERROR): New macro.
84736         (jm_PREREQ_ERROR): Use onceonly macros.
84737
84738         Module fatal.
84739         * m4/fatal.m4: New file.
84740
84741         Module getloadavg.
84742         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84743         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84744
84745         Module getpagesize.
84746         * m4/getpagesize.m4: New file.
84747
84748         Module getusershell.
84749         * m4/getusershell.m4: New file.
84750
84751         Module physmem.
84752         * m4/physmem.m4: New file.
84753
84754         Module posixver.
84755         * m4/posixver.m4: New file.
84756
84757         Module quotearg.
84758         * m4/quotearg.m4: New file.
84759
84760         Module quote.
84761         * m4/quote.m4: New file.
84762
84763         Module readutmp.
84764         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84765
84766         Module sig2str.
84767         * m4/sig2str.m4: New file.
84768
84769         Other.
84770         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84771         ulonglong.m4.
84772         * m4/intmax_t.m4: New file.
84773         * m4/d-type.m4: Indentation.
84774         * m4/jm-macros.m4: Update.
84775         * m4/prereq.m4 (jm_PREREQ): Update.
84776         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84777         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84778         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84779         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84780         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84781         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84782         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84783         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84784         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84785         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84786         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84787         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84788         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84789         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84790         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84791         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84792         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84793         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84794         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84795
84796 2002-12-24  Bruno Haible  <bruno@clisp.org>
84797
84798         * MODULES.txt: Update according to m4/ changes.
84799
84800         Module gettext.
84801         * config.rpath: New file, from gettext-0.11.5.
84802
84803         * modules/*: New module descriptions.
84804         * gnulib-tool: New file.
84805         * MODULES.html.sh: New file.
84806
84807 2002-12-21  Karl Berry  <karl@gnu.org>
84808
84809         * doc/fdl.texi: update to version 1.2.
84810
84811 2002-12-19  Karl Berry  <karl@gnu.org>
84812
84813         * config/config.guess: update from prep.
84814
84815 2002-12-18  Bruno Haible  <bruno@clisp.org>
84816
84817         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84818         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84819
84820 2002-12-17  Bruno Haible  <bruno@clisp.org>
84821
84822         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84823         stdlib.h, string.h.
84824
84825 2002-12-17  Bruno Haible  <bruno@clisp.org>
84826
84827         * lib/canon-host.c (strdup): Remove unused declaration.
84828
84829         * lib/fsusage.c: Include full_read.h.
84830         (get_fs_usage): Use full_read instead of safe_read.
84831
84832         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84833
84834 2002-12-12  Karl Berry  <karl@gnu.org>
84835
84836         * config/config.guess: update from prep.
84837
84838 2002-12-11  Bruno Haible  <bruno@clisp.org>
84839
84840         * m4/setenv.m4: New file, from gettext-0.11.5.
84841
84842 2002-12-11  Bruno Haible  <bruno@clisp.org>
84843
84844         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84845         not unsetenv().
84846         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84847         modifications:
84848
84849         2002-12-11  Bruno Haible  <bruno@clisp.org>
84850
84851                 * setenv.c (alloca): Fall back to malloc.
84852                 (freea): New macro.
84853                 (setenv): Use freea() to free memory allocated with alloca().
84854
84855         2002-11-13  Bruno Haible  <bruno@clisp.org>
84856
84857                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84858                 function declarations.
84859                 * unsetenv.c (unsetenv): Likewise.
84860
84861         2002-03-04  Bruno Haible  <bruno@clisp.org>
84862
84863                 Portability to AIX 4.3.3.
84864                 * unsetenv.c: New file, extracted from setenv.c.
84865                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84866
84867         2001-12-20  Bruno Haible  <bruno@clisp.org>
84868
84869                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84870                 use malloc instead. For SunOS 4.
84871
84872         2001-12-11  Bruno Haible  <bruno@clisp.org>
84873
84874                 * setenv.c: Declare alloca.
84875                 (compar_fn_t): New typedef.
84876                 (KNOWN_VALUE, STORE_VALUE): Use it.
84877
84878         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84879         setenv.h.
84880
84881 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84882
84883         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84884         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84885         Choose values that are less likely to collide with system fnmatch
84886         options.
84887         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84888         defined (e.g., a pure POSIX system).
84889         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84890         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84891
84892 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84893
84894         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84895         a pain in practice to deal with generated m4 files.  This change
84896         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84897
84898         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84899         and jm-glibc-io.m4, as they are no longer a special case.
84900         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84901         kludge and the auto-generation stuff.  Check only whether the
84902         functions are declared, not whether they exist, since older hosts
84903         that don't declare the functions can't use the optimization anyway.
84904
84905 2002-12-06  Jim Meyering  <jim@meyering.net>
84906
84907         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84908
84909         Merge in changes from libc's misc/error.c, in preparation
84910         for the merge of gnulib's changes back into libc.
84911
84912         * lib/error.c (_): Define only if not already defined.
84913         Move definition to follow all #include directives.
84914         Include unlocked-io.h only if !_LIBC.
84915         [_LIBC]: Include <libio/libioP.h>.
84916         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84917         (fflush): Tweak definition to use INTUSE.
84918         (putc): Define.
84919
84920 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84921
84922         * lib/alloca.c [defined emacs]: Include "lisp.h".
84923         (xalloc_die) [defined emacs]: New macro.
84924         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84925         [! defined emacs]: Include <xalloc.h>.
84926         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84927         (pointer): Typedef to POINTER_TYPE *.
84928         (malloc): Remove decl; we now always use xmalloc.
84929         (alloca): Use old-style definition, since Emacs needs this.
84930         Check for arithmetic overflow when computing combined size.
84931
84932 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84933
84934         Do not generate unlocked-io.h automatically, since it's easier to
84935         maintain it by hand.
84936
84937         * lib/unlocked-io.h: New file, from GNU diffutils,
84938         but with proper copyright notice and attribution.
84939         * lib/gen-uio: Remove.
84940         * lib/Makefile.am: Add copyright notice.
84941         (libfetish_a_SOURCES): Add unlocked-io.h.
84942         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84943         (DISTCLEANFILES, io_functions): Remove macros.
84944         (EXTRA_DIST): Remove gen_uio.
84945         (unlocked-io.h): Remove rule.
84946
84947 2002-12-04  Jim Meyering  <jim@meyering.net>
84948
84949         Reflect the fact that stat.c and lstat.c are no longer generated.
84950         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84951         (DISTCLEANFILES): Likewise.
84952         (EXTRA_DIST): Likewise.
84953         (all_local): Don't depend on stat.c or lstat.c.
84954         (stat.c, lstat.c): Remove rules.
84955         (EXTRA_DIST): Remove xstat.in.
84956
84957         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84958         * lib/stat.c: New file.  Contents mostly from xstat.in.
84959         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84960         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84961
84962         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84963         too.
84964         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84965
84966 2002-12-03  Jim Meyering  <jim@meyering.net>
84967
84968         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84969         but not semantics, to minimize the differences between these two files.
84970         (safe_read): Change comment to mention SAFE_READ_ERROR.
84971
84972         * lib/safe-read.c (IS_EINTR): Define.
84973         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84974
84975 2002-12-02  Jim Meyering  <jim@meyering.net>
84976
84977         * lib/safe-read.c (EINTR): Define.
84978         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84979         (INT_MAX): Provide fallback.
84980         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84981
84982         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84983
84984 2002-12-02  Bruno Haible  <bruno@clisp.org>
84985
84986         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84987         Define, taken from safe-read.c.
84988         (INT_MAX): Provide fallback.
84989         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84990         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84991
84992         * lib/safe-read.c (EINTR): Remove definition.
84993         (safe_read): Don't use EINTR if it is absent.
84994
84995 2002-12-01  Jim Meyering  <jim@meyering.net>
84996
84997         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84998         zero.
84999         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85000
85001 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85002
85003         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85004         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85005         with `if (! (value < limit)) abort ();', for readability.
85006
85007 2002-11-26  Karl Berry  <karl@gnu.org>
85008
85009         * lib/strdup.c: copy from libc again, with jim's ok.
85010         * lib/.cppi-disable: re-add strdup.c
85011
85012 2002-11-25  Karl Berry  <karl@gnu.org>
85013
85014         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85015         instead of "strtol.c".
85016
85017 2002-11-25  Karl Berry  <karl@gnu.org>
85018
85019         * config/install-sh: update from automake for variable quoting, $0 in
85020         error msgs, etc.
85021
85022         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85023         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85024         entry.
85025
85026 2002-11-25  Jim Meyering  <jim@meyering.net>
85027
85028         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85029
85030 2002-11-24  Karl Berry  <karl@gnu.org>
85031
85032         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85033         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85034
85035 2002-11-24  Jim Meyering  <jim@meyering.net>
85036
85037         Update from coreutils:
85038
85039         * lib/mktime.c: Merge in changes from libc.
85040
85041         Avoid a link-time failure on some Linux systems.
85042         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85043         (otherwise).
85044         (__mon_yday): Declare with the STATIC attribute.
85045         (__mktime_internal): Likewise.
85046         Based on a report from Greg Schafer.
85047
85048 2002-11-23  Jim Meyering  <jim@meyering.net>
85049
85050         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85051         Use `unsigned', not `int', as type of index.
85052
85053         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85054
85055         * lib/fsusage.c: Remove unneeded parentheses around operands of
85056         `defined'.
85057
85058 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85059
85060         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85061         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85062         so that we can be included first.
85063         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85064         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85065         No need to include stddef.h or sys/types.h any more.
85066         Surround local include files with "", not "<>".
85067         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85068         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85069         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85070         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85071         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85072         (ISPRINT): Remove; no longer needed now that we assume C89.
85073
85074         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85075         Preserve errno.
85076
85077         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85078         quotearg_char): Use SIZE_MAX rather than
85079         (size_t) -1 when we are talking about "infinity".
85080
85081         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85082
85083 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85084
85085         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85086         hint that one should use `if (! x) abort ();' rather than `assert
85087         (x);', and anyway it's one less thing to worry about configuring.
85088         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85089         hash_rehash, hash_insert): Use abort rather than assert.
85090
85091 2002-11-22  Bruno Haible  <bruno@clisp.org>
85092
85093         * lib/safe-read.h: Assume C89. Add comments.
85094         (safe_read): Change return type to size_t.
85095         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85096         byte counts > SSIZE_MAX correctly.
85097         * lib/safe-write.h: New file.
85098         * lib/safe-write.c: New file.
85099         * lib/full-read.h: New file.
85100         * lib/full-read.c: New file.
85101         * lib/full-write.h: Assume C89. Add comments.
85102         * lib/full-write.c: Include safe-write.h.
85103         (full_write): Rewritten to use safe_write.
85104         Suggested by Jim Meyering and Paul Eggert.
85105
85106 2002-11-21  Jim Meyering  <jim@meyering.net>
85107
85108         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85109
85110         Merge in changes from the coreutils.
85111
85112         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85113         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85114         <stdint.h>.
85115         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85116         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85117         int.  Work more efficiently if X is the same width as uintmax_t.
85118         Do not compare X to -1, to avoid bogus compiler warning.
85119         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85120         Don't assume that f_frsize and f_bsize are the same type.
85121
85122         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85123         warning on FreeBSD.
85124
85125         * lib/makepath.c (make_path): Restore umask *before* creating the final
85126         component.
85127         (make_path): Minor reformatting.
85128
85129         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85130         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85131         HAVE_MALLOC/HAVE_REALLOC.
85132
85133         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85134         dummy ones.  At least on GNU/Linux systems, `auto' means something
85135         else.
85136         From Michael Stone.
85137
85138 2002-11-21  Bruno Haible  <bruno@clisp.org>
85139
85140         Remove case insensitive option matching.
85141         * lib/argmatch.h (argcasematch): Remove declaration.
85142         (ARGCASEMATCH): Remove macro.
85143         (__xargmatch_internal): Remove case_sensitive argument.
85144         (XARGMATCH): Update.
85145         (XARGCASEMATCH): Remove macro.
85146         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85147         case_sensitive argument.
85148         (argcasematch): Remove function.
85149         (__xargmatch_internal): Remove case_sensitive argument.
85150         (main): Use XARGMATCH instead of XARGCASEMATCH.
85151
85152         * lib/xmalloc.c: Change compile-time error message. Add comment about
85153         required autoconf version.
85154
85155 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85156
85157         Merge argmatch cleanups from Bison.  Assume C89.
85158
85159         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85160         Include stdlib.h, for EXIT_FAILURE.
85161         Always include <string.h>, since we assume C89.
85162         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85163         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85164         Include <stddef.h> instead, since it's all we need for size_t.
85165         (PARAMS): Remove.  All uses removed.
85166         (ARRAY_CARDINALITY): Do not bother to #undef.
85167         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85168         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85169         Remove unnecessary parentheses.
85170         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85171         Insert necessary parentheses.
85172         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85173         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85174
85175 2002-11-19  Bruno Haible  <bruno@clisp.org>
85176
85177         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85178         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85179
85180         * lib/mbswidth.h (PARAMS): Remove macro.
85181         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85182         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85183
85184         * lib/gcd.h (PARAMS): Remove macro.
85185         (gcd): Use ANSI C function declarations.
85186         * lib/gcd.c (gcd): Likewise.
85187
85188 2002-11-15  Bruno Haible  <bruno@clisp.org>
85189
85190         * lib/strcspn.c: Include <stddef.h>.
85191         (strcspn): Use ANSI C function declaration. Change return type to
85192         size_t. Use NULL.
85193         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85194         (strpbrk): Use NULL.
85195         * lib/strpbrk.h (PARAMS): Remove macro.
85196         (strpbrk): Use ANSI C function declaration.
85197         * lib/strstr.c: Don't include <sys/types.h>.
85198         * lib/strstr.h (PARAMS): Remove macro.
85199         (strstr): Use ANSI C function declarations.
85200
85201 2002-11-14  Karl Berry  <karl@gnu.org>
85202
85203         * config/mkinstalldirs: `do' on separate line, instead of
85204         `for var; do'.
85205
85206 2002-11-06  Bruno Haible  <bruno@clisp.org>
85207
85208         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85209         * lib/gcd.c (gcd): Likewise.
85210
85211 2002-11-05  Bruno Haible  <bruno@clisp.org>
85212
85213         * lib/gcd.h: New file, from gettext-0.11.5.
85214         * lib/gcd.c: New file, from gettext-0.11.5.
85215
85216 2002-11-05  Bruno Haible  <bruno@clisp.org>
85217
85218         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85219         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85220         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85221         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85222
85223         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85224         <libintl.h>.
85225         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85226         <libintl.h>.
85227
85228         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85229         * lib/human.c: Include gettext.h instead of <libintl.h>.
85230         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85231         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85232         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85233         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85234         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85235         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85236         (textdomain): Remove definition.
85237         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85238
85239         * lib/long-options.c: Remove include of <libintl.h> and definition of
85240         _.
85241         * lib/same.c: Remove include of <libintl.h> and definition of _.
85242
85243 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85244
85245         * lib/config.charset: A few additions for Solaris.
85246
85247 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85248
85249         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85250         * lib/localcharset.c (locale_charset): Declare as extern "C".
85251
85252 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85253
85254         * lib/config.charset: msdos in uk_UA uses CP1125.
85255
85256 2002-11-04  Bruno Haible  <bruno@clisp.org>
85257
85258         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85259         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85260         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85261         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85262         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85263
85264 2002-11-04  Bruno Haible  <bruno@clisp.org>
85265
85266         * lib/localcharset.c (locale_charset): Don't return an empty string.
85267
85268 2002-11-04  Bruno Haible  <bruno@clisp.org>
85269
85270         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85271         aliases.
85272
85273 2002-11-04  Bruno Haible  <bruno@clisp.org>
85274
85275         * lib/config.charset: Update for newest glibc. Add canonical names
85276         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85277
85278 2002-11-04  Bruno Haible  <bruno@clisp.org>
85279
85280         * lib/config.charset: Add support for NetBSD.
85281
85282 2002-11-04  Bruno Haible  <bruno@clisp.org>
85283
85284         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85285
85286 2002-11-01  Bruno Haible  <bruno@clisp.org>
85287
85288         * configure.in: Add AC_CONFIG_AUX_DIR call.
85289         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85290         test/Makefile.
85291         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85292
85293 2002-09-28  Karl Berry  <karl@gnu.org>
85294
85295         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85296         installed automake until the next release, since changes have been
85297         made.
85298
85299 2002-09-25  Karl Berry  <karl@gnu.org>
85300
85301         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85302         * lib/getopt*: copy from libc/posix.
85303         * lib/gettext.h: copy from gettext.
85304         * lib/.cppi-disable: add strdup.c, gettext.h.
85305
85306 2002-09-25  Karl Berry  <karl@gnu.org>
85307
85308         * config/srclist.txt: enable gettext.h check.
85309         * config/config.{guess,sub}: update from prep.
85310         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85311                 from automake 1.6.3.
85312         See srclist*.
85313
85314 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85315
85316         * regex.c (PATFETCH): Remove the translating fetch.
85317         (PATFETCH_RAW): Rename to PATFETCH.
85318         (set_image_of_range): New fun.
85319         (SET_RANGE_TABLE_WORK_AREA): Use it.
85320         (regex_compile): Don't translate the pattern chars so eagerly.
85321         Only do it when inserting an `exactn' bytecode or when handling
85322         a char-range.
85323         (mutually_exclusive_p): Avoid empty statement.
85324
85325 2002-07-06  Jim Meyering  <meyering@lucent.com>
85326
85327         * m4/README: Don't mention Makefile.am.in.
85328         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85329
85330 2002-07-01  Jim Meyering  <meyering@lucent.com>
85331
85332         * lib/c-stack.c: Include sys/time.h.
85333         From Volker Borchert.
85334
85335 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85336
85337         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85338
85339 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85340
85341         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85342         New macro.  Use it uniformly instead of
85343         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85344         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85345         reported by Vin Shelton.
85346
85347 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85348
85349         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85350         Do not assume SA_SIGINFO behavior.
85351         Bug reported by Jim Meyering on NetBSD 1.5.2.
85352
85353 2002-06-22  Jim Meyering  <meyering@lucent.com>
85354
85355         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85356         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85357
85358         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85359         now that configure.ac uses AC_GNU_SOURCE.
85360         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85361         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85362
85363         Update to latest tools.  Suggestions from Paul Eggert.
85364         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85365         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85366         * m4/fnmatch.m4: Likewise.
85367         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85368         to AC_HEADER_STDBOOL
85369
85370 2002-06-22  Jim Meyering  <meyering@lucent.com>
85371
85372         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85373         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85374
85375 2002-06-22  Jim Meyering  <meyering@lucent.com>
85376
85377         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85378
85379         * lib/exitfail.c, exitfail.h: Likewise.
85380         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85381
85382         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85383         of fnmatch.h.
85384         (EXTRA_DIST): Add fnmatch_loop.c.
85385         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85386
85387         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85388         * lib/fnmatch.c: Update from diffutils-2.8.2.
85389         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85390         * lib/fnmatch.h: Remove file.
85391
85392 2002-06-21  Jim Meyering  <meyering@lucent.com>
85393
85394         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85395         * m4/mbrtowc.m4: Likewise.
85396
85397         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85398         * m4/mbswidth.m4: Reflect name change:
85399         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85400         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85401
85402         * m4/lib-link.m4: Update from gettext-0.11.2.
85403         * m4/gettext.m4: Likewise.
85404
85405         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85406         From Alfred M. Szmidt.
85407
85408 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85409
85410         * lib/file-type.h: Report an error if neither S_ISREG nor
85411         S_IFREG is defined, instead of using a test specific to glibc
85412         2.2.  This should be safe, since POSIX requires S_ISREG and
85413         Unix Version 7 had S_IFREG.  We don't need to check for
85414         <sys/types.h> since we don't use any symbols that it defines.
85415
85416 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85417
85418         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85419         $@-t, so that each temporary file name is unique and valid in the first
85420         8 characters, for operation under DOS.
85421
85422 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85423
85424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85425
85426 2002-06-15  Jim Meyering  <meyering@lucent.com>
85427
85428         Work even with DJGPP 2.03, which lacks support for symlinks.
85429         From Richard Dawe.
85430         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85431         is defined.
85432         * lib/lchown.c (S_ISLNK): Likewise.
85433
85434 2002-06-15  Jim Meyering  <meyering@lucent.com>
85435
85436         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85437         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85438         have been included before this file.
85439
85440 2002-06-14  Jim Meyering  <meyering@lucent.com>
85441
85442         * lib/file-type.h: Use the version from diffutils-2.8.2.
85443         * lib/file-type.c: Likewise.
85444
85445 2002-06-07  Jim Meyering  <meyering@lucent.com>
85446
85447         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85448         They're needed at least for NetBSD 1.5.2.
85449         ($statxfs_includes): Include those same headers.
85450         ($statxfs_includes): Include sys/vfs.h if available.
85451         ($statxfs_includes): Likewise for sys/statvfs.h.
85452         Check for the following members in both structs statfs and statvfs:
85453         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85454
85455 2002-06-01  Jim Meyering  <meyering@lucent.com>
85456
85457         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85458         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85459
85460 2002-05-28  Jim Meyering  <meyering@lucent.com>
85461
85462         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85463         Reported by Volker Borchert.
85464
85465 2002-05-27  Jim Meyering  <meyering@lucent.com>
85466
85467         Fix a problem seen only on nonconforming systems whereby ls.c's
85468         use of localtime, and then of gettimeofday would cause trouble:
85469         the localtime call used to initialize rpl_gettimeofday's save
85470         mechanism would clobber ls's current local time information so
85471         that in any long listing the first file would always be listed
85472         with date 1970-01-01.  Analysis by Volker Borchert.
85473
85474         * lib/gettimeofday.c (localtime): Undefine.
85475         (rpl_localtime): New function.
85476
85477 2002-05-27  Jim Meyering  <meyering@lucent.com>
85478
85479         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85480         localtime.
85481
85482         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85483         use the replacement function; it wouldn't resolve at link time.
85484         Reported by Volker Borchert.
85485
85486 2002-05-22  Jim Meyering  <meyering@lucent.com>
85487
85488         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85489         file-type.h.
85490         * lib/file-type.h: New file.
85491         * lib/file-type.c (file_type): New file/function.  Extracted from
85492         diffutils.
85493
85494 2002-04-30  Jim Meyering  <meyering@lucent.com>
85495
85496         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85497
85498 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85499
85500         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85501
85502 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85503
85504         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85505         Do not check for alloca.h (no longer used) or stdbool.h (was never
85506         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85507
85508 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85509
85510         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85511
85512 2002-04-29  Jim Meyering  <meyering@lucent.com>
85513
85514         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85515         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85516         Use AC_FUNC_STRNLEN here instead.
85517
85518         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85519         With autoconf-2.53a, it's part of AC_PROG_CC.
85520
85521 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85522
85523         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85524         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85525
85526 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85527
85528         * lib/sig2str.h, lib/sig2str.c: New files.
85529         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85530
85531 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85532
85533         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85534         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85535         of 127, since 64 is the largest conceivable number for ancient
85536         nonstandard hosts.
85537         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85538
85539 2002-04-28  Jim Meyering  <meyering@lucent.com>
85540
85541         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85542
85543 2002-04-24  Jim Meyering  <meyering@lucent.com>
85544
85545         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85546         (jm_PREREQ): Use it.
85547
85548         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85549         mach/mach.h fcntl.h.
85550         Check for this function: setlocale.
85551
85552 2002-04-24  Jim Meyering  <meyering@lucent.com>
85553
85554         * lib/gettext.h: New file, from Gettext.
85555         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85556         (libfetish_a_SOURCES): Add gettext.h.
85557
85558 2002-04-16  Jim Meyering  <meyering@lucent.com>
85559
85560         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85561         ut_pid, ut_id, ut_exit.
85562
85563 2002-04-16  Jim Meyering  <meyering@lucent.com>
85564
85565         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85566         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85567         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85568
85569 2002-04-12  Jim Meyering  <meyering@lucent.com>
85570
85571         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85572         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85573         existence of the getmntinfo function.  Needed for Darwin 5.3.
85574
85575         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85576         This is necessary at least on Darwin 5.3.
85577
85578         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85579         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85580         strnlen.o in the library, and that makes some versions of ranlib
85581         object.
85582
85583 2002-04-12  Jim Meyering  <meyering@lucent.com>
85584
85585         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85586
85587 2002-04-09  Jim Meyering  <meyering@lucent.com>
85588
85589         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85590         to be more precise.  Rather than saying we're checking whether the
85591         function `works', say what we're testing.
85592         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85593         Reported by Bruno Haible.
85594
85595 2002-03-10  Jim Meyering  <meyering@lucent.com>
85596
85597         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85598         Suggestion from Santiago Vila.
85599
85600 2002-03-08  Jim Meyering  <meyering@lucent.com>
85601
85602         * lib/rename.c: Mention that this wrapper is needed also on
85603         mips-dec-ultrix4.4 systems.
85604
85605 2002-03-02  Jim Meyering  <meyering@lucent.com>
85606
85607         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85608         not HAVE_CLOCK_SETTIME.
85609
85610 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85611
85612         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85613         Check for clock_settime.
85614
85615 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85616
85617         * lib/nanosleep.h: Rename to....
85618         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85619
85620         * lib/gettime.c: New file.
85621         * lib/settime.c: New file.
85622         * lib/stime.c: Remove.
85623
85624         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85625         timespec.h.  Remove nanosleep.h.
85626
85627 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85628
85629         * m4/acl.m4: New file.
85630         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85631         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85632
85633 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85634
85635         * lib/acl.c, lib/acl.h: New files.
85636         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85637
85638 2002-02-24  Jim Meyering  <meyering@lucent.com>
85639
85640         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85641         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85642         cause trouble.  Reported by Nelson Beebe.
85643
85644 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85645
85646         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85647         compilers that don't know that xalloc_die never returns.
85648
85649 2002-02-20  Jim Meyering  <meyering@lucent.com>
85650
85651         * lib/getdate.c: Regenerate using bison-1.33.
85652
85653 2002-02-17  Jim Meyering  <meyering@lucent.com>
85654
85655         * config/config.guess (main): Don't use `head -1'; it's no longer
85656         portable. Use `sed 1q' instead.
85657
85658 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85659
85660         * m4/codeset.m4: Upgrade to gettext-0.11.
85661         * m4/gettext.m4: Upgrade to gettext-0.11.
85662         * m4/glibc21.m4: Upgrade to gettext-0.11.
85663         * m4/iconv.m4: Upgrade to gettext-0.11.
85664         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85665         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85666         * m4/lib-ld.m4: New file, from gettext-0.11.
85667         * m4/lib-link.m4: New file, from gettext-0.11.
85668         * m4/lib-prefix.m4: New file, from gettext-0.11.
85669         * m4/progtest.m4: Upgrade to gettext-0.11.
85670
85671 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85672
85673         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85674         (jm_PREREQ): Use it.
85675
85676 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85677
85678         * lib/posixver.c, lib/posixver.h: New files.
85679         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85680
85681 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85682             Bruno Haible  <bruno@clisp.org>
85683
85684         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85685         (fwrite_success_callback): New declaration.
85686         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85687         print_unicode_char. Call failure callback instead of error.
85688         (fwrite_success_callback): New function.
85689         (exit_failure_callback): New function.
85690         (fallback_failure_callback): New function.
85691         (print_unicode_char): Call unicode_to_mb.
85692
85693 2002-01-26  Jim Meyering  <meyering@lucent.com>
85694
85695         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85696         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85697
85698 2002-01-26  Jim Meyering  <meyering@lucent.com>
85699
85700         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85701
85702 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85703
85704         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85705
85706 2002-01-22  Jim Meyering  <meyering@lucent.com>
85707
85708         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85709         Otherwise, some versions of automake would omit the rule that makes
85710         Makefile from Makefile.in.
85711
85712 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85713
85714         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85715         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85716         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85717         (memcoll): Set errno to zero if there is no error.
85718
85719         * lib/quotearg.c (quotearg_buffer_restyled):
85720         Fix bug with quoting buffers containing NUL when backslashing escapes.
85721         This bug was exposed by the other changes in this patch.
85722         (quotearg_n_options): New arg ARGSIZE.
85723         All callers changed.
85724         (quoting_options_from_style): New function.
85725         (quotearg_n_style): Use it.
85726         (quotearg_n_style_mem): New function.
85727
85728         * lib/quotearg.h (quotearg_n_style_mem): New function.
85729
85730 2002-01-19  Jim Meyering  <meyering@lucent.com>
85731
85732         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85733         Remove useless quotes: DF_PROG="df".
85734         * m4/strnlen.m4: New file.
85735
85736 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85737
85738         * lib/backupfile.c (ISDIGIT): Comment fix.
85739         * lib/getdate.y (ISDIGIT): Likewise.
85740         * lib/posixtm.c (ISDIGIT, year): Likewise.
85741         * lib/strverscmp.c (ISDIGIT): Likewise.
85742         * lib/userspec.c (ISDIGIT): Likewise.
85743
85744 2002-01-16  Jim Meyering  <meyering@lucent.com>
85745
85746         * lib/getdate.y: Add three semicolons, each just before a closing
85747         brace. Bison (as of version 1.31) no longer papers over that mistake.
85748
85749 2002-01-05  Jim Meyering  <meyering@lucent.com>
85750
85751         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85752
85753 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85754
85755         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85756         not silently exit merely because the output buffer happens to
85757         have nothing pending.
85758
85759 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85760
85761         See the big note in ../ChangeLog.
85762         * lib/human.c (suffixes): Prefer K to k for 1024.
85763         (generate_suffix_backwards): New function.
85764         (human_readable_inexact): Use it.
85765         * lib/xstrtol.c (__xstrtol): If there is no number but there
85766         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85767         Accept 'K' as well as 'k'.
85768
85769 2001-12-15  Jim Meyering  <meyering@lucent.com>
85770
85771         * lib/regex.h (__restrict_arr): Update from libc.
85772
85773         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85774         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85775         (STREQ): Define.
85776
85777 2001-12-14  Jim Meyering  <meyering@lucent.com>
85778
85779         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85780         Suggestion from Bruno Haible.
85781
85782 2001-12-10  Jim Meyering  <meyering@lucent.com>
85783
85784         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85785         xrealloc, Instead, include "xalloc.h".
85786         (initbuffer): Don't cast xmalloc return value to char*.
85787         (readline): Reword comment.
85788         Don't cast xrealloc return value to char*
85789         Return NULL, not 0.
85790
85791 2001-12-09  Jim Meyering  <meyering@lucent.com>
85792
85793         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85794         about `signed and unsigned type in conditional expression'.
85795         * lib/posixtm.c (posix_time_parse): Likewise.
85796
85797         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85798
85799         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85800         to avoid a pedantic warning.
85801
85802         * lib/getstr.c: Don't include assert.h.
85803         (getstr): Remove warning-evoking assertions.
85804         Return -1 if offset parameter is out of bounds.
85805         Change the type of a local from int to size_t.
85806
85807         * lib/strftime.c (my_strftime_localtime_r): Include this function
85808         definition in the `#if ! HAVE_TM_GMTOFF' block.
85809
85810         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85811         Include xalloc.h instead.
85812
85813 2001-12-02  Jim Meyering  <meyering@lucent.com>
85814
85815         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85816         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85817         included.
85818
85819         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85820         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85821
85822 2001-11-30  Akim Demaille  <akim@epita.fr>
85823
85824         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85825         before being defined.
85826
85827 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85828
85829         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85830         First arg is int, not unsigned.
85831         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85832         (SIZE_MAX, UINT_MAX): New macros.
85833         (quotearg_n_options): Abort if N is negative.
85834         Avoid overflow check on hosts where size_t is 64 bits and int
85835         is 32 bits, as overflow is impossible there.
85836         Fix off-by-one typo that caused unnecessary reallocation.
85837
85838 2001-11-27  Jim Meyering  <meyering@lucent.com>
85839
85840         * lib/tempname.c: Merge with version from libc.
85841         * lib/regex.c: Likewise.
85842
85843         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85844         systems for which STDC_HEADERS is 0, it was not included, resulting in
85845         a warning about an integer-to-pointer conversion problem with getenv.
85846         Reported by Volker Borchert.
85847
85848 2001-11-26  Jim Meyering  <meyering@lucent.com>
85849
85850         * lib/gtod.h: Remove file.
85851         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85852         * lib/gettimeofday.c: Don't include gtod.h.
85853         (GTOD_init): Remove function.
85854         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85855         Suggestion from Volker Borchert.
85856
85857 2001-11-23  Jim Meyering  <meyering@lucent.com>
85858
85859         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85860         it.
85861         * lib/hash.c (struct hash_table): Define it here instead.
85862
85863 2001-11-22  Jim Meyering  <meyering@lucent.com>
85864
85865         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85866
85867 2001-11-20  Jim Meyering  <meyering@lucent.com>
85868
85869         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85870         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85871
85872 2001-11-19  Jim Meyering  <meyering@lucent.com>
85873
85874         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85875         directory.  Use "conftestXXXXXX" as the template.
85876         Suggestion from Paul Eggert.
85877
85878         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85879         immediately, so the test doesn't mistakenly hit the max-open-files
85880         limit.
85881
85882 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85883
85884         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85885         (TEMPORARIES): New macro.
85886         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85887         removes an artificial limitation (e.g. HP-UX 10.20, where
85888         TMP_MAX is 17576).
85889
85890 2001-11-18  Jim Meyering  <meyering@lucent.com>
85891
85892         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85893
85894 2001-11-18  Jim Meyering  <meyering@lucent.com>
85895
85896         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85897         on SunOS 4.
85898
85899         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85900         files will be created before anything else.
85901
85902 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85903
85904         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85905         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85906
85907 2001-11-17  Jim Meyering  <meyering@lucent.com>
85908
85909         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85910         Prompted by a report from Bob Proulx.
85911
85912         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85913         Instead, require UTILS_FUNC_MKSTEMP.
85914
85915 2001-11-17  Jim Meyering  <meyering@lucent.com>
85916
85917         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85918         Now, that's done as part of AC_FUNC_STRTOD.
85919
85920 2001-11-17  Jim Meyering  <meyering@lucent.com>
85921
85922         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85923         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85924         rather than group writable.  Patch by Juan F. Codagnone.
85925
85926         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85927         xrealloc, Instead, include "xalloc.h".
85928
85929         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85930         Remove explicit declarations of xmalloc, xrealloc,
85931         and xstrdup.  Instead, include "xalloc.h".
85932
85933         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85934         unlocked-io.h.
85935         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85936         Likewise.
85937         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85938
85939         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85940         Reported by Padraig Brady.
85941
85942         * lib/mkstemp.c: #undef mkstemp.
85943         Include config.h.
85944         (rpl_mkstemp): Rename from mkstemp.
85945         Protoize.
85946
85947 2001-11-16  Jim Meyering  <meyering@lucent.com>
85948
85949         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85950         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85951         determine the amount of total physical memory, use pstat_getstatic.
85952         HPUX-11 doesn't define _SC_PHYS_PAGES.
85953         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85954         If sysconf couldn't be used to determine the amount of available
85955         physical memory, use both pstat_getstatic and pstat_getdynamic.
85956         Based on a patch from Bob Proulx.
85957
85958 2001-11-10  Jim Meyering  <meyering@lucent.com>
85959
85960         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85961         (jm_PREREQ): Use it.
85962
85963 2001-11-09  Jim Meyering  <meyering@lucent.com>
85964
85965         * m4/jm-macros.m4: Require autoconf-2.52f.
85966         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85967         Use these AC_-prefixed names, not the AM_-prefixed ones.
85968
85969         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85970
85971 2001-11-05  Jim Meyering  <meyering@lucent.com>
85972
85973         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85974
85975 2001-11-04  Jim Meyering  <meyering@lucent.com>
85976
85977         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85978         $DEFS.
85979
85980 2001-11-03  Jim Meyering  <meyering@lucent.com>
85981
85982         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85983         of AC_DEFUN.
85984
85985         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85986         know the name of the variable in the macro definition.
85987
85988 2001-11-03  Jim Meyering  <meyering@lucent.com>
85989
85990         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85991         in argmatch_to_argument call.
85992
85993         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85994         argument.
85995
85996         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85997         e.g., a fault due to an attempt to free a NULL pointer.
85998
85999 2001-11-01  Jim Meyering  <meyering@lucent.com>
86000
86001         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86002         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86003
86004 2001-11-01  Jim Meyering  <meyering@lucent.com>
86005
86006         * lib/dirfd.c, lib/dirfd.h: New files.
86007         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86008
86009         * lib/hash.c (hash_print) [TESTING]: Clean up.
86010
86011 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86012
86013         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86014         to avoid a warning if -Wall.
86015
86016 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86017
86018         * README: New file
86019         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86020         (per RMS's instructions, this is now the canonical source)
86021         * lgpl/, gpl/: New directories.
86022
86023 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86024
86025         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86026
86027 2001-10-21  Jim Meyering  <meyering@lucent.com>
86028
86029         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86030         this code would end up calling gettext even in packages built
86031         with --disable-nls.
86032         * lib/getopt.c (_): Likewise.
86033         * lib/regex.c (_): Likewise.
86034
86035 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86036
86037         * m4/error.m4 (jm_PREREQ_ERROR):
86038         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86039         AC_FUNC_STRERROR_R does that.
86040         Check for strerror declaration.
86041
86042         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86043         are supposed to have them these days.
86044         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86045         Merge changes from latest Autoconf CVS.
86046         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86047         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86048         POSIX decided to standardize on the int flavor of strerror_r.
86049
86050 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86051
86052         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86053         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86054         Use strerror_r that is only a macro, even if it is not a function.
86055         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86056         (private_strerror): Use prototypes, not old-style function definition.
86057         (print_errno_message): New function.
86058         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86059         char*-flavored one.
86060         (error_tail, error, error_at_line): Use it.
86061
86062 2001-10-11  Jim Meyering  <meyering@lucent.com>
86063
86064         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86065         and quote_n (1, ... to avoid clobbering a buffer.
86066
86067 2001-10-05  Jim Meyering  <meyering@lucent.com>
86068
86069         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86070         hash-pjw.h.
86071         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86072         * lib/hash-pjw.h: New file.
86073
86074 2001-09-30  Jim Meyering  <meyering@lucent.com>
86075
86076         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86077         `struct fsstat' has the `f_fstypename' member.
86078         Use that to define FS_TYPE, which is now used to make
86079         the getfsstat link test tighter.
86080
86081 2001-09-30  Jim Meyering  <meyering@lucent.com>
86082
86083         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86084         Include <sys/ucred.h>, for Apple Darwin.
86085         Include sys/mount.h and sys/fs_types.h only if available.
86086         (FS_TYPE): Define.
86087         (read_filesystem_list): Use FS_TYPE.
86088
86089 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86090
86091         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86092         a boolean context.
86093
86094 2001-09-29  Jim Meyering  <meyering@lucent.com>
86095
86096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86097         [one-argument getmntent function]): Include stdio.h before mntent.h.
86098         SunOS 4.1.x needs it for the declaration of `FILE'.
86099         Patch by Volker Borchert.
86100
86101         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86102         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86103         sys/fs_types.h, and make the link-test for getfsstat guard #include
86104         directives with appropriate #if HAVE_*_H tests so that we can
86105         detect getfsstat on Apple Darwin1.3.7 systems.
86106         Reported by Nelson Beebe.
86107         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86108
86109 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86110
86111         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86112         #defines strtoimax.  Also treat the other strto* functions
86113         like strtoimax.
86114
86115         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86116         Check for strtoul and strtoumax,
86117         as those declarations are made even in the signed case.
86118         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86119         Likewise, for strtol and strtoimax.
86120
86121 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86122
86123         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86124         #defines strtoimax.  Also treat the other strto* functions
86125         like strtoimax.
86126
86127         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86128         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86129         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86130
86131 2001-09-26  Jim Meyering  <meyering@lucent.com>
86132
86133         Most macros in unlocked-io.h had the wrong number of arguments.
86134         * lib/gen-uio: New script.
86135         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86136         * lib/unlocked-io.hin: Remove file.
86137         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86138         rather than trying to embed it here.
86139         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86140         Reported by Padraig Brady.
86141
86142 2001-09-25  Volker Borchert  <bt@teknon.de>
86143
86144         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86145         `result'.
86146
86147 2001-09-24  Jim Meyering  <meyering@lucent.com>
86148
86149         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86150
86151 2001-09-23  Jim Meyering  <meyering@lucent.com>
86152
86153         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86154         instead of the mere test for existence of mntent.h.  The latter
86155         would get a false-positive on AIX 3.4 systems.
86156         In the outer getmntent if-block, don't die if neither of the getmntent
86157         tests succeeds.  Instead, just fall through and continue with the
86158         remaining tests.
86159
86160 2001-09-23  Jim Meyering  <meyering@lucent.com>
86161
86162         * lib/mountlist.c: Remove useless parentheses in #if directives.
86163         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86164         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86165
86166 2001-09-22  Jim Meyering  <meyering@lucent.com>
86167
86168         * m4/gettext.m4: New file.  From gettext.
86169         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86170         * m4/progtest.m4: Likewise
86171         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86172         * m4/glibc21.m4: Likewise.
86173
86174         * m4/libintl.m4: Remove.  No longer used.
86175
86176 2001-09-22  Jim Meyering  <meyering@lucent.com>
86177
86178         * lib/localcharset.c: Update from latest gettext.
86179         * lib/config.charset: Likewise.
86180
86181 2001-09-20  Jim Meyering  <meyering@lucent.com>
86182
86183         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86184         strtoimax.
86185         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86186         strtoumax.
86187
86188 2001-09-20  Jim Meyering  <meyering@lucent.com>
86189
86190         * lib/xstrtol.c (strtoimax): Guard declaration with
86191         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86192         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86193         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86194         (strtoumax): Likewise, for completeness (it wasn't necessary).
86195
86196 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86197
86198         * lib/strtoimax.c (HAVE_LONG_LONG):
86199         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86200         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86201         to work around bug in IBM C compiler.
86202
86203 2001-09-17  Jim Meyering  <meyering@lucent.com>
86204
86205         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86206         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86207         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86208         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86209         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86210         whenever the right hand side need not be expanded by the shell.
86211
86212 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86213
86214         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86215         library.  It's not correct, as some older glibcs are buggy.
86216         fnmatch wasn't fixed until glibc 2.2.
86217
86218         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86219         special shell magic here.
86220
86221 2001-09-16  Jim Meyering  <meyering@lucent.com>
86222
86223         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86224         * m4/jm-macros.m4: Require it.
86225
86226 2001-09-16  Jim Meyering  <meyering@lucent.com>
86227
86228         * lib/mkdir.c: New file.
86229
86230 2001-09-15  Jim Meyering  <meyering@lucent.com>
86231
86232         * m4/jm-macros.m4: Check for help2man.
86233
86234 2001-09-11  Jim Meyering  <meyering@lucent.com>
86235
86236         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86237         The body, by Paul Eggert, was moved here from configure.in.
86238         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86239
86240 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86241
86242         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86243         (jm_PREREQ): Use it.
86244
86245 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86246
86247         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86248         Use ssize_t, not int, to store result of readlink.
86249         Check for ssize_t overflow as well as size_t overflow,
86250         as POSIX says the result of readlink is implementation-defined
86251         when ssize_t overflows.
86252         Remove unnecessary cast to char*.
86253         Use free+malloc instead of realloc, as the storage doesn't need
86254         to be preserved and it's clearer and can be more efficient that way.
86255         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86256         * lib/xreadlink.h (xreadlink): Update prototype.
86257
86258 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86259
86260         * lib/xgetcwd.c: Revert some of the previous change; intead,
86261         fix the HAVE_GETCWD_NULL code to behave more like the
86262         !HAVE_GETCWD_NULL code used to.
86263
86264         Include "xalloc.h".
86265         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86266         invoke xalloc_die.
86267
86268 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86269
86270         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86271         sys/param.h, as pathmax.h includes them.
86272
86273 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86274
86275         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86276         (jm_PREREQ_XGETCWD): New macro.
86277
86278         * m4/getcwd.m4: New file.
86279
86280 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86281
86282         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86283         like the HAVE_GETCWD_NULL code.
86284         Include pathmax.h if not HAVE_GETCWD.
86285         Do not include xalloc.h.
86286         (INITIAL_BUFFER_SIZE): New symbol.
86287         Do not use xmalloc / xrealloc, since the caller is responsible for
86288         handling errors.  Preserve errno around `free' during failure.
86289         Do not overrun buffer when using getwd.
86290
86291 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86292
86293         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86294         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86295         getcwd (NULL, 0).
86296
86297 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86298
86299         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86300         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86301         spotted by Jim Meyering.
86302
86303 2001-09-03  Jim Meyering  <meyering@lucent.com>
86304
86305         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86306         failure.
86307
86308 2001-09-02  Jim Meyering  <meyering@lucent.com>
86309
86310         * lib/error.c: Update from GNU libc.
86311
86312 2001-09-01  Jim Meyering  <meyering@lucent.com>
86313
86314         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86315         Used by df.
86316
86317 2001-09-01  Jim Meyering  <meyering@lucent.com>
86318
86319         * lib/xreadlink.c: New file.
86320         * lib/xreadlink.h: New file.
86321         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86322         xreadlink.h.
86323
86324         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86325         doesn't conflict with sparc Solaris 7's definition in
86326         /usr/include/sys/int_types.h.
86327
86328         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86329         files.
86330         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86331         and strncasecmp as r-values.  Unixware didn't have declarations.
86332
86333 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86334
86335         * lib/xstrtol.h: Add copyright notice.
86336         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86337         LONGINT_INVALID_SUFFIX_CHAR.
86338
86339 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86340
86341         * lib/xstrtol.c (strtoimax): New decl.
86342
86343 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86344
86345         * lib/xgetcwd.c: Don't include pathmax.h.
86346         Include stdlib.h and unistd.h if available.
86347         Include xalloc.h.
86348         (xmalloc, xstrdup, free): Remove decls.
86349         (xgetcwd): Don't assume sizes fit in unsigned.
86350         Check for overflow when computing sizes.
86351         Simplify reallocation code.
86352
86353 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86354
86355         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86356         a directory's st_size can have an arbitrary value, so the old
86357         usage could waste an arbitrary amount of memory.  All uses
86358         changed.
86359         * lib/savedir.h: Update prototype.
86360
86361 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86362
86363         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86364
86365         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86366         old strtoimax.c.
86367
86368         Also, make the following further changes to make this file's
86369         configuration more similar to that of strtol.c:
86370         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86371         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86372         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86373         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86374         changed to signed values.
86375
86376         And make the following changes as well:
86377         Fix copyright notice, as 1999 was missing.
86378         (verify): New macro.
86379         (strtoimax): Check sizes at compile-time, not run-time.
86380         Prefer strtol to strtoll if both work.
86381         (main): Remove; it was not that useful and was a pain to maintain.
86382
86383         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86384
86385 2001-08-31  Jim Meyering  <meyering@lucent.com>
86386
86387         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86388         Use an initial, malloc'd, buffer of length 128 rather than
86389         a statically allocated one of length 1024.
86390
86391 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86392
86393         Simplify code, partly by assuming autoconf 2.52 semantics.
86394
86395         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86396
86397         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86398         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86399         All uses removed.
86400         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86401         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86402         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86403         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86404         jm_AC_HEADER_INTTYPES_H.
86405         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86406
86407         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86408
86409         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86410         Quote first arg of AC_DEFUN.
86411         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86412         since they are needed to parse the include file even if we need
86413         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86414         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86415         but with opposite signedness.
86416
86417 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86418
86419         Merge 'exclude' changes from tar 1.13.22.
86420         This fixes one or two unlikely storage allocation overflow bugs,
86421         but doesn't change user-visible behavior otherwise.
86422
86423 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86424
86425         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86426         (jm_PREREQ_EXCLUDE): New macro.
86427
86428 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86429
86430         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86431         tm to be declared.
86432
86433 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86434
86435         * lib/hash.c: Remove '2001' from copyright notice.
86436
86437 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86438
86439         * lib/full-write.h: New file.
86440         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86441         * lib/full-write.c: Correct credits, as cccp.c no longer
86442         exists and anyway it was so heavily changed from the old cccp
86443         code as to be unrecognizable.  Include full-write.h.
86444         (full_write): Return size_t, with short writes meaning failure.
86445         All callers changed.  This fixes a bug with large buffers
86446         on 64-bit hosts.
86447         * lib/utime.c: Include full-write.h.
86448
86449 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86450
86451         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86452         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86453         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86454         Include if available.
86455         (<xalloc.h>): Include
86456         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86457         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86458         collide with FNM macros.
86459         (struct patopts): New struct.
86460         (struct exclude): Use it, as exclude patterns now come with options.
86461         (new_exclude): Support above changes.
86462         (new_exclude, add_exclude_file):
86463         Initial size must now be a power of two to simplify overflow checking.
86464         (free_exclude, fnmatch_no_wildcards): New function.
86465         (excluded_filename): No longer requires options arg, as the options
86466         are determined by add_exclude.  Now returns bool, not int.
86467         (excluded_filename, add_exclude):
86468         Add support for the fancy new exclusion options.
86469         (add_exclude, add_exclude_file): Now takes int options arg.
86470         Check for arithmetic overflow when computing sizes.
86471         (add_exclude_file): xrealloc might modify errno, so don't
86472         realloc until after errno might be used.
86473
86474         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86475         New macros.
86476         (free_exclude): New decl.
86477         (add_exclude, add_exclude_file): Now takes int options arg.
86478         (excluded_filename): No longer requires options arg, as the options
86479         are determined by add_exclude.  Now returns bool, not int.
86480
86481 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86482
86483         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86484
86485 2001-08-27  Jim Meyering  <meyering@lucent.com>
86486
86487         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86488
86489         * lib/version-etc.c (N_): Remove definition.
86490         Revert most of last change.
86491         Instead, simply don't mark the `Copyright...' string for translation.
86492         Based on advice from Paul Eggert.
86493
86494         * lib/strtoxmax.c: Tweak comment.
86495
86496 2001-08-26  Jim Meyering  <meyering@lucent.com>
86497
86498         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86499
86500         * m4/xstrtoimax.m4: New file.
86501         * m4/xstrtoumax.m4: Add comments explaining why we
86502         AC_REPLACE_FUNCS(strtol).
86503
86504 2001-08-26  Jim Meyering  <meyering@lucent.com>
86505
86506         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86507         of copyright with `%s' so translators don't get an untranslated
86508         message in 2002.
86509         (COPYRIGHT_YEAR): Define.
86510         (version_etc): Use fprintf rather than fputs.
86511         Suggestion from Ulrich Drepper.
86512
86513         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86514
86515         * lib/strtoll.c: New file, from GNU libc.
86516         * lib/xstrtoimax.c: New file.
86517
86518         * lib/xstrtol.h: Add xstrtoimax.
86519         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86520         * lib/strtoimax.c: New file.  Likewise, but first define
86521         STRTOUXMAX_SIGNED.
86522
86523         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86524         ...
86525         * lib/strtoxmax.c: ... then renamed to this.
86526
86527 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86528
86529         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86530         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86531         (jm_AC_TYPE_INTMAX_T): New macro.
86532         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86533
86534         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86535
86536         * m4/longlong.m4: Renamed from ulonglong.m4.
86537         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86538         * m4/uintmax_t.m4: Removed.
86539
86540 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86541
86542         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86543         Port to Solaris 8, where 'sed' requires a space after the 'r'
86544         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86545         Redirect output to $tmp just once.
86546
86547 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86548
86549         * lib/addext.c (<errno.h>): Include.
86550         (errno): Declare if not defined.
86551         (addext): Work correctly when pathconf returns -1 and leaves
86552         errno alone because there is no limit.  Also, work even if
86553         pathconf returns a value greater than SIZE_MAX.
86554
86555 2001-08-12  Jim Meyering  <meyering@lucent.com>
86556
86557         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86558         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86559         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86560         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86561         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86562         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86563         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86564         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86565         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86566         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86567         utime.m4, utimes.m4, xstrtoumax.m4:
86568         Quote the first argument in each use of AC_DEFUN.
86569
86570 2001-08-12  Jim Meyering  <meyering@lucent.com>
86571
86572         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86573         Simply `return getcwd (NULL, 0);'.
86574         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86575         Use 1300 as initial value for length, not PATH_MAX.
86576
86577         * lib/pathmax.h: Clean up cpp syntax.
86578
86579 2001-08-12  Jim Meyering  <meyering@lucent.com>
86580
86581         * lib/gettimeofday.c: New file.
86582         * lib/gtod.h: New file.
86583         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86584
86585 2001-08-05  Jim Meyering  <meyering@lucent.com>
86586
86587         * m4/jm-macros.m4: Require autoconf-2.52.
86588
86589 2001-08-04  Jim Meyering  <meyering@lucent.com>
86590
86591         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86592         stmt, to get in sync with glibc.
86593
86594 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86595
86596         The following changes are from gettext 0.10.39 as maintained by
86597         Bruno Haible.
86598
86599         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86600         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86601         with inverted sense.  All uses changed.
86602
86603         * lib/mbswidth.c: Don't include <limits.h>.
86604         Include <stdlib.h> and <string.h> unconditionally.
86605         (iswcntrl, mbsinit, ISCNTRL): New macros.
86606         (mbsnwidth): Use K&R style function declarations.
86607         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86608         can optimize it when MB_CUR_MAX == 1.
86609         The width of control characters is zero, not 1.
86610
86611 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86612
86613         The following changes are from gettext 0.10.39 as maintained by
86614         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86615
86616         * m4/codeset.m4: Upgrade to serial AM1.
86617         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86618         all uses changed.  Quote first arg of AC_DEFUN.
86619         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86620
86621         * m4/iconv.m4: Upgrade to serial AM2.
86622         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86623         Add --with-libconv-prefix.
86624         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86625         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86626         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86627         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86628         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86629
86630         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86631         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86632         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86633         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86634         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86635         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86636         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86637         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86638         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86639
86640         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86641         string.h any more.
86642
86643         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86644         not the default value.
86645
86646         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86647         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86648         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86649         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86650         Also check for iswcntrl, used for wcwidth fallback.
86651         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86652         to Autoconf 2.13.
86653
86654 2001-08-03  Jim Meyering  <meyering@lucent.com>
86655
86656         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86657         as it was in the original.  Reported by Paul Eggert.
86658
86659 2001-07-16  Jim Meyering  <meyering@lucent.com>
86660
86661         * m4/gettimeofday.m4: New file.
86662         Prompted by a report from Bernhard Baehr.
86663
86664 2001-07-15  Jim Meyering  <meyering@lucent.com>
86665
86666         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86667         stuff. Now it's in ../Makefile.cfg.
86668
86669 2001-07-15  Jim Meyering  <meyering@lucent.com>
86670
86671         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86672         (BUILT_SOURCES): Add unlocked-io.h.
86673         (io_functions): Define.
86674         (unlocked-io.h): New rule.
86675         (DISTCLEANFILES): Add unlocked-io.h.
86676         (all-local): Depend on unlocked-io.h, to ensure it is created.
86677
86678         * lib/unlocked-io.hin: New file
86679
86680         * lib/regex.c: Update from glibc.
86681
86682 2001-07-05  Jim Meyering  <meyering@lucent.com>
86683
86684         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86685         recommendation.
86686         (libfetish_a_SOURCES): Put all .h files here instead.
86687         Remove a thus-exposed (better checks in automake) duplicate and
86688         two unnecessary .h files.
86689
86690 2001-07-04  Jim Meyering  <meyering@lucent.com>
86691
86692         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86693         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86694         distcheck failure.
86695
86696 2001-07-02  Jim Meyering  <meyering@lucent.com>
86697
86698         The following changes were prompted by suggestions from Bruno Haible.
86699
86700         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86701         is now generated.
86702         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86703         definition of EXTRA_DIST.
86704         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86705         ensure that the generated file is created/updated whenever the list
86706         of $(unlocked_functions) is changed.
86707         (jm-glibc-io.m4): New rule.
86708         (unlocked-io.h): New rule -- currently unused.
86709
86710 2001-06-24  Jim Meyering  <meyering@lucent.com>
86711
86712         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86713         unmatched right bracket, rather than kludging it with an extra,
86714         falsely-matching quote in a comment.  Patch by Akim Demaille.
86715
86716 2001-06-11  Jim Meyering  <meyering@lucent.com>
86717
86718         * lib/regex.c: Update from GNU libc.
86719
86720 2001-05-27  Jim Meyering  <meyering@lucent.com>
86721
86722         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86723         Check for ut_type in struct utmp.
86724
86725 2001-05-27  Jim Meyering  <meyering@lucent.com>
86726
86727         * lib/readutmp.h (UT_TYPE): Define.
86728
86729 2001-05-24  Jim Meyering  <meyering@lucent.com>
86730
86731         * lib/argmatch.c: Include "quote.h".
86732         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86733         quote function.  Reported by Göran Uddeborg.
86734
86735 2001-05-22  Jim Meyering  <meyering@lucent.com>
86736
86737         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86738         now that we use the package-supplied version unconditionally.
86739         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86740
86741 2001-05-21  Jim Meyering  <meyering@lucent.com>
86742
86743         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86744         shell syntax errors.
86745
86746 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86747
86748         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86749
86750 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86751
86752         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86753         Don't bother to check library strftime, since
86754         we'll be using our own my_strftime function anyway.
86755         Define my_strftime instead of strftime.
86756
86757 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86758
86759         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86760         which is not yet declared.
86761
86762 2001-05-15  Jim Meyering  <meyering@lucent.com>
86763
86764         * m4/regex.m4: Use proper quoting so brackets appear in the test
86765         program.
86766         Reported by, and with help from, Bruno Haible.
86767
86768 2001-05-13  Jim Meyering  <meyering@lucent.com>
86769
86770         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86771         undefined.
86772
86773 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86774
86775         dirname code cleanup.  base_name now behaves more compatibly
86776         with POSIX basename when given file names that have trailing
86777         slashes, and similarly for dir_name.  Add new primitives
86778         base_len and dir_len.  Put the directory-name-related decls
86779         into dirname.h.
86780
86781         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86782         * lib/backupfile.c (base_name): Likewise.
86783         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86784         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86785         * lib/makepath.c (strip_trailing_slashes): Likewise.
86786         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86787         ISSLASH): Likewise.
86788         * lib/rename.c (strip_trailing_slashes): Likewise.
86789         * lib/same.c (base_name): Likewise.
86790         * lib/stripslash.c (ISSLASH): Likewise.
86791
86792         * lib/addext.c: Include <dirname.h> after size_t is defined.
86793         * lib/backupfile.c: Likewise.
86794
86795         * lib/addext.c (addext): Use base_len to trim redundant
86796         trailing slashes instead of doing it ourselves.
86797         But do not trim the last slash if it is not redundant.
86798
86799         * lib/backupfile.c (find_backup_file_name,
86800         max_backup_version): Use base_len instead of rolling it ourselves.
86801         Handle the case of "" and (on DOS) "C:" correctly.
86802
86803         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86804         needed. Include <string.h>, <dirname.h>.
86805         (base_name): Allow file names ending in slashes, other than names
86806         that are all slashes.  In this case, return the basename followed
86807         by the slashes.  This is more general, and can be used in places
86808         where the original base_name purposely had an assertion failure.
86809         (base_len): New function.
86810
86811         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86812         Do not include <assert.h>; no longer needed.
86813         Include xalloc.h.
86814         (memrchr): Remove decl.
86815         (dir_name_r): Remove.
86816         (dir_len): Renamed from dirlen.  All callers changed.
86817         Rewrite in terms of base_name, for simplicity and consistency.
86818         (dir_name): Never return NULL.  All callers changed.
86819         Do not include <stdlib.h> in test program; no longer needed.
86820         return 0; is fine for test program.
86821
86822         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86823         New macros.
86824         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86825
86826         * lib/path-concat.c (path_concat): Use base_len to compute
86827         base length, not strlen; this means we cannot rely on memcpy
86828         to null-terminate.
86829
86830         * lib/same.c (STREQ): Remove.
86831         (same_name): Handle the case where the basename ends in trailing '/'.
86832
86833         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86834         a slash was stripped.  Do not strip the last slash after a
86835         file system prefix.
86836
86837 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86838
86839         * lib/Makefile.am (libfetish_a_SOURCES):
86840         Add strftime.c, since we now compile it on all hosts.
86841
86842         * lib/strftime.c (my_strftime):
86843         Define to nstrftime if emacs, but only if my_strftime is not defined.
86844         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86845         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86846         Add one more extra argument: a nanoseconds value.
86847         All uses changed.
86848         (ns): New macro.
86849         (my_strftime function): Add %N format.
86850         (emacs_strftimeu): Renamed from emacs_strftime,
86851         with extra ut argument.
86852
86853 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86854
86855         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86856
86857 2001-04-21  Jim Meyering  <meyering@lucent.com>
86858
86859         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86860         doesn't interfere.
86861
86862 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86863
86864         * m4/ftruncate.m4: Check for chsize.
86865         Link with ftruncate.o unconditionally if ftruncate is missing.
86866         This was required when cross-compiling to i586-mingw32msvc.
86867
86868 2001-04-08  Jim Meyering  <meyering@lucent.com>
86869
86870         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86871         recomputed; that's necessary when the offset spans a DST transition.
86872         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86873
86874 2001-04-02  Jim Meyering  <meyering@lucent.com>
86875
86876         * lib/regex.h, regex.c: Update from GNU libc.
86877
86878 2001-03-24  Jim Meyering  <meyering@lucent.com>
86879
86880         * m4/jm-macros.m4: Require autoconf-2.49d.
86881
86882 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86883
86884         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86885
86886 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86887
86888         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86889
86890 2001-03-17  Jim Meyering  <meyering@lucent.com>
86891
86892         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86893         now that the version in autoconf is equivalent.
86894         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86895
86896         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86897         Suggestion from Akim Demaille.
86898
86899         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86900         (jm_PREREQ_TEMPNAME): New function.
86901
86902 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86903
86904         * lib/tempname.c (uint64_t): Define to uintmax_t if
86905         not defined, and if UINT64_MAX is not defined.
86906         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86907         Reported by John David Anglin.
86908
86909 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86910
86911         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86912         resolve alias if codeset is empty.
86913         * lib/config.charset (BeOS): Use wildcard syntax.
86914
86915 2001-03-13  Jim Meyering  <meyering@lucent.com>
86916
86917         * lib/path-concat.c (path_concat)
86918         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86919         concatenating e.g., `C:' and `foo'.
86920         From Bruno Haible.
86921
86922 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86923
86924         * lib/localcharset.c (locale_charset): Don't use
86925         setlocale(LC_CTYPE,NULL). Don't return NULL.
86926         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86927
86928 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86929
86930         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86931         support for DOS/DJGPP.
86932
86933 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86934
86935         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86936         lacks mkstemp.  Compile our own tempname.c if we compile our own
86937         mkstemp.c, as mkstemp relies on tempname.
86938
86939 2001-03-01  Jim Meyering  <meyering@lucent.com>
86940
86941         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86942         AH_VERBATIM really does output its argument verbatim.
86943
86944 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86945
86946         * lib/Makefile.am (libfetish_a_SOURCES):
86947         Add dup-safer.c, fopen-safer.c.
86948         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86949
86950         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86951         * lib/unistd-safer.h: New files.
86952
86953 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86954
86955         The mkstemp replacement is taken from glibc 2.2.2, with some
86956         portability fixes for use outside glibc, as follows:
86957
86958         * lib/tempname.c (struct_stat64): New macro.
86959         (direxists, __gen_tempname): Use it.
86960         This avoids a portability problem with Solaris 8.
86961
86962         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86963         (<stddef.h>, <stdint.h>, <string.h>):
86964         Include only if STDC_HEADERS || _LIBC.
86965         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86966         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86967         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86968         (__set_errno): Define this macro if <errno.h> doesn't.
86969         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86970         Define these macros if <stdio.h> doesn't.
86971         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86972         Define these macros if <sys/stat.h>
86973         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86974         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86975         __xstat64): Define if not _LIBC.
86976         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86977         (__gen_tempname): Invoke gettimeofday only if
86978         HAVE_GETTIMEOFDAY || _LIBC;
86979         otherwise, fall back on plain "time".
86980         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86981
86982         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86983
86984         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86985
86986 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86987
86988         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86989
86990 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86991
86992         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86993         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86994         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86995         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86996
86997 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86998
86999         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87000         Remove workaround macros for hosts that have mbrtowc but not
87001         mbstate_t, as we now insist on proper declarations for both
87002         before using mbrtowc.
87003
87004 2001-02-17  Jim Meyering  <meyering@lucent.com>
87005
87006         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87007         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87008         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87009         UnixWare 7.1.1.
87010
87011         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87012         rather than AC_CACHE_VAL.
87013
87014 2001-02-17  Jim Meyering  <meyering@lucent.com>
87015
87016         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87017         around included file name.
87018
87019         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87020
87021         * lib/strftime.c: Update from GNU libc (the only changes were to
87022         comments).
87023
87024 2001-02-17  Jim Meyering  <meyering@lucent.com>
87025
87026         * lib/regex.c: Update from libc.
87027
87028 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87029
87030         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87031         clash.
87032
87033 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87034
87035         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87036         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87037         Reported by Mark Hounschell via Paul Eggert.
87038
87039 2001-02-07  Jim Meyering  <meyering@lucent.com>
87040
87041         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87042
87043 2001-02-05  Jim Meyering  <meyering@lucent.com>
87044
87045         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87046         it includes the patch required for `large file' support with at least
87047         HP-UX's 10.20 /bin/cc.
87048
87049 2001-02-03  Jim Meyering  <meyering@lucent.com>
87050
87051         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87052         AS_IF, now that it works once again (mysteriously).
87053         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87054
87055 2001-01-30  Jim Meyering  <meyering@lucent.com>
87056
87057         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87058         * m4/chown.m4: Rename conftestchown to conftest.chown.
87059         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87060         s/conftestdir2/conftest.d2/.
87061         * m4/utimes.m4: s/conftestdata/conftest.data/
87062         Inspired by Pavel Roskin's change in autoconf.
87063
87064 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87065
87066         * lib/config.charset: Update for FreeBSD 4.2.
87067
87068 2001-01-27  Jim Meyering  <meyering@lucent.com>
87069
87070         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87071         a use of AS_IF.
87072         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87073
87074 2001-01-26  Jim Meyering  <meyering@lucent.com>
87075
87076         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87077         quotearg.c includes it.
87078
87079 2001-01-26  Jim Meyering  <meyering@lucent.com>
87080
87081         * lib/quotearg.c: Include stddef.h.
87082         * lib/quote.c: Include stddef.h.
87083         Reported by Axel Kittenberger.
87084
87085         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87086         line in double quotes so that it evokes a better diagnostic.
87087         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87088         Reported by Axel Kittenberger.
87089
87090 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87091
87092         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87093         as if it was a `charset'.
87094
87095 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87096
87097         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87098         has const.
87099
87100 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87101
87102         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87103         to avoid a warning.  Add back 'const' to inptr.
87104
87105 2001-01-20  Jim Meyering  <meyering@lucent.com>
87106
87107         Be sure that headers are checked before used in code compiled
87108         for the type checks.
87109         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87110         In place of that, invoke jm_CHECK_ALL_TYPES.
87111         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87112         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87113         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87114         The check for ssize_t was mistakenly run before the test for unistd.h.
87115
87116         The configure-time check for stdbool.h was missing.
87117         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87118         (jm_PREREQ_HASH): New function.
87119
87120 2001-01-17  Jim Meyering  <meyering@lucent.com>
87121
87122         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87123         for autoconf-2.49c.
87124         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87125
87126 2001-01-16  Jim Meyering  <meyering@lucent.com>
87127
87128         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87129         From Bruno Haible.
87130
87131 2001-01-14  Jim Meyering  <meyering@lucent.com>
87132
87133         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87134         foo and bar.  Create conftestdir/ in the script, not in the C code.
87135         Remove directories in the script, not in the C code.
87136         Remove conftestdir{,2} before trying to create the directory.
87137         Make the entire configure script fail if the mkdir fails.
87138
87139 2001-01-14  Jim Meyering  <meyering@lucent.com>
87140
87141         * lib/rename.c: New file.  From Volker Borchert.
87142         Include stdlib.h, string.h or strings.h, and xalloc.h.
87143         Use strip_trailing_slashes rather than open-coding it.
87144
87145 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87146
87147         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87148
87149 2001-01-03  Jim Meyering  <meyering@lucent.com>
87150
87151         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87152         of local `inptr' to avoid warning with some system declarations of
87153         iconv.
87154
87155 2001-01-02  Volker Borchert  <bt@teknon.de>
87156
87157         * m4/rename.m4: New file.
87158         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87159
87160 2001-01-01  Jim Meyering  <meyering@lucent.com>
87161
87162         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87163         even on systems with utmpx.h.  It's necessary for the declaration of
87164         utmp's ut_user member.  Reported by Andreas Jaeger.
87165
87166         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87167         available. They are required for the declarations of getgrgid and
87168         getpwuid resp.
87169         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87170         Reported by Andreas Jaeger.
87171
87172 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87173
87174         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87175         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87176         so `make install' also works in VPATH builds.
87177
87178 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87179
87180         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87181         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87182         can be used in subdirectories.
87183
87184 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87185
87186         * lib/modechange.c: Do not assume that mode_t uses the
87187         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87188         the other-execute bit of FOO even if S_IXOTH != 1.
87189
87190         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87191         WOTH, XOTH, ALLM): New macros.
87192         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87193          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87194         Use them.
87195         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87196         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87197         (mode_compile):
87198         No need to use uintmax_t; unsigned long is long enough.
87199         Don't bother to get suffix since we don't use it.
87200
87201 2000-12-26  Jim Meyering  <meyering@lucent.com>
87202
87203         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87204         better with autoheader.
87205
87206 2000-12-24  Jim Meyering  <meyering@lucent.com>
87207
87208         * lib/hash.c (is_prime): Return explicit boolean values.
87209         (hash_get_first): Return NULL to appease Irix5.6's 89.
87210         Reported by Nelson Beebe.
87211
87212 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87213
87214         * lib/localcharset.c (locale_charset): Add support for Win32.
87215
87216 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87217
87218         * lib/physmem.h, lib/physmem.c: New files.
87219
87220         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87221         (noinst_HEADERS): Add physmem.h.
87222
87223         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87224         't' for compatibility with Solaris 8 sort.
87225
87226 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87227
87228         * lib/config.charset: Add support for BeOS.
87229
87230 2000-12-17  Jim Meyering  <meyering@lucent.com>
87231
87232         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87233         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87234
87235 2000-12-16  Jim Meyering  <meyering@lucent.com>
87236
87237         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87238         N and M) would have treated it like `chown N:N FILE'.
87239
87240         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87241
87242 2000-12-16  Jim Meyering  <meyering@lucent.com>
87243
87244         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87245         SHELLS_FILE to a file name that's useful on djgpp systems.
87246         Include stdlib.h.
87247         (ADDITIONAL_DEFAULT_SHELLS): Define.
87248         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87249         Based mostly on a patch from Prashant TR.
87250
87251 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87252
87253         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87254         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87255         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87256
87257 2000-12-08  Andreas Schwab  <schwab@suse.de>
87258
87259         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87260         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87261
87262 2000-12-07  Jim Meyering  <meyering@lucent.com>
87263
87264         * lib/stripslash.c (ISSLASH): Define.
87265         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87266         `/'.
87267         From Prashant TR.
87268
87269         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87270         (dir_name_r): Declare this function as static.
87271         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87272         manifest itself on a name containing a mix of slashes and
87273         backslashes.
87274         Make this function work with names starting with a DOS-style
87275         drive letter and colon prefix.
87276         (dir_name): Append `.' if necessary.
87277         Based mostly on patches from Prashant TR and Eli Zaretskii.
87278
87279         * lib/dirname.h (dir_name_r): Remove prototype.
87280
87281 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87282
87283         * m4/off_t-format.m4: Remove this file.
87284         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87285
87286 2000-12-06  Jim Meyering  <meyering@lucent.com>
87287
87288         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87289         replacement strtoull, we may well need the replacement strtoul, too.
87290         Check for declarations of strtoul and strtoull.
87291         Check for strtol.  Mainly as a cue to cause automake to include
87292         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87293         Check for limits.h -- strtol.c needs it.
87294
87295 2000-12-05  Jim Meyering  <meyering@lucent.com>
87296
87297         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87298
87299 2000-12-04  Jim Meyering  <meyering@lucent.com>
87300
87301         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87302         Also include memory.h, stdlib.h, unistd.h if appropriate.
87303         Reported by Andreas Jaeger (conflicting declaration of malloc).
87304
87305 2000-12-02  Jim Meyering  <meyering@lucent.com>
87306
87307         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87308         * m4/jm-macros.m4 (jm_MACROS): require it.
87309
87310 2000-12-02  Jim Meyering  <meyering@lucent.com>
87311
87312         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87313
87314 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87315
87316         * lib/memrchr.c: Include <config.h> before any system include file.
87317
87318 2000-11-30  Jim Meyering  <meyering@lucent.com>
87319
87320         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87321
87322 2000-11-30  Jim Meyering  <meyering@lucent.com>
87323
87324         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87325
87326 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87327
87328         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87329
87330 2000-11-26  Jim Meyering  <meyering@lucent.com>
87331
87332         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87333
87334 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87335
87336         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87337         size of (size_t) -1; it's not portable.
87338
87339 2000-11-17  Jim Meyering  <meyering@lucent.com>
87340
87341         * lib/strstr.c: Update from GNU libc.
87342
87343 2000-11-17  Akim Demaille  <akim@epita.fr>
87344
87345         * lib/obstack.h: Formatting changes.
87346         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87347         prevent type checking.
87348         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87349         cast the value to (void *): assigning a `foo *' to a `void *'
87350         variable is valid.
87351         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87352
87353 2000-11-16  Jim Meyering  <meyering@lucent.com>
87354
87355         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87356
87357 2000-11-11  Jim Meyering  <meyering@lucent.com>
87358
87359         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87360
87361 2000-11-10  Jim Meyering  <meyering@lucent.com>
87362
87363         * lib/obstack.h: Update from GNU libc.
87364         * lib/obstack.c: Likewise.
87365
87366 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87367
87368         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87369
87370 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87371
87372         * lib/getusershell.c (setusershell): Use rewind rather than
87373         fseek/fseeko, to avoid configuration hassles with fseeko.
87374         Don't bother opening SHELLS_FILE if shellstream is NULL;
87375         it's not necessary.
87376
87377 2000-11-05  Jim Meyering  <meyering@lucent.com>
87378
87379         * lib/makepath.h (make_dir): Declare.
87380         * lib/makepath.c (make_dir): Remove `static' attribute.
87381         Tweak a comment.
87382
87383 2000-11-04  Jim Meyering  <meyering@lucent.com>
87384
87385         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87386
87387 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87388
87389         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87390         last one in a bucket, advance to the next bucket.
87391
87392 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87393
87394         * lib/fnmatch.c: Do not comment out all the code if we are using
87395         the GNU C library, because in some cases we are replacing buggy
87396         code in the GNU C library itself.
87397
87398 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87399
87400         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87401         (regex_compile): Catch bogus \(\1\).
87402
87403 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87404
87405         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87406         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87407         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87408
87409 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87410
87411         * lib/error.h, getline.h, modechange.h:
87412         Remove "2000" from Copyright line, as the file hasn't been
87413         changed this year other than in the copyright notice.
87414
87415         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87416         was changed this year.
87417
87418 2000-10-29  Jim Meyering  <meyering@lucent.com>
87419
87420         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87421         renaming.
87422         * m4/ls-mntd-fs.m4: Likewise
87423
87424 2000-10-29  Jim Meyering  <meyering@lucent.com>
87425
87426         * lib/xstat.in: Fix grammar in comment.
87427
87428 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87429
87430         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87431         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87432         doesn't define __restrict_arr.
87433
87434 2000-10-28  Jim Meyering  <meyering@lucent.com>
87435
87436         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87437         (jm_PREREQ_MEMCHR): New function.
87438
87439 2000-10-28  Jim Meyering  <meyering@lucent.com>
87440
87441         * lib/memchr.c: Update from libc.
87442         Adjust for portability:
87443         [HAVE_STDLIB_H]: Include stdlib.h.
87444         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87445         Undef __memchr, too.
87446         [!weak_alias]: Define __memchr to memchr.
87447
87448         * lib/regex.c: Update from libc.
87449         * lib/regex.h: Likewise.
87450         * lib/getopt1.c: Likewise.
87451         * lib/memcmp.c: Likewise.
87452
87453         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87454         Avoid using fseek, when possible -- it's broken by design.
87455         Patch by Ulrich Drepper.
87456
87457 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87458
87459         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87460         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87461         Giving in to popular pressure to shut up the compiler with casts.
87462
87463 2000-10-26  Jim Meyering  <meyering@lucent.com>
87464
87465         * lib/strftime.c: Update from libc.
87466
87467 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87468
87469         * regex.c: More `unsigned char' -> `re_char' changes.
87470         Also change several `int' into `re_wchar_t'.
87471         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87472         (PUSH_FAILURE_POINTER): Don't cast any more.
87473         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87474         We want GCC to complain, since this piece of code makes
87475         re_match non-reentrant, which *should* be fixed.
87476         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87477         (EXTEND_BUFFER): Use RETALLOC.
87478         (SET_LIST_BIT): Don't cast.
87479         (re_wchar_t): New type.
87480         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87481         that those two functions will always properly return.
87482         (IMMEDIATE_QUIT_CHECK): Cast to void.
87483         (analyse_first): Use recursion rather than an explicit stack.
87484         (re_compile_fastmap): Can't fail anymore.
87485         (re_search_2): Don't check re_compile_fastmap for failure.
87486         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87487         Now also sets the new value (passed in a new argument).
87488         (re_match_2_internal): Use it.
87489         Also, use a new var `reg' of type size_t when looping through regs
87490         rather than reuse the inappropriate `mcnt'.
87491
87492 2000-10-25  Jim Meyering  <meyering@lucent.com>
87493
87494         * lib/obstack.c: Update from libc.
87495
87496 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87497
87498         * regex.c (regex_compile): Change the way of handling a range from
87499         a char less than 256 to a char not less than 256.
87500
87501 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87502
87503         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87504         NT-Emacs only.
87505         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87506         so that re_search functions only quit when callers expect them to.
87507
87508 2000-10-23  Jim Meyering  <meyering@lucent.com>
87509
87510         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87511         wrong.  That set_locale call must not have any side effects.
87512         From Paul Eggert.
87513
87514 2000-10-22  Jim Meyering  <meyering@lucent.com>
87515
87516         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87517         [CYCLIC]: Remove now-unused definition.
87518
87519         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87520         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87521         Suggestion from Ulrich Drepper.
87522
87523 2000-10-21  Jim Meyering  <meyering@lucent.com>
87524
87525         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87526         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87527         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87528
87529 2000-10-21  Jim Meyering  <meyering@lucent.com>
87530
87531         * lib/dirname.c (memrchr): Declare if necessary.
87532         (dir_name): Remove the restriction that there be no
87533         trailing slashes.  Now, this code skips past them, effectively
87534         ignoring them.
87535         [TEST_DIRNAME] (main): New unit tests.
87536
87537         * lib/memrchr.c: New file from GNU libc.
87538         Undef __memrchr, too.
87539         [!weak_alias]: Define __memrchr to memrchr.
87540         Guard weak_alias use with `#ifdef weak_alias'.
87541
87542 2000-10-21  Jim Meyering  <meyering@lucent.com>
87543
87544         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87545         (dir_name): Use dir_name_r.
87546         * lib/dirname.h (dir_name_r): Declare it.
87547
87548 2000-10-17  Jim Meyering  <meyering@lucent.com>
87549
87550         * lib/quote.h (PARAMS): Define and use.
87551         Reported by Akim Demaille.
87552
87553         * lib/getopt.c: Update from libc.
87554
87555 2000-10-16  Jim Meyering  <meyering@lucent.com>
87556
87557         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87558         setlocale.
87559         From Jan Fedak.
87560
87561 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87562
87563         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87564
87565 2000-09-25  Jim Meyering  <meyering@lucent.com>
87566
87567         * lib/md5.h (rol): Define (from GnuPG).
87568
87569         * lib/sha.c: Give credit (GnuPG) where due.
87570         (M): Use rol rather than open-coding it.
87571         Add a FIXME comment.
87572
87573 2000-09-21  Jim Meyering  <meyering@lucent.com>
87574
87575         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87576         Reported by Michael Stone.
87577
87578 2000-09-20  Jim Meyering  <meyering@lucent.com>
87579
87580         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87581         (noinst_HEADERS): Add sha.h.
87582         Based on code from Scott G. Miller and from GnuPG.
87583
87584 2000-09-18  Jim Meyering  <meyering@lucent.com>
87585
87586         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87587         LIBS. Otherwise, everyone ends up linking with -lelf for some
87588         configurations.
87589         Reported by Mike Stone.
87590
87591 2000-09-15  Jim Meyering  <meyering@lucent.com>
87592
87593         * lib/regex.c: Update from libc.
87594
87595 2000-09-10  Jim Meyering  <meyering@lucent.com>
87596
87597         * lib/getopt.c (_getopt_internal): Update from glibc.
87598
87599 2000-09-09  Jim Meyering  <meyering@lucent.com>
87600
87601         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87602         think it should be used as a general replacement for isascii.
87603         * lib/fnmatch.c: Likewise.
87604         * lib/mbswidth.c: Likewise
87605         * lib/regex.c: Likewise.
87606
87607         Don't use atoi.
87608         * lib/userspec.c: Include sys/param.h and limits.h.
87609         Include xstrtol.h.
87610         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87611         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87612         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87613         UID, GID.  Check range.
87614
87615 2000-09-06  Jim Meyering  <meyering@lucent.com>
87616
87617         * lib/getopt.c (_getopt_internal): Update from glibc.
87618
87619 2000-08-30  Jim Meyering  <meyering@lucent.com>
87620
87621         * lib/strftime.c: Merge in changes from GNU libc.
87622
87623 2000-08-26  Jim Meyering  <meyering@lucent.com>
87624
87625         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87626         * m4/fpending.m4: New file.
87627
87628 2000-08-26  Jim Meyering  <meyering@lucent.com>
87629
87630         * lib/closeout.c: Include "__fpending.h".
87631         (close_stdout_status): Return right away if there's nothing to flush.
87632
87633         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87634         * lib/__fpending.c: New file.
87635         * lib/__fpending.h: New file.
87636
87637 2000-08-20  Jim Meyering  <meyering@lucent.com>
87638
87639         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87640         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87641         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87642
87643 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87644
87645         Improve fileutils installation on systems where running
87646         programs (like install) can't be unlinked.
87647         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87648         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87649
87650 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87651
87652         Standardize on "memory exhausted" instead of "Memory exhausted"
87653         or "virtual memory exhausted".
87654         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87655         "virtual memory exhausted".
87656         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87657         our own message.
87658         * lib/userspec.c (parse_user_spec): Likewise.
87659         * lib/bumpalloc.h: comment fix
87660         * lib/same.c, userspec.c: Include xalloc.h.
87661
87662         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87663         not char *const and pointing to a constant array.
87664         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87665         (xrealloc): Comment fix.
87666
87667         * lib/userspec.c (parse_user_spec):
87668         Don't translate a message until just before returning,
87669         to avoid unnecessary translation.
87670
87671 2000-08-07  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87674         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87675         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87676         getgroups.c, gethostname.c, getopt.h, group-member.c,
87677         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87678         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87679         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87680         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87681         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87682         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87683         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87684         yesno.c: Back out Copyright date changes for each file with no change
87685         this year.  This eases coordination with other programs using the same
87686         source code modules.  From Paul Eggert.
87687
87688 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87689
87690         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87691         not char, for compatibility with glibc 2.1.3 strftime.c.
87692
87693 2000-08-03  Greg McGary  <greg@mcgary.org>
87694
87695         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87696         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87697         (EXTEND_BUFFER): Use them.
87698
87699 2000-08-01  Jim Meyering  <meyering@lucent.com>
87700
87701         * lib/dirname.c (ISSLASH): Define.
87702         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87703         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87704         both `\' and `/' may be use as path separators.
87705         Based on a patch from Prashant TR.
87706
87707 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87708
87709         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87710         slot vector a constant, since it might get modified.
87711
87712 2000-07-31  Jim Meyering  <meyering@lucent.com>
87713
87714         * lib/xmalloc.c: Use `virtual memory exhausted', not
87715         `Memory exhausted'.
87716         * lib/obstack.c (print_and_abort): Likewise.
87717
87718 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87719
87720         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87721         buffer, so that the caller can always quote one small
87722         component of a "memory exhausted" message in slot 0.
87723         From a suggestion by Jim Meyering.
87724
87725 2000-07-30  Jim Meyering  <meyering@lucent.com>
87726
87727         * lib/makepath.c (make_path): Quote the other instance, too.
87728
87729         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87730         (STATIC_BUF_SIZE): Define.
87731         (quotearg_n_options): Use only statically allocated storage when
87732         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87733         than STATIC_BUF_SIZE.
87734
87735 2000-07-29  Jim Meyering  <meyering@lucent.com>
87736
87737         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87738         * lib/dirname.c (dir_name): Likewise.
87739
87740         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87741         `/'.
87742
87743         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87744         (dir_name): Assert that there are no trailing slashes.
87745
87746 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87747
87748         * lib/mbswidth.h (mbswidth): Add a flags argument.
87749         (mbswidth): New declaration.
87750         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87751         * lib/mbswidth.c (mbswidth): Add a flags argument.
87752         (mbsnwidth): New function.
87753
87754 2000-07-24  Jim Meyering  <meyering@lucent.com>
87755
87756         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87757
87758 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87759
87760         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87761
87762 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87763
87764         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87765         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87766         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87767         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87768         invoke multibyte primitives.
87769
87770 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87771
87772         * lib/quotearg.c:
87773         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87774         so that mbstate_t is always defined.
87775
87776         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87777         be 1 in at least one GCC installation, and this configuration
87778         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87779         performance on hosts that have mbrtowc but have only unibyte
87780         locales, but I assume these hosts are rare.
87781
87782 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87783
87784         * lib/mbswidth.c (_XOPEN_SOURCE):
87785         Don't define; this causes problems on Solaris 7.
87786         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87787
87788 2000-07-23  Jim Meyering  <meyering@lucent.com>
87789
87790         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87791         too: getgrgid, getpwuid, getuid.
87792
87793 2000-07-23  Jim Meyering  <meyering@lucent.com>
87794
87795         * lib/basename.c (base_name): Add an assertion.
87796
87797 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87798
87799         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87800         shadow its mbsinit function.
87801
87802 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87803
87804         * lib/mbswidth.h: New file.
87805         * lib/mbswidth.c: New file.
87806         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87807         (noinst_HEADERS): Add mbswidth.h.
87808
87809 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87810
87811         * lib/config.charset: Add support for FreeBSD. Improve support for
87812         HP-UX and IRIX 6.
87813
87814 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87815
87816         * m4/mbswidth.m4: New file.
87817         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87818
87819 2000-07-15  Jim Meyering  <meyering@lucent.com>
87820
87821         * lib/makepath.c: Include quote.h.
87822         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87823         corresponding argument in a `quote (...)' call.
87824         Give better diagnostics.
87825
87826         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87827         (noinst_HEADERS): Add quote.h.
87828
87829         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87830         from tar's src/misc.c.
87831         * lib/quote.h: New file.  Prototypes for same.
87832
87833 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87834
87835         From a suggestion by Bruno Haible.
87836         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87837         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87838         to decide whether to define the BeOS workaround macro;
87839         this adjusts to the change to AC_MBSTATE_T.
87840
87841 2000-07-14  Jim Meyering  <meyering@lucent.com>
87842
87843         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87844         jm_AC_TYPE_UINTMAX_T.
87845
87846 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87847
87848         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87849
87850         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87851         quotearg_buffer_restyled): Add support for
87852         clocale_quoting_style.  Undo previous change to
87853         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87854         and "{RIGHT QUOTATION MARK}" msgids.
87855
87856 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87857
87858         From a suggestion by Bruno Haible.
87859         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87860         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87861         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87862         and mbstate_t, to a single-part test that simply defines mbstate_t.
87863         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87864         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87865
87866 2000-07-10  Jim Meyering  <meyering@lucent.com>
87867
87868         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87869
87870         * m4/gnu-source.m4: Output to confdefs.h directly.
87871         Suggestion from Akim Demaille.
87872
87873 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87874
87875         The old behavior of quoting `like this' doesn't look good with
87876         newer, ISO-style fonts.  See:
87877         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87878
87879         Instead, quote "like this" by default.  Let the translator
87880         tailor the locale-specific quoting behavior by providing
87881         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87882
87883         * lib/quotearg.c (N_): New macro.
87884         (gettext_default): New function.
87885         (quotearg_buffer_restyled): Use
87886         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87887         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87888
87889 2000-07-09  Jim Meyering  <meyering@lucent.com>
87890
87891         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87892         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87893
87894         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87896
87897 2000-07-09  Jim Meyering  <meyering@lucent.com>
87898
87899         * lib/Most files: Update copyright dates to include 2000.
87900
87901 2000-07-08  Jim Meyering  <meyering@lucent.com>
87902
87903         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87904         if not defined.
87905         (xgethostname): Remove now-unnecessary #ifdef.
87906         Move declaration of `err' into loop where it's used.
87907
87908 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87909         and Bruno Haible  <haible@clisp.cons.org>
87910
87911         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87912         only if the test for an object-type mbstate_t fails.  This
87913         prevents us from mistakenly reporting that mbstate_t is a
87914         system object type after we "#define mbstate_t int" to work
87915         around its lack.
87916
87917 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87918         and Bruno Haible  <haible@clisp.cons.org>
87919
87920         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87921
87922 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87923
87924         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87925         to strerror_r.
87926         Include <ctype.h> for use of isalpha.
87927
87928 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87929
87930         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87931         by allocating a larger buffer. Test the gethostname return value for
87932         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87933         returns an error and ENAMETOOLONG isn't defined.
87934
87935 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87936
87937         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87938         dimension.
87939
87940 2000-07-04  Jim Meyering  <meyering@lucent.com>
87941
87942         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87943         of the deprecated AC_CHECKING.
87944
87945 2000-07-04  Jim Meyering  <meyering@lucent.com>
87946
87947         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87948         Reported by Bruno Haible.
87949
87950 2000-07-04  Jim Meyering  <meyering@lucent.com>
87951
87952         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87953         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87954         lacks mbrtowc.
87955
87956 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87957
87958         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87959         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87960
87961 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87962         and Bruno Haible  <haible@clisp.cons.org>
87963
87964         * lib/quotearg.c (mbrtowc):
87965         Assign to *pwc, and return 1 only if result is nonzero.
87966         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87967
87968 2000-07-03  Jim Meyering  <meyering@lucent.com>
87969
87970         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87971
87972 2000-07-03  Jim Meyering  <meyering@lucent.com>
87973
87974         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87975         This is necessary to get a definition of e.g., UTMP_FILE on
87976         HP-UX 10.20.
87977         From Bob Proulx.
87978
87979 2000-07-02  Jim Meyering  <meyering@lucent.com>
87980
87981         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87982
87983         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87984         AC_LIBOBJ(function_name).
87985         * m4/chown.m4: Likewise.
87986         * m4/fnmatch.m4: Likewise.
87987         * m4/ftruncate.m4: Likewise.
87988         * m4/getgroups.m4: Likewise.
87989         * m4/getline.m4: Likewise.
87990         * m4/group-member.m4: Likewise.
87991         * m4/jm-macros.m4: Likewise.
87992         * m4/lstat.m4: Likewise.
87993         * m4/malloc.m4: Likewise.
87994         * m4/memcmp.m4: Likewise.
87995         * m4/nanosleep.m4: Likewise.
87996         * m4/putenv.m4: Likewise.
87997         * m4/realloc.m4: Likewise.
87998         * m4/regex.m4: Likewise.
87999         * m4/stat.m4: Likewise.
88000         * m4/strftime.m4: Likewise.
88001
88002 2000-07-02  Jim Meyering  <meyering@lucent.com>
88003
88004         * lib/quotearg.c (mbstate_t): Don't define here.
88005
88006 2000-07-02  Jim Meyering  <meyering@lucent.com>
88007
88008         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88009
88010 2000-07-01  Jim Meyering  <meyering@lucent.com>
88011
88012         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88013
88014 2000-07-01  Jim Meyering  <meyering@lucent.com>
88015
88016         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88017         problem.
88018
88019 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88020
88021         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88022         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88023
88024 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88025
88026         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88027         per change in ../m4/ls-mntd-fs.m4.
88028         (read_filesystem_list): Ignore symbolic links.
88029
88030 2000-06-29  Jim Meyering  <meyering@lucent.com>
88031
88032         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88033         for declaration of strcmp.
88034
88035         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88036
88037         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88038         Avoid warning by casting result to `char *' to remove `const'.
88039
88040 2000-06-28  Jim Meyering  <meyering@lucent.com>
88041
88042         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88043         included by quotearg.c, for which we perform this test.  From
88044         Bruno Haible.
88045
88046 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88047
88048         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88049         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88050         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88051
88052 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88053
88054         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88055
88056 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88057
88058         savedir now sets errno on failure and invokes xmalloc to get memory.
88059         Fix a couple of other minor bugs while we're at it.
88060
88061         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88062         (NAMLEN): Remove macro.
88063         (malloc, realloc): Remove decls.
88064         (stpcpy): Likewise.
88065         ("xalloc.h"): Include.
88066         (NAME_SIZE_DEFAULT): New macro.
88067         (savedir): Use xmalloc / xrealloc to allocate memory.
88068         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88069         Skip "" directory entries.
88070         Use strlen to calculate directory entry length, since the old method
88071         is rarely used these days and isn't worth supporting.
88072         Don't use a pointer after freeing it.
88073         Check for integer overflow when calculating allocation size.
88074         Use memcpy to copy entries, instead of stpcpy.
88075         Set errno properly when returning NULL.
88076         Check for readdir error.
88077
88078 2000-06-26  Jim Meyering  <meyering@lucent.com>
88079
88080         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88081
88082 2000-06-25  Jim Meyering  <meyering@lucent.com>
88083
88084         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88085         Linux header bug when _XOPEN_SOURCE is defined to 500.
88086
88087 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88088
88089         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88090         deficiency.
88091
88092 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88093
88094         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88095         Include xalloc.h.
88096         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88097
88098 2000-06-24  Jim Meyering  <meyering@lucent.com>
88099
88100         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88101         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88102         for which strerror does return char*, but which lacks a conveniently
88103         accessible declaration of the function.  If the compile-test says
88104         strerror_r doesn't work, then resort to a `run'-test that works on
88105         BeOS and segfaults on DEC Unix.
88106
88107 2000-06-24  Jim Meyering  <meyering@lucent.com>
88108
88109         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88110
88111 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88112
88113         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88114         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88115
88116 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88117
88118         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88119         (mbrtowc, mbstate_t): Define substitutes if
88120         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88121         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88122         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88123
88124 2000-06-23  Jim Meyering  <meyering@lucent.com>
88125
88126         * m4/afs.m4: Add missing AC_MSG_RESULT.
88127         Reported by Bruno Haible.
88128
88129         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88130         Suggestion from Bruno Haible.
88131
88132 2000-06-23  Jim Meyering  <meyering@lucent.com>
88133
88134         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88135
88136 2000-06-21  Jim Meyering  <meyering@lucent.com>
88137
88138         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88139
88140 2000-06-21  Jim Meyering  <meyering@lucent.com>
88141
88142         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88143         (noinst_HEADERS): Add getstr.h.
88144
88145         * lib/getline.c (getstr): Move into a separate file.
88146         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88147         the following changes: new parameter, delim2; both delim[12]
88148         parameters have type `int', not `char'.  The latter would lose
88149         with 8-bit delimiters.
88150         * lib/getstr.h: New file.
88151
88152 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88153
88154         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88155         than 1024, return a memory chunk of least possible size, instead
88156         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88157         Use free/xmalloc instead of xrealloc to avoid copying for very long
88158         paths.
88159
88160 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88161
88162         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88163         the empty string.
88164
88165 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88166
88167         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88168         address, not strdup.  Include <stdlib.h> and don't declare free().
88169
88170 2000-06-19  Jim Meyering  <meyering@lucent.com>
88171
88172         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88173
88174 2000-06-18  Jim Meyering  <meyering@lucent.com>
88175
88176         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88177
88178         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88179         `checking whether...' message to be consistent with that of the
88180         lstat test.
88181
88182 2000-06-18  Jim Meyering  <meyering@lucent.com>
88183
88184         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88185         Besides, these days every porting target provides a mkdir function.
88186
88187         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88188         needed. (this snippet comes from src/system.h).
88189
88190 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88191
88192         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88193
88194 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88195
88196         * lib/human.c (adjust_value): New function.
88197         (human_readable_inexact): Apply rounding style even when
88198         printing approximate values.
88199
88200 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88201
88202         * lib/human.c (human_readable_inexact): Allow an input block
88203         size that is not a multiple of the output block size, and vice versa.
88204         Reported by Piergiorgio Sartor.
88205
88206 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88207
88208         * lib/getdate.y (get_date): Apply relative times after time
88209         zone indicator, not before.  Reported by Todd A. Jacobs.
88210
88211 2000-06-13  Jim Meyering  <meyering@lucent.com>
88212
88213         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88214
88215         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88216
88217 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88218
88219         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88220
88221 2000-06-12  Jim Meyering  <meyering@lucent.com>
88222
88223         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88224         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88225         optional argument.
88226         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88227         the optional argument, `lib'.
88228
88229 2000-06-08  Jim Meyering  <meyering@lucent.com>
88230
88231         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88232
88233 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88234
88235         Rewrite largefile configuration so that we don't need to run
88236         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88237         AC_CANONICAL_HOST in configure.in -- jmm]
88238
88239         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88240         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88241         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88242         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88243         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88244         All uses changed.
88245         Instead of inspecting the output of getconf, try to compile the
88246         test program without and with the macro definition.
88247         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88248         for getconf.  Instead, check for the needed flags by compiling
88249         test programs.
88250
88251 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88252
88253         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88254
88255 2000-06-04  Jim Meyering  <meyering@lucent.com>
88256
88257         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88258         SunOS 4.1.4 for which gid_t is an unsigned type.
88259
88260 2000-06-03  Jim Meyering  <meyering@lucent.com>
88261
88262         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88263         now that autoconf requires that.
88264
88265         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88266         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88267         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88268
88269 2000-06-03  Jim Meyering  <meyering@lucent.com>
88270
88271         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88272
88273 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88274
88275         * m4/glibc21.m4: New file.
88276         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88277
88278 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88279
88280         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88281         newer, don't install charset.alias.
88282         * lib/config.charset: Change the Linux/glibc rules so they become empty
88283         on glibc-2.1 or newer.
88284
88285 2000-06-02  Jim Meyering  <meyering@lucent.com>
88286
88287         * lib/mountlist.c: Back out last change.  Instead, do this...
88288         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88289         me_dummy member using the same `ignore'-testing code.
88290         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88291         fs_type strings.
88292         From Mark D. Roth.
88293
88294 2000-05-29  Jim Meyering  <meyering@lucent.com>
88295
88296         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88297         mounts with the `ignore' attribute.  Based on a patch from
88298         Mark D. Roth.
88299
88300 2000-05-28  Jim Meyering  <meyering@lucent.com>
88301
88302         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88303         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88304         * m4/stat.m4: Likewise.
88305         * m4/lstat.m4: Likewise.
88306         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88307
88308         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88309         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88310
88311 2000-05-26  Jim Meyering  <meyering@lucent.com>
88312
88313         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88314
88315 2000-05-24  Jim Meyering  <meyering@lucent.com>
88316
88317         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88318         autoconf requires that.
88319         * m4/lib-check.m4: Likewise.
88320         * m4/jm-macros.m4: Likewise.
88321         * m4/strftime.m4: Likewise.
88322
88323         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88324         AC_CHECK_DECLS, now that autoconf requires that.
88325
88326 2000-05-22  Jim Meyering  <meyering@lucent.com>
88327
88328         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88329         * m4/lstat.m4: Likewise.
88330
88331 2000-05-22  Jim Meyering  <meyering@lucent.com>
88332
88333         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88334
88335 2000-05-20  Jim Meyering  <meyering@lucent.com>
88336
88337         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88338         (jm_PREREQ): Use it.
88339
88340 2000-05-18  Jim Meyering  <meyering@lucent.com>
88341
88342         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88343         back, too, since it may have been modified by allocate_entry.
88344         (hash_delete): Rewrite to use neither the assignment operator
88345         nor the comma operator in an if-expression.
88346
88347 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88348
88349         * lib/closeout.c:
88350         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88351         Remove; no longer needed.
88352         "quotearg.h": Add include.
88353         (file_name): Do not bother to explicitly initialize to NULL; it's less
88354         efficient on some hosts.
88355         (close_stdout_status): Remove test as to whether stdout was already
88356         closed; it breaks for the case "echo x | sort >&-".
88357         Quote file name colons.
88358         Do not assume that _("write error") lacks format strings.
88359
88360 2000-05-15  Jim Meyering  <meyering@lucent.com>
88361
88362         * lib/version-etc.c (version_etc_copyright): Update the copyright
88363         string used in all --version output.
88364
88365 2000-05-14  Jim Meyering  <meyering@lucent.com>
88366
88367         * lib/closeout.c (close_stdout_set_file_name): New function.
88368         (close_stdout_status): Use new file-scoped global.
88369         Return right away if fstat says the stdout file descriptor is invalid.
88370         * lib/closeout.h (close_stdout_set_file_name): Declare.
88371
88372 2000-05-10  Jim Meyering  <meyering@lucent.com>
88373
88374         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88375         (close_stdout_set_status): New function.
88376         * lib/closeout.h (close_stdout_set_status): Declare.
88377
88378 2000-05-09  Jim Meyering  <meyering@lucent.com>
88379
88380         * m4/gettext.m4: Rename this...
88381         * m4/libintl.m4: ...to this.
88382
88383 2000-05-08  Jim Meyering  <meyering@lucent.com>
88384
88385         * lib/long-options.c: Don't include closeout.h.
88386         (parse_long_options): Don't call close_stdout for --version.
88387
88388 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88389
88390         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88391         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88392         2.1.3 bug.  This avoids a clash when files like regex.c define
88393         _GNU_SOURCE.
88394
88395 2000-05-06  Jim Meyering  <meyering@lucent.com>
88396
88397         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88398         (AC_REPLACE_FUNCS): Add strnlen.
88399
88400         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88401         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88402
88403         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88404         AC_SEARCH_LIBS call for nanosleep.
88405         (LIB_NANOSLEEP): Set and AC_SUBST.
88406
88407 2000-05-06  Jim Meyering  <meyering@lucent.com>
88408
88409         * lib/strnlen.c: Undefine __strnlen and strnlen.
88410         [!weak_alias]: Define __strnlen to strnlen.
88411
88412         * lib/atexit.c: New file, from libiberty.
88413
88414 2000-05-06  Jim Meyering  <meyering@lucent.com>
88415
88416         * lib/closeout.c (close_stdout_status): Also check for errors on the
88417         stderr stream.
88418
88419 2000-05-05  Jim Meyering  <meyering@lucent.com>
88420
88421         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88422         AC_SEARCH_LIBS call for clock_gettime.
88423         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88424
88425         * m4/search-libs.m4: Update from autoconf.
88426
88427         su doesn't work on Solaris 2.6.
88428         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88429         <shadow.h>.  Reported by Dragos Harabor.
88430
88431 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88432
88433         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88434         memcpy instead of xmalloc, xrealloc, path_concat.
88435         (locale_charset): Treat empty environment variables as absent.
88436         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88437
88438 2000-05-04  Jim Meyering  <meyering@lucent.com>
88439
88440         * lib/getopt.c: Update from glibc.
88441         * lib/obstack.c: Likewise.
88442         * lib/obstack.h: Likewise.
88443         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88444         file
88445
88446         * lib/regex.h: Likewise.
88447         * lib/strndup.c: Likewise.
88448         * lib/strnlen.c: New file, from glibc.
88449
88450 2000-05-03  Jim Meyering  <meyering@lucent.com>
88451
88452         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88453
88454 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88455
88456         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88457         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88458         compile-time test, rather than inspecting host and OS, to
88459         decide whether to define _LARGEFILE_SOURCE.
88460
88461 2000-05-01  Jim Meyering  <meyering@lucent.com>
88462
88463         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88464
88465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88466         Based on a patch from Bruno Haible.
88467
88468 2000-05-01  Jim Meyering  <meyering@lucent.com>
88469
88470         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88471
88472 2000-04-29  Jim Meyering  <meyering@lucent.com>
88473
88474         * lib/path-concat.c: Declare strdup only if it's not defined.
88475         * lib/canon-host.c: Likewise.
88476
88477 2000-04-28  Jim Meyering  <meyering@lucent.com>
88478
88479         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88480         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88481         is included first, then limits.h is included by locale.h by libintl.h.
88482         From John David Anglin.
88483
88484 2000-04-25  Jim Meyering  <meyering@lucent.com>
88485
88486         * lib/makepath.c (S_IRWXUGO): Define.
88487         (make_path): Always perform explicit chmod if MODE specifies any
88488         of the `special' permission bits.  Prompted by a bug report against
88489         install from Mate Wierdl and Joost van Baal.
88490
88491 2000-04-18  Jim Meyering  <meyering@lucent.com>
88492
88493         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88494         (jm_PREREQ): Use it.
88495
88496 2000-04-18  Jim Meyering  <meyering@lucent.com>
88497
88498         * lib/README: New file.
88499
88500         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88501         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88502
88503 2000-04-17  Jim Meyering  <meyering@lucent.com>
88504
88505         Get it right :-)
88506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88507         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88508         Suggestion from Akim Demaille.
88509
88510 2000-04-17  Jim Meyering  <meyering@lucent.com>
88511
88512         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88513         the definition of it to rpl_strftime also defined-away the system's
88514         declaration.
88515
88516 2000-04-15  Jim Meyering  <meyering@lucent.com>
88517
88518         Use `C' to denote so-called `contiguous' files, the same way
88519         that tar does.
88520         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88521         (ftypelet): Use S_ISCTG.
88522         From Michael Deutschmann.
88523
88524 2000-04-14  Jim Meyering  <meyering@lucent.com>
88525
88526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88527         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88528         clobbered.
88529
88530 2000-04-14  Jim Meyering  <meyering@lucent.com>
88531
88532         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88533
88534 2000-04-13  Jim Meyering  <meyering@lucent.com>
88535
88536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88537         AH_VERBATIM to insert required #ifndef into config.h.in.
88538         Suggestion from Akim Demaille.
88539
88540 2000-04-12  Jim Meyering  <meyering@lucent.com>
88541
88542         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88543         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88544         Christian Krackowizer.
88545
88546         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88547         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88548         (AC_SYS_LARGEFILE): Require.
88549         (AM_C_PROTOTYPES): Require.
88550
88551 2000-04-08  Jim Meyering  <meyering@lucent.com>
88552
88553         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88554         names don't conflict.  Reported by Eli Zaretskii.
88555
88556 2000-04-07  Jim Meyering  <meyering@lucent.com>
88557
88558         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88559         sys/types.h, to work around system header problems on AIX 3.2.5.
88560         From Bruno Haible.
88561
88562 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88563
88564         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88565         bug.  Deal with the different error behavior of Irix iconv.
88566
88567 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88568
88569         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88570         IRIX if the installer said otherwise.
88571
88572 2000-04-05  Jim Meyering  <meyering@lucent.com>
88573
88574         Portability tweaks required for ultrix4.3.
88575         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88576         (jm_CHECK_DECLS): Add getutent to the list of functions.
88577         (_jm_DECL_HEADERS): Add utmpx.h.
88578         From John David Anglin.
88579
88580         * m4/strftime.m4: Back out the 2000-04-02 change.
88581         Instead of that change, simply undefine putenv in the test program.
88582
88583 2000-04-05  Jim Meyering  <meyering@lucent.com>
88584
88585         Portability tweaks required for ultrix4.3.
88586         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88587         getutent.
88588         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88589         * lib/canon-host.c: Declare strdup.
88590         * lib/path-concat.c: Likewise.
88591         From John David Anglin.
88592
88593 2000-04-04  Jim Meyering  <meyering@lucent.com>
88594
88595         Be more DOS 8.3-friendly.
88596         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88597         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88598         * lib/Makefile.am: Reflect renaming.
88599         Reported by Eli Zaretskii.
88600
88601         Use a temporary file name that won't clash with `charset.alias'
88602         in the DOS 8.3 name space.
88603         * lib/Makefile.am (charset_tmp): Define.
88604         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88605         (uninstall-local): Likewise.
88606         Reported by Eli Zaretskii.
88607
88608 2000-04-03  Jim Meyering  <meyering@lucent.com>
88609
88610         * m4/gettext.m4: Fix typo in comment.
88611
88612         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88613         textutils/configure.in).  Suggestion from Paul Eggert.
88614         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88615
88616 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88617
88618         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88619         variable in the shell rather than using putenv, which isn't
88620         portable.  This avoids the configure-time inter-test dependency
88621         on the potentially-renamed putenv function.
88622
88623 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88624
88625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88626         before checking struct stat.st_blksize, so that
88627         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88628
88629 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88630
88631         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88632         since strftime.c uses HAVE_STRFTIME to decide whether to use
88633         the underlying strftime.
88634
88635 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88636
88637         * lib/time/strftime.c (my_strftime): Make sure we call the system
88638         strftime, not ourselves, when invoking the underlying strftime.
88639
88640 2000-03-24  Jim Meyering  <meyering@lucent.com>
88641
88642         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88643         (charset_alias): Define.
88644         (install-exec-local): Factor out common code.
88645         (uninstall-local): Split lines longer than 80.
88646         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88647         (SUFFIXES): Define.
88648         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88649         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88650
88651 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88652
88653         * lib/config.charset: Output a line containing "Packages using this
88654         file".
88655         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88656         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88657         ref-del.sed): New rules.
88658
88659 2000-03-17  Jim Meyering  <meyering@lucent.com>
88660
88661         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88662         Otherwise, include <strings.h>
88663
88664 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88665
88666         * lib/unicodeio.c (utf8_wctomb): New function.
88667         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88668         format instead of in UCS-4 with platform dependent endianness.
88669
88670 2000-03-10  Jim Meyering  <meyering@lucent.com>
88671
88672         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88673         From Marco Franzen.
88674
88675 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88676
88677         * lib/savedir.c (savedir): Work even if directory size is
88678         negative; this can happen with some screwy NFS configurations.
88679
88680 2000-03-06  Jim Meyering  <meyering@lucent.com>
88681
88682         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88683         if it's NULL (because we ran out of memory).  From Bruno Haible.
88684
88685 2000-03-05  Jim Meyering  <meyering@lucent.com>
88686
88687         * lib/localcharset.c ("path-concat.h"): Include.
88688         (get_charset_aliases): Use path_concat instead of ANSI string
88689         concatenation.
88690
88691         * lib/unicodeio.h (PARAMS): Define.
88692         Use it to guard prototype.
88693
88694 2000-03-04  Jim Meyering  <meyering@lucent.com>
88695
88696         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88697         for lib/localcharset.c.
88698
88699 2000-03-04  Jim Meyering  <meyering@lucent.com>
88700
88701         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88702         installing into it.
88703         (uninstall-local): Uncomment this rule so `make distcheck' works
88704         once again.
88705
88706         * lib/unicodeio.c (<errno.h>): Include it.
88707         (errno): Declare if not defined.
88708
88709         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88710
88711         * lib/config.charset: New version, incorporating remarks from a linux
88712         i18n mailing list.  From Bruno Haible.
88713
88714 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88715
88716         * m4/codeset.m4: New file.
88717         * m4/iconv.m4: New file.
88718         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88719
88720 2000-03-03  Jim Meyering  <meyering@lucent.com>
88721
88722         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88723
88724 2000-03-02  Jim Meyering  <meyering@lucent.com>
88725
88726         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88727         the messages come out on separate lines.
88728
88729         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88730         rather than jm_CHECK_DECLARATIONS.
88731         * m4/decl.m4: Remove now-unused file.
88732
88733         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88734         geteuid.
88735
88736 2000-03-02  Jim Meyering  <meyering@lucent.com>
88737
88738         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88739
88740 2000-03-01  Jim Meyering  <meyering@lucent.com>
88741
88742         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88743         * lib/unicodeio.c: Likewise.
88744
88745 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88746
88747         * lib/config.charset: New file.
88748         * lib/localcharset.c: New file.
88749         * lib/unicodeio.h, lib/unicodeio.c: New files.
88750         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88751         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88752         (noinst_HEADERS): Add unicodeio.h.
88753         (all-local, install-exec-local, charset.alias): New targets.
88754
88755 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88756
88757         * lib/quotearg.c (ALERT_CHAR): New macro.
88758         (quotearg_buffer_restyled): Use it.
88759
88760 2000-02-27  Jim Meyering  <meyering@lucent.com>
88761
88762         * m4/check-decl.m4: Add getenv to the list.
88763
88764 2000-02-27  Jim Meyering  <meyering@lucent.com>
88765
88766         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88767         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88768
88769         * lib/backupfile.c: Guard inclusion of stdlib.h with
88770         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88771         Declare malloc if needed.
88772
88773         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88774         `#ifndef HAVE_DECL..'
88775         now that autoconf always defines the HAVE_DECL_ symbols.
88776         * lib/human.c: Likewise.
88777         * lib/same.c: Likewise.
88778         * lib/strtoumax.c: Likewise.
88779
88780         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88781         declaration check was not run.
88782         * lib/hash.c: Likewise.
88783         * lib/human.c: Likewise.
88784         * lib/same.c: Likewise.
88785         * lib/strtoumax.c: Likewise.
88786
88787         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88788         `.', then first look up the entire `.'-containing string as a login
88789         name.
88790
88791 2000-02-23  Jim Meyering  <meyering@lucent.com>
88792
88793         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88794         in place of my hack.
88795
88796 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88797
88798         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88799         (textint): New typedef.
88800         (parser_control): Member year changed from int to textint.
88801         All uses changed.
88802         (YYSTYPE): Removed; replaced by %union with int and textint members.
88803         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88804         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88805         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88806         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88807         (date, number, to_year): Use width of number in digits, not its value,
88808         to determine whether it's a 2-digit year, or a 2-digit time.
88809         (yylex): Store number of digits of numeric tokens.
88810         Reported by John Kendall.
88811
88812         (parser_control): Changed from struct parser_control to typedef (for
88813         consistency).  All uses changed.
88814
88815         (tID): Removed; not used.
88816         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88817
88818 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88819
88820         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88821         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88822
88823 2000-02-12  Jim Meyering  <meyering@lucent.com>
88824
88825         * lib/userspec.c (ISDIGIT): Define it.
88826         (isdigit): Remove definition.
88827         (is_number): Use ISDIGIT, not isdigit.
88828         <libintl.h>: Include.
88829         (_ and N_): Define.
88830         (parse_user_spec): Mark translatable strings.
88831
88832 2000-02-10  Jim Meyering  <meyering@lucent.com>
88833
88834         With these changes, nanosleep.[ch] are finally enough like the other
88835         lib/* replacement files to compile on a few more losing systems.
88836
88837         * lib/nanosleep.h: Don't include config.h.
88838         Remove prototype from declaration of nanosleep.
88839         (PARAMS): Remove now-unneeded definition.
88840         * lib/nanosleep.c: #undef nanosleep.
88841         (rpl_nanosleep): Rename from nanosleep.
88842
88843 2000-02-10  Jim Meyering  <meyering@lucent.com>
88844
88845         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88846         gnu_nanosleep to rpl_nanosleep.
88847
88848 2000-02-09  Jim Meyering  <meyering@lucent.com>
88849
88850         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88851         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88852
88853 2000-02-08  Akim Demaille  <akim@epita.fr>
88854
88855         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88856         `[' and `]' and remove uses of `changequote'.
88857         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88858         (AC_SYS_LARGEFILE): Likewise.
88859         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88860         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88861         of changequote.
88862         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88863         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88864         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88865         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88866
88867 2000-02-05  Jim Meyering  <meyering@lucent.com>
88868
88869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88870         Remove explicit use of AC_HEADER_TIME.  It is required by
88871         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88872         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88873         in autoconf whereby the expansion of the latter ended up preceding
88874         the expansion of its prerequisite, AC_HEADER_TIME.
88875         Reported by Volker Borchert.
88876
88877 2000-02-03  Jim Meyering  <meyering@lucent.com>
88878
88879         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88880
88881 2000-02-03  Jim Meyering  <meyering@lucent.com>
88882
88883         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88884         rather than with `#if HAVE_UTMPNAME'.
88885
88886 2000-02-02  Jim Meyering  <meyering@lucent.com>
88887
88888         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88889         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88890         Reported by Eli Zaretskii.
88891
88892 2000-02-01  Jim Meyering  <meyering@lucent.com>
88893
88894         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88895
88896 2000-01-31  Jim Meyering  <meyering@lucent.com>
88897
88898         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88899         functions.  Add the time.h and sys/time.h headers along with the
88900         AC_REQUIRE'ment of AC_HEADER_TIME.
88901
88902 2000-01-31  Jim Meyering  <meyering@lucent.com>
88903
88904         * lib/nanosleep.h (nanosleep): Guard declaration with
88905         `#if ! HAVE_DECL_NANOSLEEP'.
88906         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88907         the declaration in that vendor's sys/timers.h.
88908         Reported by Christian Krackowizer.
88909
88910         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88911         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88912         (ISPRINT): Likewise.
88913         Reported by Tom Tromey.
88914
88915 2000-01-30  Jim Meyering  <meyering@lucent.com>
88916
88917         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88918
88919         * m4/prereq.m4 (utmp_includes): Define.
88920         Check for ut_user and ut_name members in both struct utmpx
88921         and struct utmp.
88922
88923 2000-01-30  Jim Meyering  <meyering@lucent.com>
88924
88925         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88926         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88927         header files where only utmpx.ut_user is declared.
88928
88929         * lib/readutmp.h (UT_USER): Define.
88930
88931 2000-01-29  Jim Meyering  <meyering@lucent.com>
88932
88933         * m4/lib-check.m4: New file containing library-related checks from
88934         fileutils and sh-utils (textutils had none).
88935
88936 2000-01-28  Jim Meyering  <meyering@lucent.com>
88937
88938         * m4/perl.m4: Change format of warning message to look more like that
88939         from the missing script.  Suggestion from François Pinard.
88940
88941 2000-01-25  Jim Meyering  <meyering@lucent.com>
88942
88943         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88944         well as time.h in the compile check.
88945         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88946         Fix typo in cross-compiling case: s/yes/no/.
88947
88948 2000-01-23  Jim Meyering  <meyering@lucent.com>
88949
88950         * m4/jm-macros.m4: Move df-related tests here from
88951         fileutils/configure.in
88952
88953         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88954         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88955
88956         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88957         s/space/ac_fsusage_space/.
88958         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88959
88960         * m4/ftruncate.m4: New file (derived from part of
88961         fileutils/configure.in).
88962         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88963         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88964
88965         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88966         AC_SUBST these here, rather than just in sh-util/configure.in, so
88967         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88968         all the same.
88969         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88970         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88971         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88972         (AC_SUBST(POW_LIBM)): Likewise.
88973         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88974
88975 2000-01-23  Jim Meyering  <meyering@lucent.com>
88976
88977         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88978         obstack.c.
88979
88980 2000-01-22  Jim Meyering  <meyering@lucent.com>
88981
88982         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88983
88984         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88985
88986         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88987         configure.in
88988         (AC_CHECK_HEADERS): Likewise for sh-utils.
88989         (AC_CHECK_HEADERS): Likewise for textutils.
88990         Merge the three lists of headers.
88991
88992         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88993         from fileutils' configure.in.
88994
88995         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88996         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88997         check-decl.m4.
88998
88999         * m4/check-decl.m4: Use #if rather than #ifdef.
89000         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89001         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89002         (_jm_DECL_HEADERS): Define new function.
89003         (jm_CHECK_DECLARATIONS): Require it.
89004
89005 2000-01-22  Jim Meyering  <meyering@lucent.com>
89006
89007         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89008         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89009         Required for some AIX systems.  Reported by Christian Krackowizer.
89010         [TESTING] (main): New function.
89011
89012         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89013         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89014         letters.
89015
89016         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89017         iswprint.
89018
89019         * lib/strverscmp.c (ISDIGIT): Define.
89020         (strverscmp): Use ISDIGIT, not isdigit.
89021
89022 2000-01-19  Jim Meyering  <meyering@lucent.com>
89023
89024         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89025         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89026         defines `struct timespec' in <sys/time.h>
89027
89028         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89029         Thanks to Akim for explaining.
89030
89031 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89032
89033         * lib/nanosleep.c (nanosleep):
89034         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89035         POSIX.1 doesn't require SA_INTERRUPT and some systems
89036         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89037         it's been part of POSIX.1 since day 1 (in 1988).
89038
89039 2000-01-17  Jim Meyering  <meyering@lucent.com>
89040
89041         * lib/interlock: Remove unused file.  Reported by François Pinard.
89042
89043 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89044
89045         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89046         alert, backslash, formfeed, and vertical tab unnecessarily in
89047         shell quoting style.
89048
89049 2000-01-16  Jim Meyering  <meyering@lucent.com>
89050
89051         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89052         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89053         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89054         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89055
89056 2000-01-16  Jim Meyering  <meyering@lucent.com>
89057
89058         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89059         because the latter didn't work.
89060
89061 2000-01-15  Jim Meyering  <meyering@lucent.com>
89062
89063         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89064         (AC_REPLACE_FUNCS): Add memcpy and memset.
89065         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89066         Add strpbrk.
89067         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89068
89069 2000-01-12  Jim Meyering  <meyering@lucent.com>
89070
89071         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89072         (jm_PREREQ): Use it.
89073         (jm_PREREQ_READUTMP): New macro.
89074         (jm_PREREQ): Use it.
89075
89076 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89077
89078         Quote multibyte characters correctly.
89079         * m4/c-bs-a.m4: New file.
89080         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89081         (jm_PREREQ): Use it.
89082
89083 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89084
89085         * m4/uintmax_t.m4: Port to autoconf 2.13.
89086
89087 2000-01-08  Jim Meyering  <meyering@ascend.com>
89088
89089         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89090         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89091
89092 2000-01-04  Jim Meyering  <meyering@ascend.com>
89093
89094         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89095         jm_STRUCT_DIRENT_D_TYPE.
89096         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89097         jm_STRUCT_DIRENT_D_INO.
89098         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89099         jm_STRUCT_UTIMBUF.
89100         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89101         renamings.
89102         * m4/utime.m4: Likewise.
89103
89104         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89105         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89106
89107 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89108
89109         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89110         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89111
89112 2000-01-02  Jim Meyering  <meyering@ascend.com>
89113
89114         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89115         remember if this is necessary.
89116
89117 1999-12-26  Jim Meyering  <meyering@ascend.com>
89118
89119         * m4/jm-macros.m4: Use it here.
89120         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89121
89122 1999-12-23  Jim Meyering  <meyering@ascend.com>
89123
89124         * m4/jm-macros.m4: Check for clock_gettime (moved from
89125         fileutils/configure.in)
89126         Check for gettimeofday.
89127
89128 1999-12-20  Jim Meyering  <meyering@ascend.com>
89129
89130         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89131         autoconf-2.14a-1999-12-20.
89132
89133 1999-12-19  Jim Meyering  <meyering@ascend.com>
89134
89135         * m4/lstat-slash.m4: New file.
89136         * m4/jm-macros.m4: Use the new macro:
89137         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89138
89139 1999-12-07  Jim Meyering  <meyering@ascend.com>
89140
89141         * m4/perl.m4: Require that File::Compare be available, too.
89142         Too many systems seem to lack it.
89143
89144         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89145         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89146
89147 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89148
89149         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89150         problem with the QNX 4.25 shell, which doesn't propagate exit
89151         status of failed commands inside shell assignments.
89152
89153 1999-11-17  Jim Meyering  <meyering@ascend.com>
89154
89155         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89156
89157 1999-11-07  Jim Meyering  <meyering@ascend.com>
89158
89159         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89160
89161 1999-11-06  Jim Meyering  <meyering@ascend.com>
89162
89163         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89164         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89165
89166 1999-11-05  Jim Meyering  <meyering@ascend.com>
89167
89168         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89169         configure.in of textutils, fileutils, and sh-utils into this one
89170         (shared between those packages) file.
89171         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89172         AC_STRUCT_ST_BLKSIZE.
89173
89174 1999-11-03  Jim Meyering  <meyering@ascend.com>
89175
89176         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89177         of AC_CHECK_TYPE checks includes unistd.h.
89178         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89179         Suggestion from Akim Demaille.
89180
89181 1999-10-30  Jim Meyering  <meyering@ascend.com>
89182
89183         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89184         m4-quoted string.
89185         * m4/ls-mntd-fs.m4: Likewise.
89186         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89187         * m4/jm-winsz1.m4: Likewise.
89188
89189         * m4/const.m4: Remove file, since the fix made it into the experimental
89190         version of autoconf.
89191         * m4/mktime.m4: Likewise.
89192
89193         * m4/check-type.m4: Remove file, now that the latest version of
89194         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89195
89196         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89197         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89198         AC_CHECK_TYPE.
89199
89200 1999-10-04  Jim Meyering  <meyering@ascend.com>
89201
89202         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89203
89204 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89205
89206         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89207         2.95.1 bug with HP-UX 10.20.
89208
89209 1999-09-17  Jim Meyering  <meyering@ascend.com>
89210
89211         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89212         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89213         due to missing strdup (against sh-utils-2.0).
89214
89215 1999-08-29  Jim Meyering  <meyering@ascend.com>
89216
89217         * m4/jm-macros.m4: Require jm_BISON.
89218         * m4/bison.m4: New file.
89219
89220 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89221
89222         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89223         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89224
89225 1999-08-05  Jim Meyering  <meyering@ascend.com>
89226
89227         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89228         to avoid conflicts with `conftest' on 8+3 filesystems.
89229         Suggestion from Eli Zaretskii.
89230
89231 1999-08-04  Jim Meyering  <meyering@ascend.com>
89232
89233         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89234         fileutils and sh-utils (textutils's getline test was inadequate).
89235         (AM_FUNC_GETLINE): Run this test.
89236         (AC_CHECK_FUNCS): Check for getdelim.
89237         Reported by Bob Proulx.
89238
89239 1999-08-02  Jim Meyering  <meyering@ascend.com>
89240
89241         * m4/jm-macros.m4: Add a comment.
89242
89243 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89244
89245         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89246         <inttypes.h> defines strtoumax as a macro (and not as a
89247         function).
89248
89249 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89250
89251         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89252         that we can shift, multiply and divide unsigned long long
89253         values; Ultrix cc can't do it.
89254
89255 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89256
89257         * m4/mktime.m4: New file, which is a preview of what should appear
89258         in the next public autoconf release.
89259
89260 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89261
89262         * m4/lfs.m4: Remove this file.
89263         * m4/largefile.m4: New file.  It contains the old contents of
89264         lfs.m4, except that all names with prefix AC_LFS have been
89265         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89266         compatible with future autoconf versions.  Also, some minor m4
89267         quoting problems have been fixed.
89268
89269 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89270
89271         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89272         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89273         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89274         and simplify the shell code.
89275
89276 1999-08-01  Jim Meyering  <meyering@ascend.com>
89277
89278         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89279         m4.
89280
89281 1999-07-20  Jim Meyering  <meyering@ascend.com>
89282
89283         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89284
89285 1999-07-15  Jim Meyering  <meyering@ascend.com>
89286
89287         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89288
89289 1999-05-22  Jim Meyering  <meyering@ascend.com>
89290
89291         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89292
89293 1999-05-20  Jim Meyering  <meyering@ascend.com>
89294
89295         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89296         Add a colon after each `then' in case $4 is empty.
89297
89298 1999-05-16  Jim Meyering  <meyering@ascend.com>
89299
89300         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89301
89302 1999-05-10  Jim Meyering  <meyering@ascend.com>
89303
89304         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89305
89306         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89307         AC_FUNC_MKTIME.
89308
89309 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89310
89311         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89312
89313 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89314
89315         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89316         not CPPFLAGS, so that linking works correctly in IRIX.
89317
89318 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89319
89320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89321
89322 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89323
89324         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89325         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89326         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89327         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89328         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89329
89330         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89331
89332 1999-04-20  Jim Meyering  <meyering@ascend.com>
89333
89334         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89335         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89336         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89337
89338 1999-04-18  Jim Meyering  <meyering@ascend.com>
89339
89340         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89341         * m4/jm-macros.m4: Use it.
89342
89343 1999-04-06  Jim Meyering  <meyering@ascend.com>
89344
89345         * m4/strftime.m4: Remove test for %f.
89346
89347 1999-03-29  Jim Meyering  <meyering@ascend.com>
89348
89349         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89350         superset of the AC_TYPE_* checks in the textutils, fileutils,
89351         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89352         AC_TYPE_PID_T.
89353
89354 1999-03-28  Jim Meyering  <meyering@ascend.com>
89355
89356         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89357         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89358         replaced e.g., in the *.sh files of the sh-utils.
89359
89360 1999-03-20  Jim Meyering  <meyering@ascend.com>
89361
89362         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89363         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89364         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89365
89366 1999-03-19  Jim Meyering  <meyering@ascend.com>
89367
89368         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89369
89370 1999-03-12  Jim Meyering  <meyering@ascend.com>
89371
89372         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89373
89374 1999-03-07  Jim Meyering  <meyering@ascend.com>
89375
89376         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89377         declared.
89378
89379 1999-02-17  Jim Meyering  <meyering@ascend.com>
89380
89381         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89382         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89383
89384 1999-02-07  Jim Meyering  <meyering@ascend.com>
89385
89386         * m4/group-member.m4: New file -- extracted from sh-utils'
89387         configure.in.
89388
89389         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89390         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89391
89392 1999-02-06  Jim Meyering  <meyering@ascend.com>
89393
89394         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89395         * m4/fnmatch.m4: Likewise.
89396         * m4/getgroups.m4: Likewise.
89397         * m4/lstat.m4: Likewise.
89398         * m4/malloc.m4: Likewise.
89399         * m4/putenv.m4: Likewise.
89400         * m4/realloc.m4: Likewise.
89401         * m4/regex.m4: Likewise.
89402         * m4/stat.m4: Likewise.
89403         * m4/strftime.m4: Likewise.
89404         Suggestion from Alain Magloire.
89405
89406         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89407         * m4/fnmatch.m4: Likewise.
89408         * m4/getgroups.m4: Likewise.
89409         * m4/getline.m4: Likewise.
89410         * m4/lstat.m4: Likewise.
89411         * m4/malloc.m4: Likewise.
89412         * m4/memcmp.m4: Likewise.
89413         * m4/putenv.m4: Likewise.
89414         * m4/realloc.m4: Likewise.
89415         * m4/regex.m4: Likewise.
89416         * m4/stat.m4: Likewise.
89417         * m4/strftime.m4: Likewise.
89418         Suggestion from Alain Magloire.
89419
89420         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89421         an argument.
89422
89423         * m4/regex.m4: Add a run-time Test for proper operation of
89424         re_compile_pattern.
89425
89426 1999-01-31  Jim Meyering  <meyering@ascend.com>
89427
89428         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89429
89430 1999-01-30  Jim Meyering  <meyering@ascend.com>
89431
89432         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89433
89434         * m4/jm-mktime.m4: Make this a wrapper around the official
89435         AM_FUNC_MKTIME rather than my private copy, now that the official one
89436         is up to date.
89437         * m4/mktime.m4: Remove file.
89438
89439         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89440         * m4/uptime.m4: Likewise.
89441         * m4/uintmax_t.m4: Likewise.
89442
89443 1999-01-28  Jim Meyering  <meyering@ascend.com>
89444
89445         * m4/jm-macros.m4: Use jm_AFS.
89446         * m4/afs.m4: New file (from fileutils' configure.in).
89447
89448         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89449         * m4/chown.m4: Likewise.
89450         * m4/d-ino.m4: Likewise.
89451         * m4/d-type.m4: Likewise.
89452         * m4/fnmatch.m4: Likewise.
89453         * m4/getgroups.m4: Likewise.
89454         * m4/gettext.m4: Likewise.
89455         * m4/jm-mktime.m4: Likewise.
89456         * m4/jm-winsz2.m4: Likewise.
89457         * m4/lcmessage.m4: Likewise.
89458         * m4/ls-mntd-fs.m4: Likewise.
89459         * m4/malloc.m4: Likewise.
89460         * m4/memcmp.m4: Likewise.
89461         * m4/putenv.m4: Likewise.
89462         * m4/realloc.m4: Likewise.
89463         * m4/st_mtim.m4: Likewise.
89464         * m4/strftime.m4: Likewise.
89465
89466 1999-01-16  Jim Meyering  <meyering@ascend.com>
89467
89468         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89469         (ARGMATCH_DIE_DECL): Define.
89470
89471 1999-01-12  Jim Meyering  <meyering@ascend.com>
89472
89473         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89474         Reported by Lars Hecking.
89475
89476 1999-01-10  Jim Meyering  <meyering@ascend.com>
89477
89478         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89479         gross kludge.
89480         * m4/inttypes_h.m4: Likewise.
89481         * m4/lstat.m4: Likewise.
89482         * m4/malloc.m4: Likewise.
89483         * m4/readdir.m4: Likewise.
89484         * m4/realloc.m4: Likewise.
89485         * m4/st_dm_mode.m4: Likewise.
89486         * m4/stat.m4: Likewise.
89487         * m4/utimbuf.m4: Likewise.
89488         * m4/utimes.m4: Likewise.
89489
89490         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89491         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89492         comments in config.h.in are meaningful.
89493
89494         * m4/jm-macros.m4: Require autoconf-2.13 here.
89495
89496         * m4/regex.m4: By default, don't use the included regex.c on systems
89497         with glibc 2.  Suggestion from Uli Drepper.
89498
89499 1999-01-02  Jim Meyering  <meyering@ascend.com>
89500
89501         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89502
89503 1998-12-18  Jim Meyering  <meyering@ascend.com>
89504
89505         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89506         Based on a suggestion from Lars Hecking.
89507
89508 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89509
89510         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89511
89512 1998-11-16  Jim Meyering  <meyering@ascend.com>
89513
89514         * m4/lfs.m4: Double-quote the `uname...` expression.
89515
89516 1998-11-14  Jim Meyering  <meyering@ascend.com>
89517
89518         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89519         * m4/stat.m4: Likewise.
89520
89521 1998-11-03  Jim Meyering  <meyering@ascend.com>
89522
89523         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89524         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89525
89526 1998-10-18  Jim Meyering  <meyering@ascend.com>
89527
89528         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89529
89530 1998-10-17  Jim Meyering  <meyering@ascend.com>
89531
89532         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89533         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89534         calls for those previously hard-coded headers.  Instead, take a new
89535         parameter.
89536         (jm_CHECK_DECLARATIONS): Reflect interface change.
89537         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89538         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89539
89540         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89541
89542 1998-10-14  Jim Meyering  <meyering@ascend.com>
89543
89544         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89545         instead of "TZ=America/Vancouver".  From Paul Eggert.
89546
89547 1998-10-11  Jim Meyering  <meyering@ascend.com>
89548
89549         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89550         This adds a test for a recently added compatibility fix for mktime.c.
89551         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89552
89553 1998-09-27  Jim Meyering  <meyering@ascend.com>
89554
89555         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89556
89557         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89558         ../configure.in, including a change from Gordon Matzigkeit to allow
89559         cross-compiling for the Hurd.
89560
89561         * m4/glibc.m4: New file/macro to test for the GNU C Library
89562         versions 1 and 2.  From Gordon Matzigkeit.
89563         Indent.
89564
89565 1998-09-21  Jim Meyering  <meyering@ascend.com>
89566
89567         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89568
89569 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89570
89571         Port nanosecond-resolution times to UnixWare 2.1.2 and
89572         pedantic Solaris 2.6.
89573
89574         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89575         AC_STRUCT_ST_MTIM.
89576         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89577         Generate name of ns member, instead of just 1 or undef.
89578         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89579
89580 1998-08-15  Jim Meyering  <meyering@ascend.com>
89581
89582         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89583         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89584         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89585         instead of jm_TYPE_SSIZE_T.
89586
89587 1998-08-12  Jim Meyering  <meyering@ascend.com>
89588
89589         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89590
89591 1998-08-02  Jim Meyering  <meyering@ascend.com>
89592
89593         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89594         in acconfig.h manually.
89595
89596 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89597
89598         * m4/st_mtim.m4: New file.
89599
89600 1998-07-28  Jim Meyering  <meyering@ascend.com>
89601
89602         * m4/utimes.m4: Undef stat.
89603
89604 1998-07-25  Jim Meyering  <meyering@ascend.com>
89605
89606         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89607         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89608
89609 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89610
89611         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89612         uid and gid actually remain unchanged.
89613
89614 1998-07-07  Jim Meyering  <meyering@ascend.com>
89615
89616         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89617
89618 1998-07-04  Jim Meyering  <meyering@ascend.com>
89619
89620         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89621         to prove that this macro can be used in packages without regex.c.
89622
89623 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89624
89625         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89626         is to be used.
89627
89628 1998-07-03  Jim Meyering  <meyering@ascend.com>
89629
89630         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89631
89632         * m4/gettext.m4: New file -- from gettext-0.10.35.
89633         * m4/lcmessage.m4: Likewise.
89634         * m4/progtest.m4: Likewise.
89635
89636         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89637         * m4/jm-macros.m4: Require the new macro.
89638
89639 1998-06-29  Jim Meyering  <meyering@ascend.com>
89640
89641         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89642         for the definition of NGROUPS (used in a system header included
89643         by sys/mount.h).
89644
89645 1998-06-28  Jim Meyering  <meyering@ascend.com>
89646
89647         * m4/ls-mntd-fs.m4: New file.
89648         * m4/fstypename.m4: New file.
89649
89650         * m4/jm-macros.m4: Require the new macro.
89651         * m4/jm-glibc-io.m4: New file.
89652
89653 1998-05-19  Jim Meyering  <meyering@ascend.com>
89654
89655         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89656         * m4/lchown.m4: New file.
89657
89658         * m4/Makefile.am.in: New file.
89659         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89660
89661 1998-05-14  Jim Meyering  <meyering@ascend.com>
89662
89663         * m4/Makefile.am (EXTRA_DIST): Add them.
89664         * m4/jm-macros.m4: New file.
89665         * m4/utimbuf.m4: New file.
89666
89667 1998-05-12  Jim Meyering  <meyering@ascend.com>
89668
89669         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89670
89671 1998-05-11  Jim Meyering  <meyering@ascend.com>
89672
89673         * m4/isc-posix.m4: New file.
89674
89675 1998-05-10  Jim Meyering  <meyering@ascend.com>
89676
89677         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89678
89679 1998-05-09  Jim Meyering  <meyering@ascend.com>
89680
89681         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89682         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89683         with automake.
89684
89685         * m4/ssize_t.m4: New file.
89686         * m4/mktime.m4: Remove file -- the new automake has this now.
89687
89688 1998-04-26  Jim Meyering  <meyering@ascend.com>
89689
89690         * m4/assert.m4: New file.
89691         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89692
89693 1998-04-05  Jim Meyering  <meyering@ascend.com>
89694
89695         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89696         (jm_PREREQ): Use it here.
89697
89698 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89699
89700         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89701         in acconfig.h.
89702
89703 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89704
89705         * m4/prereq.m4: New file.
89706         * m4/error.m4: New file.
89707         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89708
89709 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89710
89711         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89712         cache-check for the same variable -- that defeated the purpose of
89713         the test; the test program was never run.  This was a problem only
89714         on systems with losing getline functions -- HP-UX 10.20 is one.
89715         Reported by Bjorn Helgaas.
89716
89717 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89718
89719         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89720
89721 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89722
89723         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89724
89725         * m4/const.m4: New file.  Use an initializer in this declaration
89726         typedef int charset[2]; const charset x;
89727         Reported by Bob Glickstein.
89728
89729 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89730
89731         * m4/chown.m4: Fix reversed types on -1 args to chown.
89732         From Kaveh Ghazi.
89733
89734 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89735
89736         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89737         Add lseek and memchr.
89738
89739         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89740         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89741         have a 20-character limit on names.
89742
89743 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89744
89745         * m4/inttypes_h.m4: New file.
89746         * m4/uintmax_t.m4: New file.
89747         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89748
89749
89750         -----
89751
89752         Local Variables:
89753         coding: utf-8
89754         End:
89755
89756         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89757
89758         Copying and distribution of this file, with or without
89759         modification, are permitted provided the copyright notice
89760         and this notice are preserved.